/* Typography and palette contract: see docs/design-system.md. */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-variable-v25.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
/* Display lettering is local-only until an owner-supplied webfont licence/file
   is available. Archivo remains the readable, self-hosted fallback. */
@font-face {
  font-family: 'Blambot FXPro';
  src: local('Blambot FXPro'), local('Blambot FX Pro'), local('BlambotFXPro'), local('Blambot FXPro Regular'), local('BlambotFXPro-Regular');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
:root {
  --font-ui: 'Archivo', Arial, sans-serif;
  --font-comic: 'Blambot FXPro', 'Archivo', Arial, sans-serif;
  --color-ink: #111;
  --color-sky: #079be4;
  --color-paper: #fffdf3;
  --color-yellow: #ffce40;
  --color-red: #ec4748;
  color-scheme: light;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-ink);
  background: var(--color-sky);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--font-ui); font-weight: 900; line-height: 1.05; }
.links a, .primary { font-family: var(--font-ui); }
button { cursor: pointer; color: inherit; }
button:focus-visible, input:focus-visible { outline: 4px solid white; outline-offset: 5px; box-shadow: 0 0 0 8px #111; }
/* Fill space released by mobile browser chrome; keep artwork scaled in svh. */
.journey { height: 100vh; height: 100svh; height: 100dvh; }
.has-js .journey { height: 240vh; height: 240svh; }
.scene { position: sticky; top: 0; width: 100%; height: 100vh; height: 100svh; height: 100dvh; overflow: hidden; isolation: isolate; background: #079be4; }
.sky { position: absolute; inset: 0; background-color: #079be4; }
/* A stationary, staggered Ben-Day ink screen over the moving illustration.
   Multiply preserves the artwork's colour; pointer events pass straight through.
   Navigation (z-index: 6) and top-layer dialogs stay clean and readable. */
.scene::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  --dot-pitch: 6px;
  --dot-offset: 3px;
  --dot-radius: .9px;
  background-image:
    radial-gradient(circle, #15202b var(--dot-radius), transparent calc(var(--dot-radius) + .35px)),
    radial-gradient(circle, #15202b var(--dot-radius), transparent calc(var(--dot-radius) + .35px));
  background-size: var(--dot-pitch) var(--dot-pitch);
  background-position: 0 0, var(--dot-offset) var(--dot-offset);
  mix-blend-mode: multiply;
  opacity: .28;
}
.art { position: absolute; width: max(100vw, 133.333svh); height: max(75vw, 100svh); left: 50%; bottom: 0; margin-left: min(-50vw, -66.6667svh); pointer-events: none; will-change: transform; }
.art img, .title-art picture { width: 100%; height: 100%; display: block; }
.clouds { z-index: 1; transform: translateX(calc(var(--cloud-travel, 24vw) * var(--scene-remaining, 0))); }
.cloud { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); }
.cloud img { transform: translate(var(--push-x, 0px), var(--push-y, 0px)); transition: transform 350ms ease-out; }
.hand { z-index: 4; transform: translateY(calc(var(--hand-travel, -16svh) * var(--scene-remaining, 0))); }
.highways { z-index: 3; transform: translateY(var(--road-y, 0vh)); }
.highways img { position: absolute; left: 0; bottom: 0; }
.title-art, .about-art { z-index: 5; transform: translate(var(--title-x, 0vw), var(--title-y, 0svh)); transform-origin: 72% 45%; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.scene > .links { position: absolute; z-index: 6; top: 22px; right: 24px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--color-ink); background: var(--color-paper); border: 2px solid var(--color-ink); box-shadow: 3px 3px 0 var(--color-ink); padding: 8px 15px; text-transform: uppercase; font-size: 12px; font-weight: 900; letter-spacing: .035em; }
.links a:hover { background: #ffce40; transform: translateY(-2px); }
/* The separate, tightly cropped info card retains its original desktop registration. */
.event-hitbox { position: absolute; left: 55.1%; top: 53.23%; width: 35.55%; height: 11.51%; pointer-events: auto; border: 0; background: transparent; border-radius: 6%; }
/* A two-frame sticker tilt: move only the board, keeping its hit target steady. */
.event-hitbox img { pointer-events: none; transform-origin: 50% 50%; transition: transform 180ms steps(2, end); }
.event-hitbox:hover, .event-hitbox:focus-visible { outline: none; box-shadow: none; background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .event-hitbox:hover img { transform: rotate(-2deg) scale(1.015); }
}
.event-hitbox:focus-visible img { transform: rotate(-2deg) scale(1.015); filter: brightness(1.12); }
.scroll-cue { display: none; position: absolute; bottom: 42px; left: 50%; transform: translateX(-50%) rotate(-4deg); z-index: 6; background: #ffce40; border: 3px solid #111; box-shadow: 5px 5px 0 #111; padding: 10px 19px 15px; opacity: var(--cue-opacity, 1); visibility: var(--cue-visibility, visible); transition: box-shadow 120ms, transform 120ms; }
.has-js .scroll-cue { display: block; }
.scroll-cue span { display: block; font-size: 34px; line-height: 1; font-weight: 900; animation: arrow-nudge 3.2s steps(2, end) infinite; }
.scroll-cue:hover { transform: translateX(-50%) translateY(-3px) rotate(3deg); box-shadow: 7px 8px 0 #111; }
.scroll-cue:active { transform: translateX(-50%) translate(4px, 4px) rotate(0); box-shadow: 1px 1px 0 #111; }
@keyframes arrow-nudge {
  0%, 18%, 36%, 100% { transform: translateY(0); }
  9%, 27% { transform: translateY(6px); }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
dialog { width: min(500px, calc(100% - 36px)); max-height: 88svh; overflow: auto; border: 4px solid #111; background: #ffce40; padding: 38px; box-shadow: 10px 10px 0 #111; }
dialog::backdrop { background: #002438a8; }
dialog h2, .ticket-panel #tickets-title { font-size: clamp(30px, 6vw, 46px); line-height: 1; letter-spacing: -.055em; text-transform: uppercase; margin: 20px 0; }
.play-title { font-family: var(--font-ui); font-size: clamp(22px, 5vw, 30px); font-weight: 900; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 20px; }
dialog p, dialog dl, dialog form { font-family: inherit; line-height: 1.5; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 2px .5em; font-size: 11px; text-transform: uppercase; font-weight: 800; letter-spacing: .09em; padding-right: 15px; }
.eyebrow span { white-space: nowrap; }
.close { position: absolute; right: 10px; top: 6px; font-size: 30px; border: 0; background: none; }
dl { border-block: 2px solid #111; padding: 16px 0; }
dl div { display: grid; grid-template-columns: 65px 1fr; margin: 8px 0; }
dt { font-weight: 800; } dd { margin: 0; }
.primary { text-align: center; text-decoration: none; display: block; background: #111; color: #fffdf3; padding: 14px 18px; border: 2px solid #111; font-weight: 800; width: 100%; margin-top: 20px; }
.primary:hover { background: #ec4748; color: #111; }
.small { font-size: 13px; }
.ticket-notice { font-weight: 700; }
.show-preference { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.show-preference legend { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
#id_preferred_show { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; }
#id_preferred_show label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 6px; border: 2px solid #111; border-radius: 0; background: #fffdf3; font-size: 14px; text-align: center; cursor: pointer; }
/* Keep native keyboard/radio semantics without showing the circular controls. */
#id_preferred_show input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#id_preferred_show label:hover { background: #ffe795; }
#id_preferred_show label:has(input:checked) { background: #111; color: #fffdf3; }
#id_preferred_show label:has(input:focus-visible) { outline: 3px solid #fffdf3; outline-offset: 3px; box-shadow: 0 0 0 6px #111; }
#id_preferred_show input:focus-visible { outline: none; box-shadow: none; }
.channel-options { padding: 0; border: 0; margin: 24px 0 16px; }
.channel-options legend { font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.channel-options #id_channel { display: flex; gap: 24px; }
.channel-options label { display: flex; align-items: center; gap: 7px; }
.htmx-indicator { display: none; }
.updates-form.htmx-request .htmx-indicator { display: block; margin-top: 12px; }
.updates-form button:disabled { cursor: wait; opacity: .65; }
.signup-feedback:empty { display: none; }
.signup-feedback { color: #8b1515; font-weight: 700; }
.signup-result { padding-top: 8px; }
.form-errors, .errorlist { color: #8b1515; font-weight: 700; font-size: 14px; }
.form-errors p { margin-bottom: 0; }
.errorlist { padding-left: 20px; }
.updates-form .consent { align-items: flex-start; }
.updates-form .consent input { flex-shrink: 0; margin-top: 3px; }
a:focus-visible { outline: 4px solid white; outline-offset: 5px; box-shadow: 0 0 0 8px #111; }
/* The shared public shell: static sky/clouds/dots, separate from homepage parallax. */
.standard-page { position: relative; isolation: isolate; min-height: 100svh; padding: 28px clamp(20px, 4vw, 64px) 56px; background: var(--color-sky); }
.page-backdrop { --page-art-unit: calc(max(100vw, 133.333svh) / 2560); position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--color-sky); }
/* Match the homepage's 2560px artwork scale uniformly, including edge offsets,
   so every cloud retains the same proportions and outline weight. */
.page-cloud { position: absolute; display: block; background-repeat: no-repeat; background-size: 100% 100%; background-position: 0 0; }
.page-cloud--1 { width: calc(940 * var(--page-art-unit)); height: calc(264 * var(--page-art-unit)); top: 14%; left: calc(-560 * var(--page-art-unit)); background-image: url('cloud-1.webp'); }
.page-cloud--2 { width: calc(1032 * var(--page-art-unit)); height: calc(296 * var(--page-art-unit)); top: 7%; right: calc(-630 * var(--page-art-unit)); background-image: url('cloud-2.webp'); }
.page-cloud--3 { width: calc(556 * var(--page-art-unit)); height: calc(204 * var(--page-art-unit)); bottom: 7%; left: calc(-230 * var(--page-art-unit)); background-image: url('cloud-3.webp'); }
.page-cloud--4 { width: calc(744 * var(--page-art-unit)); height: calc(216 * var(--page-art-unit)); bottom: 5%; right: calc(-330 * var(--page-art-unit)); background-image: url('cloud-4.webp'); }
.page-cloud--5 { width: calc(792 * var(--page-art-unit)); height: calc(248 * var(--page-art-unit)); top: 43%; right: calc(-410 * var(--page-art-unit)); background-image: url('cloud-5.webp'); }
.page-cloud--6 { width: calc(692 * var(--page-art-unit)); height: calc(244 * var(--page-art-unit)); top: 47%; left: calc(-420 * var(--page-art-unit)); background-image: url('cloud-6.webp'); }
.page-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  --page-dot-pitch: 6px;
  --page-dot-offset: 3px;
  --page-dot-radius: .9px;
  background-image: radial-gradient(circle, #15202b var(--page-dot-radius), transparent calc(var(--page-dot-radius) + .35px)), radial-gradient(circle, #15202b var(--page-dot-radius), transparent calc(var(--page-dot-radius) + .35px));
  background-size: var(--page-dot-pitch) var(--page-dot-pitch);
  background-position: 0 0, var(--page-dot-offset) var(--page-dot-offset);
  mix-blend-mode: multiply;
  opacity: .28;
}
.standard-page > header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: clamp(40px, 7svh, 80px); }
.standard-page > header a { color: var(--color-ink); }
.standard-page > header > a { max-width: 330px; font-size: 17px; font-weight: 900; line-height: 1.15; text-decoration: none; text-transform: uppercase; background: var(--color-yellow); border: 2px solid var(--color-ink); padding: 12px 15px; box-shadow: 4px 4px 0 var(--color-ink); }
.standard-page main { max-width: 680px; margin: 0 auto; padding: 32px; background: var(--color-paper); border: 3px solid var(--color-ink); box-shadow: 7px 7px 0 var(--color-ink); }
.subscription-page main.subscription-card { position: relative; width: min(100%, 620px); max-width: 620px; margin: 0 auto; padding: clamp(28px, 5vw, 52px); border: 4px solid var(--color-ink); box-shadow: 10px 10px 0 var(--color-ink); background: var(--color-paper); }
.subscription-card::before { content: ''; position: absolute; top: -13px; left: 32px; width: 92px; height: 20px; background: var(--color-yellow); border: 2px solid var(--color-ink); transform: rotate(-5deg); }
.subscription-kicker { display: inline-block; margin: 0 0 30px; padding: 6px 10px; background: var(--color-yellow); border: 2px solid var(--color-ink); font-size: 11px; line-height: 1.2; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; transform: rotate(-2deg); }
.subscription-title { font-family: var(--font-comic); font-size: clamp(34px, 5.2vw, 58px); font-weight: 900; font-synthesis: none; line-height: 1.04; letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; margin: 0 0 22px; }
.subscription-copy { font-size: 16px; line-height: 1.65; margin: 0 0 28px; max-width: 44ch; }
.subscription-form { margin: 0; }
.subscription-submit { margin: 0; min-height: 54px; box-shadow: 4px 4px 0 var(--color-ink); transition: transform 100ms, box-shadow 100ms; }
.subscription-submit:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--color-ink); }
.subscription-page :focus-visible { outline-color: var(--color-paper); }
@media (max-width: 480px) {
  .standard-page { padding: 20px 20px 40px; }
  .standard-page > header { gap: 18px; margin-bottom: 36px; }
  .standard-page > header > a { max-width: 250px; font-size: 14px; }
  .subscription-page main.subscription-card { padding: 28px 23px; box-shadow: 7px 7px 0 var(--color-ink); }
  .subscription-kicker { margin-bottom: 26px; }
  .page-backdrop::after { --page-dot-pitch: 4px; --page-dot-offset: 2px; --page-dot-radius: .65px; opacity: .24; }
  .page-cloud--1 { left: calc(-760 * var(--page-art-unit)); }
  .page-cloud--2 { right: calc(-810 * var(--page-art-unit)); }
  .page-cloud--3 { left: calc(-390 * var(--page-art-unit)); }
  .page-cloud--4 { right: calc(-540 * var(--page-art-unit)); }
  .page-cloud--5, .page-cloud--6 { display: none; }
}
@media (max-width: 360px) { .subscription-title { font-size: 27px; } }
@media (prefers-reduced-motion: reduce) { .subscription-submit { transition: none; } }
.ticket-panel p { font-family: inherit; line-height: 1.5; }
.no-script-details { padding: 24px; background: #ffce40; }
body:has(dialog:modal) { overflow: hidden; }
form label { display: block; font-weight: 700; font-size: 14px; }
input[type='email'] { width: 100%; padding: 13px; background: #fffdf3; border: 2px solid #111; margin: 6px 0 16px; }
.consent { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
/* Background art intentionally covers/crops; readable artwork must fit instead.
   Preserve the shared 4:3 registration for title + info card, but cap it by
   viewport height and leave room above the visible title for navigation. */
@media (orientation: landscape) {
  .title-art, .about-art {
    --text-fit-width: min(calc(100vw - 32px), calc(180svh - 160px));
    --text-canvas-width: min(calc(100vw - 32px), calc(var(--text-fit-width) * 1.32));
    /* Enlarge downwards from the visible title's top (504/1920), not upwards
       into navigation. 1416/2560 is its top-to-canvas-bottom ratio. */
    bottom: calc((var(--text-fit-width) - var(--text-canvas-width)) * .553125);
    width: var(--text-canvas-width);
    height: calc(var(--text-canvas-width) * .75);
    margin-left: calc(var(--text-canvas-width) * -.5);
  }
}
@media (max-aspect-ratio: 1/1) {
  /* Homepage portrait clouds use 1.6 × viewport width / 2560. */
  .page-backdrop { --page-art-unit: calc(100vw / 1600); }
  .scene { --mobile-title-top: clamp(88px, 30svh, 260px); --mobile-title-height: calc(100vw * 617 / 1471); }
  .art { width: 100vw; height: 75vw; margin-left: -50vw; }
  .has-js .journey { height: 200svh; }
  /* Compose the portrait poster from the road upward, rather than leaving a
     desktop-sized gap below a title pinned near the top of a tall phone. */
  .clouds { width: 100%; height: 100%; left: 0; margin-left: 0; bottom: 0; --cloud-travel: 12vw; }
  /* One source-to-screen scale keeps the original ink weight consistent,
     including the small clouds; only their positions vary. */
  .cloud { height: auto; width: calc(var(--w) * 1.6); }
  .cloud img { height: auto; }
  .cloud:nth-child(1) { left: 55%; top: 10%; }
  .cloud:nth-child(2) { left: -25%; top: 23%; }
  .cloud:nth-child(3) { left: 73%; top: 30%; }
  .cloud:nth-child(4) { left: 31%; top: 39%; }
  .cloud:nth-child(5) { left: -21%; top: 47%; }
  .cloud:nth-child(6) { left: 67%; top: 54%; }
  .cloud:nth-child(7) { left: 42%; top: 20%; }
  .cloud:nth-child(8) { left: 78%; top: 70%; }
  .cloud:nth-child(9) { left: 14%; top: 74%; }
  /* Let the sleeve enter through the left edge, with the fingers reaching
     toward the cars. Its cut-off top stays outside the viewport. */
  .hand {
    --hand-width: min(250vw, 125svh);
    width: var(--hand-width);
    height: calc(var(--hand-width) * .75);
    margin-left: calc(-40vw - var(--hand-width) * .2);
    bottom: auto;
    top: clamp(0px, calc(100svh - 160vw), 28svh);
    --hand-travel: -32svh;
  }
  /* Keep the skyline behind the main road without the rear highway/cars
     or its asphalt extension cluttering the portrait composition. */
  .highways .cityscape {
    /* Match the car/highway's source-to-screen scale, centred behind it.
       Decrease bottom to lower the skyline; increase it to raise it. */
    width: 150%;
    height: 150%;
    left: -25vw;
    bottom: 0;
  }
  .highways .highway-rear { display: none; }
  .highways .highway-front { left: 0; width: 150%; height: 150%; }
  /* Crop/centre the final mobile composition, but inherit the shared diagonal
     fly-in so both text pieces enter together rather than appearing early. */
  .title-art, .about-art { bottom: auto; }
  .title-art { width: 100vw; margin-left: -50vw; top: var(--mobile-title-top); height: var(--mobile-title-height); }
  /* The tilted artwork has transparent corners: overlap the bounding boxes
     slightly to close the visible gap without covering either set of words. */
  .about-art { width: 78vw; margin-left: -39vw; top: calc(var(--mobile-title-top) + var(--mobile-title-height) - 7vw); height: auto; aspect-ratio: 913 / 226; }
  .about-art .event-hitbox { position: relative; inset: auto; display: block; width: 100%; height: 100%; }
  .scene > .links { top: 16px; right: 12px; left: 12px; justify-content: flex-end; }
  .standard-page { padding: 16px; }
  .standard-page main { padding: 22px; }
  .scene::after { --dot-pitch: 4px; --dot-offset: 2px; --dot-radius: .65px; opacity: .24; }
  .scroll-cue { bottom: max(28px, env(safe-area-inset-bottom)); }
  dialog { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .has-js .journey { height: 100svh; height: 100dvh; }
  .art { transform: none !important; will-change: auto; }
  .cloud img { transform: none !important; transition: none; }
  .has-js .scroll-cue { display: block; }
  .scroll-cue span { animation: none; }
  .event-hitbox img, .event-hitbox:hover img, .event-hitbox:focus-visible img { transform: none; transition: none; }
  .scroll-cue, .scroll-cue:hover, .scroll-cue:active { transform: translateX(-50%); transition: none; box-shadow: 5px 5px 0 #111; }
}
