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

@font-face {
  font-family: "BioRhyme";
  src: url("assets/fonts/BioRhyme-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BioRhyme";
  src: url("assets/fonts/BioRhyme-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BioRhyme";
  src: url("assets/fonts/BioRhyme-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mukta";
  src: url("assets/fonts/Mukta-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mukta";
  src: url("assets/fonts/Mukta-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; padding: 0; }
  html, body { height: 100%; }
  html { -webkit-text-size-adjust: 100%; tab-size: 4; }
  body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
  img, picture, video, canvas, svg { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; color: inherit; }
  p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
  a { color: inherit; text-decoration: none; }
  ul, ol { list-style: none; }
}

@layer tokens {
  :root {
    /* colours */
    --color-red: #e4023a;
    --color-red-deep: #b8002e;
    --color-yellow: #ffee00;
    --color-yellow-warm: #ffd60a;
    --color-paper: #fdfaf3;
    --color-paper-warm: #f5ecd6;
    --color-ink: #111111;
    --color-muted: #5a5550;
    --color-tape: rgb(255 238 0 / 0.55);

    /* fonts */
    --font-display: "BioRhyme", Georgia, serif;
    --font-body: "Mukta", -apple-system, "Segoe UI", Roboto, sans-serif;

    /* type scale (fluid) */
    --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
    --step-2: clamp(1.375rem, 1.2rem + 0.85vw, 1.875rem);
    --step-3: clamp(1.75rem, 1.4rem + 1.7vw, 2.75rem);
    --step-4: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
    --step-5: clamp(1.875rem, 1rem + 4vw, 5.5rem);

    /* spacing */
    --space-3xs: 0.25rem;
    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-s: 1rem;
    --space-m: 1.5rem;
    --space-l: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* layout */
    --container-narrow: 38rem;
    --container-default: 64rem;
    --container-wide: 80rem;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-cloud: 60% 40% 55% 45% / 50% 60% 40% 50%;

    /* paper grain — tiny SVG noise data URL */
    --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");

    /* striped marquee */
    --stripes: repeating-linear-gradient(
      135deg,
      var(--color-red) 0 18px,
      var(--color-yellow) 18px 36px
    );
  }
}

@layer base {
  html, body {
    overflow-x: clip;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--space-m);
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
  }

  body {
    font-family: var(--font-body);
    font-size: var(--step-0);
    color: var(--color-ink);
    background: var(--color-paper);
    line-height: 1.55;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--color-ink);
  }

  h1 { font-size: var(--step-5); }
  h2 { font-size: var(--step-3); }
  h3 { font-size: var(--step-2); }
  h4 { font-size: var(--step-1); font-weight: 600; }

  p { max-width: 60ch; }

  a {
    color: var(--color-red);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;

    &:hover { color: var(--color-red-deep); }

    &:focus-visible {
      outline: 2px solid var(--color-red);
      outline-offset: 3px;
      border-radius: 2px;
    }
  }

  :focus-visible {
    outline: 2px solid var(--color-red);
    outline-offset: 3px;
    border-radius: 2px;
  }

  .sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
}

@layer components {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-s) var(--space-m);
    padding-block: var(--space-m);
    padding-inline: max(var(--space-l), calc((100% - var(--container-wide)) / 2));
    position: relative;
    z-index: 2;
    background: var(--color-yellow);
  }

  .site-header__logo {
    display: inline-block;

    & img {
      width: clamp(140px, 18vw, 220px);
      height: auto;
    }
  }

  /* Hamburger toggle — only shown on mobile, only after JS reveals it */
  .site-header__menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-inline-start: auto;
    padding: 0;
    background: var(--color-paper);
    color: var(--color-ink);
    border: 2px solid var(--color-ink);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    z-index: 110;
    transition: background 0.18s ease, transform 0.18s ease;

    &:hover { transform: rotate(-4deg); }

    &[hidden] { display: none; }

    @media (min-width: 900px) {
      display: none;
    }
  }

  .hamburger,
  .hamburger::before,
  .hamburger::after {
    content: "";
    display: block;
    background: var(--color-ink);
    height: 3px;
    width: 22px;
    border-radius: 3px;
    transition: transform ease-in-out 350ms, opacity ease-in-out 350ms;
  }
  .hamburger::before { transform: translateY(-7px); }
  .hamburger::after  { transform: translateY(4px); }

  [aria-expanded="true"] .hamburger { transform: rotate(45deg); }
  [aria-expanded="true"] .hamburger::before { opacity: 0; }
  [aria-expanded="true"] .hamburger::after  { transform: translateY(-3px) rotate(-90deg); }

  /* Menu container — children flow into header on desktop, becomes drawer on mobile */
  .site-header__menu {
    display: contents;
  }

  /* Inline nav links — desktop default, mobile fallback when JS not loaded */
  .site-header__nav {
    & ul {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: var(--space-xs) var(--space-m);
    }

    & a {
      display: inline-block;
      font-family: var(--font-display);
      font-style: italic;
      font-weight: 600;
      font-size: var(--step-0);
      color: var(--color-ink);
      text-decoration: none;
      padding: 0.25em 0.55em;
      border-radius: 4px;
      transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    }

    & a:hover {
      background: var(--color-red);
      color: var(--color-paper);
      transform: rotate(-1.5deg);
    }

    & a:focus-visible {
      background: var(--color-red);
      color: var(--color-paper);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .site-header__menu-toggle:hover,
    .site-header__nav a:hover { transform: none; }
  }

  /* Mobile drawer — only when JS sets data-state */
  @media (max-width: 899.98px) {
    .site-header__menu[data-state] {
      display: block;
      position: fixed;
      inset: 0;
      z-index: 100;
      background: var(--color-red);
      color: var(--color-paper);
      overflow-y: auto;
      padding: calc(var(--space-2xl) + 1rem) var(--space-l) var(--space-xl);
    }

    .site-header__menu[data-state="closed"] { display: none; }

    .site-header__menu[data-state="opened"] {
      animation: navClipOpen 600ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
    .site-header__menu[data-state="closing"] {
      animation: navClipClose 500ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .site-header__menu[data-state] .site-header__nav ul {
      flex-direction: column;
      align-items: center;
      gap: var(--space-m);
      margin-block-end: var(--space-xl);
    }

    .site-header__menu[data-state] .site-header__nav a {
      font-size: var(--step-2);
      font-weight: 800;
      font-style: normal;
      color: var(--color-paper);
      padding: 0.15em 0.4em;
    }

    .site-header__menu[data-state] .site-header__nav a:hover,
    .site-header__menu[data-state] .site-header__nav a:focus-visible {
      background: var(--color-yellow);
      color: var(--color-ink);
    }

    .site-header__menu[data-state] .site-header__social {
      justify-content: center;
      gap: var(--space-s);
      padding-block-start: var(--space-l);
      border-block-start: 2px dashed color-mix(in oklch, var(--color-yellow) 50%, transparent);
    }

    .site-header__menu[data-state] .site-header__social a {
      color: var(--color-paper);
      border-color: var(--color-paper);
      width: 52px;
      height: 52px;
    }

    .site-header__menu[data-state] .site-header__social a:hover {
      background: var(--color-yellow);
      color: var(--color-ink);
      border-color: var(--color-ink);
    }
  }

  @keyframes navClipOpen {
    from { clip-path: circle(0% at calc(100% - 2.25rem) 2.25rem); }
    to   { clip-path: circle(140% at calc(100% - 2.25rem) 2.25rem); }
  }
  @keyframes navClipClose {
    from { clip-path: circle(140% at calc(100% - 2.25rem) 2.25rem); }
    to   { clip-path: circle(0% at calc(100% - 2.25rem) 2.25rem); }
  }

  @media (prefers-reduced-motion: reduce) {
    .site-header__menu[data-state="opened"],
    .site-header__menu[data-state="closing"] {
      animation: none;
    }
  }

  .site-header__social {
    display: flex;
    gap: var(--space-2xs);

    & a {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      color: var(--color-ink);
      background: transparent;
      border: 2px solid transparent;
      text-decoration: none;
      transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    }

    & svg {
      width: 22px;
      height: 22px;
    }

    & a:hover {
      background: var(--color-red);
      color: var(--color-paper);
      border-color: var(--color-ink);
      transform: rotate(-4deg);
    }
  }

  /* ------------------------------------------------------------- HERO -- */
  .hero {
    position: relative;
    padding: var(--space-l) var(--space-m) var(--space-2xl);
    background:
      radial-gradient(ellipse at 50% -5%, color-mix(in oklch, var(--color-red) 22%, transparent), transparent 55%),
      radial-gradient(ellipse at 50% 100%, color-mix(in oklch, var(--color-yellow) 18%, transparent), transparent 60%);
    overflow: hidden;

    @media (min-width: 640px) {
      padding: var(--space-xl) var(--space-l) var(--space-2xl);
    }
  }

  .hero__bulbs {
    position: absolute;
    inset: 0 0 auto 0;
    height: 32px;
    background:
      radial-gradient(circle at 18px 16px, var(--color-yellow) 6px, color-mix(in oklch, var(--color-red) 80%, var(--color-yellow)) 7px, transparent 8px) 0 0 / 36px 32px repeat-x;
    filter: drop-shadow(0 1px 0 rgb(0 0 0 / 0.35));
    pointer-events: none;
    border-bottom: 1.5px solid color-mix(in oklch, var(--color-ink) 45%, transparent);
  }

  .hero__inner {
    position: relative;
    max-width: var(--container-wide);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-m);
    padding-block-start: var(--space-xl);

    @media (min-width: 768px) {
      grid-template-columns: 1.55fr 1fr;
      grid-template-rows: auto auto auto;
      column-gap: var(--space-xl);
      row-gap: var(--space-l);
      align-content: center;
    }
  }

  .hero__kicker {
    grid-column: 1;
    justify-self: start;
    align-self: end;
    margin-bottom: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(0.85rem, 0.78rem + 0.3vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--color-red);

    & span {
      color: var(--color-yellow-warm);
      -webkit-text-stroke: 1px var(--color-ink);
      paint-order: stroke fill;
      margin-inline: 0.4em;
    }
  }

  .hero__heading {
    font-size: var(--step-5);
    font-weight: 800;
    line-height: 0.96;
    max-width: min(14ch, 100%);
    color: var(--color-ink);
    -webkit-hyphens: auto;
    hyphens: auto;
    letter-spacing: -0.02em;
  }

  .hero__highlight {
    position: relative;
    display: inline-block;
    color: var(--color-ink);
    padding: 0.04em 0.28em 0.08em;
    background: var(--color-yellow);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    isolation: isolate;

    @media (min-width: 768px) {
      transform: rotate(-1.6deg);
      box-shadow:
        4px 4px 0 var(--color-ink),
        8px 8px 0 var(--color-red);
      border: 2px solid var(--color-ink);
    }
  }

  .hero__lede {
    grid-column: 1;
    max-width: 38ch;
    font-size: var(--step-1);
    color: var(--color-muted);
    line-height: 1.55;
    align-self: start;
    margin-block-start: var(--space-s);
  }

  .hero__polaroid {
    position: relative;
    justify-self: center;
    background: white;
    padding: 14px 14px 56px;
    box-shadow:
      0 1px 0 rgb(255 255 255 / 0.6) inset,
      6px 8px 18px rgb(0 0 0 / 0.18),
      18px 22px 0 -10px color-mix(in oklch, var(--color-red) 70%, transparent);
    transform: rotate(-3.5deg);
    width: min(280px, 70vw);

    & img {
      width: 100%;
      height: auto;
      aspect-ratio: 4 / 5;
      object-fit: cover;
      background: #ddd;
      filter: contrast(1.02) saturate(1.05);
    }

    @media (min-width: 768px) {
      grid-row: 1 / span 3;
      grid-column: 2;
      align-self: center;
      justify-self: end;
      transform: rotate(-3.5deg);
    }
  }

  .hero__polaroid-tape {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    width: 96px;
    height: 22px;
    background: var(--color-tape);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
    z-index: 2;
  }

  .hero__polaroid-caption {
    position: absolute;
    inset-inline: 0;
    bottom: 18px;
    text-align: center;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    color: var(--color-ink);
    /* hand-written marker feel */
    text-shadow: 0 1px 0 rgb(255 255 255 / 0.7);
  }

  .hero__sparkle {
    position: absolute;
    color: var(--color-yellow);
    filter: drop-shadow(2px 2px 0 var(--color-ink));
    pointer-events: none;
    animation: twinkle 4.6s ease-in-out infinite;
    transform-origin: 50% 50%;
  }
  .hero__sparkle--1 { top: 4%;  left: 50%; transform: rotate(15deg);  animation-delay: 0s; }
  .hero__sparkle--2 { top: 18%; right: 4%; transform: rotate(-12deg); animation-delay: 0.6s; }
  .hero__sparkle--3 { bottom: 18%; left: 2%; transform: rotate(20deg); animation-delay: 1.2s; }
  .hero__sparkle--4 { top: 58%; left: 38%; transform: rotate(-25deg); animation-delay: 1.8s; }
  .hero__sparkle--5 { bottom: 6%; right: 28%; transform: rotate(8deg); animation-delay: 2.4s; }

  @keyframes twinkle {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1; }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero__highlight,
    .hero__polaroid,
    .hero__sparkle,
    .hero__kicker { transform: none !important; animation: none !important; }
  }

  /* ----------------------------------------------------------- HOURS --- */
  .hours {
    position: relative;
    padding: var(--space-2xl) var(--space-l) var(--space-xl);
    overflow: hidden;
    background:
      radial-gradient(circle at 50% 0%, color-mix(in oklch, var(--color-yellow) 28%, transparent), transparent 55%),
      var(--color-paper);
  }

  .hours__halftone {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, color-mix(in oklch, var(--color-yellow-warm) 50%, transparent) 1.5px, transparent 2px);
    background-size: 22px 22px;
    pointer-events: none;
    opacity: 0.55;
  }

  .hours__inner {
    position: relative;
    max-width: var(--container-wide);
    margin-inline: auto;
  }

  .hours__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-s);
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--color-red);
    margin-bottom: var(--space-2xs);
    text-align: center;
  }

  .hours__heading-orn {
    color: var(--color-yellow-warm);
    font-size: 0.55em;
    -webkit-text-stroke: 1.5px var(--color-ink);
    paint-order: stroke fill;
  }

  .hours__heading-text {
    padding-inline: 0.15em;
  }

  .hours__sub {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: var(--step-1);
    color: var(--color-muted);
    text-align: center;
    margin-bottom: var(--space-xl);
    max-width: 32ch;
    margin-inline: auto;
  }

  .hours__clouds {
    display: grid;
    gap: var(--space-xl) var(--space-l);
    grid-template-columns: 1fr;

    @media (min-width: 768px) {
      grid-template-columns: repeat(3, 1fr);
      gap: var(--space-l) var(--space-m);
      padding-block: var(--space-m);
    }
  }

  .cloud {
    position: relative;
    background: var(--color-yellow);
    border-radius: var(--radius-cloud);
    padding: var(--space-xl) var(--space-m) var(--space-l);
    text-align: center;
    color: var(--color-ink);
    box-shadow:
      inset 0 -8px 0 color-mix(in oklch, var(--color-yellow-warm) 80%, transparent),
      8px 10px 0 -2px color-mix(in oklch, var(--color-ink) 9%, transparent);
  }

  .cloud--1 { transform: rotate(-2deg); }
  .cloud--2 { transform: rotate(1deg); }
  .cloud--3 { transform: rotate(-1.5deg); }

  .cloud__tape {
    position: absolute;
    top: -14px;
    left: 50%;
    width: 96px;
    height: 22px;
    background: var(--color-tape);
    transform: translateX(-50%) rotate(-4deg);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
    pointer-events: none;
  }

  /* speech-bubble tails — three-circle cluster below each cloud */
  .cloud__tail {
    position: absolute;
    bottom: -28px;
    width: 36px;
    height: 36px;
    pointer-events: none;
    background:
      radial-gradient(circle 10px at 50% 50%, var(--color-yellow) 96%, transparent 100%),
      radial-gradient(circle 6px at 0% 100%, var(--color-yellow) 96%, transparent 100%),
      radial-gradient(circle 4px at -40% 130%, var(--color-yellow) 96%, transparent 100%);
  }

  .cloud--1 .cloud__tail { left: 22%; transform: rotate(-8deg); }
  .cloud--2 .cloud__tail { left: 60%; transform: scaleX(-1) rotate(-4deg); }
  .cloud--3 .cloud__tail { left: 35%; transform: rotate(6deg); }

  .cloud__title {
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--space-s);
    color: var(--color-red);

    & em {
      display: block;
      font-style: italic;
      font-weight: 600;
      font-size: 1.15em;
      color: var(--color-ink);
      margin-block-start: 0.1em;
    }
  }

  .cloud__time {
    font-size: var(--step-2);
    font-weight: 800;
    font-family: var(--font-display);
    margin-bottom: var(--space-s);
    line-height: 1.1;
  }

  .cloud__addr {
    font-size: var(--step-0);
    line-height: 1.4;

    & span {
      display: block;
      color: var(--color-muted);
      font-size: 0.92em;
      font-style: italic;
      margin-top: 2px;
    }
  }

  /* The "muina aikoina" cloud — its body text IS the key info, treat like the time slot */
  .cloud__note {
    font-family: var(--font-display);
    font-size: var(--step-0);
    font-weight: 600;
    line-height: 1.35;
    margin-top: var(--space-2xs);

    & strong {
      display: inline-block;
      background: var(--color-red);
      color: var(--color-yellow);
      font-weight: 800;
      padding: 0.05em 0.35em;
      transform: rotate(-1deg);
      box-shadow: 2px 2px 0 var(--color-ink);
      white-space: nowrap;
      margin-block-start: 0.1em;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .cloud__note strong { transform: none !important; }
  }

  /* ---------------------------------------------------------- WELCOME -- */
  .welcome {
    position: relative;
    padding: var(--space-xl) var(--space-s);
    background: var(--color-paper);

    @media (min-width: 640px) {
      padding: var(--space-2xl) var(--space-l);
    }
  }

  .welcome__inner {
    max-width: calc(var(--container-narrow) + 6rem);
    margin-inline: auto;
    position: relative;
    background: white;
    padding: clamp(1.5rem, 1rem + 3vw, 3.5rem) clamp(1.25rem, 0.75rem + 3vw, 3.5rem);
    border: 2px solid var(--color-ink);
    box-shadow:
      6px 6px 0 var(--color-ink),
      14px 14px 0 -2px color-mix(in oklch, var(--color-yellow) 90%, transparent);
    transform: rotate(-0.4deg);

    @media (min-width: 640px) {
      box-shadow:
        8px 8px 0 var(--color-ink),
        18px 18px 0 -2px color-mix(in oklch, var(--color-yellow) 90%, transparent);
    }
  }

  .welcome__tape {
    position: absolute;
    width: 110px;
    height: 26px;
    background: var(--color-tape);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.15);
    pointer-events: none;
    z-index: 2;
  }

  .welcome__tape--l {
    top: -14px;
    left: -28px;
    transform: rotate(-22deg);
  }

  .welcome__tape--r {
    top: -14px;
    right: -28px;
    transform: rotate(22deg);
  }

  @media (prefers-reduced-motion: reduce) {
    .welcome__inner,
    .welcome__tape { transform: none !important; }
  }

  .welcome__heading {
    font-size: var(--step-3);
    color: var(--color-red);
    margin-bottom: var(--space-l);
    text-align: center;
    line-height: 1.05;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
    -webkit-text-stroke: 0;

    &::before, &::after {
      content: "";
      display: block;
      width: 64px;
      height: 12px;
      margin-inline: auto;
      background:
        radial-gradient(circle 2.5px at 12px 6px, var(--color-red) 96%, transparent 100%),
        radial-gradient(circle 4px at 32px 6px, var(--color-red) 96%, transparent 100%),
        radial-gradient(circle 2.5px at 52px 6px, var(--color-red) 96%, transparent 100%);
      opacity: 0.85;
    }

    &::before { margin-bottom: var(--space-s); }
    &::after  { margin-top: var(--space-s); }
  }

  .welcome__prose {
    display: grid;
    gap: var(--space-m);
    font-size: var(--step-0);
    line-height: 1.7;

    & p { max-width: none; }
  }

  .welcome__intro::first-letter {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3.6em;
    line-height: 0.85;
    float: inline-start;
    margin-inline-end: 0.12em;
    margin-block-start: 0.08em;
    color: var(--color-red);
    padding-inline-end: 0.05em;
  }

  .welcome__divider {
    display: flex;
    align-items: center;
    gap: var(--space-m);
    margin-block: var(--space-2xs);
    color: var(--color-yellow-warm);
  }

  .welcome__divider-line {
    flex: 1;
    height: 0;
    border-block-start: 1px dashed color-mix(in oklch, var(--color-ink) 22%, transparent);
  }

  .welcome__divider-mark {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.4em;
    color: var(--color-red);
  }

  /* ----------------------------------------------------------- BRANDS -- */
  .brands {
    position: relative;
    padding: var(--space-2xl) var(--space-l) var(--space-2xl);
    background:
      var(--grain),
      color-mix(in oklch, var(--color-yellow) 20%, var(--color-paper-warm));
    border-block: 3px double var(--color-ink);
  }

  .brands__inner {
    max-width: var(--container-default);
    margin-inline: auto;
    text-align: center;
  }

  .brands__kicker {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: var(--step-0);
    color: var(--color-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: var(--space-2xs);
    margin-inline: auto;
    max-width: none;
  }

  .brands__heading {
    font-size: var(--step-3);
    color: var(--color-red);
    margin-bottom: var(--space-l);
  }

  .brands__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-s) var(--space-m);
    justify-content: center;
    margin-bottom: var(--space-l);
  }

  /* TICKET STUB — split chip with perforation between the No. and the brand name */
  .ticket {
    display: inline-flex;
    align-items: stretch;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-ink);
    border: 2px solid var(--color-ink);
    border-radius: 6px;
    background: var(--color-paper);
    box-shadow: 4px 4px 0 var(--color-ink);
    overflow: hidden;
    position: relative;
    isolation: isolate;
  }

  .ticket:nth-child(3n)   { transform: rotate(-1.2deg); }
  .ticket:nth-child(3n+1) { transform: rotate(0.8deg); }
  .ticket:nth-child(3n+2) { transform: rotate(-0.4deg); }

  .ticket__no {
    background: var(--color-ink);
    color: var(--color-yellow);
    padding: 0.45em 0.7em;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
    display: grid;
    place-items: center;
    position: relative;

    /* perforation right edge — tiny holes */
    &::after {
      content: "";
      position: absolute;
      top: 0; bottom: 0; right: -1px;
      width: 2px;
      background-image: radial-gradient(circle 1.5px at 50% 50%, var(--color-paper) 96%, transparent 100%);
      background-size: 4px 5px;
      background-repeat: repeat-y;
    }
  }

  .ticket__name {
    padding: 0.45em 0.95em;
    font-size: var(--step-0);
    background: var(--color-paper);
    border-inline-start: 1px dashed color-mix(in oklch, var(--color-ink) 35%, transparent);
  }

  .brands__note {
    font-size: var(--step-0);
    max-width: 50ch;
    margin-inline: auto;
    color: var(--color-muted);
    font-style: italic;
  }

  /* ---------------------------------------------------------- CONTACT -- */
  /* Outer wrap = paper, so the inner red panel reads as a poster pinned to the page */
  .contact {
    position: relative;
    background: var(--color-paper);
    color: var(--color-paper);
    padding: var(--space-xl) var(--space-s);
    isolation: isolate;

    @media (min-width: 640px) {
      padding: var(--space-2xl) var(--space-l);
    }
  }

  .contact__cloud-edge { display: none; }

  /* Striped trim along the very top of the red poster, inside its border */
  .contact__marquee {
    position: absolute;
    top: 0;
    left: 0; right: 0;
    height: 12px;
    background: var(--stripes);
    border-bottom: 2px solid var(--color-ink);
    pointer-events: none;
    z-index: 1;
  }

  .contact__inner {
    max-width: var(--container-default);
    margin-inline: auto;
    text-align: center;
    position: relative;
    z-index: 2;
    background: var(--color-red);
    padding: var(--space-xl) var(--space-s);
    border: 3px solid var(--color-ink);
    box-shadow:
      6px 6px 0 var(--color-ink),
      14px 14px 0 -2px color-mix(in oklch, var(--color-yellow) 95%, transparent);
    transform: rotate(-0.5deg);
    overflow: hidden;

    @media (min-width: 640px) {
      padding: var(--space-2xl) var(--space-l);
      box-shadow:
        10px 10px 0 var(--color-ink),
        22px 22px 0 -3px color-mix(in oklch, var(--color-yellow) 95%, transparent);
    }
  }

  .contact__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grain);
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
  }

  /* a ring of bulb-lights around the heading */
  .contact__bulbs {
    width: min(720px, 100%);
    height: 18px;
    margin: 0 auto var(--space-m);
    background:
      radial-gradient(circle 5px at 14px 50%, var(--color-yellow) 96%, transparent 100%) 0 0 / 28px 18px repeat-x;
    filter: drop-shadow(0 1px 0 rgb(0 0 0 / 0.25));
    opacity: 0.95;
  }

  .contact__heading {
    font-size: var(--step-3);
    color: var(--color-paper);
    margin-bottom: var(--space-m);
    max-width: 22ch;
    margin-inline: auto;
    line-height: 1.05;
    text-shadow: 3px 3px 0 var(--color-ink);
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .contact__lede {
    max-width: 50ch;
    margin: 0 auto var(--space-l);
    line-height: 1.65;
    color: color-mix(in oklch, var(--color-paper) 92%, var(--color-yellow));

    & strong {
      color: var(--color-yellow);
      background: var(--color-ink);
      padding: 0.05em 0.35em;
      border-radius: 3px;
      font-family: var(--font-display);
      letter-spacing: 0.04em;
      white-space: nowrap;
    }
  }

  .contact__targets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-s);
    max-width: 720px;
    margin: 0 auto var(--space-l);
  }

  .contact__targets li {
    flex: 1 1 180px;
    max-width: 240px;
  }

  .contact__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-s) var(--space-m);
    background: var(--color-paper);
    color: var(--color-ink);
    border: 2px solid var(--color-ink);
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 4px 4px 0 var(--color-ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    min-height: 48px;
  }

  .contact__btn:hover {
    transform: translate(-1px, -1px) rotate(-1deg);
    box-shadow: 5px 5px 0 var(--color-ink);
    background: var(--color-yellow);
  }

  .contact__btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--color-ink);
  }

  .contact__btn-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--color-red);
  }

  .contact__btn:hover .contact__btn-icon {
    color: var(--color-ink);
  }

  .contact__signoff {
    font-size: var(--step-2);
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--color-paper);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-s) var(--space-m);
    line-height: 1.2;
  }

  /* rubber-stamp hashtag */
  .contact__hashtag {
    display: inline-block;
    margin-left: 0;
    background: transparent;
    color: var(--color-yellow);
    border: 3px solid var(--color-yellow);
    box-shadow: inset 0 0 0 2px var(--color-red);
    padding: 0.18em 0.55em;
    font-family: var(--font-display);
    font-size: clamp(1rem, 0.85rem + 0.6vw, 1.4rem);
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    transform: rotate(-4deg);
    max-width: 100%;
    overflow-wrap: break-word;
    /* roughened edge */
    filter: drop-shadow(1px 1px 0 rgb(0 0 0 / 0.35));
  }

  @media (prefers-reduced-motion: reduce) {
    .contact__inner,
    .contact__btn,
    .contact__hashtag,
    .ticket { transform: none !important; }
  }

  /* ----------------------------------------------------------- FOOTER -- */
  .site-footer {
    position: relative;
    background: var(--color-paper);
    color: var(--color-ink);
    padding: var(--space-xl) var(--space-l) var(--space-m);
  }

  /* pennant garland — alternating red/yellow triangles strung across the top */
  .site-footer__pennants {
    position: absolute;
    inset: -2px 0 auto 0;
    height: 38px;
    display: flex;
    justify-content: space-around;
    padding-inline: var(--space-m);
    pointer-events: none;

    & span {
      position: relative;
      width: 24px;
      height: 100%;
      flex: 0 0 auto;

      &::before {
        content: "";
        position: absolute;
        inset: 0;
        clip-path: polygon(0 0, 100% 0, 50% 100%);
        filter: drop-shadow(1px 1px 0 rgb(0 0 0 / 0.25));
      }
    }

    & span:nth-child(3n+1)::before { background: var(--color-red); }
    & span:nth-child(3n+2)::before { background: var(--color-yellow); }
    & span:nth-child(3n)::before   { background: var(--color-ink); }
  }

  /* string above the pennants */
  .site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 0;
    border-top: 1.5px solid color-mix(in oklch, var(--color-ink) 50%, transparent);
    z-index: 1;
  }

  .site-footer__inner {
    max-width: var(--container-wide);
    margin-inline: auto;
    display: grid;
    gap: var(--space-l);
    grid-template-columns: 1fr;
    position: relative;
    z-index: 1;
    padding-block-start: var(--space-l);

    @media (min-width: 768px) {
      grid-template-columns: auto 1fr;
      align-items: start;
    }
  }

  .site-footer__logo {
    & img {
      width: 150px;
      height: auto;
      transform: rotate(-2deg);
    }
  }

  .site-footer__locations {
    display: grid;
    gap: var(--space-l);

    @media (min-width: 640px) {
      grid-template-columns: 1fr 1fr;
    }

    & h2 {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: var(--step-1);
      color: var(--color-red);
      margin-bottom: var(--space-2xs);
      padding-block-end: var(--space-2xs);
      border-bottom: 2px dashed color-mix(in oklch, var(--color-ink) 25%, transparent);
    }

    & p {
      font-size: 0.95em;
      line-height: 1.55;
      max-width: none;
      color: var(--color-ink);
    }

    & .label {
      font-weight: 600;
      color: var(--color-ink);
      font-family: var(--font-display);
      letter-spacing: 0.02em;
    }
  }

  .site-footer__sub {
    margin-top: var(--space-2xs);
    font-size: 0.88em;
    color: var(--color-muted);
    font-style: italic;
  }

  .site-footer__copy {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.88em;
    color: var(--color-muted);
    border-top: 1px dashed color-mix(in oklch, var(--color-ink) 20%, transparent);
    padding-top: var(--space-m);
    margin-block-start: var(--space-s);
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    max-width: none;
    margin-inline: auto;
    width: 100%;
  }
}

@layer utilities {
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}
