/*
 * Heivlus platform: components of the public site and the screens for parents and group leaders.
 * All colours, the font, the font sizes and the shapes come from the theme (css/themes/{theme}.css);
 * only var(--...) here. No build step: plain CSS.
 */

*, *::before, *::after { box-sizing: border-box; }
button, input, select, textarea { font: inherit; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Paper with a faint grid: the scrapbook look of the site (chosen 23 November 2026). */
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--paper-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
    background-size: 32px 32px;
    color: var(--text);
    font-family: var(--font);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: 1.5;
}

h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
/* Page titles get a highlighter stroke. An underline is painted under the letters and wraps with the text. */
h1 {
    text-decoration: underline;
    text-decoration-color: var(--marker);
    text-decoration-thickness: .32em;
    text-underline-offset: -.2em;
    text-decoration-skip-ink: none;
}
h2 { font-size: var(--fs-h2); }
.tile h2, .panel h2, .notice h2 { font-size: var(--fs-xl); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
h3 { font-size: var(--fs-xl); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.vol-note :focus-visible { outline-color: var(--text); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.stack > * + * { margin-top: 1.25rem; }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and footer: on the paper, with a sun as mark and a wave above the footer */
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: var(--fs-xl); line-height: 1.1; color: var(--primary); text-decoration: none; }
.brand small { display: block; font-weight: 400; font-size: var(--fs-sm); color: var(--text-muted); }
.brand-sun { flex: none; width: 44px; height: 44px; }
.brand-sun circle { fill: var(--accent); }
.brand-sun path { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; }
.site-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a, .site-menu nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 .85rem; color: var(--text); text-decoration: none; font-weight: 700; border-radius: 999px; }
.site-nav a:hover, .site-menu nav a:hover, .site-nav a[aria-current="page"], .site-menu nav a[aria-current="page"] { color: var(--primary); text-decoration: underline wavy var(--accent) 3px; text-underline-offset: 8px; }
.site-menu { display: none; position: relative; }
.site-menu summary { list-style: none; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 1.1rem; border: 2px solid var(--primary); border-radius: 999px; background: var(--white); color: var(--primary); font-weight: 700; cursor: pointer; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu[open] summary { background: var(--primary); color: var(--white); }
.site-menu nav { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 10; display: grid; min-width: 200px; padding: .5rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-tile); box-shadow: 0 8px 24px color-mix(in srgb, var(--primary-dark) 14%, transparent); }
@media (max-width: 640px) {
    .site-nav { display: none; }
    .site-menu { display: block; }
    .site-header .container { min-height: 68px; }
    .brand-sun { width: 36px; height: 36px; }
}

.site-footer { position: relative; background: var(--primary-dark); color: var(--on-dark-muted); margin-top: 6rem; padding: 1.5rem 0 1.25rem; font-size: var(--fs-sm); }
.footer-wave { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: 40px; }
.footer-wave path { fill: var(--primary-dark); }
.page { position: relative; flex: 1 0 auto; overflow-x: clip; }
.site-footer a { color: var(--white); display: inline-flex; align-items: center; min-height: var(--tap); }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 0 1.5rem; flex-wrap: wrap; }

main { padding: 2rem 0; }

