@layer reset, tokens, base, layout, components, utilities, overrides;

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  :where(body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd, fieldset) {
    margin: 0;
  }

  :where(fieldset) {
    padding: 0;
    border: 0;
    min-inline-size: 0;
  }

  :where(legend) {
    padding: 0;
  }

  :where(ul[role="list"], ol[role="list"]) {
    padding-inline-start: 0;
    list-style: none;
  }

  :where(img, svg, video) {
    display: block;
    max-inline-size: 100%;
    block-size: auto;
  }

  :where(button, input, select, textarea) {
    font: inherit;
    color: inherit;
  }

  :where(button, summary, label) {
    cursor: pointer;
  }

  [hidden] {
    display: none;
  }
}

@layer tokens {
  :root {
    color-scheme: light dark;

    --white: oklch(100% 0 0);
    --black: oklch(0% 0 0);

    --cream-50: oklch(98.5% 0.012 85);
    --cream-100: oklch(96% 0.022 85);
    --cream-200: oklch(91% 0.03 82);
    --cream-300: oklch(85% 0.035 80);
    --cream-400: oklch(78% 0.035 78);

    --ink-950: oklch(17% 0.035 265);
    --ink-900: oklch(21% 0.04 265);
    --ink-800: oklch(27% 0.045 265);
    --ink-700: oklch(35% 0.045 262);
    --ink-600: oklch(45% 0.04 260);
    --ink-400: oklch(65% 0.03 260);
    --ink-300: oklch(76% 0.025 260);
    --ink-200: oklch(86% 0.02 260);

    --turquoise-200: oklch(90% 0.06 195);
    --turquoise-300: oklch(84% 0.09 195);
    --turquoise-500: oklch(73% 0.12 195);
    --turquoise-600: oklch(62% 0.11 198);
    --turquoise-700: oklch(45% 0.085 205);
    --turquoise-800: oklch(37% 0.065 210);

    --coral-300: oklch(82% 0.1 38);
    --coral-500: oklch(69% 0.16 35);
    --coral-600: oklch(61% 0.17 33);
    --coral-700: oklch(50% 0.15 30);

    --mustard-200: oklch(93% 0.07 90);
    --mustard-400: oklch(86% 0.14 88);
    --mustard-500: oklch(80% 0.155 82);

    --peach-200: oklch(91% 0.055 60);
    --peach-300: oklch(86% 0.08 55);
    --lavender-300: oklch(82% 0.06 295);
    --lavender-200: oklch(88% 0.045 300);

    --sky-300: oklch(83% 0.075 215);
    --sky-200: oklch(90% 0.05 210);
    --haze-400: oklch(76% 0.05 222);

    --violet-950: oklch(17% 0.07 285);
    --violet-900: oklch(21% 0.085 288);
    --violet-800: oklch(28% 0.1 295);
    --violet-700: oklch(36% 0.12 315);
    --violet-600: oklch(44% 0.13 340);

    --cloud-50: oklch(98% 0.008 230);
    --cloud-200: oklch(91% 0.02 232);
    --cloud-300: oklch(85% 0.028 235);
    --cloud-400: oklch(78% 0.035 238);

    --dusk-600: oklch(44% 0.06 290);
    --dusk-700: oklch(37% 0.06 288);
    --dusk-800: oklch(30% 0.055 285);
    --dusk-900: oklch(25% 0.05 280);

    --steel-200: oklch(88% 0.012 240);
    --steel-400: oklch(72% 0.015 240);
    --steel-600: oklch(52% 0.02 245);
    --steel-800: oklch(34% 0.02 250);

    --moss-950: oklch(17% 0.025 155);
    --moss-800: oklch(28% 0.05 145);
    --moss-600: oklch(42% 0.07 140);
    --moss-300: oklch(84% 0.06 125);

    --color-page: light-dark(var(--cloud-50), var(--dusk-900));
    --color-text: light-dark(var(--ink-900), var(--cream-50));
    --color-text-muted: light-dark(var(--ink-700), var(--ink-200));
    --color-surface: light-dark(var(--cream-50), var(--ink-800));
    --color-surface-sunken: light-dark(var(--cream-100), var(--ink-900));
    --color-line: light-dark(var(--cream-300), var(--ink-700));
    --color-line-strong: light-dark(var(--ink-400), var(--ink-400));
    --color-accent: light-dark(var(--turquoise-700), var(--turquoise-300));
    --color-accent-warm: light-dark(var(--coral-700), var(--coral-300));
    --color-coral: var(--coral-500);
    --color-mustard: var(--mustard-500);
    --color-turquoise: var(--turquoise-500);
    --color-on-bright: var(--ink-900);
    --color-focus: light-dark(var(--coral-700), var(--mustard-400));
    --color-shadow: light-dark(
      color-mix(in oklch, var(--ink-700) 30%, transparent),
      color-mix(in oklch, var(--black) 55%, transparent)
    );
    --color-backdrop: light-dark(
      color-mix(in oklch, var(--ink-700) 45%, transparent),
      color-mix(in oklch, var(--black) 60%, transparent)
    );
    --color-title-shadow: light-dark(var(--coral-300), var(--coral-600));
    --color-lamp: var(--turquoise-500);

    --color-sky-top: light-dark(var(--sky-300), var(--violet-950));
    --color-sky-mid: light-dark(var(--sky-200), var(--violet-800));
    --color-sky-horizon: light-dark(var(--peach-200), var(--violet-600));
    --color-dusk-top: light-dark(var(--lavender-300), var(--violet-950));
    --color-dusk-mid: light-dark(var(--lavender-200), var(--violet-900));
    --color-dusk-horizon: light-dark(var(--peach-300), var(--violet-700));

    --color-sun: light-dark(var(--mustard-400), var(--cream-100));
    --color-sun-burst: light-dark(
      color-mix(in oklch, var(--mustard-400) 45%, transparent),
      color-mix(in oklch, var(--cream-100) 10%, transparent)
    );
    --color-star: light-dark(transparent, var(--cream-100));
    --color-cloud: light-dark(var(--cloud-50), var(--dusk-600));
    --color-cloud-shade: light-dark(var(--cloud-200), var(--dusk-700));
    --color-lane: light-dark(
      color-mix(in oklch, var(--white) 75%, transparent),
      color-mix(in oklch, var(--turquoise-300) 40%, transparent)
    );
    --color-far: light-dark(var(--haze-400), var(--violet-900));

    --color-art-body: light-dark(var(--cream-50), var(--ink-600));
    --color-art-shade: light-dark(var(--cream-300), var(--ink-700));
    --color-art-column: light-dark(var(--cream-200), var(--ink-600));
    --color-art-glass: light-dark(
      color-mix(in oklch, var(--turquoise-300) 85%, transparent),
      color-mix(in oklch, var(--turquoise-500) 60%, transparent)
    );
    --color-art-rim: light-dark(var(--cream-300), var(--ink-700));
    --color-art-under: light-dark(var(--cream-400), var(--ink-800));
    --color-art-shine: light-dark(
      color-mix(in oklch, var(--white) 75%, transparent),
      color-mix(in oklch, var(--white) 28%, transparent)
    );
    --color-art-floor: color-mix(in oklch, var(--black) 14%, transparent);
    --color-art-trim: var(--coral-500);
    --color-art-accent: var(--mustard-500);
    --color-art-window: light-dark(var(--turquoise-800), var(--mustard-400));
    --color-art-ring: light-dark(var(--turquoise-600), var(--turquoise-500));
    --color-art-line: light-dark(var(--ink-700), var(--ink-200));
    --color-art-glow: color-mix(in oklch, var(--mustard-400) 70%, transparent);
    --color-art-moon: var(--cream-100);
    --color-art-crater: var(--cream-300);
    --color-art-crater-deep: color-mix(in oklch, var(--cream-300), var(--ink-700) 22%);
    --color-art-moon-shade: color-mix(in oklch, var(--cream-300), var(--violet-700) 30%);
    --color-art-halo: color-mix(in oklch, var(--cream-100) 10%, transparent);
    --color-art-earth: var(--turquoise-600);
    --color-art-land: var(--moss-600);

    --color-descent-1: var(--color-cloud);
    --color-descent-2: light-dark(var(--cloud-200), var(--dusk-700));
    --color-descent-3: light-dark(var(--cloud-300), var(--dusk-800));
    --color-descent-4: light-dark(var(--cloud-400), var(--dusk-900));

    --color-metal-light: light-dark(var(--steel-200), var(--steel-600));
    --color-metal-dark: light-dark(var(--steel-400), var(--steel-800));
    --color-metal-edge: light-dark(var(--steel-600), var(--ink-950));
    --color-key-ring: var(--mustard-500);
    --color-key-face: var(--cream-200);
    --color-key-shine: var(--cream-50);
    --color-key-lit: var(--coral-500);
    --color-panel-neon: color-mix(in oklch, var(--mustard-500) 80%, transparent);
    --color-display-bg: var(--ink-950);
    --color-display-text: var(--mustard-400);

    --color-board-bg: var(--ink-950);
    --color-board-text: var(--mustard-400);
    --color-board-muted: var(--ink-300);
    --color-board-status: var(--turquoise-300);
    --color-board-line: var(--ink-700);


    --color-depths-top: var(--steel-800);
    --color-depths-bottom: var(--moss-950);
    --color-depths-title: var(--moss-300);
    --color-grass: var(--moss-800);
    --color-grass-light: var(--moss-600);
    --color-firefly: var(--mustard-400);

    --color-footer-bg: var(--ink-950);
    --color-showroom-burst: light-dark(
      color-mix(in oklch, var(--white) 50%, transparent),
      color-mix(in oklch, var(--white) 7%, transparent)
    );
    --color-certificate: light-dark(var(--cream-100), var(--ink-800));

    --fill-night: linear-gradient(160deg, var(--violet-900), var(--violet-700));
    --fill-pylon: linear-gradient(
      to right,
      var(--color-metal-dark),
      var(--color-metal-light) 40%,
      var(--color-metal-dark)
    );
    --fill-fade-in: linear-gradient(to bottom, transparent, var(--black) var(--size-fog));
    --fill-fade-in-deep: linear-gradient(
      to bottom,
      transparent,
      var(--black) var(--size-fog-deep)
    );
    --fill-sink: linear-gradient(
      to bottom,
      var(--black),
      color-mix(in oklch, var(--black) 35%, transparent)
    );
    --fill-panel: linear-gradient(
      to right,
      var(--color-metal-dark),
      var(--color-metal-light) 32%,
      var(--color-metal-light) 58%,
      var(--color-metal-dark)
    );

    --font-display: "Futura", "Century Gothic", "Avenir Next", ui-rounded, "Nunito",
      "Varela Round", "Trebuchet MS", system-ui, sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
      sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
    --font-script: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;

    --text-2xs: 0.6875rem;
    --text-xs: 0.8125rem;
    --text-s: 0.9375rem;
    --text-m: 1.0625rem;
    --text-l: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
    --text-xl: clamp(1.45rem, 1.25rem + 1vw, 2rem);
    --text-2xl: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
    --text-3xl: clamp(2.4rem, 1.6rem + 3.5vw, 4.5rem);
    --text-hero: clamp(2.75rem, 1.6rem + 5.5vw, 6rem);

    --leading-tight: 1.02;
    --leading-snug: 1.2;
    --leading-body: 1.6;

    --weight-regular: 400;
    --weight-bold: 700;
    --weight-black: 800;

    --tracking-tight: -0.02em;
    --tracking-wide: 0.12em;
    --tracking-wider: 0.2em;

    --space-3xs: 0.25rem;
    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-s: 1rem;
    --space-m: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    --space-l: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
    --space-xl: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
    --space-2xl: clamp(3.5rem, 2.4rem + 5vw, 7rem);
    --space-gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);

    --radius-s: 0.5rem;
    --radius-m: 1rem;
    --radius-l: 1.75rem;
    --radius-pill: 999px;
    --radius-round: 50%;
    --radius-kidney: 2.75rem 1rem 2.75rem 1rem;

    --border-thin: 1px;
    --border-thick: 3px;
    --border-chunky: 0.3rem;

    --shadow-s: 0 1px 2px var(--color-shadow);
    --shadow-m: 0 0.75rem 1.75rem -0.75rem var(--color-shadow);
    --shadow-l: 0 1.5rem 3rem -1rem var(--color-shadow);
    --shadow-lamp: 0 0 0.5rem var(--color-lamp);
    --shadow-firefly: 0 0 0.75rem 0.25rem var(--color-firefly);
    --shadow-text-retro: 0.06em 0.06em 0 var(--color-title-shadow);

    --z-raised: 1;
    --z-rail: 2;

    --page-max: 76rem;
    --measure: 62ch;
    --measure-narrow: 46ch;
    --rail-width: 12.5rem;
    --size-target-min: 1.5rem;
    --size-icon: 1.25rem;
    --size-mark: 2.25rem;
    --size-mark-small: 1.5rem;
    --size-lamp: 0.55rem;
    --size-push: 4.75rem;
    --size-key: 2.25rem;
    --size-pylon: 2.25rem;
    --size-seal: 4.5rem;
    --size-sticker: 6.75rem;
    --size-sputnik: 8.5rem;
    --size-diamond-inline: 1.75rem;
    --size-diamond-block: 3rem;
    --size-twinkle: 2rem;
    --sign-gap: 0.6rem;
    --sign-line: 2px;
    --radius-bevel: 1.5rem;
    --radius-scoop: 1.75rem;
    --radius-notch: 1rem;
    --size-ribbon-notch: 0.9rem;
    --size-free: 5rem;
    --size-promo-burst: 9.5rem;
    --size-punch: 0.9rem;
    --size-board-post: 2.75rem;
    --size-bulb: 0.35rem;
    --size-theme-key: 2rem;
    --size-dome: 5rem;
    --size-elevator-dial: 9rem;
    --dial-hub: 60px 62px;
    --size-choice-gap: 0.35rem;
    --tilt-free: 12deg;
    --tilt-sticker: 10deg;
    --size-step: 3.5rem;
    --size-scallop: 6rem;
    --size-fog: 9rem;
    --size-fog-deep: 14rem;
    --size-foot-base: 7rem;
    --size-grass: 3.5rem;
    --size-blade: 1.1rem;
    --size-blade-wide: 1.9rem;
    --size-firefly: 0.4rem;
    --size-barcode: 3rem;
    --size-radio: 1.25rem;
    --size-field: 24rem;
    --grid-min-xs: 9rem;
    --grid-min-s: 12rem;
    --grid-min-m: 15rem;
    --grid-min-l: 18rem;
    --grid-min-xl: 22rem;
    --size-hero-art: clamp(20rem, 46vw, 38rem);
    --size-page-art: clamp(14rem, 30vw, 24rem);
    --size-feature-art: 22rem;
    --size-promo-art: 15rem;
    --size-appliance-art: 10rem;
    --size-showroom: 11rem;
    --size-showroom-burst: 9.5rem;
    --size-dial: 20rem;
    --size-porthole: 4.25rem;
    --size-gag: 26rem;
    --push-depth: 0.375rem;
    --focus-offset: 0.2rem;
    --tilt-ring: -18deg;

    --art-stroke-line: 4;
    --art-stroke-ring: 5;
    --art-stroke-strut: 8;
    --art-stroke-lane: 3;
    --art-stroke-seam: 1.5;
    --art-stroke-shine: 4;
    --art-stroke-hoop: 6;
    --art-stroke-limb: 13;
    --art-stroke-claw: 6;
    --art-stroke-tick: 2.5;
    --art-stroke-arc: 12;
    --art-label-size: 9px;
    --art-lane-dash: 2 14;

    --travel-bob: 6px;
    --travel-hover: 8px;
    --travel-drift: 32px;
    --travel-fly-start: -140px;
    --travel-fly-end: 1740px;
    --car-rest-high: 520px;
    --car-rest-low: 1180px;
    --travel-lift: -0.15rem;
    --scale-popover-from: 0.92;

    --duration-quick: 120ms;
    --duration-medium: 260ms;
    --duration-bob: 6s;
    --duration-hover: 2.6s;
    --duration-drift: 16s;
    --duration-drift-front: 11s;
    --duration-fly: 22s;
    --duration-fly-slow: 31s;
    --duration-spin: 120s;
    --duration-pulse: 4s;
    --duration-firefly: 5s;
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

--shape-starburst: polygon(
      50% 0%,
      57.65% 31.52%,
      85.36% 14.64%,
      68.48% 42.35%,
      100% 50%,
      68.48% 57.65%,
      85.36% 85.36%,
      57.65% 68.48%,
      50% 100%,
      42.35% 68.48%,
      14.64% 85.36%,
      31.52% 57.65%,
      0% 50%,
      31.52% 42.35%,
      14.64% 14.64%,
      42.35% 31.52%
    );

    --shape-diamond: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    --shape-twinkle: polygon(
      50% 0%,
      61% 39%,
      100% 50%,
      61% 61%,
      50% 100%,
      39% 61%,
      0% 50%,
      39% 39%
    );
    --shape-seal: polygon(
      50% 0%,
      56.73% 7.53%,
      65.45% 2.45%,
      69.52% 11.69%,
      79.39% 9.55%,
      80.41% 19.59%,
      90.45% 20.61%,
      88.31% 30.48%,
      97.55% 34.55%,
      92.47% 43.27%,
      100% 50%,
      92.47% 56.73%,
      97.55% 65.45%,
      88.31% 69.52%,
      90.45% 79.39%,
      80.41% 80.41%,
      79.39% 90.45%,
      69.52% 88.31%,
      65.45% 97.55%,
      56.73% 92.47%,
      50% 100%,
      43.27% 92.47%,
      34.55% 97.55%,
      30.48% 88.31%,
      20.61% 90.45%,
      19.59% 80.41%,
      9.55% 79.39%,
      11.69% 69.52%,
      2.45% 65.45%,
      7.53% 56.73%,
      0% 50%,
      7.53% 43.27%,
      2.45% 34.55%,
      11.69% 30.48%,
      9.55% 20.61%,
      19.59% 19.59%,
      20.61% 9.55%,
      30.48% 11.69%,
      34.55% 2.45%,
      43.27% 7.53%
    );
  }
}

