:root {
  color-scheme: dark;
  --ink: #141414;
  --ink-deep: #0d0d0c;
  --surface: #1b1b19;
  --surface-raised: #22221f;
  --surface-soft: #282721;
  --text: #f5f2e9;
  --muted: #bbb8ad;
  --faint: #8f8d84;
  --gold: #b6950e;
  --gold-light: #ddc45d;
  --gold-pale: #f0dfa0;
  --line: rgba(240, 223, 160, 0.15);
  --line-strong: rgba(240, 223, 160, 0.28);
  --content: 1180px;
  --reading: 760px;
  --radius: 22px;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 88% 4%, rgba(182, 149, 14, 0.08), transparent 27rem),
    var(--ink);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-light); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--gold-pale); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink-deep); }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold-light);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }
.container { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.reading { max-width: var(--reading); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.brand img { width: 210px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  background: var(--gold);
}
.header-cta { margin-left: 4px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 13px 21px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--gold);
  color: #11110f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(182, 149, 14, 0.12);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.button::after { content: "↗"; font-size: 18px; line-height: 1; }
.button:hover { background: var(--gold-light); border-color: var(--gold-light); color: #11110f; transform: translateY(-1px); }
.button-large { min-height: 58px; padding: 16px 26px; font-size: 16px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.text-link::after { content: "→"; color: var(--gold-light); }
.text-link:hover { color: var(--gold-light); }

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -210px;
  top: -260px;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(182, 149, 14, 0.025), 0 0 0 140px rgba(182, 149, 14, 0.018);
  pointer-events: none;
}
.home-hero { padding: 76px 0 68px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); gap: 68px; align-items: center; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
h1, h2, h3 { text-wrap: balance; }
h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 5.4vw, 76px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}
h1 em { color: var(--gold-light); font-style: normal; }
.hero-lead { max-width: 690px; margin: 26px 0 0; color: var(--muted); font-size: 19px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 32px; }
.cta-note { margin: 12px 0 0; color: var(--faint); font-size: 13px; }
.hero-lead strong { color: var(--text); font-weight: 650; }

.access-panel {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(182, 149, 14, 0.09), transparent 46%), var(--surface);
  box-shadow: var(--shadow);
}
.access-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  width: 70px;
  height: 2px;
  background: var(--gold-light);
}
.panel-kicker { margin: 0 0 6px; color: var(--gold-light); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.panel-title { margin: 0 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; line-height: 1.25; }
.route-list { list-style: none; margin: 0; padding: 0; }
.route-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 17px 0; border-top: 1px solid var(--line); }
.route-number { color: var(--gold-light); font-family: Georgia, serif; font-size: 21px; line-height: 1.5; }
.route-list strong { display: block; margin-bottom: 2px; font-size: 15px; }
.route-list span { display: block; color: var(--muted); font-size: 13px; line-height: 1.55; }
.panel-foot { margin: 18px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; line-height: 1.6; }

.signal-row { border-bottom: 1px solid var(--line); background: var(--ink-deep); }
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.signal { padding: 22px 28px; border-left: 1px solid var(--line); }
.signal:first-child { border-left: 0; padding-left: 0; }
.signal:last-child { padding-right: 0; }
.signal strong { display: block; margin-bottom: 3px; color: var(--text); font-size: 14px; }
.signal span { color: var(--faint); font-size: 12px; }

