@font-face { font-family: "Source Serif"; src: url("/assets/source-serif.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/public-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #17212b; --soft: #4a5560; --paper: #ffffff; --wash: #eef3f1; --rule: #d3dcd8;
  --green: #1d5c48; --green-dark: #144233; --mark: #ffe27a; --red: #a3312a; --amber: #8a5a00;
  --serif: "Source Serif", Georgia, serif; --sans: "Public Sans", system-ui, sans-serif;
  --measure: 40rem; --wide: 70rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 620; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.05rem, 4.6vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2rem); }
h3 { font-size: 1.2rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
p, ul, ol, table { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
small, .small { font-size: 0.9rem; color: var(--soft); }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.text { max-width: var(--measure); }
.band { padding: 4rem 0; }
.band.wash { background: var(--wash); }
.lede { font-size: 1.22rem; line-height: 1.5; color: var(--soft); }

/* header */
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-weight: 650; font-size: 1.2rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 0.55rem; }
.brand svg { width: 1.5rem; height: 1.5rem; flex: none; }
.top nav { display: flex; gap: 1.3rem; align-items: center; flex-wrap: wrap; font-size: 0.98rem; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

/* buttons */
.btn { display: inline-block; font: 600 1.02rem/1 var(--sans); padding: 0.95rem 1.4rem; border-radius: 4px; border: 2px solid var(--green); background: var(--green); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn.quiet { background: transparent; color: var(--green); }
.btn.quiet:hover { background: var(--wash); color: var(--green-dark); }
.top nav .btn { padding: 0.6rem 1rem; color: #fff; }
.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.6rem 0 1.2rem; }

/* hero: the documents themselves are the picture */
.hero { padding: 3.5rem 0 4rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3rem; align-items: center; }
.sheets { position: relative; aspect-ratio: 1 / 1.02; }
.sheets img { position: absolute; width: 62%; border: 1px solid var(--rule); background: #fff; box-shadow: 0 1px 2px rgba(23,33,43,.08), 0 14px 30px -12px rgba(23,33,43,.28); }
.sheets img:nth-child(1) { left: 0; top: 8%; transform: rotate(-3deg); }
.sheets img:nth-child(2) { left: 19%; top: 0; transform: rotate(1.2deg); }
.sheets img:nth-child(3) { left: 38%; top: 10%; transform: rotate(3.4deg); }
.facts { list-style: none; padding: 0; margin: 0; font-size: 0.95rem; color: var(--soft); }
.facts li { padding-left: 1.4em; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.7em; height: 0.38em; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* grader */
.grader { background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 0.4rem 1.4rem 1.4rem; }
.grader fieldset { border: 0; border-bottom: 1px solid var(--rule); margin: 0; padding: 1rem 0; }
.grader legend { padding: 0; font-weight: 600; margin-bottom: 0.6rem; float: left; width: 100%; }
.choice { display: flex; gap: 0.4rem; clear: both; }
.choice label { border: 1.5px solid var(--rule); border-radius: 4px; padding: 0.45rem 0.9rem; cursor: pointer; font-size: 0.97rem; background: #fff; }
.choice input { position: absolute; opacity: 0; }
.choice input:checked + span { font-weight: 700; }
.choice label:has(input:checked) { border-color: var(--ink); background: var(--mark); }
.choice label:has(input:focus-visible) { outline: 3px solid var(--ink); }
.result { margin-top: 1.4rem; }
.result h3 { margin-bottom: 0.4rem; }
.rag { list-style: none; padding: 0; }
.rag li { padding: 0.5rem 0 0.5rem 1.6rem; position: relative; border-bottom: 1px solid var(--rule); }
.rag li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 0.8rem; height: 0.8rem; border-radius: 50%; }
.rag .ok::before { background: var(--green); }
.rag .gap::before { background: var(--red); }
.answer { background: var(--wash); border-left: 5px solid var(--green); padding: 1rem 1.2rem; margin: 1rem 0; }
.answer p:last-child { margin-bottom: 0; }

/* contents list of the pack: a real numbered set */
.contents { list-style: none; padding: 0; counter-reset: doc; border-top: 2px solid var(--ink); }
.contents li { counter-increment: doc; display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.2rem 0.6rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.contents li::before { content: counter(doc); font: 620 1.5rem/1 var(--serif); color: var(--green); padding-top: 0.15rem; }
.contents strong { display: block; font-size: 1.08rem; }
.contents span { grid-column: 2; color: var(--soft); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }

/* tables */
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--rule); }
thead th { border-bottom: 2px solid var(--ink); font-weight: 650; }
tr.ours td { background: var(--mark); font-weight: 600; }

/* steps: a real sequence */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 0.9rem; margin: 0; }
.steps li::before { content: "Step " counter(step); display: block; font-weight: 650; color: var(--green); margin-bottom: 0.3rem; }

/* callout in the documents' own "for you to complete" style */
.note { background: #fff7de; border-left: 5px solid #c28a00; padding: 0.9rem 1.1rem; margin: 1.2rem 0; }
.note p:last-child { margin-bottom: 0; }

details { border-bottom: 1px solid var(--rule); padding: 0.9rem 0; }
summary { font-weight: 650; cursor: pointer; }
details p { margin: 0.7rem 0 0; }

/* form */
.form fieldset { border: 0; border-top: 1px solid var(--rule); padding: 1.6rem 0 0.6rem; margin: 0; }
.form legend { font: 620 1.25rem/1.25 var(--serif); padding: 0 0.6rem 0 0; }
.form .hint { color: var(--soft); font-size: 0.95rem; margin: 0.2rem 0 0.8rem; }
.form label.line { display: block; font-weight: 600; margin-bottom: 0.9rem; }
.form input[type="text"] { display: block; width: 100%; max-width: 28rem; font: inherit; padding: 0.65rem 0.75rem; border: 1.5px solid #8c979f; border-radius: 4px; margin-top: 0.3rem; }
.opts { display: grid; gap: 0.45rem; }
.opts label { display: flex; gap: 0.7rem; align-items: flex-start; border: 1.5px solid var(--rule); border-radius: 4px; padding: 0.6rem 0.8rem; cursor: pointer; }
.opts label:has(input:checked) { border-color: var(--ink); background: var(--wash); }
.opts input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--green); flex: none; }
.opts .group { font-weight: 650; margin: 0.7rem 0 0.1rem; }
.err { color: var(--red); font-weight: 600; }
.preview { border: 2px solid var(--ink); border-radius: 4px; padding: 1.5rem; margin: 2rem 0; background: #fff; }
.preview h2 { margin-top: 0; }
[hidden] { display: none !important; }

/* article pages */
.crumbs { font-size: 0.92rem; color: var(--soft); margin: 2rem 0 1rem; }
.short { font-size: 1.2rem; line-height: 1.5; border-left: 5px solid var(--green); padding: 0.2rem 0 0.2rem 1.1rem; margin: 1.4rem 0 2rem; }
.article h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.sources { font-size: 0.93rem; color: var(--soft); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 2.5rem; }
.cta { background: var(--wash); padding: 1.6rem; border-radius: 4px; margin: 2.5rem 0; }
.cta p { margin-bottom: 0.9rem; }

footer { border-top: 2px solid var(--ink); padding: 2.5rem 0 3rem; font-size: 0.93rem; color: var(--soft); margin-top: 4rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }
footer ul { list-style: none; padding: 0; }
footer a { color: var(--ink); }

@media (max-width: 820px) {
  .hero .wrap, .two, footer .cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.2rem; }
  .sheets { max-width: 26rem; }
  .band { padding: 2.8rem 0; }
  .top nav a:not(.btn) { display: none; }
}
@media (prefers-reduced-motion: no-preference) { .btn { transition: background-color .12s ease; } }
@media print { .top nav, .btn, footer { display: none; } }
