/* ==========================================================================
   Tagay & Toast
   Change the three colors here and everything follows.
   ========================================================================== */

/* Brand typefaces.
   Bristol (headings, nav, drink names; always in capitals, its lowercase is hard to read)
   ships in fonts/ with its SIL Open Font License (fonts/Bristol-LICENSE.txt, keep it there).
   It has a single weight, so the 100 900 range makes the browser use it as-is for bold headings
   instead of smearing on a fake bold.
   Courier Prime (everything else) loads from Google Fonts via the <link> in each page's <head>. */
@font-face {
  font-family: "Bristol";
  src: url("../fonts/Bristol.otf") format("opentype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --black: #0A0A0A;   /* page background */
  --vanilla: #F3E9D2; /* text, icons, outlines */
  --red: #8E0000;     /* FILLS only: buttons, hovers, dividers. Never text on black. */

  --gray: #1A1A1A;    /* placeholder image boxes and the hero video fallback */
  --paper: #FFFFFF;   /* printed-photo border on the About snapshots */
  --tape: rgba(184, 98, 64, 0.55); /* washi tape on the About snapshots (muted terracotta) */
  --receipt: #FBF8F1; /* receipt paper (Party Math bar tab) */

  /* Photo-paper texture for the polaroids and taped snapshots: fine grain + soft blotches. */
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23p%29' opacity='0.16'/%3E%3C/svg%3E");
  --photo-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23g%29'/%3E%3C/svg%3E");
  --photo-grain-strength: 0.45; /* grain on photos marked ph--grain: 0 = off, 0.7 = heavy */
  --paper-mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23p%29' opacity='0.12'/%3E%3C/svg%3E");
  --ink: #1F1B16;     /* receipt ink */

  --grain: 0.13;      /* film grain strength over the whole site: 0 = off, 0.2 = heavy */
  --hero-dim: 0.25;   /* how much the hero video is darkened: 0 = full brightness, 0.5 = dark */

  --font: "Courier Prime", "Courier New", Courier, monospace; /* secondary: body copy, form, buttons */
  --font-display: "Bristol", "Courier Prime", "Courier New", monospace; /* main: headings, nav, drink names */
  --font-hand: "Gochi Hand", "Bradley Hand", "Segoe Print", cursive; /* kid-style captions; letters get a wobble from js/main.js */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max: 72rem;
  --nav-h: 3.9rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

/* Everything set in Bristol, in capitals. Delete text-transform here to go back to lowercase. */
.nav__link,
.section__title,
.page__title,
.cal__title { text-transform: uppercase; }

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

html {
  background: var(--black);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--black);
  color: var(--vanilla);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }

::selection { background: var(--red); color: var(--vanilla); }

:focus-visible {
  outline: 2px solid var(--vanilla);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--red);
  color: var(--vanilla);
}
.skip:focus { top: 1rem; }

/* ---------- Film grain ---------- */
/* A tile of generated noise laid over the entire page, including text and photos, and
   nudged a few times a second so it shimmers like film. Strength is --grain at the top. */

body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 50;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  animation: grain 0.8s steps(1) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -4%); }
  60%  { transform: translate(-4%, -1%); }
  80%  { transform: translate(3%, 3%); }
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- Top nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: var(--black);
  border-bottom: 1px solid var(--red);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* On the home page the nav floats over the hero video, then turns solid once you scroll past it.
   Without JS it simply stays solid. */
.js .nav[data-hero]:not(.is-solid) {
  background: transparent;
  border-bottom-color: transparent;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 0.5rem;
}

/* Small on phones so all six links fit on one line; roomier from 30rem up. */
.nav__link {
  display: block;
  padding: 0.7rem 0.3rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background-color 0.2s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] { background: var(--red); }

/* Book: a filled red button so it stands out from the other links. */
/* Book: outlined so it reads as the button to press, fills red on hover. */
.nav__link--cta {
  margin-left: 0.35rem;
  box-shadow: inset 0 0 0 1px var(--vanilla);
}
.nav__link--cta:hover { background: var(--red); box-shadow: inset 0 0 0 1px var(--red); }

@media (min-width: 30rem) {
  .nav__list { gap: 0.25rem; }
  .nav__link { padding-inline: 0.7rem; font-size: 0.9375rem; }
}
@media (min-width: 48rem) {
  .nav__link { padding-inline: 1.1rem; font-size: 1.0625rem; }
}

