:root {
  --bg: #131009;
  --panel: #1a150e;
  --panel-2: #211a11;
  --ink: #f6efe0;
  --muted: #c9b99e;
  --muted-2: #a29077;
  --gold: #d9b574;
  --gold-2: #e8c98a;
  --leaf: #b5c27e;
  --line: rgba(217, 181, 116, .2);
  --line-strong: rgba(217, 181, 116, .45);
  --measure: 43rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Skip link: visually hidden until keyboard focus */
.guide-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  margin: .6rem;
  padding: .5rem .9rem;
  background: var(--panel-2);
  color: var(--gold-2);
  border: 1px solid var(--line-strong);
  font-size: .85rem;
  letter-spacing: .06em;
  text-decoration: none;
}
.guide-skip:focus { left: 0; }
#guide-main { scroll-margin-top: 1rem; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(181, 194, 126, .08), transparent 28rem),
    linear-gradient(180deg, #171109 0%, var(--bg) 55%, #0e0b07 100%);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 1.02rem;
  line-height: 2;
  letter-spacing: .035em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:hover { color: var(--gold-2); }

:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }

.guide-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1160px, 90vw);
  margin: 0 auto;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.guide-brand {
  display: inline-flex;
  align-items: baseline;
  gap: .75rem;
  color: var(--ink);
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
}

.guide-brand em {
  color: var(--gold);
  font-family: Fraunces, Georgia, serif;
  font-size: .72rem;
  font-style: italic;
  letter-spacing: .22em;
}

.guide-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .9rem 1.25rem;
  color: var(--muted-2);
  font-size: .72rem;
  letter-spacing: .12em;
}

.guide-nav a { text-decoration: none; }

.guide-wrap { width: min(1160px, 90vw); margin: 0 auto; }

.guide-hero {
  max-width: 52rem;
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.guide-eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-family: Fraunces, Georgia, serif;
  font-size: .78rem;
  font-style: italic;
  letter-spacing: .22em;
  text-transform: uppercase;
}

h1, h2, h3, h4 {
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 700;
  letter-spacing: .03em;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.35;
}

.guide-lede {
  max-width: 42rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  margin-top: 1.75rem;
  color: var(--muted-2);
  font-size: .75rem;
  letter-spacing: .08em;
}

.guide-meta strong { color: var(--gold); font-weight: 500; }

.guide-main {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) minmax(12rem, 1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
  padding-bottom: 6rem;
}

.guide-article { min-width: 0; }

.guide-article > section {
  padding: 3.25rem 0;
  border-top: 1px solid var(--line);
}

.guide-article > section:first-child { padding-top: 0; border-top: 0; }

.guide-article h2 {
  margin: 0 0 1.35rem;
  color: var(--gold-2);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.5;
}

.guide-article h3 {
  margin: 2rem 0 .65rem;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.6;
}

.guide-article p { margin: 0 0 1.3rem; color: var(--muted); }

.guide-article p:last-child { margin-bottom: 0; }

.guide-article strong { color: var(--ink); font-weight: 600; }

.guide-article ul, .guide-article ol { margin: 1rem 0 1.4rem; padding-left: 1.4rem; color: var(--muted); }

.guide-article li { padding-left: .35rem; margin: .35rem 0; }

.guide-article sup { line-height: 0; }

.guide-article sup a { color: var(--gold); text-decoration: none; }

.guide-note {
  margin: 1.5rem 0;
  padding: 1.25rem 1.35rem;
  background: rgba(217, 181, 116, .07);
  border-left: 2px solid var(--gold);
}

.guide-note p { margin-bottom: .7rem; }

.guide-note p:last-child { margin-bottom: 0; }

.process-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  margin: 1.75rem 0;
}

.process-step {
  min-height: 8rem;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
}

.process-step small {
  display: block;
  color: var(--gold);
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  letter-spacing: .12em;
}

.process-step strong { display: block; margin-top: .35rem; color: var(--ink); }

.process-step span { display: block; margin-top: .4rem; color: var(--muted-2); font-size: .83rem; line-height: 1.7; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; }

table { width: 100%; min-width: 38rem; border-collapse: collapse; font-size: .88rem; line-height: 1.7; }

caption { margin-bottom: .6rem; color: var(--muted-2); text-align: left; font-size: .78rem; letter-spacing: .08em; }

th, td { padding: .8rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }

th { color: var(--gold-2); font-weight: 600; }

td { color: var(--muted); }