@layer tokens {
  :root:has(:where(.theme-picker [value="light"]:checked)) {
    color-scheme: light;
  }

  :root:has(:where(.theme-picker [value="dark"]:checked)) {
    color-scheme: dark;
  }
}

@layer base {
  html {
    scroll-padding-block-start: var(--space-s);
  }

  body {
    min-block-size: 100dvh;
    background: var(--color-page);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--text-m);
    line-height: var(--leading-body);
  }

  :where(h1, h2, h3, h4) {
    font-family: var(--font-display);
    line-height: var(--leading-snug);
    text-wrap: balance;
  }

  :where(p, li, dd) {
    text-wrap: pretty;
  }

  :where(a) {
    color: var(--color-accent);
    text-underline-offset: 0.2em;
  }

  :where(:focus-visible) {
    outline: var(--border-thick) solid var(--color-focus);
    outline-offset: var(--focus-offset);
  }

  :where(time) {
    font-variant-numeric: tabular-nums;
  }

  @media (prefers-reduced-motion: no-preference) {
    html {
      scroll-behavior: smooth;
    }
  }
}

@layer layout {
  .section {
    padding-block: var(--space-2xl);
    padding-inline: max(var(--space-gutter), (100% - var(--page-max)) / 2);
    container-type: inline-size;

    & + .section {
      padding-block-start: 0;
    }

    & > header {
      max-inline-size: var(--measure);
      margin-block-end: var(--space-l);

      & > * + * {
        margin-block-start: var(--space-xs);
      }
    }

    & :where(h2) {
      font-size: var(--text-2xl);
      font-weight: var(--weight-black);
      line-height: var(--leading-tight);
      letter-spacing: var(--tracking-tight);
    }
  }
}