/* ---------- Header ---------- */

/* Full-screen autoplay video with the title centered and the social icons pinned to the bottom. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 1rem) var(--gutter) 1.5rem;
  text-align: center;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--gray); /* shows until the video loads, or if it never does */
}

/* Flat dark layer so the title and nav stay readable over any footage. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--black);
  opacity: var(--hero-dim);
}

/* Haze: slightly lower contrast lifts the blacks, a touch more saturation keeps the sunset warm. */
.hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(0.88) saturate(1.2) brightness(1.05);
}

.hero__center {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

.hero__tagline {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
  text-wrap: balance;
}

.hero__logo {
  width: min(45vw, 13rem);
  height: auto;
  margin-inline: auto;
  /* Soft bloom, like light bleeding on film. */
  filter: drop-shadow(0 0 18px rgba(243, 233, 210, 0.35));
}

/* ---------- Social icons ---------- */

.social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}


.social a {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  transition: background-color 0.2s var(--ease);
}
.social a:hover { background: var(--red); }

.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Sections ---------- */

.section { scroll-margin-top: var(--nav-h); }

.section__inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--red);
}

.section__title {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}

/* ---------- About (taped snapshots) ---------- */

.about-intro {
  display: grid;
  gap: clamp(3rem, 7vw, 5rem);
  align-items: center;
}

.about-intro__text p {
  max-width: 38ch;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.5;
}

.snaps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  padding-block: 1.5rem;
}

.snap {
  position: relative;
  flex: 0 1 auto;
  padding: 0.5rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 40%, rgba(120, 95, 60, 0.1)),
    var(--paper-mottle) 0 0 / 320px 320px,
    var(--paper-grain) 0 0 / 180px 180px,
    var(--paper);
  box-shadow:
    inset 0 0 0 1px rgba(90, 70, 40, 0.1),
    inset 0 0 16px rgba(130, 100, 60, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.35);
  rotate: var(--tilt, 0deg);
  transition: rotate 0.35s var(--ease), translate 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.snap:nth-child(1) { --tilt: -4deg; width: min(40%, 15rem); }
.snap:nth-child(2) { --tilt: 3deg;  width: min(52%, 20rem); margin-top: 2rem; }

.snap:hover {
  rotate: 0deg;
  translate: 0 -6px;
  box-shadow:
    inset 0 0 0 1px rgba(90, 70, 40, 0.1),
    inset 0 0 16px rgba(130, 100, 60, 0.16),
    0 18px 34px rgba(0, 0, 0, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.35);
}
.snap::after { inset: 0.5rem; }

.snap img { width: 100%; height: auto; }

/* Washi tape across the top edge. */
.snap::before {
  content: "";
  position: absolute;
  top: -0.8rem;
  left: 50%;
  width: 5.5rem;
  height: 1.6rem;
  translate: -50% 0;
  rotate: -6deg;
  background: var(--tape);
}
.snap:nth-child(2)::before { rotate: 5deg; }

.snap figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2.4rem;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
  text-transform: lowercase;
  color: var(--vanilla);
}

@media (min-width: 56rem) {
  .about-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}

/* ---------- Event polaroids ---------- */
/* A full-width strip. Each polaroid has its own tilt (--tilt) and vertical offset (--drop).
   Tweak the nth-child values below to change how uneven it looks. */

.section__inner--flush { padding-bottom: 0; }

.polaroids {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  padding: 4rem var(--gutter) 6rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}

.polaroid {
  flex: 0 0 clamp(13.5rem, 62vw, 19rem);
  scroll-snap-align: center;
  rotate: var(--tilt, 0deg);
  translate: 0 var(--drop, 0);
}
/* Centers the row when it fits; scrolls when it doesn't. */
.polaroid:first-child { margin-left: auto; }
.polaroid:last-child { margin-right: auto; }

.polaroid:nth-child(1) { --tilt: -4deg;   --drop: 0.5rem; }
.polaroid:nth-child(2) { --tilt: 3deg;    --drop: 2.5rem; }
.polaroid:nth-child(3) { --tilt: -1.5deg; --drop: -1rem; }
.polaroid:nth-child(4) { --tilt: 4deg;    --drop: 3rem; }
.polaroid:nth-child(5) { --tilt: -3deg;   --drop: 0; }