/* Buttons: pill shape, at least 44 px high, pressable (lifts on hover, sinks when pressed) */
.btn {
    --btn-shadow: var(--primary-dark);
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: var(--tap); padding: .6rem 1.4rem;
    border-radius: 999px; border: 2px solid var(--primary);
    background: var(--primary); color: var(--white);
    box-shadow: 3px 4px 0 var(--btn-shadow);
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { color: var(--white); translate: -2px -2px; box-shadow: 5px 6px 0 var(--btn-shadow); }
.btn:active { translate: 2px 3px; box-shadow: 0 0 0 var(--btn-shadow); }
@media (prefers-reduced-motion: no-preference) { .btn { transition: translate .15s ease, box-shadow .15s ease; } }
.btn-secondary { background: var(--white); color: var(--primary); }
.btn-secondary:hover { color: var(--primary-dark); }
.btn-link { background: none; border: 0; padding: 0; min-height: var(--tap); color: var(--primary); text-decoration: underline; font: inherit; cursor: pointer; }
.btn-danger { --btn-shadow: var(--error); background: var(--white); color: var(--error); border-color: var(--error); }
.btn-danger:hover { background: var(--alert-bg); color: var(--error); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--surface); border-color: var(--border); color: var(--text-muted); box-shadow: none; translate: none; cursor: not-allowed; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Forms */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label, .legend { font-weight: 700; }
.field .hint { font-size: var(--fs-sm); color: var(--text-muted); }
.input, select, textarea {
    width: 100%; min-height: var(--tap); padding: .55rem .8rem;
    border: 1px solid var(--border); border-radius: var(--radius-field);
    background: var(--white); color: var(--text); font: inherit;
}
textarea { min-height: 96px; resize: vertical; }
.input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.input.code { font-size: var(--fs-2xl); line-height: 1.2; letter-spacing: .2em; font-weight: 700; max-width: 12ch; }
.field.has-error .input, .field.has-error textarea { border-color: var(--error); }
.field.has-error .input:focus, .field.has-error textarea:focus { outline-color: var(--error); border-color: var(--error); }
.error { color: var(--error); font-size: var(--fs-sm); font-weight: 600; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.choice { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-field); background: var(--white); cursor: pointer; }
.choice input { margin-top: .3rem; width: 20px; height: 20px; accent-color: var(--primary); flex: none; }
.choice strong { display: block; }
.choice:has(input:checked) { border-color: var(--primary); outline: 1px solid var(--primary); }
.check { display: flex; gap: .6rem; align-items: center; min-height: var(--tap); }
.contact-row { display: grid; gap: .5rem; }
.contact-row + .contact-row { border-top: 1px solid var(--border); padding-top: 1rem; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }

/* Tiles and panels */
.tile { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-tile); padding: 1.25rem; }
.panel { background: var(--surface); border-radius: var(--radius-tile); padding: 1.25rem; }
.tile > :last-child, .panel > :last-child { margin-bottom: 0; }

/* Notices */
.notice { border-radius: var(--radius-field); padding: .9rem 1rem; border-left: 6px solid var(--primary); background: var(--done-bg); color: var(--done-fg); }
.notice-error { border-left-color: var(--error); background: var(--alert-bg); color: var(--alert-fg); }
.notice-info { border-left-color: var(--accent); background: var(--info-bg); color: var(--text); }
.notice-busy { border-left-color: var(--busy-fg); background: var(--busy-bg); color: var(--busy-fg); }

/* Status chips: colour is never the only signal, there is always a word in them */
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .7rem; border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.chip::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.chip-done { background: var(--done-bg); color: var(--done-fg); }
.chip-todo { background: var(--todo-bg); color: var(--todo-fg); }
.chip-busy { background: var(--busy-bg); color: var(--busy-fg); }
.chip-alert { background: var(--alert-bg); color: var(--alert-fg); }

/* Lists of children */
.child-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.child-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: center; }
.child-row .name { font-weight: 700; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: .75rem 0; }
.facts dt { color: var(--text-muted); }
.facts dd { margin: 0; font-weight: 600; }
@media (min-width: 640px) { .facts dd { text-align: right; } }
.tile.needs-action { border: 2px solid var(--accent); }

.totals { display: grid; gap: .35rem; margin: 0 0 1rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; }
.totals .total { border-top: 1px solid var(--border); padding-top: .5rem; font-weight: 800; }

/* Group code shown large */
.code-display { font-size: var(--fs-code); font-weight: 800; letter-spacing: .15em; color: var(--primary); }

.dev-banner { background: var(--accent); color: var(--text); text-align: center; font-size: var(--fs-sm); font-weight: 700; padding: .3rem var(--gutter); }

[x-cloak] { display: none !important; }
main.container { padding-top: 2rem; padding-bottom: 2rem; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Body text (privacy statement) */
.prose h2 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }

/* Style guide (local only) */
.swatches { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.swatches li { display: grid; gap: .15rem; }
.swatch { display: block; height: 56px; border-radius: var(--radius-field); border: 1px solid var(--border); }
.type-scale { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; line-height: 1.2; }

/* Group found when joining: clear confirmation */
.group-found { background: var(--white); border: 2px solid var(--primary); border-radius: var(--radius-tile); padding: 1.1rem 1.25rem; }
.group-found h2 { font-size: var(--fs-xl); margin: .15rem 0 .25rem; color: var(--primary); }

/* Children in the group: compact rows */
/* Rows follow the width of their tile (container query), not of the screen: in a narrow
   column the chips go below the name instead of squeezing it. */
.row-list { list-style: none; margin: 1rem 0 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-field); overflow: hidden; background: var(--white); container-type: inline-size; }
.row-list li { display: grid; gap: .5rem 1rem; padding: .75rem 1rem; }
.row-list li > :first-child { min-width: 0; overflow-wrap: anywhere; }
.row-list .actions { gap: .5rem; }
.row-list .row-action { margin-left: auto; }
@container (min-width: 40rem) { .row-list li { grid-template-columns: 1fr auto; align-items: center; } .row-list .actions { flex-wrap: nowrap; justify-content: flex-end; } .row-list .row-action { margin-left: .25rem; } }
.row-list li + li { border-top: 1px solid var(--border); }
.row-list .name { font-weight: 700; }
.split { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------------------------------
 * Home page: scrapbook (direction B on the design board, chosen 23 November 2026).
 * Taped photos, stickers and lines that draw themselves. Only here: forms on the other
 * pages stay straight and calm. Motion only with prefers-reduced-motion: no-preference;
 * scroll effects only where the browser has scroll timelines (otherwise the resting state).
 * ------------------------------------------------------------------------------------------ */

/* Hero */
.hero { position: relative; padding: 2.5rem 0 1.5rem; }
.hero .container { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .hero .container { grid-template-columns: 1.05fr .95fr; } }
.hero-copy { position: relative; }
.hero-stickers { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: -1.375rem 0 0 -.5rem; }
.edition-sticker {
    position: relative; flex: none; width: 96px; height: 96px; border-radius: 50%;
    display: grid; place-items: center; text-align: center; rotate: -12deg;
    background: var(--badge-bg); color: var(--badge-fg); font-weight: 800; font-size: var(--fs-sm); line-height: 1;
    box-shadow: 0 0 0 4px var(--white), 0 8px 16px color-mix(in srgb, var(--primary-dark) 22%, transparent);
}
.edition-sticker b { display: block; font-size: var(--fs-3xl); }
/* Name of the year theme ("Thema: Wilde Westen"), only when the edition has one */
.year-theme-badge { position: relative; display: grid; margin: 0; padding: .6rem 1.2rem .7rem; rotate: 4deg; border: 3px solid var(--theme-badge-fg); border-radius: 12px; background: var(--theme-badge-bg); color: var(--theme-badge-fg); font-size: var(--fs-2xl); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; box-shadow: 4px 5px 0 color-mix(in srgb, var(--primary-dark) 18%, transparent); }
@media (min-width: 640px) { .year-theme-badge { font-size: var(--fs-4xl); } }
.year-theme-badge small { font-size: var(--fs-base); font-weight: 700; letter-spacing: 0; }
.hero h1 { position: relative; margin: 1.5rem 0 1.5rem; font-size: var(--fs-hero); line-height: .98; letter-spacing: -0.035em; color: var(--primary); text-decoration: none; }
.circled { position: relative; white-space: nowrap; color: var(--primary-dark); }
.circled svg { position: absolute; left: -6%; top: -16%; width: 112%; height: 132%; overflow: visible; pointer-events: none; }
.circled path { fill: none; stroke: var(--title-mark); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.hero-text { font-size: var(--fs-xl); max-width: 42ch; margin-bottom: 1.75rem; }
.hero-text p { margin: 0 0 .75em; }
.hero-text p:last-child { margin-bottom: 0; }

/* Group code on a taped note */
.code-note { position: relative; max-width: 470px; margin-top: 2.75rem; padding: 1.625rem 1.375rem 1.375rem; background: var(--note-bg); rotate: 1.2deg; box-shadow: 0 10px 22px color-mix(in srgb, var(--primary-dark) 14%, transparent); }
.code-note label { display: block; font-weight: 800; font-size: var(--fs-lg); margin-bottom: .25rem; }
.code-note .hint { display: block; color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: .625rem; }
.code-note-row { display: flex; flex-wrap: wrap; gap: .625rem; }
.code-note .input.code { flex: 1 1 160px; max-width: none; min-height: 52px; border: 2px solid var(--text); border-radius: 10px; }
.code-note .btn { min-height: 52px; }
.note-arrow { position: absolute; right: -78px; top: -70px; width: 110px; height: 90px; color: var(--arrow); pointer-events: none; }
.note-arrow path { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 899px) { .note-arrow { display: none; } }
.tape { position: absolute; z-index: 1; top: -14px; left: 50%; width: 104px; height: 30px; translate: -50% 0; rotate: -4deg; background: var(--tape); mix-blend-mode: multiply; }

/* Taped photos (component x-snap) */
.snap { position: absolute; margin: 0; padding: 12px 12px 44px; background: var(--white); box-shadow: 0 14px 28px color-mix(in srgb, var(--primary-dark) 20%, transparent); }
.snap-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.snap-empty { display: grid; place-items: center; align-content: center; gap: .5rem; padding: .875rem; text-align: center; color: var(--text-muted); font-size: var(--fs-sm); }
.snap figcaption { position: absolute; left: 14px; right: 14px; bottom: 12px; font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snap:nth-of-type(2n) .tape { rotate: 6deg; }
.snap:nth-of-type(3n) .tape { rotate: -9deg; }
.tint-1 { background: color-mix(in srgb, var(--group-1) 28%, var(--white)); }
.tint-2 { background: color-mix(in srgb, var(--group-2) 20%, var(--white)); }
.tint-3 { background: color-mix(in srgb, var(--group-3) 16%, var(--white)); }
.tint-4 { background: color-mix(in srgb, var(--group-4) 16%, var(--white)); }
.tint-5 { background: color-mix(in srgb, var(--group-5) 18%, var(--white)); }
.tint-6 { background: color-mix(in srgb, var(--group-6) 18%, var(--white)); }

/* Photo board in the hero: positions in % so it scales with the column */
.photo-board { position: relative; width: 100%; max-width: 520px; aspect-ratio: 494 / 640; justify-self: center; }
/* Placed so that no photo covers the caption of another. */
.photo-board .snap:nth-of-type(1) { left: 6%; top: 3%; width: 69%; height: 59%; rotate: -4deg; z-index: 1; }
.photo-board .snap:nth-of-type(2) { right: 0; top: 30%; width: 51%; height: 41%; rotate: 6deg; z-index: 3; }
.photo-board .snap:nth-of-type(3) { left: 8%; top: 63%; width: 47%; height: 34%; rotate: 3deg; z-index: 2; }
@media (max-width: 640px) { .photo-board .snap { padding: 8px 8px 34px; } .photo-board figcaption { left: 10px; bottom: 8px; } }
/* Drawings of stickers and icons (inline SVG with class "icon"). Filled shapes get a white edge;
   .line shapes are a thick line over a wider white one (.line-under); .dot and .detail are white
   details, .accent a second colour (--icon-accent) and .shade a darker shade of the main colour. */
.icon { overflow: visible; fill: currentColor; }
.icon > * { stroke: var(--white); stroke-width: 4; paint-order: stroke; stroke-linejoin: round; }
.icon > .line-under { fill: none; stroke: var(--white); stroke-linecap: round; }
.icon > .line { fill: none; stroke: currentColor; stroke-linecap: round; }
.icon > .dot { fill: var(--white); stroke: none; }
.icon > .detail { fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; }
.icon > .accent { fill: var(--icon-accent); }
.icon > .shade { fill: color-mix(in srgb, currentColor 62%, var(--text)); }

.sticker { position: absolute; z-index: 4; width: 56px; height: 56px; filter: drop-shadow(0 4px 6px color-mix(in srgb, var(--primary-dark) 25%, transparent)); }
.sticker-1 { right: 8%; top: 4.5%; width: 60px; height: 60px; color: var(--sticker-1); }
.sticker-2 { left: 0; top: 38%; color: var(--sticker-2); }
.sticker-3 { right: 30%; top: 81%; color: var(--sticker-3); }
.sticker-4 { right: 2%; top: 84%; color: var(--sticker-4); }

/* Sections */
.home-section { position: relative; margin-top: 5rem; }
@media (max-width: 640px) { .home-section { margin-top: 3.5rem; } }
.section-title { position: relative; isolation: isolate; display: inline-block; margin: 0 0 2.5rem; font-size: var(--fs-section); line-height: 1; letter-spacing: -0.03em; color: var(--text); }
.section-title .mark { position: absolute; z-index: -1; left: -2%; right: -2%; bottom: .02em; height: .34em; border-radius: 4px; rotate: -1deg; transform-origin: left center; background: var(--marker); }

/* Info as a ticket, with the price on the stub */
.ticket { position: relative; display: grid; background: var(--white); border: 2px solid var(--text); border-radius: 22px; rotate: -1deg; box-shadow: 8px 10px 0 color-mix(in srgb, var(--primary-dark) 16%, transparent); }
@media (min-width: 900px) { .ticket { grid-template-columns: 1fr 300px; } }
.ticket-main { display: grid; gap: 1.625rem 2rem; margin: 0; padding: 2rem 2.25rem; }
@media (min-width: 680px) { .ticket-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ticket-main { padding: 1.5rem; } }
.ticket-main dt { font-size: var(--fs-sm); font-weight: 700; color: var(--text-muted); }
.ticket-main dd { margin: .125rem 0 0; font-size: var(--fs-xl); font-weight: 700; line-height: 1.3; }
.ticket-stub { position: relative; display: flex; flex-direction: column; justify-content: center; gap: .375rem; padding: 2rem 1.875rem; border-radius: 0 0 20px 20px; border-top: 3px dashed var(--white); background: var(--primary); color: var(--white); }
@media (min-width: 900px) { .ticket-stub { border-radius: 0 20px 20px 0; border-top: 0; border-left: 3px dashed var(--white); } }
.ticket-stub p { margin: 0; }
.ticket-label { font-size: var(--fs-sm); font-weight: 700; color: var(--on-dark-muted); }
.ticket-price { font-size: var(--fs-display); font-weight: 800; line-height: .95; letter-spacing: -0.04em; }
.ticket-price small { font-size: var(--fs-xl); letter-spacing: 0; }
.ticket-note { font-size: var(--fs-sm); color: var(--on-dark-muted); }
.notch { display: none; position: absolute; left: -16px; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); border: 2px solid var(--text); }
@media (min-width: 900px) { .notch { display: block; } }
.notch-top { top: -17px; clip-path: inset(50% 0 0 0); }
.notch-bottom { bottom: -17px; clip-path: inset(0 0 50% 0); }
/* Notice while the registration is closed: important, so as large as the info on the ticket */
.closed-note { display: flex; align-items: center; gap: 1rem; max-width: 780px; margin-top: 2.25rem; padding: 1.1rem 1.5rem; border-radius: 16px; rotate: .6deg; background: var(--info-bg); box-shadow: 0 6px 14px color-mix(in srgb, var(--primary-dark) 10%, transparent); }
.closed-note strong { display: block; font-size: var(--fs-xl); line-height: 1.25; }
@media (min-width: 640px) { .closed-note strong { font-size: var(--fs-2xl); } }
.closed-note span { display: block; margin-top: .25rem; color: var(--text-muted); font-size: var(--fs-base); }
.closed-note .icon { width: 40px; height: 40px; color: var(--group-6); }

/* Week wall: five photos dealt onto the table */
/* Two rows in a zigzag; the lower row only overlaps the white edge below the captions of the upper row. */
/* Phone: two columns, the first photo over the full width. */
.wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.wall .snap { position: relative; height: 220px; }
.wall .snap:nth-of-type(1) { grid-column: 1 / -1; height: 260px; rotate: -2deg; --deal-at: 0%; --deal-x: -120px; --deal-r: -30deg; }
.wall .snap:nth-of-type(2) { rotate: 4deg; z-index: 2; --deal-at: 10%; --deal-x: -40px; --deal-r: 20deg; }
.wall .snap:nth-of-type(3) { rotate: -2deg; --deal-at: 4%; --deal-x: 30px; --deal-r: -18deg; }
.wall .snap:nth-of-type(4) { rotate: 7deg; z-index: 2; --deal-at: 14%; --deal-x: 80px; --deal-r: 26deg; }
.wall .snap:nth-of-type(5) { rotate: -4deg; --deal-at: 8%; --deal-x: 140px; --deal-r: -22deg; }
/* From 900 px: two rows in a zigzag; the lower row only overlaps the white edge below the captions of the upper row. */
@media (min-width: 900px) {
    /* The box ends just below the lowest photo, so no empty band is left under the wall. */
    .wall { display: block; position: relative; aspect-ratio: 1088 / 620; }
    .wall .snap { position: absolute; width: 27.6%; height: 45.2%; }
    .wall .snap:nth-of-type(1) { left: 0; top: 4.8%; height: 45.2%; rotate: -6deg; }
    .wall .snap:nth-of-type(2) { left: 23.9%; top: 53.2%; }
    .wall .snap:nth-of-type(3) { left: 38.6%; top: 0; }
    .wall .snap:nth-of-type(4) { left: 58.8%; top: 50%; }
    .wall .snap:nth-of-type(5) { left: 72%; top: 3.2%; }
}
@media (max-width: 640px) { .wall .snap { height: 170px; padding: 8px 8px 34px; } .wall figcaption { left: 10px; bottom: 8px; } }
.photo-board .snap:hover, .wall .snap:hover { rotate: 0deg; scale: 1.03; z-index: 5; }
@media (prefers-reduced-motion: no-preference) { .snap { transition: rotate .35s ease, scale .35s ease; } }

/* Steps on a dotted trail. Phone: a straight dotted line on the left. From 900 px: an S-curve. */
.trail { position: relative; }
.trail-line { display: none; }
.trail-steps { position: relative; display: grid; gap: 2.5rem; margin: 0; padding: 0 0 0 3.5rem; list-style: none; }
.trail-steps::before { content: ''; position: absolute; left: 22px; top: 24px; bottom: 24px; border-left: 4px var(--trail-style) var(--trail); }
.trail-step { position: relative; }
.stop { position: absolute; z-index: 2; left: -3.5rem; top: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-size: var(--fs-2xl); font-weight: 800; box-shadow: 0 0 0 5px var(--white), 0 8px 18px color-mix(in srgb, var(--primary-dark) 22%, transparent); }
.trail-step:nth-child(3n+1) .stop { background: var(--group-1); color: var(--primary-dark); }
.trail-step:nth-child(3n+2) .stop { background: var(--group-2); color: var(--white); }
.trail-step:nth-child(3n+3) .stop { background: var(--group-5); color: var(--white); }
.step-card { position: relative; z-index: 1; padding: 1.375rem 1.5rem; background: var(--white); border: 2px solid var(--text); border-radius: 18px; }
.step-card h3 { margin: 0 0 .375rem; font-size: var(--fs-2xl); line-height: 1.15; font-weight: 800; }
.step-card p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
    /* The line runs through x = 62 and x = 1026 of 1088 (5.7% from each side) and turns at the middle of each row. */
    .trail-line { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
    .trail-dots { fill: none; stroke: var(--trail); stroke-width: var(--trail-width); stroke-linecap: round; stroke-dasharray: var(--trail-dash); vector-effect: non-scaling-stroke; }
    .trail-mask { fill: none; stroke: var(--white); stroke-width: 28; stroke-dasharray: 1; stroke-dashoffset: 0; }
    .trail-steps { gap: 0; padding: 0; grid-auto-rows: 1fr; }
    .trail-steps::before { display: none; }
    .trail-step { display: flex; align-items: center; min-height: 240px; }
    .step-card { width: min(470px, 100% - 11.4% - 136px); }
    .trail-step:nth-child(odd) .step-card { margin-left: calc(5.7% + 68px); }
    .trail-step:nth-child(even) .step-card { margin-left: auto; margin-right: calc(5.7% + 68px); }
    .stop { top: calc(50% - 38px); width: 76px; height: 76px; font-size: var(--fs-4xl); }
    .trail-step:nth-child(odd) .stop { left: calc(5.7% - 38px); }
    .trail-step:nth-child(even) .stop { left: auto; right: calc(5.7% - 38px); }
}

/* Volunteers on a torn yellow note */
.vol-note {
    position: relative; padding: 3.5rem 3rem 3.25rem; rotate: -1.2deg; background: var(--accent); color: var(--primary-dark);
    clip-path: polygon(0% 3%, 4% 0%, 9% 2.5%, 15% .5%, 21% 3%, 28% 0%, 35% 2%, 42% .5%, 50% 3%, 57% 0%, 64% 2.5%, 71% .5%, 78% 3%, 85% .5%, 92% 2.5%, 100% 0%, 100% 97%, 95% 100%, 89% 97.5%, 82% 99.5%, 75% 97%, 68% 100%, 61% 97.5%, 54% 99.5%, 47% 97%, 40% 100%, 33% 97.5%, 26% 99.5%, 19% 97%, 12% 100%, 6% 97.5%, 0% 100%);
}
@media (max-width: 899px) { .vol-note { padding: 3rem 1.5rem; } }
.vol-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .vol-grid { grid-template-columns: 1.2fr .8fr; } }
.vol-note h2 { margin: 0 0 .875rem; font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.03em; }
.vol-text { max-width: 44ch; margin-bottom: 1.625rem; font-size: var(--fs-lg); }
.vol-text p { margin: 0 0 .75em; }
.vol-text p:last-child { margin-bottom: 0; }
.tasks { display: flex; flex-wrap: wrap; justify-content: center; gap: .875rem; margin: 0; padding: .5rem 0; list-style: none; }
.tasks li { padding: .75rem 1.375rem; border-radius: 999px; font-size: var(--fs-xl); font-weight: 800; color: var(--white); box-shadow: 0 0 0 4px var(--white), 0 6px 12px color-mix(in srgb, var(--primary-dark) 25%, transparent); }
.tasks li:nth-child(4n+1) { background: var(--group-2); rotate: -4deg; }
.tasks li:nth-child(4n+2) { background: var(--group-3); rotate: 3deg; }
.tasks li:nth-child(4n+3) { background: var(--group-4); rotate: 2deg; }
.tasks li:nth-child(4n+4) { background: var(--group-5); rotate: -3deg; }
.tasks li:hover { rotate: 0deg; }
@media (prefers-reduced-motion: no-preference) { .tasks li { transition: rotate .25s ease; } }

/* Sponsors: logos glide by from five sponsors on (direction C); fewer, or reduced motion: a still row */
.sponsors h2 { margin: 0 0 1.375rem; font-size: var(--fs-2xl); }
.sponsor-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 0; padding: .25rem 0; list-style: none; }
.sponsor-row li { display: grid; place-items: center; width: min(240px, calc(50% - .5rem)); min-height: 110px; padding: 1rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-tile); }
.sponsor-row a { display: grid; place-items: center; width: 100%; min-height: var(--tap); }
.sponsor-row img { max-width: 100%; max-height: 80px; object-fit: contain; }
.sponsor-row .is-copy { display: none; }