.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section-alt { background: rgba(255, 255, 255, 0.012); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr); gap: 56px; align-items: end; margin-bottom: 34px; }
.section-heading h2, .prose h2, .article-content h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 3.2vw, 43px);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.16;
}
.section-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.section-kicker { margin: 0 0 10px; color: var(--gold-light); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.prose { color: var(--muted); }
.prose p { margin: 0 0 20px; }
.prose strong { color: var(--text); }
.prose h3 { margin: 32px 0 12px; color: var(--text); font-size: 20px; line-height: 1.35; }
.prose a, .article-content a { color: var(--gold-light); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.split-wide { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 54px; align-items: start; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.card h3 { margin: 0 0 12px; color: var(--text); font-size: 20px; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-label { display: block; margin-bottom: 18px; color: var(--gold-light); font-family: Georgia, serif; font-size: 25px; }

.howto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.howto-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.howto-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 17px;
}
.howto-card h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.35; }
.howto-card > p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li {
  position: relative;
  counter-increment: steps;
  padding: 13px 0 13px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.steps li::before {
  content: counter(steps) ".";
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-weight: 750;
}
.steps strong { color: var(--text); }

.checklist { list-style: none; margin: 24px 0 0; padding: 0; }
.checklist li { position: relative; padding: 15px 0 15px 34px; border-top: 1px solid var(--line); color: var(--muted); }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 15px;
  color: var(--gold-light);
  font-weight: 900;
}
.checklist strong { color: var(--text); }
.note {
  padding: 22px 24px;
  border-left: 2px solid var(--gold);
  background: rgba(182, 149, 14, 0.06);
  color: var(--muted);
  font-size: 14px;
}
.note strong { color: var(--text); }
.note p { margin: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 650px; background: var(--surface); }
th, td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--surface-raised); color: var(--gold-pale); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
td { color: var(--muted); font-size: 14px; }
td:first-child { color: var(--text); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.guide-card {
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(182, 149, 14, 0.055), transparent 50%), var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}
.guide-card:hover { border-color: var(--line-strong); color: var(--text); transform: translateY(-3px); }
.guide-card .card-index { color: var(--gold-light); font-family: Georgia, serif; font-size: 26px; }
.guide-card h3 { margin: 30px 0 12px; font-family: Georgia, serif; font-size: 30px; font-weight: 500; line-height: 1.2; }
.guide-card p { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.guide-card .card-link { margin-top: auto; color: var(--gold-light); font-size: 14px; font-weight: 750; }
.card-link::after { content: " →"; }

.faq-list { max-width: 900px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 23px 52px 23px 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 5px;
  top: 20px;
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 790px; margin: -4px 0 24px; color: var(--muted); font-size: 15px; }

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 0;
}
.closing h2 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 29px; font-weight: 500; }
.closing p { margin: 0; color: var(--muted); font-size: 14px; }