/* Real-photo feel: grainy, slightly blotchy card that's yellowed toward the edges,
   with a layered shadow so it sits on the page. */
.polaroid__frame {
  padding: 0.9rem 0.9rem 0;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 40%, rgba(120, 88, 45, 0.14)),
    var(--paper-mottle) 0 0 / 320px 320px,
    var(--paper-grain) 0 0 / 180px 180px,
    var(--vanilla);
  color: var(--black);
  box-shadow:
    inset 0 0 0 1px rgba(90, 70, 40, 0.12),
    inset 0 0 26px rgba(130, 98, 55, 0.22),
    0 1px 1px rgba(0, 0, 0, 0.4),
    0 8px 14px rgba(0, 0, 0, 0.35),
    0 20px 34px rgba(0, 0, 0, 0.3);
  transition: rotate 0.35s var(--ease), scale 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

/* Hover cancels the tilt, so the polaroid straightens up and lifts. */
.polaroid:hover .polaroid__frame {
  rotate: calc(var(--tilt, 0deg) * -1);
  scale: 1.03;
  box-shadow:
    inset 0 0 0 1px rgba(90, 70, 40, 0.12),
    inset 0 0 26px rgba(130, 98, 55, 0.22),
    0 2px 2px rgba(0, 0, 0, 0.35),
    0 14px 22px rgba(0, 0, 0, 0.35),
    0 30px 48px rgba(0, 0, 0, 0.35);
}

.polaroid .ph { border: 0; }

/* The photo sits slightly recessed in the card, with a faint gloss. Stays on top of a real <img>. */
.polaroid .ph::after,
.snap::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 35%);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.polaroid .ph::after { inset: 0; }

/* Film grain on a photo: add class ph--grain to its .ph box. */
.ph--grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--photo-grain) 0 0 / 160px 160px;
  mix-blend-mode: overlay;
  opacity: var(--photo-grain-strength);
}

/* Events: every polaroid visible at once, no sideways scrolling.
   2 across on phones (last one centred), 5 across from 48rem up. */
.polaroids--grid {
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem 1rem;
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  margin-inline: auto;
  padding: 2rem var(--gutter) 4rem;
  overflow: visible;
}
.polaroids--grid .polaroid {
  flex: 0 0 calc(50% - 0.5rem);
  margin: 0;
  translate: 0 calc(var(--drop, 0) * 0.4);
}
.polaroids--grid .polaroid__frame { padding: 0.55rem 0.55rem 0; }
.polaroids--grid .polaroid figcaption {
  min-height: 3.4rem;
  padding: 0.35rem 0.15rem 0.45rem;
  font-size: clamp(1rem, 4vw, 1.3rem);
}
@media (min-width: 48rem) {
  .polaroids--grid { gap: 1.25rem; padding-top: 3rem; }
  .polaroids--grid .polaroid {
    flex-basis: calc((100% - 4 * 1.25rem) / 5);
    translate: 0 calc(var(--drop, 0) * 0.6);
  }
  .polaroids--grid .polaroid figcaption { font-size: clamp(1rem, 1.6vw, 1.35rem); }

  /* Drinks: three across, a bit bigger since there are fewer. */
  .polaroids--three { gap: 2.5rem; }
  .polaroids--three .polaroid { flex-basis: min(17rem, calc((100% - 2 * 2.5rem) / 3)); }
  .polaroids--three .polaroid figcaption { font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
}

/* Descriptions under grid polaroids: a touch smaller on phones. */
.polaroids--grid .polaroid__desc { margin-top: 0.8rem; font-size: 0.8125rem; }
@media (min-width: 48rem) { .polaroids--grid .polaroid__desc { font-size: 0.875rem; } }

/* Description under a polaroid (Drinks). It stays level even though the polaroid tilts. */
.polaroid__desc {
  max-width: 30ch;
  margin: 1.1rem auto 0;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  rotate: calc(var(--tilt, 0deg) * -1);
}

.polaroid figcaption {
  display: grid;
  place-items: center;
  min-height: 5rem;
  padding: 0.5rem 0.25rem;
  font-family: var(--font-hand);
  font-size: 1.65rem;
  line-height: 1.1;
  text-align: center;
}

/* Messy handwriting: js/main.js splits captions into letters and gives each a small
   fixed tilt, bounce and size change (--r, --y, --s). */
.wobble__word { display: inline-block; white-space: nowrap; }
.wobble__letter {
  display: inline-block;
  rotate: var(--r, 0deg);
  translate: 0 var(--y, 0);
  scale: var(--s, 1);
}

/* ---------- Placeholder boxes ---------- */

.ph {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--gray);
  border: 1px solid var(--vanilla);
}
.ph--square { aspect-ratio: 1 / 1; }