/* Icons of the year theme scattered over empty spots (component x-scatter): never over text or fields.
   Places: next to section titles, in the gaps along the steps, on the hills of the footer (every page)
   and in the side margins of the other pages (wide screens only). */
.scatter { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.scatter-icon { position: absolute; width: 60px; height: 60px; rotate: var(--tilt, 0deg); filter: drop-shadow(0 4px 6px color-mix(in srgb, var(--primary-dark) 22%, transparent)); }
.scatter-icon:nth-child(3n+1) { --tilt: -10deg; }
.scatter-icon:nth-child(3n+2) { --tilt: 8deg; }
.scatter-icon:nth-child(3n+3) { --tilt: -4deg; }
.scatter-info .scatter-icon:nth-child(1) { right: 6%; top: -12px; width: 72px; height: 72px; }
.scatter-info .scatter-icon:nth-child(2) { right: 2%; bottom: -44px; }
.scatter-week .scatter-icon:nth-child(1) { right: 10%; top: -6px; width: 72px; height: 72px; }
.scatter-week .scatter-icon:nth-child(2) { right: 3%; bottom: 2%; }
.scatter-steps { display: none; }
@media (min-width: 900px) {
    .scatter-steps { display: block; }
    .scatter-steps .scatter-icon { width: 84px; height: 84px; }
    .scatter-steps .scatter-icon:nth-child(1) { right: 16%; top: 20%; }
    .scatter-steps .scatter-icon:nth-child(2) { left: 16%; top: 50%; }
    .scatter-steps .scatter-icon:nth-child(3) { right: 18%; top: 78%; }
}
.scatter-volunteers { z-index: 2; }
.scatter-volunteers .scatter-icon:nth-child(1) { right: -6px; top: -48px; width: 76px; height: 76px; }
.scatter-volunteers .scatter-icon:nth-child(2) { left: 38%; bottom: -54px; }
.scatter-footer { inset: auto 0 100% 0; height: 0; }
.scatter-footer .scatter-icon { bottom: 4px; width: 52px; height: 52px; }
.scatter-footer .scatter-icon:nth-child(1) { left: 7%; }
.scatter-footer .scatter-icon:nth-child(2) { left: 52%; width: 40px; height: 40px; }
.scatter-footer .scatter-icon:nth-child(3) { right: 9%; }
@media (max-width: 640px) {
    .scatter-icon { width: 44px; height: 44px; }
    /* Phone: one icon per heading, just above its right end, so it never touches the title. */
    .scatter-info .scatter-icon:nth-child(1), .scatter-week .scatter-icon:nth-child(1) { width: 48px; height: 48px; right: 0; top: -46px; }
    .scatter-info .scatter-icon:nth-child(2), .scatter-week .scatter-icon:nth-child(2) { display: none; }
    .scatter-footer .scatter-icon:nth-child(2) { display: none; }
}
.scatter-margins { display: none; }
@media (min-width: 1280px) {
    .scatter-margins { display: block; }
    .scatter-margins .scatter-icon { width: 64px; height: 64px; }
    .scatter-margins .scatter-icon:nth-child(1) { left: 2.5vw; top: 12%; }
    .scatter-margins .scatter-icon:nth-child(2) { right: 2.5vw; top: 34%; }
    .scatter-margins .scatter-icon:nth-child(3) { left: 3vw; top: 62%; }
    .scatter-margins .scatter-icon:nth-child(4) { right: 3vw; top: 84%; }
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
    @keyframes draw-path { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
    @keyframes wiggle { 0%, 100% { rotate: -12deg; } 25% { rotate: -6deg; } 75% { rotate: -18deg; } }
    @keyframes marquee { to { translate: -50% 0; } }

    .circled path { stroke-dasharray: 1; animation: draw-path 1.1s .3s cubic-bezier(.6, 0, .2, 1) both; }
    .note-arrow path { stroke-dasharray: 1; animation: draw-path .8s 1.1s ease-out both; }
    .edition-sticker:hover { animation: wiggle .5s ease-in-out 2; }

    /* Mask: only the alpha counts, so black here is not a colour of the theme. */
    .marquee { overflow: clip; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
    .marquee .sponsor-row { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding-right: 1rem; animation: marquee calc(var(--count, 5) * 6s) linear infinite; }
    .marquee .sponsor-row li { width: 240px; flex: none; }
    .marquee .is-copy { display: grid; }
    .marquee:hover .sponsor-row, .marquee:focus-within .sponsor-row { animation-play-state: paused; }

    @supports (animation-timeline: view()) {
        @keyframes float-up { to { translate: 0 calc(var(--float) * -1px); } }
        @keyframes straighten { from { rotate: -7deg; translate: -40px 80px; } to { rotate: -1deg; translate: 0 0; } }
        @keyframes deal { from { translate: var(--deal-x, 0) 420px; rotate: var(--deal-r, 25deg); opacity: 0; } to { translate: 0 0; opacity: 1; } }
        @keyframes mark-grow { from { scale: 0 1; } to { scale: 1 1; } }
        @keyframes sway { from { rotate: 5deg; translate: 0 90px; } to { rotate: -1.2deg; translate: 0 0; } }
        @keyframes pop { 0% { scale: 0; } 70% { scale: 1.15; } 100% { scale: 1; } }

        /* Photos and stickers in the hero drift up at different speeds (parallax). The upper photos
           go faster, so the photos spread apart instead of covering each other's captions. */
        .photo-board > :nth-child(1) { --float: 110; }
        .photo-board > :nth-child(2) { --float: 70; }
        .photo-board > :nth-child(3) { --float: 40; }
        .photo-board > :nth-child(4) { --float: 160; }
        .photo-board > :nth-child(5) { --float: 220; }
        .photo-board > :nth-child(6) { --float: 130; }
        .photo-board > :nth-child(7) { --float: 90; }
        /* Only next to the text: on a phone the photos are below the group code and would slide over it. */
        @media (min-width: 900px) {
            .photo-board > * { animation: float-up linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
        }

        .section-title .mark { animation: mark-grow linear both; animation-timeline: view(); animation-range: entry 40% cover 35%; }
        .ticket { animation: straighten linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
        .wall .snap { animation: deal linear both; animation-timeline: view(); animation-range: entry var(--deal-at, 0%) cover calc(var(--deal-at, 0%) + 30%); }
        .trail { view-timeline-name: --trail; }
        .trail-mask { animation: draw-path linear both; animation-timeline: --trail; animation-range: entry 30% exit 0%; }
        .stop { animation: pop linear both; animation-timeline: view(); animation-range: entry 60% cover 50%; }
        .vol-note { animation: sway linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
        .tasks li { animation: pop linear both; animation-timeline: view(); animation-range: entry 50% cover 45%; }

        /* Icons of the year theme rock a little while they pass by. */
        @keyframes rock { from { rotate: calc(var(--tilt, 0deg) - 12deg); translate: 0 14px; } to { rotate: calc(var(--tilt, 0deg) + 12deg); translate: 0 -14px; } }
        .scatter-icon { animation: rock linear both; animation-timeline: view(); animation-range: cover; }
    }
}