@layer components {
  .skip-link {
    position: absolute;
    inset-block-start: var(--space-2xs);
    inset-inline-start: var(--space-2xs);
    z-index: var(--z-rail);
    padding: var(--space-2xs) var(--space-s);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-text);
    font-weight: var(--weight-bold);
    translate: 0 -200%;

    &:focus-visible {
      translate: 0 0;
    }
  }

  .mark {
    position: relative;
    display: inline-block;
    flex: none;
    inline-size: var(--size-mark);
    aspect-ratio: 1;

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      clip-path: var(--shape-starburst);
      background: radial-gradient(circle, var(--color-mustard) 35%, var(--color-coral));
    }

    &::after {
      content: "";
      position: absolute;
      inset-block: 34%;
      inset-inline: -18%;
      border: var(--border-thick) solid var(--color-turquoise);
      border-radius: var(--radius-round);
      rotate: var(--tilt-ring);
    }

    &[data-size="small"] {
      inline-size: var(--size-mark-small);
    }
  }

  .site-header {
    background: var(--header-bg, var(--color-sky-top));

    &[data-tone="dusk"] {
      --header-bg: var(--color-dusk-top);
    }

    & > .inner {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-s) var(--space-m);
      max-inline-size: var(--page-max);
      margin-inline: auto;
      padding: var(--space-s) var(--space-gutter);
    }

    & :where(.tools) {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: var(--space-2xs) var(--space-s);
    }

    @media (width >= 78rem) {
      & :where(.tools) {
        flex-direction: column;
        align-items: end;
      }
    }
  }

  .brand {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: var(--space-s);
    color: var(--color-text);
    text-decoration: none;

    & :where(.mark) {
      grid-row: span 2;
    }

    & :where(.name) {
      font-family: var(--font-display);
      font-size: var(--text-xl);
      font-weight: var(--weight-black);
      line-height: 1;
      letter-spacing: var(--tracking-tight);
    }

    & :where(.motto) {
      font-size: var(--text-xs);
      font-weight: var(--weight-bold);
      letter-spacing: var(--tracking-wide);
      text-transform: uppercase;
      color: var(--color-text-muted);
    }
  }

  .site-nav {
    & :where(ul) {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-3xs);
    }

    & :where(a) {
      display: inline-flex;
      align-items: center;
      min-block-size: var(--size-target-min);
      padding: var(--space-3xs) var(--space-s);
      border-radius: var(--radius-pill);
      color: var(--color-text);
      font-family: var(--font-display);
      font-weight: var(--weight-bold);
      text-decoration: none;
    }

    & :where(a[aria-current="page"]) {
      background: var(--color-surface);
      box-shadow: var(--shadow-s);
    }

    @media (hover: hover) {
      & :where(a:not([aria-current]):hover) {
        background: color-mix(in oklch, var(--color-surface) 55%, transparent);
      }
    }
  }

  .status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    padding: var(--space-3xs) var(--space-s);
    border: var(--border-thin) solid var(--color-line-strong);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;

    & :where(.lamp) {
      inline-size: var(--size-lamp);
      aspect-ratio: 1;
      border-radius: var(--radius-round);
      background: var(--color-lamp);
      box-shadow: var(--shadow-lamp);
    }

    @media (prefers-reduced-motion: no-preference) {
      & :where(.lamp) {
        animation: lamp-pulse var(--duration-pulse) ease-in-out infinite alternate;
      }
    }
  }

  .theme-picker {
    display: inline-flex;
    gap: var(--space-3xs);
    padding: var(--space-3xs);
    border: var(--border-thin) solid var(--color-line-strong);
    border-radius: var(--radius-pill);

    & :where(label) {
      position: relative;
      display: grid;
      place-items: center;
      inline-size: var(--size-theme-key);
      aspect-ratio: 1;
      border: var(--border-thick) solid transparent;
      border-radius: var(--radius-round);
      color: var(--color-text);
      transition:
        background-color var(--duration-quick) var(--ease-out),
        border-color var(--duration-quick) var(--ease-out);
    }

    & :where(input) {
      position: absolute;
      inset: 0;
      margin: 0;
      border-radius: inherit;
      opacity: 0;
      cursor: pointer;
    }

    & :where(svg) {
      inline-size: var(--size-icon);
      block-size: var(--size-icon);
      pointer-events: none;
    }

    & :where(label:has(:checked)) {
      border-color: var(--color-key-ring);
      background: var(--color-key-lit);
      color: var(--color-on-bright);
      box-shadow: 0 0 var(--space-2xs) var(--color-key-lit);
    }

    & :where(label:has(:focus-visible)) {
      outline: var(--border-thick) solid var(--color-focus);
      outline-offset: var(--focus-offset);
    }

    @media (hover: hover) {
      & :where(label:not(:has(:checked)):hover) {
        background: color-mix(in oklch, var(--color-surface) 55%, transparent);
      }
    }
  }

  .button {
    --button-bg: transparent;
    --button-text: var(--color-text);
    --button-border: currentColor;

    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    min-block-size: var(--size-target-min);
    padding: var(--space-xs) var(--space-m);
    border: var(--border-thick) solid var(--button-border);
    border-radius: var(--radius-pill);
    background: var(--button-bg);
    color: var(--button-text);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    line-height: var(--leading-snug);
    text-decoration: none;
    box-shadow: var(--button-shadow, none);
    transition:
      translate var(--duration-quick) var(--ease-out),
      box-shadow var(--duration-quick) var(--ease-out);

    & :where(svg) {
      inline-size: var(--size-icon);
      block-size: var(--size-icon);
    }

    &[data-tone="coral"] {
      --button-bg: var(--color-coral);
      --button-text: var(--color-on-bright);
      --button-border: var(--color-coral);
      --button-shadow: var(--shadow-m);
    }

    &[data-tone="mustard"] {
      --button-bg: var(--color-mustard);
      --button-text: var(--color-on-bright);
      --button-border: var(--color-mustard);
      --button-shadow: var(--shadow-m);
    }

    @media (hover: hover) {
      &:hover {
        translate: 0 var(--travel-lift);
        box-shadow: var(--shadow-l);
      }
    }
  }

  .push {
    --push-color: var(--color-coral);
    --push-base: color-mix(in oklch, var(--push-color), var(--black) 35%);

    display: inline-grid;
    place-items: center;
    inline-size: var(--size-push);
    aspect-ratio: 1;
    padding: var(--space-2xs);
    border: var(--border-chunky) solid var(--color-metal-light);
    border-radius: var(--radius-round);
    background: radial-gradient(
      circle at 35% 30%,
      color-mix(in oklch, var(--push-color), var(--white) 45%),
      var(--push-color) 55%,
      color-mix(in oklch, var(--push-color), var(--black) 15%)
    );
    color: var(--color-on-bright);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-black);
    letter-spacing: var(--tracking-wide);
    line-height: var(--leading-snug);
    text-transform: uppercase;
    box-shadow:
      0 var(--push-depth) 0 var(--push-base),
      var(--shadow-m);
    transition:
      translate var(--duration-quick) var(--ease-out),
      box-shadow var(--duration-quick) var(--ease-out);

    &:active {
      translate: 0 var(--push-depth);
      box-shadow:
        0 0 0 var(--push-base),
        var(--shadow-s);
    }

    &[data-tone="mustard"] {
      --push-color: var(--color-mustard);
    }

    &[data-tone="turquoise"] {
      --push-color: var(--color-turquoise);
    }

    &[data-shape="pill"] {
      inline-size: auto;
      aspect-ratio: auto;
      padding: var(--space-xs) var(--space-l);
      border-radius: var(--radius-pill);
    }
  }

  .card {
    padding: var(--space-l);
    border: var(--border-thin) solid var(--color-line);
    border-radius: var(--radius-l);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-m);

    &[data-sign] {
      --sign-neon: var(--color-turquoise);

      box-shadow: var(
        --sign-shadow,
        inset 0 0 0 var(--sign-gap) var(--color-surface),
        inset 0 0 0 calc(var(--sign-gap) + var(--sign-line)) var(--sign-neon),
        var(--shadow-m)
      );
    }

    &[data-tone="night"] {
      --sign-shadow: var(--shadow-m);

      outline: var(--sign-line) solid var(--sign-neon);
      outline-offset: calc((var(--sign-gap) + var(--sign-line)) * -1);
    }

    &[data-neon="coral"] {
      --sign-neon: var(--color-coral);
    }

    &[data-neon="mustard"] {
      --sign-neon: var(--color-mustard);
    }

    &[data-tone="night"] {
      color-scheme: dark;
      border-color: transparent;
      background: var(--fill-night);
    }
  }

  .art {
    overflow: visible;

    & :where(.body) {
      fill: var(--color-art-body);
    }

    & :where(.shade) {
      fill: var(--color-art-shade);
    }

    & :where(.column) {
      fill: var(--color-art-column);
    }

    & :where(.glass) {
      fill: var(--color-art-glass);
    }

    & :where(.trim) {
      fill: var(--color-art-trim);
    }

    & :where(.accent) {
      fill: var(--color-art-accent);
    }

    & :where(.window) {
      fill: var(--color-art-window);
    }

    & :where(.moon) {
      fill: var(--color-art-moon);
    }

    & :where(.crater) {
      fill: var(--color-art-crater);
    }

    & :where(.crater-deep) {
      fill: var(--color-art-crater-deep);
    }

    & :where(.moon-shade) {
      fill: var(--color-art-moon-shade);
    }

    & :where(.halo) {
      fill: var(--color-art-halo);
    }

    & :where(.earth) {
      fill: var(--color-art-earth);
    }

    & :where(.land) {
      fill: var(--color-art-land);
    }

    & :where(.car-glow) {
      fill: var(--color-art-glow);
    }

    & :where(.rim) {
      fill: var(--color-art-rim);
    }

    & :where(.under) {
      fill: var(--color-art-under);
    }

    & :where(.glint) {
      fill: var(--color-art-shine);
    }

    & :where(.seam) {
      fill: none;
      stroke: var(--color-art-rim);
      stroke-width: var(--art-stroke-seam);
      stroke-linecap: round;
    }

    & :where(.shine) {
      fill: none;
      stroke: var(--color-art-shine);
      stroke-width: var(--art-stroke-shine);
      stroke-linecap: round;
    }

    & :where(.hoop) {
      fill: none;
      stroke: var(--color-art-trim);
      stroke-width: var(--art-stroke-hoop);
      stroke-linecap: round;
    }

    & :where(.limb) {
      fill: none;
      stroke: var(--color-art-rim);
      stroke-width: var(--art-stroke-limb);
      stroke-linecap: round;
    }

    & :where(.floor) {
      fill: var(--color-art-floor);
    }

    & :where(.tick) {
      fill: none;
      stroke: var(--color-art-line);
      stroke-width: var(--art-stroke-tick);
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    & :where(.edge) {
      stroke: var(--color-art-under);
      stroke-width: var(--art-stroke-seam);
    }

    & :where(.arc) {
      fill: none;
      stroke: var(--arc-paint, var(--color-art-ring));
      stroke-width: var(--art-stroke-arc);
    }

    & :where(.arc[data-paint="glass"]) {
      --arc-paint: var(--color-art-glass);
    }

    & :where(.arc[data-paint="accent"]) {
      --arc-paint: var(--color-art-accent);
    }

    & :where(.arc[data-paint="trim"]) {
      --arc-paint: var(--color-art-trim);
    }

    & :where(.arc[data-paint="under"]) {
      --arc-paint: var(--color-art-under);
    }

    & :where(text) {
      fill: var(--color-art-line);
      font-family: var(--font-mono);
      font-size: var(--art-label-size);
      font-weight: var(--weight-bold);
      letter-spacing: var(--tracking-wide);
      text-anchor: middle;
      dominant-baseline: central;
    }

    & :where(.claw) {
      fill: none;
      stroke: var(--color-art-column);
      stroke-width: var(--art-stroke-claw);
      stroke-linecap: round;
    }

    & :where(.ring) {
      fill: none;
      stroke: var(--color-art-ring);
      stroke-width: var(--art-stroke-ring);
    }

    & :where(.line) {
      fill: none;
      stroke: var(--color-art-line);
      stroke-width: var(--art-stroke-line);
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    & :where(.strut) {
      fill: none;
      stroke: var(--color-art-column);
      stroke-width: var(--art-stroke-strut);
      stroke-linecap: round;
    }

    & :where(.star) {
      fill: var(--color-star);
    }

    & :where(.sun) {
      fill: var(--color-sun);
    }

    & :where(.sun polygon) {
      fill: var(--color-sun-burst);
    }

    & :where(.lane) {
      fill: none;
      stroke: var(--color-lane);
      stroke-width: var(--art-stroke-lane);
      stroke-dasharray: var(--art-lane-dash);
      stroke-linecap: round;
    }

    & :where(.far) {
      fill: var(--color-far);
    }

    & :where(.drift) {
      fill: var(--color-cloud);
    }

    & :where(.drift[data-layer="back"]) {
      fill: var(--color-cloud-shade);
    }

    & :where(.car[data-lane="high"]) {
      transform: translateX(var(--car-rest-high));
    }

    & :where(.car[data-lane="low"]) {
      transform: translateX(var(--car-rest-low));
    }

    & :where(.spin) {
      transform-box: fill-box;
      transform-origin: center;
    }

    @media (prefers-reduced-motion: no-preference) {
      & :where(.bob) {
        animation: art-bob var(--duration-bob) ease-in-out infinite alternate;
      }

      & :where(.bob[data-phase="b"]) {
        animation-delay: calc(var(--duration-bob) / -3);
      }

      & :where(.bob[data-phase="c"]) {
        animation-delay: calc(var(--duration-bob) / -1.5);
      }

      & :where(.hover) {
        animation: art-hover var(--duration-hover) ease-in-out infinite alternate;
      }

      & :where(.car) {
        animation: art-fly var(--duration-fly) linear infinite;
      }

      & :where(.car[data-lane="low"]) {
        animation-duration: var(--duration-fly-slow);
        animation-direction: reverse;
        animation-delay: calc(var(--duration-fly-slow) / -2);
      }

      & :where(.drift) {
        animation: art-drift var(--duration-drift) ease-in-out infinite alternate;
      }

      & :where(.drift[data-layer="front"]) {
        animation-duration: var(--duration-drift-front);
        animation-direction: alternate-reverse;
      }

      & :where(.spin) {
        animation: art-spin var(--duration-spin) linear infinite;
      }
    }
  }

  .hero {
    display: grid;
    background: linear-gradient(
      to bottom,
      var(--color-sky-top),
      var(--color-sky-mid) 50%,
      var(--color-sky-horizon)
    );
    text-align: center;

    & > .copy {
      display: grid;
      justify-items: center;
      gap: var(--space-s);
      padding: var(--space-xl) var(--space-gutter) var(--space-s);
    }

    & :where(h1) {
      font-size: var(--text-hero);
      font-weight: var(--weight-black);
      line-height: var(--leading-tight);
      letter-spacing: var(--tracking-tight);
      text-shadow: var(--shadow-text-retro);
    }

    & :where(.lede) {
      max-inline-size: var(--measure-narrow);
    }

    & :where([data-slot="hero-art"]) {
      inline-size: 100%;
      block-size: var(--size-hero-art);
    }
  }

  .page-hero {
    --hero-top: var(--color-sky-top);
    --hero-mid: var(--color-sky-mid);
    --hero-horizon: var(--color-sky-horizon);

    display: grid;
    align-items: center;
    gap: var(--space-l);
    padding-block: var(--space-xl) calc(var(--space-xl) + var(--size-scallop) / 2);
    padding-inline: max(var(--space-gutter), (100% - var(--page-max)) / 2);
    background:
      radial-gradient(circle at 50% 100%, var(--color-page) 68%, transparent 70%) bottom center /
        var(--size-scallop) calc(var(--size-scallop) / 2) repeat-x,
      linear-gradient(to bottom, var(--hero-top), var(--hero-mid) 55%, var(--hero-horizon));

    &[data-tone="dusk"] {
      --hero-top: var(--color-dusk-top);
      --hero-mid: var(--color-dusk-mid);
      --hero-horizon: var(--color-dusk-horizon);
    }

    & > .copy {
      display: grid;
      justify-items: start;
      gap: var(--space-s);
      max-inline-size: var(--measure);
    }

    & :where(h1) {
      font-size: var(--text-3xl);
      font-weight: var(--weight-black);
      line-height: var(--leading-tight);
      letter-spacing: var(--tracking-tight);
      text-shadow: var(--shadow-text-retro);
    }

    & :where([data-slot="page-hero-art"]) {
      justify-self: center;
      inline-size: 100%;
      max-inline-size: var(--size-page-art);
    }

    @media (width >= 52rem) {
      grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    }
  }

  .descent {
    display: grid;
    gap: var(--space-l);
    padding-inline: max(var(--space-gutter), (100% - var(--page-max)) / 2);
    padding-block-start: var(--space-l);
    background: linear-gradient(
      to bottom,
      var(--color-descent-1),
      var(--color-descent-2) 30%,
      var(--color-descent-3) 65%,
      var(--color-descent-4)
    );

    & > .levels {
      container-type: inline-size;
      min-inline-size: 0;
    }

    @media (width >= 64rem) {
      grid-template-columns: var(--rail-width) minmax(0, 1fr);
      column-gap: var(--space-xl);
      padding-block-start: 0;

      & > .shaft {
        position: relative;
        padding-block: var(--space-2xl);
      }

      & > .shaft::before {
        content: "";
        position: absolute;
        inset-block: 0;
        inset-inline: calc(50% - var(--size-pylon) / 2);
        background: var(--fill-pylon);
        mask-image: var(--fill-fade-in);
      }
    }
  }

  .elevator {
    --needle: -90deg;

    padding: var(--space-m) var(--space-s) var(--space-s);
    border: var(--border-thick) solid var(--color-metal-edge);
    border-start-start-radius: 50% var(--size-dome);
    border-start-end-radius: 50% var(--size-dome);
    border-end-end-radius: var(--radius-bevel);
    border-end-start-radius: var(--radius-bevel);
    background: var(--fill-panel);
    box-shadow: var(--shadow-m);
    outline: var(--sign-line) solid var(--color-panel-neon);
    outline-offset: calc(var(--sign-gap) * -1);

    &:has(:where(a[href="#level-2"]:hover, a[href="#level-2"]:focus-visible)) {
      --needle: -45deg;
    }

    &:has(:where(a[href="#level-3"]:hover, a[href="#level-3"]:focus-visible)) {
      --needle: -15deg;
    }

    &:has(:where(a[href="#level-4"]:hover, a[href="#level-4"]:focus-visible)) {
      --needle: 15deg;
    }

    &:has(:where(a[href="#level-5"]:hover, a[href="#level-5"]:focus-visible)) {
      --needle: 45deg;
    }

    &:has(:where(a[href="#level-6"]:hover, a[href="#level-6"]:focus-visible)) {
      --needle: 75deg;
    }

    & :where(.dial) {
      inline-size: 100%;
      max-inline-size: var(--size-elevator-dial);
      margin-inline: auto;
      margin-block-end: var(--space-2xs);
    }

    & :where(.face) {
      fill: var(--color-display-bg);
    }

    & :where(.ticks) {
      fill: none;
      stroke: var(--color-display-text);
      stroke-width: var(--art-stroke-tick);
      stroke-linecap: round;
    }

    & :where(text) {
      fill: var(--color-display-text);
      font-family: var(--font-mono);
      font-size: var(--art-label-size);
      font-weight: var(--weight-bold);
      text-anchor: middle;
      dominant-baseline: central;
    }

    & :where(.needle) {
      fill: none;
      stroke: var(--color-coral);
      stroke-width: var(--art-stroke-shine);
      stroke-linecap: round;
      transform-box: view-box;
      transform-origin: var(--dial-hub);
      rotate: var(--needle);
    }

    & :where(.hub) {
      fill: var(--color-mustard);
    }

    & :where(.readout) {
      display: none;
    }

    & :where(.title) {
      margin-block-end: var(--space-s);
      padding: var(--space-3xs) var(--space-2xs);
      border-radius: var(--radius-s);
      background: var(--color-display-bg);
      color: var(--color-display-text);
      font-family: var(--font-mono);
      font-size: var(--text-xs);
      letter-spacing: var(--tracking-wide);
      text-align: center;
      text-transform: uppercase;
    }

    & :where(ol) {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-2xs);
    }

    & :where(a) {
      display: flex;
      align-items: center;
      gap: var(--space-2xs);
      color: var(--color-text);
      font-size: var(--text-s);
      font-weight: var(--weight-bold);
      text-decoration: none;
    }

    & :where(.key) {
      display: grid;
      place-items: center;
      flex: none;
      inline-size: var(--size-key);
      aspect-ratio: 1;
      border: var(--border-thick) solid var(--color-key-ring);
      border-radius: var(--radius-round);
      background: radial-gradient(
        circle at 35% 30%,
        var(--color-key-shine),
        var(--color-key-face) 60%
      );
      color: var(--color-on-bright);
      font-family: var(--font-mono);
      font-weight: var(--weight-black);
      box-shadow: var(--shadow-s);
      transition:
        background-color var(--duration-quick) var(--ease-out),
        box-shadow var(--duration-quick) var(--ease-out);
    }

    & :where(a:focus-visible .key) {
      background: var(--color-key-lit);
      box-shadow: 0 0 var(--space-s) var(--color-key-lit);
    }

    & :where(.note) {
      margin-block-start: var(--space-s);
      color: var(--color-text-muted);
      font-size: var(--text-xs);
      font-style: italic;
      text-align: center;
    }

    @media (hover: hover) {
      & :where(a:hover .key) {
        background: var(--color-key-lit);
        box-shadow: 0 0 var(--space-s) var(--color-key-lit);
      }
    }

    @media (prefers-reduced-motion: no-preference) {
      & :where(.needle) {
        transition: rotate var(--duration-medium) var(--ease-bounce);
      }
    }

    @media (width >= 64rem) {
      position: sticky;
      inset-block-start: var(--space-l);
      z-index: var(--z-rail);

      & :where(ol) {
        flex-direction: column;
      }
    }
  }

  .level {
    padding-block: var(--space-2xl);
    scroll-margin-block-start: var(--space-s);

    & > header {
      max-inline-size: var(--measure);
      margin-block-end: var(--space-l);

      & > * + * {
        margin-block-start: var(--space-xs);
      }
    }

    & :where(h2) {
      font-size: var(--text-2xl);
      font-weight: var(--weight-black);
      line-height: var(--leading-tight);
      letter-spacing: var(--tracking-tight);
    }

    & :where(.more) {
      margin-block-start: var(--space-l);
    }
  }

  .level-tag {
    display: inline-flex;
    overflow: hidden;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    box-shadow: var(--shadow-s);

    & > :where(span) {
      padding: var(--space-3xs) var(--space-xs);
      background: var(--color-surface);
      color: var(--color-text);
    }

    & > :where(span:first-child) {
      background: var(--color-coral);
      color: var(--color-on-bright);
      font-weight: var(--weight-bold);
    }
  }

  .split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min-xl)), 1fr));
    gap: var(--space-l);
    align-items: start;
  }

  .letter {
    & > * + * {
      margin-block-start: var(--space-s);
    }

    & :where(h3) {
      font-size: var(--text-xl);
      font-weight: var(--weight-black);
    }

    & :where(.sign) {
      display: grid;
      margin-block-start: var(--space-m);
      color: var(--color-text-muted);
      font-size: var(--text-s);
    }

    & :where(.signature) {
      color: var(--color-accent);
      font-family: var(--font-script);
      font-size: var(--text-xl);
      line-height: var(--leading-snug);
    }
  }

  .weather {
    display: grid;
    align-content: start;
    gap: var(--space-m);
    min-inline-size: 0;

    & > h3 {
      justify-self: center;
      padding: var(--space-2xs) calc(var(--space-m) + var(--size-ribbon-notch));
      background: var(--color-coral);
      color: var(--color-on-bright);
      font-family: var(--font-mono);
      font-size: var(--text-s);
      font-weight: var(--weight-bold);
      letter-spacing: var(--tracking-wider);
      text-transform: uppercase;
      clip-path: polygon(
        0 0,
        100% 0,
        calc(100% - var(--size-ribbon-notch)) 50%,
        100% 100%,
        0 100%,
        var(--size-ribbon-notch) 50%
      );
    }

    & :where([data-slot="weather-dial"]) {
      justify-self: center;
      inline-size: 100%;
      max-inline-size: var(--size-dial);
    }

    & :where(.verdict) {
      color: var(--color-text-muted);
      font-size: var(--text-xs);
      font-style: italic;
      text-align: center;
    }

    & :where(.readings) {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min-s)), 1fr));
      gap: var(--space-m);
      padding-block-start: var(--space-m);
      border-block-start: var(--border-thin) dashed var(--color-line-strong);
    }

    & :where(.reading) {
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      column-gap: var(--space-s);
      row-gap: var(--space-2xs);
    }

    & :where([data-slot="porthole"]) {
      grid-row: span 2;
      inline-size: var(--size-porthole);
    }

    & :where(.reading h4) {
      align-self: end;
      color: var(--color-text-muted);
      font-size: var(--text-xs);
      letter-spacing: var(--tracking-wide);
      text-transform: uppercase;
    }

    & :where(.value) {
      align-self: start;
      font-family: var(--font-display);
      font-size: var(--text-xl);
      font-weight: var(--weight-black);
      line-height: var(--leading-tight);
    }

    & :where(.reading p:not(.value)) {
      grid-column: 1 / -1;
      color: var(--color-text-muted);
      font-size: var(--text-s);
    }
  }

  .board {
    position: relative;
    margin-block-end: var(--size-board-post);
    padding: var(--space-l);
    border: var(--border-chunky) solid var(--color-metal-edge);
    border-radius: var(--radius-l);
    background: var(--color-board-bg);
    color: var(--color-board-text);
    font-family: var(--font-mono);
    box-shadow:
      inset 0 0 0 var(--sign-gap) var(--color-board-bg),
      inset 0 0 0 calc(var(--sign-gap) + var(--sign-line))
        color-mix(in oklch, var(--color-board-text) 70%, transparent),
      var(--shadow-l);

    &::after {
      content: "";
      position: absolute;
      inset-block-start: calc(100% + var(--border-chunky));
      inset-inline: 0;
      block-size: var(--size-board-post);
      background:
        var(--fill-pylon) 18% 0 / var(--size-pylon) 100% no-repeat,
        var(--fill-pylon) 82% 0 / var(--size-pylon) 100% no-repeat;
    }

    & :where(table) {
      inline-size: 100%;
      border-collapse: collapse;
    }

    & :where(caption) {
      margin-block-end: var(--space-s);
      padding-block-end: var(--space-s);
      border-block-end: var(--size-bulb) dotted var(--color-board-text);
      color: var(--color-board-text);
      font-size: var(--text-s);
      font-weight: var(--weight-bold);
      letter-spacing: var(--tracking-wider);
      text-align: center;
      text-transform: uppercase;
    }

    & :where(th) {
      padding: var(--space-2xs) var(--space-xs);
      color: var(--color-board-muted);
      font-size: var(--text-xs);
      font-weight: var(--weight-regular);
      letter-spacing: var(--tracking-wide);
      text-align: start;
      text-transform: uppercase;
    }

    & :where(td) {
      padding: var(--space-2xs) var(--space-xs);
      border-block-start: var(--border-thin) dashed var(--color-board-line);
      letter-spacing: var(--tracking-wide);
      text-transform: uppercase;
    }

    & :where(td:last-child) {
      color: var(--color-board-status);
    }

    @container (inline-size < 40rem) {
      & :where(thead) {
        position: absolute;
        inline-size: 1px;
        block-size: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
      }

      & :where(table, caption, tbody, tr) {
        display: block;
      }

      & :where(tr) {
        padding-block: var(--space-xs);
        border-block-start: var(--border-thick) solid var(--color-board-line);
      }

      & :where(td) {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: var(--space-s);
        padding-inline: 0;
        border-block-start: 0;
        text-align: end;
      }

      & :where(td + td) {
        border-block-start: var(--border-thin) dashed var(--color-board-line);
      }

      & :where(td)::before {
        content: attr(data-label);
        content: attr(data-label) / "";
        flex: none;
        color: var(--color-board-muted);
        font-size: var(--text-xs);
        text-align: start;
      }
    }
  }

  .feature {
    display: grid;
    gap: var(--space-l);
    align-items: center;
    margin-block-start: var(--space-xl);

    & :where([data-slot="feature-art"]) {
      justify-self: center;
      inline-size: 100%;
      max-inline-size: var(--size-feature-art);
    }

    & > .copy > * + * {
      margin-block-start: var(--space-s);
    }

    & :where(h3) {
      font-size: var(--text-xl);
      font-weight: var(--weight-black);
    }

    @container (inline-size >= 40rem) {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    }
  }

  .specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min-xs)), 1fr));
    gap: var(--space-s);
    padding-block-start: var(--space-s);
    border-block-start: var(--border-thin) dashed var(--color-line-strong);

    & :where(dt) {
      color: var(--color-text-muted);
      font-size: var(--text-xs);
      font-weight: var(--weight-bold);
      letter-spacing: var(--tracking-wide);
      text-transform: uppercase;
    }

    & :where(dd) {
      font-weight: var(--weight-bold);
      line-height: var(--leading-snug);
    }
  }

  .button-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min-m)), 1fr));
    gap: var(--space-m);
  }

  .try {
    --try-tone: var(--color-coral);

    display: grid;
    grid-template-areas: "knob" "name" "desc";
    justify-items: center;
    gap: var(--space-2xs);
    border: var(--border-chunky) solid var(--try-tone);
    text-align: center;

    &[data-tone="mustard"] {
      --try-tone: var(--color-mustard);
    }

    &[data-tone="turquoise"] {
      --try-tone: var(--color-turquoise);
    }

    & :where(.sputnik) {
      grid-area: knob;
      place-self: center;
      inline-size: var(--size-sputnik);
      block-size: var(--size-sputnik);
      color: color-mix(in oklch, var(--try-tone) 65%, var(--color-text));
      opacity: 0.6;
    }

    & :where(.push) {
      position: relative;
      grid-area: knob;
      place-self: center;
      margin-block: var(--space-m);
    }

    & :where(.name) {
      grid-area: name;
      font-family: var(--font-display);
      font-size: var(--text-l);
      font-weight: var(--weight-black);
    }

    & :where(p:not(.name)) {
      grid-area: desc;
      color: var(--color-text-muted);
      font-size: var(--text-s);
    }
  }

  .jobs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min-xl)), 1fr));
    gap: var(--space-xl) var(--space-l);
    padding-block-start: calc(var(--size-sticker) * 0.4);
  }

  .job {
    --job-tilt: var(--tilt-sticker);

    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);

    &:nth-child(even) {
      --job-tilt: calc(var(--tilt-sticker) * -1);
    }

    & :where(h3) {
      padding-inline-end: calc(var(--size-sticker) - var(--space-l));
      font-size: var(--text-l);
      font-weight: var(--weight-black);
    }

    & :where(.hours) {
      position: absolute;
      inset-block-start: calc(var(--size-sticker) * -0.4);
      inset-inline-end: calc(var(--space-2xs) * -1);
      display: grid;
      place-content: center;
      inline-size: var(--size-sticker);
      aspect-ratio: 1;
      padding: var(--space-s);
      clip-path: var(--shape-seal);
      background: radial-gradient(
        circle,
        var(--color-mustard) 55%,
        color-mix(in oklch, var(--color-mustard), var(--color-coral) 45%)
      );
      color: var(--color-on-bright);
      font-family: var(--font-display);
      font-size: var(--text-2xs);
      font-weight: var(--weight-bold);
      line-height: var(--leading-tight);
      letter-spacing: var(--tracking-wide);
      text-align: center;
      text-transform: uppercase;
      rotate: var(--job-tilt);
    }

    & :where(.hours strong) {
      display: block;
      font-size: var(--text-xl);
      font-weight: var(--weight-black);
      letter-spacing: 0;
    }

    & :where(p:not(.hours)) {
      flex-grow: 1;
      color: var(--color-text-muted);
      font-size: var(--text-s);
    }

    & :where(.push) {
      align-self: start;
      margin-block-start: var(--space-2xs);
    }
  }

  .promos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min-l)), 1fr));
    gap: var(--space-l);
  }

  .promo {
    --promo-blob: var(--color-mustard);

    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: var(--space-s);

    &::before {
      content: "";
      position: absolute;
      z-index: -1;
      inset-block-start: var(--space-l);
      inset-inline-start: var(--space-l);
      inline-size: min(var(--size-promo-art), 100% - 2 * var(--space-l));
      aspect-ratio: 3 / 2;
      border-radius: var(--radius-round);
      background: color-mix(in oklch, var(--promo-blob) 55%, transparent);
    }

    &[data-blob="kidney"] {
      --promo-blob: var(--color-coral);
    }

    &[data-blob="starburst"]::before {
      inset-block-start: calc(var(--space-l) + var(--space-3xs));
      inset-inline-start: calc(
        var(--space-l) +
          (min(var(--size-promo-art), 100% - 2 * var(--space-l)) - var(--size-promo-burst)) / 2
      );
      inline-size: var(--size-promo-burst);
      aspect-ratio: 1;
      border-radius: 0;
      clip-path: var(--shape-starburst);
    }

    & :where([data-slot="promo-art"]) {
      inline-size: 100%;
      max-inline-size: var(--size-promo-art);
    }

    & :where(h3) {
      font-size: var(--text-xl);
      font-weight: var(--weight-black);
    }

    & :where(p) {
      color: var(--color-text-muted);
    }

    & :where(.price) {
      margin-block-start: auto;
      color: var(--color-accent-warm);
      font-size: var(--text-s);
      font-weight: var(--weight-bold);
    }

    & :where(.more) {
      margin-block-start: auto;
    }
  }

  .depths {
    position: relative;
    isolation: isolate;
    overflow: clip;
    background: linear-gradient(
      to bottom,
      var(--color-descent-4),
      var(--color-depths-top) var(--size-fog-deep),
      var(--color-depths-bottom)
    );

    &::before {
      content: "";
      position: absolute;
      inset-block: 0;
      inset-inline-start: calc(
        max(var(--space-gutter), (100% - var(--page-max)) / 2) + var(--rail-width) / 2 -
          var(--size-foot-base) / 2
      );
      z-index: -1;
      inline-size: var(--size-foot-base);
      background: var(--fill-pylon);
      clip-path: polygon(
        calc(50% + var(--size-pylon) / 2) 0%,
        calc(50% + var(--size-pylon) / 2) 45%,
        calc(100% - (50% - var(--size-pylon) / 2) * 0.92) 65%,
        calc(100% - (50% - var(--size-pylon) / 2) * 0.75) 80%,
        calc(100% - (50% - var(--size-pylon) / 2) * 0.5) 90%,
        100% 100%,
        0% 100%,
        calc((50% - var(--size-pylon) / 2) * 0.5) 90%,
        calc((50% - var(--size-pylon) / 2) * 0.75) 80%,
        calc((50% - var(--size-pylon) / 2) * 0.92) 65%,
        calc(50% - var(--size-pylon) / 2) 45%,
        calc(50% - var(--size-pylon) / 2) 0%
      );
      mask-image: var(--fill-fade-in-deep);
      opacity: 0.6;

      @media (width >= 64rem) {
        mask-image: var(--fill-sink);
        opacity: 1;
      }
    }

    &::after {
      content: "";
      position: absolute;
      inset-inline: 0;
      inset-block-end: 0;
      z-index: -1;
      block-size: var(--size-grass);
      background:
        conic-gradient(from 150deg at 50% 0%, var(--color-grass) 0deg 60deg, transparent 0deg)
          0 0 / var(--size-blade) 100% repeat-x,
        conic-gradient(
            from 155deg at 50% 25%,
            var(--color-grass-light) 0deg 50deg,
            transparent 0deg
          )
          0 0 / var(--size-blade-wide) 100% repeat-x;
    }

    & > .inner {
      display: grid;
      justify-items: center;
      gap: var(--space-s);
      max-inline-size: var(--measure);
      margin-inline: auto;
      padding: calc(var(--space-xl) + var(--size-fog-deep)) var(--space-gutter)
        calc(var(--space-2xl) + var(--size-grass));
      color-scheme: dark;
      color: var(--color-text);
      text-align: center;
    }

    & :where(h2) {
      color: var(--color-depths-title);
      font-size: var(--text-2xl);
      font-weight: var(--weight-black);
      line-height: var(--leading-tight);
    }

    & :where(p:not(.level-tag, .sign)) {
      color: var(--color-text-muted);
    }

    & :where(.sign) {
      padding: var(--space-2xs) var(--space-s);
      border: var(--border-thin) dashed var(--color-line-strong);
      border-radius: var(--radius-s);
      font-family: var(--font-mono);
      font-size: var(--text-xs);
      letter-spacing: var(--tracking-wide);
      text-transform: uppercase;
    }
  }

  .fireflies {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    & > :where(span) {
      position: absolute;
      inset-inline-start: var(--x);
      inset-block-start: var(--y);
      inline-size: var(--size-firefly);
      aspect-ratio: 1;
      border-radius: var(--radius-round);
      background: var(--color-firefly);
      box-shadow: var(--shadow-firefly);
      opacity: 0.7;
    }

    & > :where(span:nth-child(1)) {
      --x: 12%;
      --y: 62%;
    }

    & > :where(span:nth-child(2)) {
      --x: 24%;
      --y: 40%;
    }

    & > :where(span:nth-child(3)) {
      --x: 38%;
      --y: 78%;
    }

    & > :where(span:nth-child(4)) {
      --x: 70%;
      --y: 70%;
    }

    & > :where(span:nth-child(5)) {
      --x: 80%;
      --y: 44%;
    }

    & > :where(span:nth-child(6)) {
      --x: 90%;
      --y: 80%;
    }

    @media (prefers-reduced-motion: no-preference) {
      & > :where(span) {
        animation: firefly var(--duration-firefly) ease-in-out infinite alternate;
      }

      & > :where(span:nth-child(even)) {
        animation-delay: calc(var(--duration-firefly) / -2);
        animation-duration: calc(var(--duration-firefly) * 1.3);
      }

      & > :where(span:nth-child(3n)) {
        animation-delay: calc(var(--duration-firefly) / -3);
      }
    }
  }

  .robot {
    display: grid;
    gap: var(--space-l);
    align-items: center;

    & > .copy > * + * {
      margin-block-start: var(--space-s);
    }

    & :where(.push) {
      justify-self: center;
    }

    @container (inline-size >= 52rem) {
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
    }
  }

  .catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min-xl)), 1fr));
    gap: var(--space-l);
  }

  .appliance {
    --appliance-tone: var(--color-coral);

    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    overflow: clip;

    &[data-tone="mustard"] {
      --appliance-tone: var(--color-mustard);
    }

    &[data-tone="turquoise"] {
      --appliance-tone: var(--color-turquoise);
    }

    & :where(.showroom) {
      position: relative;
      isolation: isolate;
      display: grid;
      place-items: start center;
      block-size: var(--size-showroom);
      margin: calc(var(--space-l) * -1) calc(var(--space-l) * -1) var(--space-s);
      padding-block-start: var(--space-m);
      background: color-mix(in oklch, var(--appliance-tone) 32%, var(--color-surface));
      clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%);

      &::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset-block-start: var(--space-2xs);
        inline-size: var(--size-showroom-burst);
        aspect-ratio: 1;
        clip-path: var(--shape-starburst);
        background: var(--color-showroom-burst);
      }

      &::after {
        content: "";
        position: absolute;
        z-index: -1;
        inset-block-start: 30%;
        inline-size: 82%;
        block-size: 34%;
        border: var(--border-thick) solid
          color-mix(in oklch, var(--appliance-tone) 55%, var(--color-text));
        border-radius: var(--radius-round);
        opacity: 0.35;
        rotate: var(--tilt-ring);
      }
    }

    & :where([data-slot="appliance-art"]) {
      inline-size: var(--size-appliance-art);
    }

    & :where(h3) {
      padding-inline-end: calc(var(--size-push) - var(--space-l));
      font-size: var(--text-l);
      font-weight: var(--weight-black);
    }

    & :where(.price) {
      color: var(--color-accent-warm);
      font-family: var(--font-mono);
      font-size: var(--text-xs);
      letter-spacing: var(--tracking-wide);
      text-transform: uppercase;
    }

    & :where(p:not(.price)) {
      color: var(--color-text-muted);
      font-size: var(--text-s);
    }

    & :where(.push) {
      position: absolute;
      inset-block-start: calc(var(--size-showroom) * 0.8 - var(--size-push) / 2);
      inset-inline-end: var(--space-m);
    }
  }

  .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min-m)), 1fr));
    gap: var(--space-l);
    counter-reset: step;

    & > li {
      display: grid;
      gap: var(--space-2xs);
      counter-increment: step;
    }

    & > li::before {
      content: counter(step);
      display: grid;
      place-items: center;
      inline-size: var(--size-step);
      aspect-ratio: 1;
      margin-block-end: var(--space-xs);
      clip-path: var(--shape-starburst);
      background: var(--color-mustard);
      color: var(--color-on-bright);
      font-family: var(--font-display);
      font-size: var(--text-l);
      font-weight: var(--weight-black);
    }

    & :where(h3) {
      font-size: var(--text-l);
      font-weight: var(--weight-black);
    }

    & :where(p) {
      color: var(--color-text-muted);
    }
  }

  .callout {
    position: relative;
    display: grid;
    justify-items: center;
    gap: var(--space-s);
    padding-block: var(--space-xl);
    text-align: center;

    &::before {
      content: "Free!";
      position: absolute;
      inset-block-start: var(--space-m);
      inset-inline-end: 12%;
      display: grid;
      place-items: center;
      inline-size: var(--size-free);
      aspect-ratio: 1;
      clip-path: var(--shape-seal);
      background: var(--color-coral);
      color: var(--color-on-bright);
      font-family: var(--font-display);
      font-size: var(--text-s);
      font-weight: var(--weight-black);
      text-transform: uppercase;
      rotate: var(--tilt-free);
    }

    @container (inline-size < 40rem) {
      &::before {
        position: static;
        margin-block-end: calc(var(--space-s) * -1);
      }
    }

    & :where(h2) {
      font-size: var(--text-xl);
    }

    & :where(p) {
      max-inline-size: var(--measure-narrow);
      color: var(--color-text-muted);
    }

    & :where(.push) {
      margin-block-start: var(--space-xs);
    }
  }

  .itinerary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min-l)), 1fr));
    gap: var(--space-l);
  }

  .day {
    --day-a: var(--color-coral);
    --day-b: var(--color-turquoise);

    position: relative;

    &:nth-child(2) {
      --day-a: var(--color-mustard);
      --day-b: var(--color-coral);
    }

    &:nth-child(3) {
      --day-a: var(--color-turquoise);
      --day-b: var(--color-mustard);
    }

    &::before,
    &::after {
      content: "";
      position: absolute;
      inset-block-start: var(--space-l);
      inline-size: var(--size-diamond-inline);
      block-size: var(--size-diamond-block);
      clip-path: var(--shape-diamond);
    }

    &::before {
      inset-inline-end: calc(var(--space-l) + var(--size-diamond-inline) * 0.55);
      background: var(--day-a);
    }

    &::after {
      inset-inline-end: var(--space-l);
      background: color-mix(in oklch, var(--day-b) 80%, transparent);
      translate: 0 var(--space-s);
    }

    & :where(h3) {
      padding-inline-end: calc(var(--size-diamond-inline) * 1.7);
      margin-block-end: var(--space-s);
      font-size: var(--text-xl);
      font-weight: var(--weight-black);
    }

    & :where(.eyebrow) {
      display: block;
    }

    & :where(li) {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: var(--space-xs);
      align-items: baseline;
      padding-block: var(--space-xs);
      border-block-start: var(--border-thin) dashed var(--color-line-strong);
      color: var(--color-text-muted);
      font-size: var(--text-s);
    }

    & :where(time) {
      padding: var(--space-3xs) var(--space-2xs);
      border-radius: var(--radius-s);
      background: var(--day-a);
      color: var(--color-on-bright);
      font-family: var(--font-mono);
      font-size: var(--text-xs);
      font-weight: var(--weight-bold);
    }
  }

  .booking {
    display: grid;
    gap: var(--space-l);
    align-items: start;

    & :where(form) {
      display: grid;
      gap: var(--space-l);
    }

    & :where(fieldset) {
      display: grid;
      gap: var(--space-2xs);
    }

    & :where(legend) {
      margin-block-end: var(--space-2xs);
      font-family: var(--font-display);
      font-size: var(--text-l);
      font-weight: var(--weight-black);
    }

    & :where(.choice) {
      display: grid;
      grid-template-columns: auto 1fr;
      column-gap: var(--space-s);
      align-items: center;
      padding: var(--space-s);
      border: var(--border-thick) solid var(--color-line);
      border-radius: var(--radius-m);
      background: var(--choice-bg, var(--color-surface));
      transition:
        border-color var(--duration-quick) var(--ease-out),
        background-color var(--duration-quick) var(--ease-out),
        box-shadow var(--duration-quick) var(--ease-out);
    }

    & :where(.choice input) {
      grid-row: span 2;
      inline-size: var(--size-radio);
      block-size: var(--size-radio);
      margin: 0;
      accent-color: var(--color-coral);
    }

    & :where(.choice:has(:checked)) {
      --choice-bg: color-mix(in oklch, var(--color-coral) 12%, var(--color-surface));

      border-color: var(--color-coral);
      box-shadow:
        inset 0 0 0 var(--size-choice-gap) var(--choice-bg),
        inset 0 0 0 calc(var(--size-choice-gap) + var(--sign-line)) var(--color-mustard);
    }

    & :where(.choice:has(:focus-visible)) {
      outline: var(--border-thick) solid var(--color-focus);
      outline-offset: var(--focus-offset);
    }

    & :where(.title) {
      font-weight: var(--weight-bold);
    }

    & :where(.hint) {
      color: var(--color-text-muted);
      font-size: var(--text-s);
    }

    & :where(.field) {
      display: grid;
      gap: var(--space-3xs);
    }

    & :where(.field label) {
      font-family: var(--font-display);
      font-weight: var(--weight-bold);
    }

    & :where(.field input) {
      max-inline-size: var(--size-field);
      padding: var(--space-xs) var(--space-s);
      border: var(--border-thick) solid var(--color-line-strong);
      border-radius: var(--radius-m);
      background: var(--color-surface);
      font-size: var(--text-m);
    }

    & :where(.field input:user-invalid) {
      border-color: var(--color-accent-warm);
    }

    & :where(.push) {
      justify-self: start;
    }

    & :where([data-show]) {
      display: none;
    }

    &:has(:where([value="fri-am"]:checked)) :where([data-show="fri-am"]),
    &:has(:where([value="fri-pm"]:checked)) :where([data-show="fri-pm"]),
    &:has(:where([value="sat"]:checked)) :where([data-show="sat"]),
    &:has(:where([value="porthole"]:checked)) :where([data-show="porthole"]),
    &:has(:where([value="panorama"]:checked)) :where([data-show="panorama"]),
    &:has(:where([value="dome"]:checked)) :where([data-show="dome"]) {
      display: inline;
    }

    @container (inline-size >= 52rem) {
      grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    }
  }

  .pass {
    overflow: hidden;
    border: var(--border-thin) solid var(--color-line);
    border-radius: var(--radius-l);
    background: var(--color-surface);
    box-shadow: var(--shadow-l);

    @container (inline-size >= 52rem) {
      position: sticky;
      inset-block-start: var(--space-l);
    }

    & > header {
      display: flex;
      align-items: center;
      gap: var(--space-s);
      padding: var(--space-m);
      background: var(--color-coral);
      color: var(--color-on-bright);
    }

    & :where(header p) {
      display: grid;
      font-family: var(--font-display);
      font-size: var(--text-l);
      font-weight: var(--weight-black);
      line-height: var(--leading-snug);
    }

    & :where(header span:not(.mark)) {
      font-family: var(--font-mono);
      font-size: var(--text-xs);
      font-weight: var(--weight-regular);
      letter-spacing: var(--tracking-wider);
      text-transform: uppercase;
    }

    & :where(dl) {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: var(--space-s);
      padding: var(--space-m);
    }

    & :where(dt) {
      color: var(--color-text-muted);
      font-size: var(--text-xs);
      letter-spacing: var(--tracking-wide);
      text-transform: uppercase;
    }

    & :where(dd) {
      font-family: var(--font-mono);
      font-weight: var(--weight-bold);
    }

    & :where(.barcode) {
      position: relative;
      block-size: var(--size-barcode);
      margin: 0 var(--space-m) var(--space-m);
      padding-block-start: var(--space-m);
      border-block-start: var(--border-thick) dashed var(--color-line-strong);
      background: repeating-linear-gradient(
          to right,
          var(--color-text) 0 2px,
          transparent 2px 5px,
          var(--color-text) 5px 6px,
          transparent 6px 9px,
          var(--color-text) 9px 12px,
          transparent 12px 14px
        )
        content-box;
    }

    & :where(.barcode)::before,
    & :where(.barcode)::after {
      content: "";
      position: absolute;
      inset-block-start: calc(var(--size-punch) * -1 - var(--border-thick) / 2);
      inline-size: calc(var(--size-punch) * 2);
      aspect-ratio: 1;
      border-radius: var(--radius-round);
      background: var(--color-page);
    }

    & :where(.barcode)::before {
      inset-inline-start: calc(var(--space-m) * -1 - var(--size-punch));
    }

    & :where(.barcode)::after {
      inset-inline-end: calc(var(--space-m) * -1 - var(--size-punch));
    }
  }

  .faq {
    display: grid;
    gap: var(--space-s);
    max-inline-size: var(--measure);

    & :where(details) {
      border: var(--border-thin) solid var(--color-line);
      border-radius: var(--radius-m);
      background: var(--color-surface);
    }

    & :where(summary) {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: var(--space-s);
      padding: var(--space-s) var(--space-m);
      font-family: var(--font-display);
      font-weight: var(--weight-bold);
      list-style: none;
    }

    & :where(summary)::-webkit-details-marker {
      display: none;
    }

    & :where(summary)::after {
      content: "";
      flex: none;
      inline-size: var(--size-twinkle);
      aspect-ratio: 1;
      clip-path: var(--shape-twinkle);
      background: var(--color-mustard);
      transition:
        rotate var(--duration-medium) var(--ease-bounce),
        background-color var(--duration-medium) var(--ease-out);
    }

    & :where(details[open] summary)::after {
      background: var(--color-coral);
      rotate: 45deg;
    }

    & :where(details[open]) {
      box-shadow:
        inset 0 0 0 var(--size-choice-gap) var(--color-surface),
        inset 0 0 0 calc(var(--size-choice-gap) + var(--sign-line)) var(--color-mustard);
    }

    & :where(details p) {
      padding: 0 var(--space-m) var(--space-m);
      color: var(--color-text-muted);
    }
  }

  .gag {
    inline-size: min(var(--size-gag), 100% - 2 * var(--space-gutter));
    padding: var(--space-l);
    border: var(--border-chunky) solid var(--gag-border, var(--color-turquoise));
    border-radius: var(--radius-kidney);
    background: var(--gag-bg, var(--color-surface));
    color: var(--color-text);
    text-align: center;
    box-shadow: var(--shadow-l);
    opacity: 0;
    scale: var(--scale-popover-from);

    &:popover-open {
      opacity: 1;
      scale: 1;

      @starting-style {
        opacity: 0;
        scale: var(--scale-popover-from);
      }
    }

    &::backdrop {
      background: var(--color-backdrop);
    }

    & > * + * {
      margin-block-start: var(--space-s);
    }

    & :where(.message) {
      font-family: var(--font-display);
      font-size: var(--text-xl);
      font-weight: var(--weight-black);
      line-height: var(--leading-snug);
      text-wrap: balance;
    }

    & :where(p:not(.message, .eyebrow)) {
      color: var(--color-text-muted);
    }

    & :where(.button) {
      margin-block-start: var(--space-m);
    }

    & :where(.seal) {
      display: block;
      inline-size: var(--size-seal);
      aspect-ratio: 1;
      margin-inline: auto;
      clip-path: var(--shape-starburst);
      background: radial-gradient(circle, var(--color-mustard) 40%, var(--color-coral));
    }

    &[data-kind="certificate"] {
      --gag-border: var(--color-mustard);
      --gag-bg: var(--color-certificate);

      border-style: double;
      border-width: calc(var(--border-chunky) * 2);
      border-radius: var(--radius-m);
    }

    @media (prefers-reduced-motion: no-preference) {
      transition:
        opacity var(--duration-medium) var(--ease-out),
        scale var(--duration-medium) var(--ease-bounce),
        overlay var(--duration-medium) allow-discrete,
        display var(--duration-medium) allow-discrete;
    }
  }

  .site-footer {
    color-scheme: dark;
    background: var(--color-footer-bg);
    color: var(--color-text);

    & > .inner {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-s) var(--space-l);
      max-inline-size: var(--page-max);
      margin-inline: auto;
      padding: var(--space-l) var(--space-gutter);
    }

    & :where(.brand-line) {
      display: flex;
      align-items: center;
      gap: var(--space-s);
      font-family: var(--font-display);
      font-weight: var(--weight-black);
    }

    & :where(ul) {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-s);
    }

    & :where(.fine) {
      flex-basis: 100%;
      color: var(--color-text-muted);
      font-size: var(--text-xs);
    }
  }

  @keyframes art-bob {
    to {
      transform: translateY(var(--travel-bob));
    }
  }

  @keyframes art-hover {
    from {
      transform: translateY(0);
    }

    to {
      transform: translateY(var(--travel-hover));
    }
  }

  @keyframes art-fly {
    from {
      transform: translateX(var(--travel-fly-start));
    }

    to {
      transform: translateX(var(--travel-fly-end));
    }
  }

  @keyframes art-drift {
    from {
      transform: translateX(calc(var(--travel-drift) * -1));
    }

    to {
      transform: translateX(var(--travel-drift));
    }
  }

  @keyframes art-spin {
    to {
      transform: rotate(1turn);
    }
  }

  @keyframes lamp-pulse {
    to {
      opacity: 0.45;
    }
  }

  @keyframes firefly {
    from {
      opacity: 0.2;
      transform: translate(0, 0);
    }

    to {
      opacity: 0.85;
      transform: translate(var(--space-s), calc(var(--space-m) * -1));
    }
  }
}

