:root {
  --ink: #1C2B3A;
  --text: #2A3642;
  --muted: #5B6875;
  --paper: #FBFCFD;
  --mist: #E8EEF2;
  --line: #D3DCE3;
  --green: #2E6B57;
  --amber: #9A5F17;
  --amber-bg: #FBF3E6;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --read: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 0 0 1.25rem; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.75rem 0 1rem; }
h3 { font-size: 1.25rem; margin: 1.75rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1.1rem; }
li { margin-bottom: 0.4rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.prose { max-width: var(--read); }
.lede { font-size: 1.2rem; color: var(--text); max-width: 60ch; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.brand small { display: block; font-family: var(--sans); font-size: 0.78rem; font-weight: 400; color: var(--muted); }
.nav { display: flex; gap: 4px 20px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.97rem; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); text-decoration: underline; }
.nav .btn { padding: 8px 16px; color: #fff; text-decoration: none; }
.nav .btn:hover { color: #fff; }

.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 4px; font-weight: 600; font-family: var(--sans); border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-quiet:hover { background: var(--ink); color: #fff; }

/* Hero */
.hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5rem; }

/* Exam index: the signature element */
.exam-index { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--green); padding: 22px 24px; }
.exam-index h2 { font-size: 1.15rem; margin: 0 0 0.75rem; }
.exam-index h2 + ul { margin-bottom: 1.4rem; }
.exam-index ul { list-style: none; padding: 0; columns: 2; column-gap: 20px; }
.exam-index li { break-inside: avoid; margin: 0 0 0.35rem; }
.exam-index a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.exam-index a:hover { color: var(--green); border-color: var(--green); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--mist); }
.section > .wrap > h2:first-child, .section .wrap > h2:first-child { margin-top: 0; }
.cols { display: grid; gap: 28px; }
@media (min-width: 800px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-2 { grid-template-columns: 1fr 1fr; } }
.cols h3 { margin-top: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; max-width: var(--read); }
.steps li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 1.4rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.95rem; }
.steps strong { display: block; color: var(--ink); }

.callout { background: var(--amber-bg); border-left: 4px solid var(--amber); padding: 16px 20px; max-width: var(--read); margin: 1.5rem 0; }
.callout p:last-child { margin: 0; }

.page-head { padding: 48px 0 8px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.75rem; }
.crumbs a { color: var(--muted); }
.page-body { padding: 8px 0 56px; }

.link-list { list-style: none; padding: 0; max-width: var(--read); }
.link-list li { border-bottom: 1px solid var(--line); padding: 14px 0; margin: 0; }
.link-list a { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.link-list a:hover { color: var(--green); text-decoration: underline; }
.link-list span { display: block; color: var(--muted); font-size: 0.97rem; }

.cta-band { background: var(--ink); color: #E9EEF2; padding: 48px 0; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { max-width: 60ch; }
.cta-band .btn { background: #fff; color: var(--ink); }
.cta-band .btn:hover { background: var(--mist); }

.faq dt { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.12rem; margin-top: 1.4rem; }
.faq dd { margin: 0.4rem 0 0; max-width: var(--read); }

/* Forms */
form.intake { max-width: 640px; display: grid; gap: 18px; }
form.intake label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
form.intake .hint { font-weight: 400; color: var(--muted); font-size: 0.92rem; }
form.intake input, form.intake select, form.intake textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #A9B6C1; border-radius: 4px; background: #fff; color: var(--text); }
form.intake textarea { min-height: 150px; }
.hidden { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 40px 0 28px; font-size: 0.95rem; color: var(--muted); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; margin: 0 0 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--ink); }
.disclaimer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.85rem; }

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

@media (max-width: 480px) { .exam-index ul { columns: 1; } }
.section .prose h2:first-child { margin-top: 0; }

/* Blog */
.post { font-size: 1.07rem; }
.post h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.post h3 { font-size: 1.2rem; }
.post h4 { font-size: 1.05rem; font-family: var(--sans); margin: 1.4rem 0 0.4rem; color: var(--ink); }
.post-meta { color: var(--muted); font-size: 0.95rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.6rem; }
.post-meta a { color: var(--muted); }
.post blockquote { margin: 1.5rem 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); color: var(--muted); }
.post hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }
.table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: #fff; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--mist); color: var(--ink); }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.author-box { margin-top: 2.5rem; padding: 20px 22px; background: var(--mist); border-top: 4px solid var(--ink); }
.author-box h2 { font-size: 1.1rem; margin: 0 0 0.6rem; }
.author-box .fine { font-size: 0.88rem; color: var(--muted); margin: 0; }
.topic-jump { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 1rem; max-width: var(--read); }
.topic-jump a { color: var(--ink); }
