@font-face { font-family: "Titillium Web"; font-weight: 600; font-display: swap; src: url("/fonts/titillium-600.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 400; font-display: swap; src: url("/fonts/bricolage-400.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url("/fonts/bricolage-600.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-400.woff2") format("woff2"); }

:root {
  --sand: #F4EDE0; --paper: #FAF6EC; --stone: #E8DFCB; --hairline: #DDD4C2; --charcoal: #3A3A3A; --secondary: #5C5C5C;
  --amber: #F28C5B; --amber-text: #A84E25; --alert: #A63A2B;
  --display: "Titillium Web", "Trebuchet MS", sans-serif;
  --body: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--sand); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--sand); color: var(--charcoal); font: 400 17px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
a { color: var(--amber-text); text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber-text); outline-offset: 2px; }
main:focus, h1:focus { outline: none; }

.top { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--hairline); }
.top-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; min-height: 60px; display: flex; align-items: center; gap: 24px; }
.brand { flex: none; display: block; }
.top img { display: block; }
.top-links { display: none; margin-left: auto; gap: 22px; }
.top-links a, .footer-links a { color: var(--charcoal); font-size: 15px; text-underline-offset: 3px; }
.top-links a { text-decoration: none; padding: 8px 0; }
.top-links a:hover, .footer-links a:hover { color: var(--amber-text); text-decoration: underline; }
.progress { flex: 1; max-width: 300px; margin-left: auto; display: flex; align-items: center; gap: 12px; }
.count { font: 400 13px var(--mono); white-space: nowrap; color: var(--secondary); }
.bar { flex: 1; height: 4px; background: var(--stone); border-radius: 2px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--amber); transition: width 200ms ease-out; }

.site-footer { background: var(--stone); border-top: 1px solid var(--hairline); }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 4px 20px; display: flex; align-items: center; justify-content: center; gap: 16px 40px; }
.footer-brand { display: none; align-items: center; gap: 16px; }
.footer-brand img { display: block; }
.footer-brand p { color: var(--secondary); font-size: 14px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.wide-only { display: none !important; }

main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 22px 20px 18px; display: flex; flex-direction: column; }
.screen { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.enter { animation: rise 180ms ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
h1 { font: 600 clamp(30px, 8vw, 44px)/1.1 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.line { margin-top: 12px; color: var(--secondary); font-size: 18px; text-wrap: pretty; }

.answers { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
.answer { width: 100%; min-height: 58px; padding: 13px 18px; background: #FFFDF7; border: 1px solid var(--hairline); border-radius: 10px; font-size: 17px; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer; transition: background 120ms, border-color 120ms; }
.answer:hover { border-color: var(--amber); }
.answer.picked { background: var(--amber); border-color: var(--amber); }

.fields { display: grid; gap: 14px; max-width: 480px; margin-top: 26px; }
.field { display: block; font-weight: 600; font-size: 15.5px; }
.field input { display: block; width: 100%; height: 54px; margin-top: 5px; padding: 0 14px; background: #FFFDF7; border: 1px solid #8F8672; border-radius: 8px; font-size: 18px; font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--amber-text); }
.next { min-height: 56px; padding: 0 28px; background: var(--amber); border: 1px solid var(--amber); border-radius: 10px; font-size: 18px; font-weight: 600; cursor: pointer; }
.next:hover { background: #EE7E48; }
.next:disabled { opacity: 0.6; cursor: progress; }
.error { color: var(--alert); font-size: 15.5px; }
.trap { position: absolute; left: -9999px; }

.back { align-self: flex-start; margin-top: 20px; padding: 10px 0; background: none; border: 0; color: var(--secondary); font-size: 16px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.back:hover { color: var(--charcoal); }
.resume-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ghost { min-height: 56px; padding: 0 24px; background: transparent; border: 1px solid var(--charcoal); border-radius: 10px; font-size: 18px; font-weight: 600; cursor: pointer; }

@media (min-width: 720px) {
  .top-links { display: flex; }
  .progress { margin-left: 16px; }
  .progress + .top-links { margin-left: auto; }
  .footer-inner { padding: 14px 20px; justify-content: space-between; }
  .footer-brand { display: flex; }
  .wide-only { display: inline-flex !important; }
  main { padding-top: 36px; padding-bottom: 36px; }
  .back { margin-top: 12px; }
  main:not(.result) { justify-content: center; }
  .screen { flex: none; padding: 40px 44px; background: var(--paper); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: 0 1px 2px rgba(58, 58, 58, 0.05); }
  main.result { padding: 44px 48px; margin-top: 36px; margin-bottom: 36px; background: var(--paper); border: 1px solid var(--hairline); border-radius: 16px; }
  .answers { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
  .answer { min-height: 76px; padding: 16px 20px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .bar span, .answer { transition: none; } .enter { animation: none; } }

/* ---------- result page ---------- */

.result { display: block; max-width: 760px; padding-top: 28px; }
.result .eyebrow { font: 400 13px var(--mono); color: var(--amber-text); }
.verdict { margin-top: 10px; font: 600 clamp(34px, 8vw, 52px)/1.08 var(--display); letter-spacing: -0.012em; }
.verdict em { color: var(--amber-text); font-style: normal; }
.why { margin-top: 16px; font-size: 19px; text-wrap: pretty; }
.result h2 { margin-top: 36px; font: 600 24px/1.2 var(--display); }
.todo { margin: 12px 0 0; padding: 0; list-style: none; }
.todo li { padding: 12px 0; border-top: 1px solid var(--hairline); }
.todo strong { display: block; }
.tile { margin-top: 12px; padding: 18px 20px; background: #FFFDF7; border: 1px solid var(--amber); border-radius: 12px; }
.tile-label { font-weight: 600; font-size: 15.5px; }
.tile-figure { margin-top: 2px; font: 600 46px/1.1 var(--display); }
.tile-note { margin-top: 4px; color: var(--secondary); font-size: 15.5px; }
.tile a { display: inline-block; margin-top: 10px; padding: 4px 0; }
.result-copy { margin-top: 10px; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.actions .next, .actions .ghost { display: inline-flex; align-items: center; color: var(--charcoal); text-decoration: none; font-family: var(--body); }
.actions form { margin: 0; }
.print-date, .print-contact { display: none; }
.print-line { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--hairline); color: var(--secondary); font-size: 15px; }
.print-line button { padding: 6px 0; background: none; border: 0; color: var(--amber-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