@supports (clip-path: shape(from 0 0, line to 100% 0)) {
  @layer tokens {
    :root {
      --shape-twinkle: shape(
        from 50% 0%,
        curve to 100% 50% with 56% 44%,
        curve to 50% 100% with 56% 56%,
        curve to 0% 50% with 44% 56%,
        curve to 50% 0% with 44% 44%,
        close
      );
      --shape-kidney: shape(
        from 25% 8%,
        curve to 88% 14% with 55% 0%,
        curve to 86% 88% with 104% 50%,
        curve to 18% 90% with 52% 104%,
        curve to 34% 50% with 2% 74%,
        curve to 25% 8% with 50% 30%,
        close
      );
    }
  }

  @layer components {
    .promo[data-blob="kidney"]::before {
      border-radius: 0;
      clip-path: var(--shape-kidney);
    }
  }
}

@supports (corner-shape: bevel) and (corner-shape: scoop) and (corner-shape: notch) {
  @layer components {
    .card:is([data-sign="bevel"], [data-sign="keystone"], [data-sign="hexagon"]) {
      corner-shape: bevel;
      border-radius: var(--radius-bevel);
    }

    .card[data-sign="scoop"] {
      corner-shape: scoop;
      border-radius: var(--radius-scoop);
    }

    .card[data-sign="notch"] {
      corner-shape: notch;
      border-radius: var(--radius-notch);
    }

    .faq :where(details),
    .booking :where(.choice, .field input) {
      corner-shape: bevel;
      border-radius: var(--radius-m);
    }

    .elevator {
      corner-shape: round round bevel bevel;
    }

    .board {
      corner-shape: bevel;
      border-radius: var(--radius-bevel);
    }

    .day :where(time) {
      corner-shape: bevel;
      border-radius: var(--radius-s);
    }

    .pass {
      corner-shape: scoop;
      border-radius: var(--radius-scoop);
    }
  }
}