.site-footer { padding: 44px 0 34px; background: var(--ink-deep); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: start; }
.footer-brand img { width: 180px; margin-bottom: 17px; }
.footer-brand p { max-width: 480px; margin: 0; color: var(--faint); font-size: 13px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px 24px; }
.footer-nav a { color: var(--muted); font-size: 13px; text-decoration: none; }
.disclosure {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  line-height: 1.7;
}
.disclosure p { margin: 0; max-width: 950px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; color: #75736c; font-size: 11px; }

/* Blog index */
.page-hero { padding: 64px 0 52px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; font-size: clamp(43px, 5vw, 68px); }
.page-hero .hero-lead { max-width: 760px; }
.breadcrumbs { margin-bottom: 30px; color: var(--faint); font-size: 12px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--gold); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs [aria-current="page"] { color: var(--gold-light); }
.blog-intro { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 56px; margin-bottom: 38px; }
.blog-intro h2 { margin: 0; font-family: Georgia, serif; font-size: 34px; font-weight: 500; line-height: 1.25; }
.blog-intro p { margin: 0; color: var(--muted); }
.guide-card-wide { min-height: 340px; }
.guide-card-wide ul { margin: 0 0 26px; padding-left: 20px; color: var(--muted); font-size: 14px; }
.guide-card-wide li { margin: 7px 0; }

/* Guides */
.article-hero { padding: 48px 0 48px; border-bottom: 1px solid var(--line); }
.article-hero h1 { max-width: 960px; font-size: clamp(42px, 5vw, 66px); }
.article-hero .hero-lead { max-width: 820px; font-size: 18px; }
.article-labels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.article-labels span { padding: 6px 11px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); font-size: 11px; }
.article-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 30px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
}
.article-access strong { display: block; font-size: 15px; }
.article-access span { display: block; margin-top: 3px; color: var(--faint); font-size: 12px; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, var(--reading)); gap: 76px; justify-content: center; padding: 58px 0 72px; }
.toc { align-self: start; position: sticky; top: 120px; padding: 20px 0; border-top: 2px solid var(--gold); }
.toc strong { display: block; margin-bottom: 13px; color: var(--text); font-size: 12px; letter-spacing: 0.11em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a { display: block; padding: 8px 0; color: var(--faint); font-size: 12px; line-height: 1.45; text-decoration: none; }
.toc a:hover { color: var(--gold-light); }
.article-content { min-width: 0; color: var(--muted); }
.article-content > p:first-child { color: var(--text); font-size: 20px; line-height: 1.75; }
.article-content p { margin: 0 0 23px; }
.article-content h2 { margin: 54px 0 20px; scroll-margin-top: 130px; }
.article-content h3 { margin: 34px 0 12px; color: var(--text); font-size: 20px; line-height: 1.4; }
.article-content ul, .article-content ol:not(.steps) { margin: 0 0 24px; padding-left: 24px; }
.article-content li { margin: 9px 0; }
.article-content strong { color: var(--text); }
.article-content .note { margin: 28px 0; }
.article-content .howto-card { margin: 24px 0; }
.article-content .faq-list { margin-top: 25px; }
.article-content .faq-list summary { font-size: 16px; }
.article-content .table-wrap { margin: 26px 0; }
.article-footer { padding: 30px 0 60px; border-top: 1px solid var(--line); }
.article-footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.article-footer p { margin: 0; color: var(--faint); font-size: 13px; }

@media (max-width: 1020px) {
  .header-inner { gap: 20px; }
  .brand img { width: 180px; }
  .site-nav { gap: 18px; }
  .hero-grid { gap: 38px; }
  .article-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 42px; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 160px; }
  .header-inner { flex-wrap: wrap; gap: 12px 18px; padding: 15px 0 12px; }
  .brand img { width: 170px; }
  .header-cta { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin: 0; gap: 24px; overflow-x: auto; }
  .site-nav a { padding: 4px 0; }
  .site-nav a[aria-current="page"]::after { bottom: -7px; }
  .hero-grid, .section-heading, .split-wide, .blog-intro { grid-template-columns: 1fr; gap: 30px; }
  .home-hero { padding: 52px 0; }
  .access-panel { max-width: 600px; }
  .section { padding: 54px 0; }
  .section-heading { margin-bottom: 28px; }
  .article-layout { display: block; padding-top: 36px; }
  .toc { position: static; margin-bottom: 36px; padding: 18px 20px; border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 12px; }
  .toc ol { columns: 2; column-gap: 28px; }
  .article-content h2 { scroll-margin-top: 160px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 32px), var(--content)); }
  .header-cta .button { min-height: 44px; padding: 11px 14px; font-size: 13px; }
  .brand img { width: 148px; }
  .home-hero { padding: 42px 0; }
  h1 { font-size: clamp(40px, 12vw, 54px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button, .hero-actions .text-link { width: 100%; justify-content: center; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal, .signal:first-child, .signal:last-child { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .signal:first-child { border-top: 0; }
  .split, .card-grid, .howto-grid, .guide-grid { grid-template-columns: 1fr; }
  .card, .howto-card, .guide-card { padding: 24px; }
  .guide-card { min-height: 0; }
  .guide-card h3 { margin-top: 20px; }
  .section-heading h2, .prose h2, .article-content h2 { font-size: 32px; }
  .closing { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .page-hero, .article-hero { padding: 38px 0; }
  .article-access { align-items: stretch; flex-direction: column; }
  .article-access .button { width: 100%; }
  .article-content > p:first-child { font-size: 18px; }
  .article-footer-inner { align-items: flex-start; flex-direction: column; }
  .toc ol { columns: 1; }
  .faq-list summary { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .article-access, .toc, .closing { display: none; }
  body { background: #fff; color: #111; }
  .article-layout { display: block; }
  .article-content, .prose { color: #222; }
  a { color: #111; }
}