/* Drop a real <img> or <iframe> inside a .ph box and it fills it. */
.ph img,
.ph iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

/* ---------- Grids ---------- */

/* ---------- Printed receipt paper (Party Math bar tab) ---------- */

/* The wrapper carries the shadow and tilt so the shadow follows the torn edges. */
.receipt-wrap {
  width: min(100%, 380px);
  margin-inline: auto;
  filter: drop-shadow(0 12px 18px rgba(10, 10, 10, 0.18)) drop-shadow(0 2px 4px rgba(10, 10, 10, 0.12));
  rotate: 1deg;
}

.receipt {
  --tooth: 9px; /* size of the torn zigzag */
  padding: calc(var(--tooth) + 1.1rem) 1.25rem calc(var(--tooth) + 1rem);
  background: var(--receipt);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.875rem;
  line-height: 1.5;
  /* Zigzag top and bottom edges. */
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--tooth)) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--tooth)) 51% repeat-x;
          mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--tooth)) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--tooth)) 51% repeat-x;
}



/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  background: var(--red);
  color: var(--vanilla);
  font-weight: 600;
  overflow-wrap: anywhere;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.button:hover { background: var(--vanilla); color: var(--black); }


/* ---------- Contact ---------- */

/* Two side-by-side ways to reach us (stacked on phones), split by a thin red line. */
.contact {
  display: grid;
  gap: 2rem;
}
@media (min-width: 48rem) {
  .contact { grid-template-columns: 1fr 1fr; gap: 0; }
  .contact__way + .contact__way { padding-left: clamp(2rem, 5vw, 4rem); border-left: 1px solid var(--red); }
  .contact__way:first-child { padding-right: clamp(2rem, 5vw, 4rem); }
}
.contact__way { display: grid; justify-items: start; align-content: start; gap: 0.9rem; }
.contact__label { font-size: 0.875rem; letter-spacing: 0.04em; opacity: 0.7; }

/* "Book your date": outlined like the nav's Book button. */
.contact__book {
  display: inline-block;
  padding: 0.55em 0.9em;
  box-shadow: inset 0 0 0 1px var(--vanilla);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  line-height: 1.1;
  text-transform: uppercase;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.contact__book:hover { background: var(--red); box-shadow: inset 0 0 0 1px var(--red); }

/* Instagram is the main way in: big icon + handle, red underline that thickens on hover. */
.contact__ig {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.1rem);
}
.contact__ig-icon {
  flex: none;
  width: clamp(2.5rem, 6vw, 3.5rem);
  height: clamp(2.5rem, 6vw, 3.5rem);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: rotate 0.25s var(--ease);
}
.contact__handle {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  background: linear-gradient(var(--red), var(--red)) left bottom / 100% 3px no-repeat;
  padding-bottom: 0.15em;
  transition: background-size 0.2s var(--ease);
}
.contact__ig:hover .contact__handle { background-size: 100% 0.5em; }
.contact__ig:hover .contact__ig-icon { rotate: -8deg; }

.contact__hint { max-width: 44ch; }

.contact__email { margin-top: clamp(2rem, 5vw, 3rem); font-size: 0.9375rem; opacity: 0.85; }
.contact__email a {
  border-bottom: 1px solid var(--red);
  transition: border-color 0.2s var(--ease);
}
.contact__email a:hover { border-bottom-color: var(--vanilla); }

/* ---------- Party math calculator ---------- */