.source-list { margin: 0; padding-left: 1.35rem; color: var(--muted); font-size: .87rem; }

.source-list li { margin: .6rem 0; }

.source-list a { color: var(--gold-2); }

.guide-aside {
  position: sticky;
  top: 2rem;
  padding-top: .4rem;
}

.guide-aside h2 {
  margin: 0 0 1rem;
  color: var(--muted-2);
  font-family: Fraunces, Georgia, serif;
  font-size: .82rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.guide-aside h3 {
  margin: 1.75rem 0 .6rem;
  color: var(--gold);
  font-family: Fraunces, Georgia, serif;
  font-size: .72rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: .12em;
}

.guide-aside ul { list-style: none; margin: 0; padding: 0; }

.guide-aside li { border-top: 1px solid var(--line); }

.guide-aside a { display: block; padding: .85rem 0; color: var(--muted); text-decoration: none; font-size: .85rem; line-height: 1.65; }

.guide-aside a:hover { color: var(--gold-2); }

.guide-aside .aside-note { margin-top: 2rem; color: var(--muted-2); font-size: .78rem; line-height: 1.8; }

.guide-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 0; }

.guide-card {
  display: block;
  min-height: 100%;
  padding: 1.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .25s, transform .25s;
}

.guide-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.guide-card small { color: var(--gold); font-family: Fraunces, Georgia, serif; font-style: italic; }

.guide-card h4 { margin: .65rem 0 .6rem; color: var(--ink); font-size: 1.25rem; line-height: 1.6; }

.guide-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.8; }

.guide-footer {
  width: min(1160px, 90vw);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: .78rem;
}

.guide-footer a { color: var(--gold-2); }

.age-note { color: var(--muted-2); font-size: .78rem; line-height: 1.8; }

@media (max-width: 800px) {
  .guide-topbar { align-items: flex-start; flex-direction: column; }
  .guide-nav { justify-content: flex-start; }
  .guide-main { display: block; }
  .guide-aside { position: static; padding: 0 0 3rem; }
  .process-line, .guide-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: .98rem; }
  .guide-wrap, .guide-topbar, .guide-footer { width: min(92vw, 43rem); }
  h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .guide-hero { padding-top: 4rem; }
  table { min-width: 32rem; }
}

/* --- guide TOC --- */
.guide-toc {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.35rem;
  background: var(--panel);
  border: 1px solid var(--line);
}

.guide-toc h2 {
  margin: 0 0 .85rem;
  font-size: .82rem;
  letter-spacing: .14em;
  color: var(--gold);
}

.guide-toc ol {
  margin: 0;
  padding-left: 1.3rem;
  columns: 2;
  column-gap: 2rem;
  color: var(--muted);
}

.guide-toc li { margin: .4rem 0; break-inside: avoid; }

.guide-toc a { color: var(--muted); text-decoration: none; }

.guide-toc a:hover { color: var(--gold); }

@media (max-width: 720px) {
  .guide-toc ol { columns: 1; }
}

/* --- print --- */
@media print {
  :root {
    --bg: #fff;
    --panel: #fff;
    --panel-2: #fff;
    --ink: #111;
    --muted: #333;
    --muted-2: #555;
    --gold: #111;
    --gold-2: #111;
    --leaf: #333;
    --line: #ccc;
  }
  .guide-topbar, .guide-toc, .guide-aside, .guide-footer, .guide-skip { display: none; }
  body { background: #fff; }
  .guide-wrap { width: auto; max-width: none; padding: 0; }
  .guide-article a { color: inherit; text-decoration: underline; }
  .table-wrap { overflow-x: visible; }
  .guide-note, .process-step, .guide-card { background: #fff; border-color: #ccc; }
}

.to-top { margin-top: .6rem; text-align: right; }
.to-top a { color: var(--muted-2); font-size: .78rem; text-decoration: none; letter-spacing: .06em; }
.to-top a:hover { color: var(--gold-2); }

/* Respect users who opt out of motion (WCAG 2.3.3 / vestibular disorders).
   Smooth scrolling and the hover lift are decorative; disable both. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guide-card { transition: none; }
  .guide-card:hover { transform: none; }
}

/* Google Preferred Sources deeplink (2026-08 official feature).
   Lets readers pin the site as a preferred source in Google Search. */
.pref-src { margin-top: .4rem; text-align: right; }
.pref-src a { color: var(--muted-2); font-size: .78rem; text-decoration: none; letter-spacing: .06em; }
.pref-src a:hover { color: var(--gold-2); }
