:root {
  --bg: #101510;
  --bg-soft: #151c17;
  --panel: #1a231d;
  --panel-2: #202b23;
  --text: #f4f1e8;
  --muted: #c1c8bf;
  --faint: #8f9b91;
  --line: #344038;
  --gold: #e0b65b;
  --gold-bright: #f0cd79;
  --green: #8dc6a3;
  --blue: #8db9d6;
  --yellow: #e8c66c;
  --orange: #d89a67;
  --red: #df8b87;
  --purple: #b9a0d7;
  --focus: #f3d894;
  --max: 1160px;
  --reading: 760px;
  --radius: 18px;
  --shadow: 0 16px 44px rgba(0,0,0,.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(224,182,91,.12), transparent 34rem),
    var(--bg);
  color: var(--text);
  line-height: 1.68;
  font-size: 18px;
}

a { color: var(--gold-bright); text-underline-offset: .2em; }
a:hover { color: white; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--focus); }

.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;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  transform: translateY(-200%);
  background: white;
  color: #111;
  padding: .65rem .85rem;
  border-radius: .5rem;
}
.skip-link:focus { transform: translateY(0); }

.preview-banner {
  text-align: center;
  padding: .55rem 1rem;
  background: #2a2415;
  color: #f4d78e;
  border-bottom: 1px solid #5b4d29;
  font-size: .96rem;
  letter-spacing: .015em;
}

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--text);
  text-decoration: none;
  min-width: 280px;
}
.brand img { filter: drop-shadow(0 0 10px rgba(224,182,91,.22)); }
.brand strong { display: block; font-family: Georgia, serif; font-size: 1.38rem; }
.brand small { display: block; color: var(--muted); font-size: .82rem; }

.site-nav { position: relative; }
.nav-links { display: flex; align-items: center; gap: 1.2rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 1rem; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }

.menu-button {
  display: none;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel);
  padding: .6rem .85rem;
  border-radius: .65rem;
}

main { min-height: 60vh; }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem;
  display: grid;
  grid-template-columns: 1.7fr .65fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .84rem;
  font-weight: 800;
}

h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h1 {
  font-family: Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  margin: .6rem 0 1.2rem;
  font-weight: 600;
}
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 1rem; }
h3 { font-size: 1.35rem; }

.hero h1 {
  font-size: 2.75rem;
  line-height: 1.08;
  max-width: 24ch;
  letter-spacing: -.015em;
}

.lede { font-size: 1.28rem; color: var(--muted); max-width: 42rem; }

.hero-card {
  background: linear-gradient(160deg, rgba(224,182,91,.13), rgba(255,255,255,.02));
  border: 1px solid #4b4937;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.lantern-mark {
  width: 90px;
  height: 90px;
  display: block;
  margin: 0 auto 1.25rem;
}
.hero-card p { color: var(--muted); font-size: 1.05rem; }

.button-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.6rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.05rem;
  border-radius: .75rem;
  text-decoration: none;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #17140c;
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
}
.button:hover { background: var(--gold-bright); color: #111; }
.button:disabled {
  cursor: wait;
  opacity: .65;
}
.button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button.secondary:hover { border-color: var(--gold); }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}
.section.narrow { max-width: var(--reading); }
.section-head { max-width: 700px; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); }

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.path-card, .issue-card, .panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.45rem;
}
.path-card h3 { margin-top: .25rem; }
.path-card p, .issue-card p, .panel p { color: var(--muted); }
.path-card a { display: inline-block; margin-top: .4rem; }

.callout {
  border-left: 4px solid var(--gold);
  background: #1d211a;
  padding: 1.2rem 1.35rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.page-head {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 4rem 1.25rem 2rem;
}
.page-head h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); }

.breadcrumbs {
  color: var(--faint);
  font-size: .92rem;
  margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--muted); }

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1rem 0 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: .36rem .7rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .84rem;
  border: 1px solid currentColor;
  background: rgba(255,255,255,.025);
}
.badge.researching { color: var(--yellow); }
.badge.supported { color: var(--blue); }
.badge.confirmed { color: var(--green); }
.badge.unclear { color: var(--orange); }
.badge.clarify { color: var(--purple); }
.meta { color: var(--faint); font-size: .94rem; }

.reading {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 1rem 1.25rem 5rem;
}
.reading h2 { margin-top: 3.5rem; }
.reading h3 { margin-top: 2.2rem; }
.reading li + li { margin-top: .45rem; }
.reading a { overflow-wrap: anywhere; }

.answer-box {
  background: linear-gradient(140deg, #1e281f, #182019);
  border: 1px solid #3e5142;
  border-radius: var(--radius);
  padding: 1.6rem;
  margin: 1.5rem 0 2rem;
}
.answer-box h2 { margin-top: 0; font-size: 1.4rem; }

details {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  margin: .85rem 0;
  overflow: hidden;
}
summary {
  cursor: pointer;
  font-weight: 800;
  padding: 1rem 1.1rem;
}
details > div { padding: 0 1.1rem 1.1rem; color: var(--muted); }

.issue-tools {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: .8rem;
}

.search-input, .filter-select, .form-control {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: .75rem;
  padding: .8rem .9rem;
}

.issue-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.25rem 5rem;
  display: grid;
  gap: .9rem;
}

.issue-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}
.issue-card[hidden] { display: none; }
.issue-card h2 { font-size: 1.5rem; margin: .2rem 0 .6rem; }
.issue-card h2 a { color: var(--text); text-decoration: none; }
.issue-card h2 a:hover { color: var(--gold-bright); }
.issue-card .category { color: var(--gold-bright); font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; }
.issue-card aside { text-align: right; min-width: 135px; }
.issue-card aside span { display: block; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { text-align: left; padding: .95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }

form { display: grid; gap: 1.1rem; }
label { display: block; font-weight: 800; margin-bottom: .35rem; }
.help { color: var(--faint); font-size: .94rem; margin-top: .35rem; }
textarea { min-height: 170px; resize: vertical; }

.form-notice {
  border: 1px solid #5b4d29;
  background: #2a2415;
  color: #f4d78e;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.form-message { min-height: 1.5rem; color: var(--yellow); font-weight: 800; }
.cf-turnstile { min-height: 65px; }

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
}
.site-footer a { display: block; margin-bottom: .45rem; }
.footer-note { grid-column: 1 / -1; color: var(--faint); }

.empty-state {
  display: none;
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty-state.show { display: block; }

@media (max-width: 820px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; padding-top: 3rem; gap: 2rem; }
  .hero h1 { font-size: 2.35rem; max-width: none; }
  .path-grid { grid-template-columns: 1fr; }
  .issue-card { grid-template-columns: 1fr; }
  .issue-card aside { text-align: left; }
  .issue-tools { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-note { grid-column: 1; }
  .menu-button { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + .55rem);
    min-width: 255px;
    padding: .75rem;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: .85rem;
    box-shadow: var(--shadow);
    z-index: 10;
  }
  .nav-links.open { display: grid; }
  .nav-links a { padding: .6rem .7rem; }
  .brand { min-width: auto; }
  .brand small { display: none; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.7rem; }
  .hero h1 { font-size: 2.15rem; }
  .site-header { gap: .5rem; }
  .brand strong { font-size: 1.18rem; }
}

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