:root {
  color-scheme: light;
  --paper: #faf6eb;
  --ink: #263f3c;
  --muted: #52615a;
  --teal: #23594e;
  --salmon: #ec886f;
  --sun: #f5c857;
  --mint: #a9c7a7;
  --rule: #c8c8b4;
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font: 16px/1.5 var(--sans); -webkit-text-size-adjust:100%; }
button, input, textarea { font:inherit; color:inherit; }
button, a { -webkit-tap-highlight-color:transparent; }
a { color:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.55; }
button, a, input, textarea, summary { outline-offset:5px; }
:focus-visible { outline:3px solid #9f4c39; }
[hidden] { display:none !important; }
.sr-only,.skip:not(:focus) { position:absolute; height:1px; width:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip:focus { position:fixed; top:8px; left:8px; padding:10px; z-index:5; background:white; }
.shell { width:min(1136px,calc(100% - 96px)); margin-inline:auto; }
.masthead { min-height:88px; display:flex; align-items:center; justify-content:space-between; gap:15px; border-bottom:1px solid var(--rule); }
.brand { display:inline-flex; align-items:center; gap:6px; text-decoration:none; font-family:var(--serif); font-weight:bold; font-size:26px; letter-spacing:-1.2px; }
.brand svg { width:34px; height:34px; transform:rotate(-4deg); }
nav a { font-size:14px; font-weight:650; text-decoration:none; }
nav a:hover,.text-link:hover { color:#994b39; }
main { min-height:calc(100svh - 171px); }
main:focus { outline:none; }
.hero { display:grid; grid-template-columns:1fr 1.07fr; align-items:center; column-gap:clamp(20px,4.5vw,68px); padding:clamp(64px,8vw,116px) 0 clamp(70px,8vw,104px); }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { color:var(--ink); }
h1 { font:500 clamp(54px,6.1vw,92px)/.99 var(--serif); letter-spacing:-.061em; }
h1 em { color:var(--teal); font-weight:500; }
.hero p,.lead { color:var(--muted); margin:24px 0 0; max-width:475px; font-size:clamp(16px,1.6vw,20px); line-height:1.55; }
.hero .actions { margin-top:30px; }
.actions,.manage-actions,.draw-tools { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:47px; gap:14px; border:1.5px solid var(--ink); border-radius:8px; padding:10px 20px; font-size:15px; font-weight:650; text-decoration:none; line-height:1.35; }
.button.primary { background:var(--teal); color:#fff9e9; border-color:var(--teal); }
.button.primary:hover:not(:disabled) { background:#164539; }
.button.ghost { background:transparent; }
.button.ghost:hover:not(:disabled) { background:#eeeada; }
.text-link { border:0; background:none; padding:9px 0; font-size:15px; font-weight:650; text-decoration:underline; text-decoration-color:#9da79a; text-underline-offset:5px; }
.poster { position:relative; margin:5px 10px 0 3px; transform:rotate(1.8deg); isolation:isolate; }
.poster::before { content:""; position:absolute; inset:10px -9px -8px 10px; background:#e3ad78; border:1.5px solid var(--ink); z-index:-1; transform:rotate(-3deg); }
.poster-sheet { position:relative; overflow:hidden; aspect-ratio:1.62; border:1.7px solid var(--ink); background:#f9d98d; box-shadow:1px 2px 0 #43514a; }
.poster-name { position:absolute; z-index:1; top:9%; left:6%; right:6%; text-align:center; transform:rotate(-3deg); color:#294e44; font:bold clamp(21px,3vw,46px)/1.1 var(--serif); letter-spacing:-.05em; }
.scenery { position:absolute; inset:13% 0 4%; width:100%; height:83%; }
.poster-band { position:absolute; left:6%; bottom:10%; width:87%; display:flex; justify-content:space-between; z-index:2; }
.marcher-art { display:block; width:100%; height:auto; overflow:visible; color:#34473e; }
.poster-band .marcher-art { width:31%; filter:drop-shadow(0 2px 0 #fbe7b1); }
.poster-band .marcher-art:nth-child(1) { transform:rotate(-7deg); }
.poster-band .marcher-art:nth-child(2) { transform:translateY(-5%) rotate(3deg); }
.poster-band .marcher-art:nth-child(3) { transform:rotate(7deg); }
.poster-road { position:absolute; bottom:-4%; width:107%; left:-2%; height:20%; background:#eab88a; border-top:1.5px solid #776e4f; transform:rotate(-2deg); }
.poster-road::after { content:""; position:absolute; left:0; right:0; top:48%; border-top:2px dashed #a58b65; }
.how { padding:31px 0 55px; border-top:1px solid var(--rule); }
.how h2,.roster h2,.share-box h2,.confirm h2 { font:550 clamp(25px,2.8vw,34px)/1.1 var(--serif); letter-spacing:-.045em; }
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(20px,5vw,78px); margin-top:28px; }
.steps>div { display:grid; grid-template-columns:13px 1fr; column-gap:10px; align-content:start; }
.steps h3 { font-size:17px; line-height:1.25; }
.steps p { grid-column:2; color:var(--muted); font-size:15px; max-width:290px; margin-top:6px; }
.dot { display:block; margin-top:4px; width:11px; height:11px; border:1px solid var(--ink); border-radius:45% 55% 45% 55%; transform:rotate(-10deg); }
.pink { background:var(--salmon); } .yellow { background:var(--sun); } .green { background:var(--mint); }
footer { display:flex; justify-content:space-between; gap:12px; align-items:center; min-height:82px; border-top:1px solid var(--rule); color:var(--muted); font-size:13px; }
footer span:first-child { font-family:var(--serif); font-size:18px; font-style:italic; }
.panel { max-width:800px; margin:0 auto; padding:64px 0 80px; overflow-wrap:anywhere; }
.panel h1 { font-size:clamp(43px,6.3vw,77px); }
.panel>p:not(.lead) { margin:18px 0; }
.panel .lead { margin-top:15px; }
.panel>.actions,.panel>.button { margin-top:24px; }
.form-panel { max-width:630px; }
.spot { display:grid; place-items:center; width:74px; height:67px; margin-bottom:19px; border-radius:43% 55% 46% 49%; }
.spot .marcher-art { width:72px; }
.label { display:inline-block; color:var(--teal); border-bottom:2px solid var(--salmon); margin-bottom:16px; font-size:12px; font-weight:720; letter-spacing:.09em; text-transform:uppercase; }
form { margin-top:28px; }
form label,legend { display:block; font-weight:650; font-size:15px; margin-bottom:7px; }
form label small { font-weight:400; color:var(--muted); }
input:not([type="radio"]),textarea { width:100%; border:1.3px solid #839084; background:#fffcf4; border-radius:7px; padding:11px 13px; min-height:46px; font-size:16px; }
textarea { resize:vertical; min-height:106px; }
form>input,form>textarea { margin:0 0 18px; }
.hint,.share-box p,.confirm p,.organizer-key p { font-size:15px; line-height:1.5; color:var(--muted); }
form .hint { margin:0 0 17px; }
.feedback { display:block; color:var(--teal); font-size:14px; margin-top:8px; }
.feedback:empty { display:none; }
.feedback.error { color:#963b2d; }
.share-box,.confirm { padding:24px; margin:30px 0 16px; background:#f8e4b5; border:1px solid #b8ab85; border-radius:9px; }
.share-box p,.confirm p { margin:9px 0 15px; }
.share-row { display:flex; gap:8px; align-items:center; }
.share-row input { min-width:0; text-overflow:ellipsis; flex:1; }
.share-row .button { flex-shrink:0; }
.organizer-key { padding:3px 0; }
.organizer-key summary { color:var(--muted); font-size:14px; cursor:pointer; width:fit-content; }
.organizer-key p { margin:10px 0; }
.empty-line { color:var(--muted); font:italic 23px/1.45 var(--serif); border-top:1px dashed var(--rule); border-bottom:1px dashed var(--rule); margin:32px 0 16px; padding:22px 0; }
.roster { margin:32px 0; text-align:left; }
.roster-head { display:flex; align-items:baseline; gap:14px; justify-content:space-between; }
.roster-head span { color:var(--muted); font-size:14px; }
.roster>.hint { margin-top:6px; }
.line { display:grid; grid-template-columns:repeat(auto-fit,minmax(100px,1fr)); gap:9px; padding:13px 0; border-top:1px dashed #b6bda9; border-bottom:1px dashed #b6bda9; margin:13px 0 16px; }
.person { background:transparent; display:grid; align-content:end; justify-items:center; width:100%; min-width:0; min-height:109px; padding:4px 4px 8px; border:1.5px solid transparent; border-radius:10px; }
.person .marcher-art { width:min(100%,125px); }
.person span { max-width:100%; overflow-wrap:anywhere; font-size:14px; font-weight:650; }
.person[aria-pressed="true"] { background:#f7e5bf; border-color:#bb9972; }
.person:hover { background:#f4ead3; }
.letter { padding:23px 24px; background:#fffaf0; border:1px solid #c7bfaa; border-left:5px solid var(--salmon); border-radius:5px; }
.letter blockquote { font:italic clamp(22px,3vw,34px)/1.25 var(--serif); margin:0; color:var(--ink); white-space:pre-wrap; }
.letter p { font-size:14px; font-weight:600; color:var(--muted); margin-top:9px; }
.gift { text-align:center; } .gift .lead { margin-inline:auto; }
.center { justify-content:center; }
.manage-actions { justify-content:space-between; }
fieldset { border:0; padding:0; margin:0 0 20px; min-width:0; }
.choices { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:7px; }
.choice { position:relative; display:flex; flex-direction:column; justify-content:center; align-items:center; border:1.3px solid #c3c2ad; border-radius:7px; padding:4px; background:#fffaf0; text-align:center; font-size:12px; cursor:pointer; }
.choice:has(input:checked) { background:#f6e3b8; border:2px solid var(--teal); padding:3.3px; }
.choice:focus-within { outline:3px solid #9f4c39; outline-offset:3px; }
.choice input { position:absolute; opacity:0; width:1px; height:1px; }
.choice .marcher-art { width:min(92%,75px); }
.pencil { display:grid; place-items:center; height:clamp(42px,7.2vw,75px); line-height:1; font-size:37px; }
.pad { display:block; width:min(260px,100%); height:auto; touch-action:none; background-color:#fffaf0; background-image:radial-gradient(#d3cbbb 1px,transparent 1px); background-size:14px 14px; border:1.5px dashed #8a947e; border-radius:9px; cursor:crosshair; }
.draw-tools { margin:3px 0 12px; }
.confirm { background:#f6e3d3; }
@media (prefers-reduced-motion:no-preference){.person[aria-pressed="true"] .marcher-art { animation:jig .38s ease-in-out; } @keyframes jig { 30% { transform:rotate(-6deg) translateY(-4%); } 70% { transform:rotate(4deg); } }}
@media (max-width:850px) {
  .shell { width:min(100% - 52px,740px); }
  .hero { column-gap:24px; grid-template-columns:1fr 1fr; } .hero h1 { font-size:clamp(48px,6.9vw,65px); }
  .hero .actions { gap:12px; }.hero .button { padding-inline:13px; }
}
@media (max-width:650px) {
  .shell { width:calc(100% - 36px); }
  .masthead { min-height:70px; }.brand { font-size:23px; }.brand svg { width:29px; }
  .hero { grid-template-columns:1fr; padding:44px 0 42px; row-gap:37px; }
  .hero h1 { font-size:clamp(47px,10.8vw,66px); }
  .hero p { margin-top:18px; }.hero .actions {margin-top:21px;gap:17px;}
  .poster { width:min(95%,450px); margin:0 auto; }.poster-name { font-size:clamp(25px,6.4vw,36px); }
  .steps { grid-template-columns:1fr; gap:19px; margin-top:23px; }.steps p { max-width:none; }.how { padding:26px 0 33px; }
  .panel { padding:38px 0 50px; }.share-box,.confirm { padding:16px; }.share-row { align-items:stretch; flex-direction:column; }
  .share-row input { flex:auto; }.share-row .button { align-self:flex-start; }
  .choices { grid-template-columns:repeat(3,minmax(0,1fr)); }.pencil { height:70px; }
  .line { grid-template-columns:repeat(auto-fit,minmax(75px,1fr)); gap:4px; }.person { min-height:85px; }
  .letter { padding:17px; }.actions { gap:13px; }
}
@media print { .masthead,footer,.gift>.actions,.gift>.text-link { display:none; } }
.street-hint { text-align:center; }
.street { position:relative; isolation:isolate; height:clamp(178px,24vw,236px); margin-top:12px; overflow:hidden; background:#f8dfaa; border:1.5px solid #9f9e81; border-radius:10px; }
.street-scene,.walking-lane { position:absolute; inset:0; width:100%; height:100%; }
.walker { width:var(--walker-width); position:absolute; left:0; bottom:9px; display:grid; justify-items:center; align-content:end; border:0; background:transparent; padding:0; touch-action:manipulation; }
.walker .marcher-art { width:100%; }
.walker>span { display:block; padding:0 7px; max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:var(--ink); background:#ffefd1; border:1px solid #a39172; border-radius:10px; font-size:11px; font-weight:700; }
.street-controls { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:10px 0 14px; }
.small { min-height:39px; font-size:13px; padding:7px 13px; }
.all-marchers { margin-top:12px; }
.all-marchers summary { cursor:pointer; width:fit-content; color:var(--muted); font-size:14px; padding:5px 0; }
@media (prefers-reduced-motion:no-preference) {
  .street:not(.paused) .walker .marcher-art { animation:prance .52s ease-in-out infinite alternate; transform-origin:55% 86%; }
  .walker:nth-child(2n) .marcher-art { animation-delay:-.24s !important; }
  .walker:nth-child(3n) .marcher-art { animation-delay:-.4s !important; }
  @keyframes prance { from { transform:translateY(1px) rotate(-3deg); } to { transform:translateY(-3px) rotate(3deg); } }
}