.calc__lede { max-width: 52ch; margin-bottom: clamp(2rem, 5vw, 3rem); }

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}
@media (min-width: 56rem) {
  .calc { grid-template-columns: minmax(0, 1fr) 380px; }
  .calc__receipt { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
}

.calc__controls { display: grid; gap: 2rem; }

/* Phones: slim receipt strip pinned to the bottom so the numbers stay in view while sliding. */
.calc__mini {
  --tooth: 7px;
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.2rem 1rem;
  padding: calc(var(--tooth) + 0.6rem) 1rem calc(0.8rem + env(safe-area-inset-bottom, 0px));
  background: var(--receipt);
  color: var(--ink);
  font-size: 0.75rem;
  line-height: 1.35;
  filter: drop-shadow(0 -6px 14px rgba(0, 0, 0, 0.45));
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--tooth)) 51% repeat-x,
    linear-gradient(#000, #000) bottom / 100% 51% no-repeat;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--tooth)) 51% repeat-x,
    linear-gradient(#000, #000) bottom / 100% 51% no-repeat;
  translate: 0 110%;
  transition: translate 0.3s var(--ease);
}
.calc__mini.is-shown { translate: 0 0; }
.calc__mini-total {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.calc__mini-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0;
}
.calc__mini-buy { font-weight: 700; }
@media (min-width: 56rem) { .calc__mini { display: none; } }

/* Tighter controls on phones so more fits on screen. */
@media (max-width: 55.99rem) {
  .calc__controls { gap: 1.4rem; padding-bottom: 5.5rem; }
  .calc__field label,
  .calc__field legend { font-size: 1.125rem; }
  .calc__big,
  .calc__num { font-size: 1.875rem; }
  .calc__chip label { padding: 0.45rem 0.7rem; font-size: 0.8125rem; }
}

.calc__field { margin: 0; padding: 0; border: 0; min-width: 0; }
.calc__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.calc__field label,
.calc__field legend {
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  text-transform: uppercase;
}
.calc__field legend { margin-bottom: 0.8rem; }

/* Big numbers next to the labels */
.calc__big,
.calc__num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--vanilla);
}
.calc__num {
  width: 5ch;
  padding: 0.1rem 0.3rem;
  border: 0;
  border-bottom: 2px dotted rgba(243, 233, 210, 0.5);
  background: transparent;
  text-align: right;
  -moz-appearance: textfield;
}
.calc__num::-webkit-inner-spin-button,
.calc__num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.calc__num:focus { outline: none; border-bottom-color: var(--vanilla); }

/* Sliders: thin cream track, red fill up to the thumb, round red thumb */
.calc__range {
  --fill: 50%;
  width: 100%;
  height: 2rem;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.calc__range::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(to right, var(--red) var(--fill), rgba(243, 233, 210, 0.3) var(--fill));
}
.calc__range::-moz-range-track { height: 4px; background: rgba(243, 233, 210, 0.3); }
.calc__range::-moz-range-progress { height: 4px; background: var(--red); }
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: calc(2px - 0.75rem);
  border: 2px solid var(--vanilla);
  border-radius: 50%;
  background: var(--red);
  transition: transform 0.15s var(--ease);
}
.calc__range::-moz-range-thumb {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--vanilla);
  border-radius: 50%;
  background: var(--red);
}
.calc__range:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__range:focus-visible { outline: 2px solid var(--vanilla); outline-offset: 4px; }

.calc__pace-label {
  margin-top: 0.35rem;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  line-height: 1.1;
}

/* Favourite chips */
.calc__favs { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.calc__chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.calc__chip label {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(243, 233, 210, 0.5);
  font-family: var(--font);
  font-size: 0.875rem;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.calc__chip label:hover { border-color: var(--vanilla); }
.calc__chip input:checked + label { background: var(--red); border-color: var(--red); }
.calc__chip input:focus-visible + label { outline: 2px solid var(--vanilla); outline-offset: 2px; }

.calc__check {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.calc__check input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--red);
}

.calc__send { justify-self: start; border: 0; font: inherit; font-weight: 700; cursor: pointer; }

/* The printed tab: big total, then three short lists. */
.calc__head {
  padding-bottom: 0.6rem;
  border-bottom: 1.5px dashed var(--ink);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
}

.calc__hero {
  padding-block: 0.9rem 0.8rem;
  text-align: center;
  border-bottom: 1.5px dashed var(--ink);
}
.calc__hero-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
}
.calc__hero-label { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; }

