@font-face {
  font-family: 'BEAD Editorial';
  src: url('/assets/editorial.woff') format('woff');
  font-style: italic;
  font-weight: normal;
  font-display: swap;
}

:root {
  --paper: #fff9ee;
  --ink: #171714;
  --muted: #47473f;
  --line: #c8c0b5;
  --lime: #d4ff32;
  --lilac: #dfadfc;
  --gutter: clamp(20px, 5vw, 84px);
  --max: 1320px;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, figure, p, ul, ol { margin: 0; }
a { color: inherit; text-decoration-thickness: .075em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
.skip-main { position: absolute; z-index: 20; left: 1rem; top: -8rem; padding: .8rem 1rem; color: white; background: var(--ink); border-radius: .6rem; }
.skip-main:focus { top: .75rem; }
:focus-visible { outline: 3px solid #6638a3; outline-offset: 4px; }
.support-nav { padding-inline: var(--gutter); }
.support-bar { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; min-height: 78px; border-bottom: 1.5px solid var(--ink); gap: 1rem; }
.support-mark { display: block; width: 43px; height: auto; }
.support-logo { display: inline-flex; align-items: center; color: var(--ink); }
.support-home { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; letter-spacing: -.025em; font-weight: 650; text-decoration: none; }
.support-home:hover { text-decoration: underline; }
.serif, h1 em { font-family: 'BEAD Editorial', Georgia, serif; font-weight: normal; font-style: italic; }
h1 { margin: 0; font-size: clamp(3.55rem, 6.8vw, 7.5rem); line-height: .96; letter-spacing: -.071em; font-weight: 740; text-wrap: balance; }
h1 em, h1 .serif { letter-spacing: -.05em; }
footer { margin-top: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.35rem 2rem; padding: 2rem var(--gutter); color: var(--paper); background: var(--ink); }
footer .support-logo { color: var(--lime); }
footer .support-mark { width: 39px; }
footer .mail-f { font-size: 1rem; }
footer .copy-f { font-size: .88rem; color: #d2d0c4; }
footer :focus-visible { outline-color: var(--lime); }

/* Legal document */
.doc-wrap { max-width: 860px; padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(4rem, 8vw, 7rem); margin: 0 auto; }
.privacy-page .serif { display: inline-block; }
.doc-meta { color: var(--muted); line-height: 1.5; margin-top: 1.5rem; font-size: .95rem; }
.doc-wrap h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -.04em; font-weight: 720; margin: 2.65rem 0 1.1rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.doc-wrap h3 { font-size: 1.18rem; line-height: 1.3; margin-top: 1.35rem; margin-bottom: .5rem; }
.doc-wrap p, .doc-wrap li, .doc-wrap td { font-size: 1rem; color: #2e2e29; }
.doc-wrap p, .doc-wrap ul { margin-bottom: .85rem; }
.doc-wrap li+li { margin-top: .5rem; }
.doc-wrap ul { padding-inline-start: 1.2rem; }
.doc-wrap .table-wrap { width: 100%; overflow-x: auto; margin: 1.6rem 0; }
.doc-wrap table { width: 100%; border-collapse: collapse; line-height: 1.45; }
.doc-wrap td, .doc-wrap th { padding: .86rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-wrap th { color: var(--ink); background: var(--lime); font-size: .95rem; }
.doc-wrap .box { margin: 1.5rem 0; padding: 1.1rem 1.35rem; background: #f3defe; border-left: 3px solid var(--ink); border-radius: 0 .45rem .45rem 0; }
.doc-wrap .box p { margin: 0; }

/* Document download */
.guide-page .wrap { max-width: var(--max); margin: 0 auto; padding: clamp(2.4rem, 5vw, 5rem) var(--gutter) clamp(3rem, 7vw, 6rem); }
.document-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(200px, .75fr); gap: clamp(2.25rem, 7vw, 6rem); align-items: center; }
.guide-page .label, .error-page .code { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.4rem; font-size: .83rem; color: var(--ink); font-weight: 700; }
.guide-page .label::before, .error-page .code::before { content: ''; width: .72em; height: .72em; border: 1.5px solid var(--ink); background: var(--lime); border-radius: 50%; }
.guide-page h1 .serif { display: block; }
.guide-page .lede { max-width: 52ch; color: #30302b; font-size: clamp(1.03rem, 1.6vw, 1.24rem); line-height: 1.55; }
.guide-page h1+.lede { margin-top: 1.75rem; }
.guide-page .lede+.lede { margin-top: .85rem; }
.guide-page .source-note { margin-top: 1.35rem; font-size: .9rem; color: var(--muted); max-width: 54ch; }
.document-art { display: grid; place-items: center; min-width: 0; isolation: isolate; position: relative; overflow: hidden; aspect-ratio: 1.04; border-radius: 48% 48% 15% 15%; background: var(--lilac); }
.document-art::before { content: ''; position: absolute; z-index: -1; width: 105%; aspect-ratio: 1; bottom: -67%; right: -25%; border-radius: 50%; background: var(--lime); }
.document-art img { display: block; position: relative; width: 57%; height: auto; border: 1.2px solid var(--ink); transform: rotate(-6deg); box-shadow: .24rem .35rem 0 var(--ink); }
.cols { margin-top: clamp(3rem, 6vw, 6rem); border-top: 1.5px solid var(--ink); padding-top: clamp(1.75rem, 3.8vw, 3.4rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6.5rem); align-items: start; }
.stages-title, .form-card h2, .bottom h3 { font-weight: 720; font-size: clamp(1.7rem, 3.15vw, 2.8rem); line-height: 1.06; letter-spacing: -.055em; }
.stages { margin-top: 1.25rem; padding: 0; list-style: none; counter-reset: stage; }
.stages li { display: flex; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); counter-increment: stage; font-size: 1.1rem; }
.stages li::before { content: counter(stage, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--muted); font-size: .88rem; }
.stages-foot, .bottom p { margin-top: 1rem; max-width: 64ch; color: var(--muted); }
.form-card { background: var(--ink); color: var(--paper); padding: clamp(1.5rem, 3.4vw, 3.1rem); border-radius: 1.1rem; }
.form-card h2 { color: var(--lime); }
.form-card .sub, .done p { margin: .8rem 0 1.55rem; line-height: 1.55; color: #e6e3d8; }
.field { display: grid; gap: .35rem; margin: .85rem 0; }
.field label { font-size: .95rem; font-weight: 600; }
.field input { width: 100%; min-width: 0; padding: .75rem .85rem; font: inherit; line-height: 1.3; color: var(--ink); background: var(--paper); border: 1px solid #7d7b70; border-radius: .35rem; }
.field input::placeholder { color: #626159; }
.form-card :focus-visible { outline-color: var(--lilac); }
.consent { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: .6rem; margin-top: .85rem; }
.consent input { margin: .2em 0 0; width: 19px; height: 19px; accent-color: var(--lime); }
.consent label { cursor: pointer; font-size: .94rem; line-height: 1.45; color: var(--paper); }
.req { color: var(--lime); }
.honeypot { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); opacity: 0; }
.btn, .done .dl { display: inline-flex; gap: .6rem; align-items: center; justify-content: center; min-height: 46px; padding: .74rem 1.35rem; background: var(--lime); border: 1.5px solid currentColor; border-radius: 99px; font: inherit; font-weight: 650; line-height: 1.2; color: var(--ink); text-decoration: none; cursor: pointer; }
.btn:hover,.done .dl:hover { background: var(--lilac); }
.guide-page .btn { margin-top: 1.4rem; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn svg { display: none; }
.form-note { font-size: .88rem; margin-top: 1rem; line-height: 1.55; color: #d2d0c4; }
.form-note a { color: var(--lime); }
.done, .err, .form-body.off { display: none; }
.done.on, .err.on { display: block; }
.err { color: #ffe2ec; margin-top: 1rem; border-left: 3px solid #ffb6d2; padding-left: .75rem; }
.bottom { margin-top: clamp(2.8rem, 7vw, 6rem); background: #f5e1ff; padding: clamp(1.65rem, 4vw, 3.4rem); border-radius: 1.05rem; }
.bottom p { color: #30302b; }

/* Missing page */
.error-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.error-page main { flex: 1; display: grid; align-items: center; padding: 3rem var(--gutter); }
.error-page .grid { width: 100%; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: center; gap: 6%; }
.error-page h1 em { display: block; }
.error-page main p { max-width: 36ch; margin-top: 1.5rem; font-size: clamp(1rem, 1.7vw, 1.25rem); color: var(--muted); }
.actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem 1.35rem; align-items: center; }
.actions .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.actions .btn:hover { color: var(--ink); background: var(--lime); }
.actions .mail { font-size: .94rem; }
.error-art { display: grid; align-items: center; position: relative; isolation: isolate; overflow: hidden; min-height: 250px; aspect-ratio: 1.4; background: var(--lilac); border-radius: 47% 47% 10% 10%; }
.error-art::before { content: ''; position: absolute; z-index: -1; width: 90%; aspect-ratio: 1; bottom: -85%; right: -25%; background: var(--lime); border-radius: 50%; }
.scene { width: 100%; height: auto; display: block; }
.fall { transform-box: fill-box; transform-origin: center; animation: bead-drop .95s cubic-bezier(.38,.01,.59,.65) both; }
.fall2 { animation-delay: .2s; }
@keyframes bead-drop { from { transform: translate(-36px,-118px) rotate(-23deg); } to { transform: none; } }
@media (max-width: 760px) {
  .support-bar { min-height: 62px; }
  .support-mark { width: 32px; }
  h1 { font-size: clamp(3.35rem, 10.1vw, 5rem); }
  .document-hero { grid-template-columns: minmax(0, 1.35fr) minmax(120px, .65fr); gap: 1.5rem; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .form-card { grid-row: 1; }
  .error-page .grid { grid-template-columns: 1fr; gap: 2rem; }
  .error-art { max-width: 440px; justify-self: center; width: 100%; min-height: 0; aspect-ratio: 1.9; }
  .doc-wrap td, .doc-wrap th { padding: .65rem .45rem; }
}
@media (max-width: 540px) {
  .document-hero { grid-template-columns: 1fr; }
  .document-art { width: 100%; max-height: 238px; aspect-ratio: 1.6; border-radius: 1rem; }
  .document-art img { width: auto; height: 80%; max-height: 194px; }
  .doc-wrap table { min-width: 420px; }
  footer .copy-f { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .fall { animation: none; } }
