:root {
  --ink: #16332d;
  --ink-2: #21473f;
  --paper: #f6f2eb;
  --paper-2: #efe8dc;
  --card: #fffdf9;
  --text: #1b2421;
  --muted: #56615c;
  --line: #ddd3c3;
  --brass: #b3813a;
  --brass-soft: #f1e3cb;
  --good: #2f6f4f;
  --good-soft: #e3efe7;
  --bad: #a3462f;
  --bad-soft: #f6e2dc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 51, 45, 0.06), 0 8px 24px rgba(22, 51, 45, 0.06);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; color: #fff; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand-by { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--text); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brass); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 12px 20px 20px; gap: 14px; }
  .nav.open { display: flex; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; border: 2px solid var(--ink); transition: background 0.15s, color 0.15s, transform 0.15s; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.signoff { font-size: 0.9rem; color: var(--muted); margin-top: 12px; }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--ink); color: #eaf1ee; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink a { color: #fff; }
.section-ink .signoff { color: #b9cbc5; }
.section-ink .btn-primary { background: var(--brass); border-color: var(--brass); }
.section-ink .btn-primary:hover { background: #c7954c; border-color: #c7954c; }
.eyebrow { display: inline-block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--brass); margin-bottom: 14px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.answer { font-size: 1.15rem; border-left: 4px solid var(--brass); padding: 4px 0 4px 18px; margin: 18px 0 26px; max-width: 64ch; }

/* Hero */
.hero { padding: 80px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.feature-card { background: var(--ink); color: #eaf1ee; border-radius: 20px; padding: 32px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.feature-card h3 { color: #fff; font-size: 1.6rem; }
.feature-card .tag { display: inline-block; background: var(--brass); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; margin-bottom: 16px; }
.feature-card ul { padding-left: 18px; margin: 0 0 22px; }
.feature-card .btn-primary { background: var(--brass); border-color: var(--brass); }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.tool { display: flex; flex-direction: column; gap: 8px; }
.tool .when { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tool.live { border-color: var(--brass); box-shadow: var(--shadow); }
.tool.live .when { color: var(--brass); }
.tool .go { margin-top: auto; font-weight: 600; }
.tool.soon { opacity: 0.85; }
.num { font-family: var(--display); font-size: 2.4rem; color: var(--brass); line-height: 1; margin-bottom: 8px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--display); font-size: 1.05rem; color: var(--ink); background: var(--paper-2); }
tbody th { font-weight: 600; color: var(--ink); width: 20%; }
tr:last-child td, tr:last-child th { border-bottom: 0; }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; max-width: 68ch; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--brass-soft); border: 2px solid var(--brass); }
.crosses li::before { background: var(--bad-soft); border-color: var(--bad); }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brass); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; }

/* Sources */
.sources { font-size: 0.88rem; color: var(--muted); }
.sources ol { padding-left: 20px; margin: 0; }
.sources li { margin-bottom: 8px; max-width: 90ch; }
.sources a { color: var(--muted); word-break: break-word; }

/* Disclosure */
.disclosure { background: var(--brass-soft); border: 1px solid #e4cfa9; border-radius: var(--radius); padding: 22px 24px; }
.disclosure p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #b9cbc5; padding: 48px 0 32px; font-size: 0.92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 32px; padding-top: 20px; font-size: 0.82rem; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.field input, .field select { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); width: 100%; }
.field input:focus, .field select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(179, 129, 58, 0.25); }
.field.invalid input, .field.invalid select { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: 0.85rem; min-height: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; margin: 6px 0 18px; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 12px; font-weight: 600; }

/* Quiz */
.quiz-shell { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 32px; max-width: 780px; margin: 0 auto; }
@media (max-width: 640px) { .quiz-shell { padding: 22px 18px; } }
.progress { height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin: 10px 0 24px; }
.progress span { display: block; height: 100%; background: var(--brass); width: 0; transition: width 0.25s; }
.q-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.q-text { font-family: var(--display); font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--ink); line-height: 1.3; margin: 0 0 22px; font-weight: 600; }
.options { display: grid; gap: 12px; margin-bottom: 24px; }
.option { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--text); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.option:hover { border-color: var(--ink); }
.option[aria-checked="true"] { border-color: var(--ink); background: #eef3f1; }
.option .key { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; color: var(--muted); text-transform: uppercase; }
.option[aria-checked="true"] .key { background: var(--ink); border-color: var(--ink); color: #fff; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.theme-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 26px; padding: 0; list-style: none; }
@media (max-width: 640px) { .theme-list { grid-template-columns: 1fr; } }
.theme-list li { background: var(--paper); border-radius: 10px; padding: 12px 14px; font-weight: 600; color: var(--ink); font-size: 0.95rem; }

.result-hero { text-align: center; padding-bottom: 12px; }
.score-ring { width: 170px; height: 170px; margin: 8px auto 18px; position: relative; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 2.6rem; color: var(--ink); font-weight: 700; }
.score-ring .val small { display: block; font-size: 0.95rem; color: var(--muted); font-family: var(--body); font-weight: 600; margin-top: -10px; }
.band-name { font-family: var(--display); font-size: 1.9rem; color: var(--ink); margin: 0 0 8px; }
.result-hero p { margin-left: auto; margin-right: auto; }
.theme-bars { display: grid; gap: 14px; margin: 26px 0; }
.theme-bar .row { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.theme-bar .track { height: 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.theme-bar .fill { height: 100%; background: var(--ink); border-radius: 999px; }
.next-step { background: var(--paper); border-radius: 14px; padding: 22px; margin: 24px 0; }
.review-item { border-top: 1px solid var(--line); padding: 20px 0; }
.review-item h4 { font-family: var(--display); font-size: 1.1rem; color: var(--ink); margin: 0 0 10px; line-height: 1.35; }
.pill { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.pill.ok { background: var(--good-soft); color: var(--good); }
.pill.no { background: var(--bad-soft); color: var(--bad); }
.review-item .ans { font-size: 0.95rem; margin-bottom: 8px; }
.review-item .src { font-size: 0.82rem; color: var(--muted); margin: 8px 0 0; }
.review-item .src a { color: var(--muted); }
.takeaway { font-size: 0.95rem; background: var(--brass-soft); border-radius: 10px; padding: 10px 14px; margin: 10px 0 0; }
.loading { color: var(--muted); text-align: center; padding: 40px 0; }
.notice { background: var(--bad-soft); color: var(--bad); padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }

/* Curriculum */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .modules { grid-template-columns: 1fr; } }
.module .wk { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }
.module .book { font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; }

.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose ul { max-width: 68ch; }

.byline { font-size: 0.92rem; color: var(--muted); margin: -8px 0 22px; }
.byline a { color: var(--ink); font-weight: 600; }