.calc__group { padding-block: 0.8rem; border-bottom: 1.5px dashed var(--ink); }
.calc__group:last-child { border-bottom: 0; }
.calc__group-title {
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.calc__list { display: grid; gap: 0.3rem; }
.calc__row-item {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  align-items: baseline;
}
.calc__amount { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.calc__note { grid-column: 2; font-size: 0.75rem; opacity: 0.65; text-align: right; }

/* You buy: the thing people came for, so it's the biggest list. */
.calc__group--main .calc__row-item { font-size: 1rem; }
.calc__group--main .calc__amount { font-size: 1.0625rem; }

/* We bring: reference only, so it's quieter. */
.calc__group--small .calc__row-item { font-size: 0.75rem; opacity: 0.75; }
.calc__group--small .calc__amount { font-weight: 400; }

.calc__fine {
  padding-top: 0.6rem;
  border-top: 1.5px dashed var(--ink);
  font-size: 0.6875rem;
  text-align: center;
  opacity: 0.7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Book: calendar + intake form ---------- */

.book__lede { max-width: 52ch; margin-bottom: clamp(2rem, 5vw, 3rem); }

.book {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}

@media (min-width: 56rem) {
  .book { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .cal { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
}

/* Calendar */

.cal {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--vanilla);
}

.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cal__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
}

.cal__nav {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--vanilla);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.cal__nav:hover:not(:disabled) { background: var(--red); }
.cal__nav:disabled { opacity: 0.25; cursor: default; }

.cal__week,
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  text-align: center;
}

.cal__week {
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  opacity: 0.6;
}

.cal__day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  background: transparent;
  color: var(--vanilla);
  font: inherit;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.cal__day:hover:not(:disabled) { border-color: var(--vanilla); }
.cal__day.is-today { border-color: rgba(243, 233, 210, 0.45); }
.cal__day.is-past { opacity: 0.25; cursor: default; }
.cal__day.is-booked {
  background: var(--red);
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.cal__day.is-picked { background: var(--vanilla); color: var(--black); }

.cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}
.cal__legend li { display: flex; align-items: center; gap: 0.5rem; }
.cal__swatch {
  width: 0.9rem;
  height: 0.9rem;
  border: 1px solid var(--vanilla);
}
.cal__swatch--booked { background: var(--red); border-color: var(--red); }

/* Form */

.form { display: grid; gap: 1.25rem; }

.form__row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 36rem) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: 0.4rem; align-content: start; }

.field label { font-size: 0.9375rem; font-weight: 600; }
.req { color: var(--vanilla); opacity: 0.6; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(243, 233, 210, 0.35);
  border-radius: 0;
  background: var(--gray);
  color: var(--vanilla);
  font: inherit;
  color-scheme: dark;
  transition: border-color 0.15s var(--ease);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder,
.field textarea::placeholder { color: var(--vanilla); opacity: 0.4; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(243, 233, 210, 0.6); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--vanilla);
  outline: 1px solid var(--vanilla);
  outline-offset: 0;
}
.field [aria-invalid="true"] { border-color: var(--red); outline-color: var(--red); }

/* Booked-date warning: red fill, vanilla text (red is never used as text on black). */
.field__note {
  padding: 0.6rem 0.8rem;
  background: var(--red);
  font-size: 0.875rem;
  line-height: 1.45;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}
.form .button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.form .button:disabled { opacity: 0.6; cursor: wait; }
.form__hint { font-size: 0.875rem; opacity: 0.7; }

.form__status {
  padding: 0.8rem 1rem;
  border: 1px solid var(--vanilla);
}
.form__status.is-error { background: var(--red); border-color: var(--red); }

/* ---------- Footer ---------- */

.footer__inner {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--red);
}

/* ---------- About page ---------- */

.page { padding-block: calc(var(--nav-h) + clamp(3rem, 9vw, 7rem)) clamp(3rem, 8vw, 6rem); }

.page__title {
  margin-bottom: clamp(2rem, 6vw, 4rem);
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
}

.about {
  display: grid;
  gap: 2.5rem;
}

.about__text { display: grid; gap: 1.25rem; max-width: 62ch; }
.about__text p { font-size: 1.125rem; line-height: 1.7; }

@media (min-width: 56rem) {
  .about {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 6rem);
    align-items: start;
  }
}

/* ---------- Fade-in on scroll ---------- */
/* Only hides content when JS is running (see the inline script in <head>). */

.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * { transition-duration: 0.01ms !important; }
  body::after { animation: none; }
}
