/* Guide articles (web/guide.ts). Same quiet palette and type as the app (web/src/styles/app.css),
   for a page of reading: one narrow column, generous line height, indigo only for links. */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #171717;
  --muted: #525252;
  --border: rgb(23 23 23 / 8%);
  --accent: #3949ab;
  --accent-strong: #283593;
  --accent-soft: #e8eaf6;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', Meiryo, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
  line-break: strict;
}

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-strong); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.site-header, main, .site-footer { max-width: 40rem; margin: 0 auto; padding: 0 1rem; }
.site-header { padding-top: 1rem; padding-bottom: 1rem; font-weight: 600; }
.site-header a { color: var(--text); text-decoration: none; }

article { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem 1.25rem 2rem; }
h1 { margin: 0; font-size: 1.5rem; line-height: 1.5; font-weight: 600; }
h2 { margin: 2.5rem 0 0.75rem; font-size: 1.25rem; line-height: 1.5; font-weight: 600; }
p { margin: 0 0 1rem; }
.byline { margin-top: 0.5rem; color: var(--muted); font-size: 0.875rem; }
.ad-label { padding: 0.5rem 0.75rem; background: var(--accent-soft); border-radius: 0.5rem; font-size: 0.875rem; }
.cta { margin-top: 1.5rem; font-weight: 500; }

.site-footer { padding-top: 1.5rem; padding-bottom: 2rem; color: var(--muted); font-size: 0.875rem; }
.site-footer ul { list-style: none; margin: 0 0 0.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }

@media (min-width: 48rem) {
  article { padding: 2.5rem 2.5rem 3rem; }
  h1 { font-size: 1.75rem; }
}