@supports (border-shape: shape(from 0 0, line to 100% 0, line to 0 100%, close)) {
  @layer components {
    .card[data-sign="keystone"] {
      padding-inline: calc(var(--space-l) + 7%);
      border-radius: 0;
      corner-shape: round;
      border-shape: shape(
        from 0% 5%,
        curve to 100% 5% with 50% -5%,
        line to 93% 100%,
        line to 7% 100%,
        close
      );
    }

    .card[data-sign="hexagon"] {
      border-radius: 0;
      corner-shape: round;
      border-shape: shape(
        from 4% 0%,
        line to 96% 0%,
        curve to 96% 100% with 100% 50%,
        line to 4% 100%,
        curve to 4% 0% with 0% 50%,
        close
      );
    }
  }
}

@supports (animation-timeline: view()) {
  @layer tokens {
    @property --needle {
      syntax: "<angle>";
      inherits: true;
      initial-value: -90deg;
    }

    @property --floor-label {
      syntax: "*";
      inherits: true;
    }
  }

  @layer layout {
    main {
      timeline-scope: --floor-1, --floor-2, --floor-3, --floor-4, --floor-5, --floor-6;
    }

    [data-floor] {
      view-timeline-axis: block;
      view-timeline-inset: 50%;
    }

    [data-floor="1"] {
      view-timeline-name: --floor-1;
    }

    [data-floor="2"] {
      view-timeline-name: --floor-2;
    }

    [data-floor="3"] {
      view-timeline-name: --floor-3;
    }

    [data-floor="4"] {
      view-timeline-name: --floor-4;
    }

    [data-floor="5"] {
      view-timeline-name: --floor-5;
    }

    [data-floor="6"] {
      view-timeline-name: --floor-6;
    }
  }

  @layer components {
    .elevator {
      animation-name: floor-1, floor-2, floor-3, floor-4, floor-5, floor-6;
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: none;
      animation-timeline: --floor-1, --floor-2, --floor-3, --floor-4, --floor-5, --floor-6;

      & :where(.readout) {
        display: block;
        margin-block: calc(var(--space-s) * -1) var(--space-s);
        padding: var(--space-3xs) var(--space-2xs);
        border-radius: 0 0 var(--radius-s) var(--radius-s);
        background: var(--color-display-bg);
        color: var(--color-coral);
        font-family: var(--font-mono);
        font-size: var(--text-xs);
        font-weight: var(--weight-bold);
        letter-spacing: var(--tracking-wide);
        text-align: center;
        text-transform: uppercase;
      }

      & :where(.title) {
        border-end-start-radius: 0;
        border-end-end-radius: 0;
      }

      & :where(.readout)::before {
        content: var(--floor-label, "Standing by");
      }

      & :where(.key) {
        animation: floor-lit auto linear none;
      }

      & :where(li:nth-child(1) .key) {
        animation-timeline: --floor-1;
      }

      & :where(li:nth-child(2) .key) {
        animation-timeline: --floor-2;
      }

      & :where(li:nth-child(3) .key) {
        animation-timeline: --floor-3;
      }

      & :where(li:nth-child(4) .key) {
        animation-timeline: --floor-4;
      }

      & :where(li:nth-child(5) .key) {
        animation-timeline: --floor-5;
      }

      & :where(li:nth-child(6) .key) {
        animation-timeline: --floor-6;
      }
    }

    @keyframes floor-1 {
      from,
      to {
        --needle: -75deg;
        --floor-label: "1 · Welcome Deck";
      }
    }

    @keyframes floor-2 {
      from,
      to {
        --needle: -45deg;
        --floor-label: "2 · Sky Lanes";
      }
    }

    @keyframes floor-3 {
      from,
      to {
        --needle: -15deg;
        --floor-label: "3 · Home";
      }
    }

    @keyframes floor-4 {
      from,
      to {
        --needle: 15deg;
        --floor-label: "4 · Work";
      }
    }

    @keyframes floor-5 {
      from,
      to {
        --needle: 45deg;
        --floor-label: "5 · Leisure";
      }
    }

    @keyframes floor-6 {
      from,
      to {
        --needle: 75deg;
        --floor-label: "S · The Surface";
      }
    }

    @keyframes floor-lit {
      from,
      to {
        background: var(--color-key-lit);
        box-shadow: 0 0 var(--space-s) var(--color-key-lit);
      }
    }
  }
}

@layer utilities {
  .eyebrow {
    color: var(--color-accent-warm);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
  }

  .lede {
    color: var(--color-text-muted);
    font-size: var(--text-l);
    line-height: var(--leading-snug);
  }

  .visually-hidden {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@layer overrides {
  @media (prefers-contrast: more) {
    :root {
      --color-line: var(--color-line-strong);
      --color-text-muted: var(--color-text);
    }
  }

  @media (forced-colors: active) {
    .push,
    .button,
    .elevator,
    .gag {
      border-color: ButtonText;
    }

    .mark::before,
    .gag :where(.seal),
    .steps > li::before {
      background: CanvasText;
    }
  }

  @media print {
    .site-nav,
    .status,
    .elevator,
    .fireflies,
    .push,
    .gag {
      display: none;
    }

    .card,
    .board,
    .pass {
      break-inside: avoid;
      box-shadow: none;
    }
  }
}
