:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --card: #fbf7f0;
  --ink: #1a1814;
  --muted: #5e574c;
  --line: #d5ccba;
  --pine: #1b4332;
  --pine-2: #143528;
  --moss: #2f6b4f;
  --copper: #9a5b2f;
  --copper-soft: #c4a27a;
  --danger: #8a3328;
  --shadow: 0 18px 40px rgba(26, 24, 20, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(154, 91, 47, 0.08), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--pine); }
a:hover { color: var(--copper); }
button, input, select, textarea { font: inherit; }
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.kicker {
  margin: 0 0 10px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3, .logo strong, .score-big, .stat strong {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 0.98; margin: 0 0 16px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; margin: 0 0 12px; }
h3 { font-size: 1.35rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.lede { font-size: 1.12rem; max-width: 42rem; color: #332f29; }

.age-bar {
  background: var(--pine-2);
  color: #f3ecdf;
  font-size: 0.84rem;
}
.age-bar .wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  justify-content: space-between;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  min-width: 36px;
  height: 22px;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.age-bar a { color: #f3ecdf; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--pine);
  color: #f6f0e6;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.05rem;
}
.logo strong { display: block; font-size: 1.15rem; line-height: 1; }
.logo em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.95rem;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); color: var(--pine); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 8px 12px;
}

.hero { padding: 56px 0 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 36px;
  align-items: end;
}
.stamp {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.stamp ol { margin: 0; padding: 0; list-style: none; }
.stamp li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.stamp li:first-child { border-top: 0; }
.stamp b { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}
.btn-primary { background: var(--pine); color: #f7f2e8; }
.btn-primary:hover { background: var(--pine-2); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 0.92rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 36px;
}
.stat { padding: 18px 12px 18px 0; }
.stat strong { display: block; font-size: 2rem; line-height: 1; }
.stat span { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }

.section { padding: 64px 0; }
.section-head { max-width: 40rem; margin-bottom: 28px; }

.ledger { display: grid; gap: 14px; }
.file {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.file-score {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 0.9;
}
.file-score span { display: block; font-family: var(--sans); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em; }
.file h3 { font-size: 1.6rem; }
.file h3 a { color: inherit; text-decoration: none; }
.file h3 a:hover { color: var(--pine); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.8rem;
  color: var(--muted);
  background: #fffdf8;
}
.file-actions { display: flex; flex-direction: column; gap: 8px; }

.method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 22px 22px 22px 0;
  border-bottom: 1px solid var(--line);
}
.step:nth-child(odd) { padding-right: 28px; }
.step:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.step em {
  font-family: var(--serif);
  font-style: normal;
  color: var(--copper);
  font-size: 1.3rem;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.rg {
  background: var(--pine);
  color: #f6f1e7;
  border-radius: 24px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}
.rg a { color: #f6d7b0; }
.rg h2 { color: #fff; }
.rg ul { margin: 0; padding-left: 18px; }

.faq { display: grid; gap: 8px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}
.faq-item [data-faq-panel] { padding: 0 0 14px; color: var(--muted); }
.faq-item button span { color: var(--copper); }

.site-footer { border-top: 1px solid var(--line); padding: 42px 0 24px; background: #efe8da; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.site-footer h2 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--pine); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legal-note { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.helpline {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 600;
}

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  background: var(--ink);
  color: #f6f1e7;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
html.cookies-set .cookie-bar { display: none; }
.cookie-bar p { margin: 0; font-size: 0.92rem; max-width: 46rem; }
.cookie-bar a { color: #f6d7b0; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

.page-hero { padding: 42px 0 10px; }
.crumbs { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; }
.crumbs a { color: var(--muted); }

.review-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
  padding-bottom: 48px;
}
.scorecard {
  position: sticky;
  top: 96px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.score-big { font-size: 3.4rem; line-height: 0.9; }
.score-big small { font-size: 1rem; color: var(--muted); }
.bars { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.bars li { font-size: 0.86rem; }
.bar { height: 6px; background: var(--paper-2); border-radius: 99px; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--pine); border-radius: inherit; }
.prose h2 { margin-top: 28px; font-size: 1.7rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.panel h3 { font-size: 1rem; }
.panel ul { margin: 0; padding-left: 18px; }
.panel.watch h3 { color: var(--danger); }

.prose-page { max-width: 760px; padding-bottom: 56px; }
.prose-page h2 { font-size: 1.45rem; margin-top: 28px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.fact b { display: block; font-family: var(--serif); font-size: 1.2rem; }

.form { display: grid; gap: 12px; max-width: 640px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdf8;
  border-radius: 12px;
  padding: 12px 12px;
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.check { font-weight: 400; grid-template-columns: 18px 1fr; align-items: start; }
.sent {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: start; }
.support-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--card); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
  }
  .nav.is-open { display: flex; }
  .hero-grid, .rg, .review-layout, .foot-grid, .split, .facts, .support-grid, .contact-layout { grid-template-columns: 1fr; }
  .file { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .step:nth-child(even) { padding-left: 0; border-left: 0; }
  .scorecard { position: static; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .age-bar .wrap { flex-direction: column; align-items: flex-start; padding: 8px 0; }
}
