/* ==========================================================================
   EXTRACTION — pull a seat, take a little longer.
   Brand: American Typewriter (primary), Nunito (secondary), cursive accent.
   Palette: #ffffff · #606c38 · #99866c · #4f4339 · #000000
   ========================================================================== */

:root {
  /* Brand palette */
  --white: #ffffff;
  --paper: #f7f5f0;
  --olive: #606c38;
  --olive-deep: #4d572c;
  --sand: #99866c;
  --umber: #4f4339;
  --ink: #000000;

  /* Semantic */
  --bg: var(--paper);
  --text: #141210;
  --text-muted: #5b5048;
  --line: rgb(0 0 0 / 0.14);
  --line-strong: rgb(0 0 0 / 0.7);
  --on-dark: #f7f5f0;
  --on-dark-muted: rgb(247 245 240 / 0.72);
  --line-on-dark: rgb(247 245 240 / 0.24);

  /* Type */
  --font-type: "American Typewriter", "Courier Prime", "Courier New", ui-monospace, monospace;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
  --font-hand: "Cedarville Cursive", "Snell Roundhand", cursive;

  /* Layout */
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1360px;
  --header-h: 4.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Paper grain, fine and quiet */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }

::selection { background: var(--olive); color: var(--white); }

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

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

.skip {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-type);
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease-out);
}
.skip:focus { transform: none; }

.grain { position: relative; isolation: isolate; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.07;
  pointer-events: none;
}

/* ---------- Type primitives ---------- */

.display {
  font-family: var(--font-type);
  font-weight: 700;
  font-size: clamp(2.25rem, 5.2vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.eyebrow {
  font-family: var(--font-type);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.eyebrow-light { color: var(--on-dark-muted); }

.hand {
  font-family: var(--font-hand);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.tw-link,
.tw-btn {
  font-family: var(--font-type);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0.55rem 0;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  min-height: 44px;
}
.tw-link::after,
.tw-btn::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.45rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.tw-link:hover::after,
.tw-btn:hover::after,
.tw-link:focus-visible::after,
.tw-btn:focus-visible::after { transform: scaleX(1); }
.tw-btn:active { transform: translateY(1px); }

/* ==========================================================================
   Header — translucent paper, content scrolls underneath
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--gutter);
  background: rgb(247 245 240 / 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }

.brand { justify-self: start; display: block; padding: 0.5rem 0; }
.brand img { width: clamp(8.5rem, 12vw, 10.5rem); }

.nav {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  font-family: var(--font-type);
  font-size: 0.88rem;
}
.nav a {
  text-decoration: none;
  padding: 0.6rem 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.4rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav a:hover::after,
.nav a[aria-current="true"]::after { transform: scaleX(1); }

.header-cities {
  justify-self: end;
  font-family: var(--font-type);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-cities { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    justify-self: end;
    min-height: 44px;
    padding: 0 0.25rem;
    background: none;
    border: 0;
    font-family: var(--font-type);
    font-size: 0.88rem;
    cursor: pointer;
  }
  .nav-toggle-lines {
    width: 18px; height: 8px;
    border-block: 1.5px solid currentColor;
    transition: transform 0.3s var(--ease-out), height 0.3s var(--ease-out);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-lines { height: 0; border-bottom: 0; transform: rotate(45deg); }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--paper);
    box-shadow: 0 1px 0 var(--line), 0 24px 40px -24px rgb(0 0 0 / 0.25);
    font-size: 1.35rem;
    transform-origin: top right;
    transform: translateY(-0.5rem) scale(0.98);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.25s ease, visibility 0s linear 0.35s;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform 0.35s var(--ease-out), opacity 0.25s ease, visibility 0s;
  }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
}

/* ==========================================================================
   Hero — the cup on the table
   ========================================================================== */

.hero {
  min-height: 100svh;
  background: var(--paper);
  overflow: hidden;
}

.hero-scene {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  perspective: 1400px;
  padding-top: var(--header-h);
}

.float-el { will-change: transform; }

.cup-stage {
  position: relative;
  z-index: 3;
  height: min(60svh, 560px);
  aspect-ratio: 0.72;
  margin-top: -2rem;
  transform-style: preserve-3d;
}

.cup-float {
  height: 100%;
  animation: cup-float 7s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes cup-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.cup {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-style: preserve-3d;
  transform: rotateX(5deg) rotateY(-8deg);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.cup:focus-visible { outline-offset: 12px; border-radius: 12px; }

.cup img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  user-select: none;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  filter: drop-shadow(16px 28px 22px rgb(79 67 57 / 0.22)) drop-shadow(2px 4px 3px rgb(0 0 0 / 0.08));
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out);
}
.cup img.is-current { opacity: 1; transform: none; }
.cup img.is-leaving { opacity: 0; transform: translateY(-10px) scale(1.02); transition-duration: 0.35s; }
.cup:active img.is-current { transform: scale(0.985); transition-duration: 0.12s; }

/* soft cast shadow + tight contact shadow = it sits on something */
.cup-shadow {
  position: absolute;
  left: 4%;
  width: 96%;
  bottom: -1.4rem;
  height: 2.6rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgb(79 67 57 / 0.38), rgb(79 67 57 / 0.12) 45%, transparent 72%);
  filter: blur(7px);
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
.cup-contact {
  position: absolute;
  left: 22%;
  width: 56%;
  bottom: -0.35rem;
  height: 0.9rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgb(0 0 0 / 0.32), transparent 70%);
  filter: blur(3px);
  z-index: -1;
  animation: contact 7s ease-in-out infinite;
}
@keyframes contact {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.88); opacity: 0.7; }
}

/* Floating line-art around the cup */
.doodle { position: absolute; pointer-events: none; user-select: none; z-index: 2; }
.doodle-press  { width: clamp(3rem, 4.6vw, 4.6rem);  left: calc(50% - min(22vw, 20rem)); top: 21%; rotate: -8deg; }
.doodle-kit    { width: clamp(7rem, 12vw, 12rem); right: calc(50% - min(33vw, 32rem)); top: 22%; rotate: 5deg; }
.doodle-seated { width: clamp(7rem, 10vw, 10rem); left: calc(50% - min(33vw, 30rem)); bottom: 8%; }
.doodle-cloud-a { width: clamp(6rem, 11vw, 11rem); left: calc(50% - min(31vw, 28rem)); top: 13%; opacity: 0.8; }
.doodle-cloud-b { width: clamp(5rem, 8vw, 8rem); right: calc(50% - min(14vw, 13rem)); top: 13%; opacity: 0.7; }

.hero-tagline {
  position: absolute;
  z-index: 4;
  width: clamp(13rem, 24vw, 22rem);
  left: calc(50% - min(40vw, 40rem));
  top: 34%;
  rotate: -5deg;
}

/* Label card — same layout language as the printed cup label */
.cup-label {
  position: absolute;
  z-index: 4;
  left: calc(50% + min(15vw, 13rem));
  bottom: 22%;
  width: min(19rem, 26vw);
  font-family: var(--font-type);
}
.cup-label-index {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.cup-label-name {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  min-height: 1.2em;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line-strong);
}
.cup-label-name.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.5ch;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: currentColor;
  animation: caret 0.8s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.cup-label-hand {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  line-height: 1.3;
  padding: 0.5rem 0 0.4rem;
  border-bottom: 1px solid var(--line-strong);
  transition: opacity 0.4s ease;
}
.cup-label-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cup-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 3.25rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.cup-dots { display: flex; gap: 0.45rem; }
.cup-dots i {
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  transition: background 0.3s ease, transform 0.3s var(--ease-out);
}
.cup-dots i.is-on { background: var(--ink); transform: scale(1.25); }

.hero-corner {
  position: absolute;
  z-index: 4;
  font-family: var(--font-type);
  font-size: 0.75rem;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.hero-corner-tl { left: var(--gutter); top: calc(var(--header-h) + 1.75rem); }
.hero-corner-br { right: var(--gutter); bottom: 3.6rem; font-family: var(--font-hand); font-size: 1.1rem; color: var(--text); }

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 2.25rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  font-size: 1.05rem;
}
.scroll-line {
  width: 3.5rem;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  animation: cue 3.2s var(--ease-in-out) infinite;
}
@keyframes cue {
  0% { transform: scaleX(0); }
  45% { transform: scaleX(1); transform-origin: left; }
  55% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

@media (max-width: 1080px) {
  .cup-label { left: auto; right: var(--gutter); width: min(16rem, 30vw); bottom: 18%; }
  .hero-tagline { left: var(--gutter); top: 28%; }
}

@media (max-width: 760px) {
  .hero-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 0;
    min-height: auto;
  }
  .hero { min-height: auto; }
  .hero-tagline { position: relative; left: auto; top: auto; width: 15rem; align-self: flex-start; margin: 0.5rem 0 1.5rem; }
  .cup-stage { height: min(48svh, 400px); margin-top: 0.5rem; }
  .doodle-cloud-a { left: auto; right: 4%; top: calc(var(--header-h) + 0.25rem); width: 5rem; }
  .doodle-cloud-b { display: none; }
  .doodle-press { left: 2%; bottom: auto; top: 46%; width: 3.2rem; }
  .doodle-kit { right: 1%; top: 40%; width: 5.8rem; }
  .doodle-seated { display: none; }
  .hero-corner { display: none; }
  .cup-label { position: relative; left: auto; right: auto; bottom: auto; width: 100%; max-width: 22rem; margin-top: 2.75rem; }
  .cup-controls { position: relative; left: auto; bottom: auto; transform: none; margin: 1rem 0 0; }
  .scroll-cue { position: relative; left: auto; bottom: auto; align-self: flex-start; margin: 1.5rem var(--gutter) 2rem; }
}

/* ==========================================================================
   Manifesto
   ========================================================================== */

.slow {
  background: var(--white);
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
}
.slow-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.slow-figure { position: relative; max-width: 22rem; }
.slow-figure figcaption {
  position: absolute;
  right: -1rem;
  top: -1.5rem;
  width: clamp(9rem, 15vw, 13rem);
  rotate: -4deg;
}

.typed {
  font-family: var(--font-type);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 2rem;
  min-height: 2.24em;
}
.typed .ch { opacity: 0; }
.typed .ch.on { opacity: 1; }
.typed .caret {
  display: inline-block;
  width: 0.45ch;
  height: 0.9em;
  margin-left: 0.06em;
  vertical-align: -0.08em;
  background: var(--olive);
  animation: caret 0.9s steps(1) infinite;
}
.slow-body { max-width: 36rem; color: var(--text-muted); font-size: 1.125rem; }

.slow-facts {
  margin-top: 2.5rem;
  max-width: 30rem;
  border-top: 1px solid var(--line-strong);
}
.slow-facts li {
  display: flex;
  gap: 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-hand);
  font-size: 1.35rem;
}
.slow-facts span {
  font-family: var(--font-type);
  font-size: 0.75rem;
  color: var(--olive);
  padding-top: 0.45rem;
}

@media (max-width: 820px) {
  .slow-grid { grid-template-columns: 1fr; }
  .slow-figure { max-width: 15rem; }
}

/* ==========================================================================
   Counter — annotated photograph on umber
   ========================================================================== */

.counter {
  background: var(--umber);
  color: var(--on-dark);
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
}
.counter-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: end;
}
.counter-photo { position: relative; max-width: 36rem; }
.counter-photo img { width: 100%; border-radius: 2px; }

.notes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.note-path {
  fill: none;
  stroke: var(--white);
  stroke-width: 1.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s var(--ease-out);
}
/* notes are little paper slips stuck onto the photo */
.note {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 0.15rem 0.55rem 0.2rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: clamp(0.95rem, 1.35vw, 1.2rem);
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgb(0 0 0 / 0.55);
  opacity: 0;
  transform: translateY(6px) rotate(-3deg);
  transition: opacity 0.6s ease, transform 0.8s var(--ease-out);
}
.note-3 { transform: translateY(6px) rotate(3deg); }
.is-annotated .note-path { stroke-dashoffset: 0; }
.is-annotated .note { opacity: 1; transform: rotate(-3deg); }
.is-annotated .note-3 { transform: rotate(3deg); }
.is-annotated .note-path:nth-child(2), .is-annotated .note-2 { transition-delay: 0.25s; }
.is-annotated .note-path:nth-child(3), .is-annotated .note-3 { transition-delay: 0.5s; }
.is-annotated .note-path:nth-child(4), .is-annotated .note-4 { transition-delay: 0.75s; }

.note-path { filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.6)); }

.counter-copy p:not(.eyebrow) { color: var(--on-dark-muted); max-width: 30rem; margin-top: 1.5rem; font-size: 1.125rem; }
.counter-copy .display { color: var(--on-dark); }
.counter-copy .counter-hand { color: var(--on-dark); font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-top: 2.5rem; rotate: -3deg; }

@media (max-width: 820px) {
  .counter-grid { grid-template-columns: 1fr; }
  .counter-photo { max-width: none; }
  .note { font-size: 0.85rem; padding: 0.1rem 0.4rem; }
  .note-3 { left: auto; right: 1%; }
}

/* ==========================================================================
   Menu — printed card with a live plate
   ========================================================================== */

.menu {
  background: var(--paper);
  padding: clamp(5rem, 10vw, 8.5rem) var(--gutter);
}
.menu-head {
  max-width: var(--max);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 5fr 7fr;
  column-gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.menu-head .eyebrow { grid-column: 1 / -1; }
.menu-note { color: var(--text-muted); max-width: 26rem; justify-self: end; }

.menu-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.menu-plate {
  position: sticky;
  top: calc(var(--header-h) + 3rem);
  perspective: 1200px;
}
.plate-stage {
  position: relative;
  aspect-ratio: 0.8;
  max-height: 62svh;
  margin: 0 auto;
}
.plate-item {
  position: absolute;
  inset: 6% 12% 8%;
  display: grid;
  place-items: end center;
  opacity: 0;
  transform: translateY(14px) rotateY(-14deg);
  transition: opacity 0.4s ease, transform 0.6s var(--ease-out);
}
.plate-item img {
  max-height: 100%;
  width: auto;
  filter: drop-shadow(14px 22px 18px rgb(79 67 57 / 0.22));
}
.plate-item.plate-ink { inset: 22% 18% 10%; }
.plate-item.plate-ink img { filter: none; }
.plate-item.is-active { opacity: 1; transform: rotateY(-6deg); }
.plate-shadow {
  position: absolute;
  left: 18%; right: 18%;
  bottom: 5%;
  height: 1.6rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgb(79 67 57 / 0.32), transparent 70%);
  filter: blur(6px);
  z-index: -1;
}
.plate-caption {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 0.75rem;
  min-height: 1.9rem;
  transition: opacity 0.25s ease;
}

.menu-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 4vw, 4rem);
  font-family: var(--font-type);
}
.menu-col:first-child { grid-row: span 2; }
.menu-col { container-type: inline-size; }
/* narrow columns: description drops under the name instead of squeezing it */
@container (width < 23rem) {
  .menu-col .menu-list li { grid-template-columns: 1fr; grid-template-areas: "name" "desc"; }
  .menu-col .mi-lead { display: none; }
  .menu-col .mi-desc { text-align: left; }
}
.menu-col-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-bottom: 0.6rem;
  border-bottom: 1.5px solid var(--ink);
}
.menu-col-count { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0.06em; }

.menu-list li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "name lead desc";
  align-items: baseline;
  column-gap: 0.6rem;
  padding: 0.85rem 0.5rem 0.75rem;
  margin: 0 -0.5rem;
  border-bottom: 1px solid var(--line);
  cursor: default;
  border-radius: 3px;
  transition: background 0.25s ease;
}
.menu-list li:hover,
.menu-list li:focus-visible,
.menu-list li.is-showing { background: rgb(96 108 56 / 0.08); }
.mi-name { grid-area: name; font-size: 1.05rem; }
.mi-lead {
  grid-area: lead;
  min-width: 1rem;
  border-bottom: 1px dotted rgb(0 0 0 / 0.35);
}
.mi-desc {
  grid-area: desc;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: right;
}
.is-house .mi-name { font-weight: 700; }
.mi-flag {
  position: absolute;
  right: 0.6rem;
  top: -0.85rem;
  font-size: 1.15rem;
  color: var(--olive);
  rotate: -3deg;
  pointer-events: none;
}
.menu-foot {
  grid-column: 2;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-top: 0.25rem;
}

@media (max-width: 960px) {
  .menu-grid { grid-template-columns: 1fr; }
  .menu-plate { display: none; }
  .menu-head { grid-template-columns: 1fr; }
  .menu-note { justify-self: start; margin-top: 1.25rem; }
}
@media (max-width: 640px) {
  .menu-card { grid-template-columns: 1fr; }
  .menu-col:first-child { grid-row: auto; }
  .menu-foot { grid-column: 1; }
}

/* ==========================================================================
   Cold brew — black field, the bottles do the talking
   ========================================================================== */

.coldbrew {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  align-items: center;
}
.coldbrew-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: 100svh;
}
.coldbrew-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% 50%;
  transform: scale(1.06);
  will-change: transform;
}
.coldbrew-copy {
  position: relative;
  z-index: 1;
  max-width: 25rem;
  padding: 3rem var(--gutter) 3rem 0;
}
.coldbrew-copy > p:not(.eyebrow) { color: var(--on-dark-muted); margin-top: 1.25rem; }
.coldbrew-copy .display { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.coldbrew-spec { margin: 1.75rem 0 0; border-top: 1px solid var(--line-on-dark); }
.coldbrew-spec div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-on-dark);
  font-size: 0.9rem;
}
.coldbrew-spec dt { font-family: var(--font-type); color: var(--on-dark-muted); font-size: 0.8rem; padding-top: 0.1rem; }
.coldbrew-spec dd { margin: 0; }

@media (max-width: 900px) {
  .coldbrew { display: block; }
  .coldbrew-copy { max-width: none; padding: 2rem var(--gutter) 4.5rem; }
}

/* ==========================================================================
   No Rush Club — olive table with movable photos
   ========================================================================== */

.club {
  background: var(--olive);
  color: var(--on-dark);
  padding: clamp(5rem, 10vw, 8rem) var(--gutter) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.club-head {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: end;
  gap: 2rem;
}
.club-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.club-title {
  font-family: var(--font-hand);
  font-size: clamp(3.2rem, 9vw, 8rem);
  line-height: 1;
  rotate: -3deg;
  transform-origin: left bottom;
}
.club-terms {
  font-family: var(--font-type);
  font-size: 1rem;
  line-height: 2;
  justify-self: end;
}
.club-terms span {
  display: inline-block;
  width: 7.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.table {
  position: relative;
  max-width: var(--max);
  height: clamp(30rem, 52vw, 44rem);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  touch-action: pan-y;
}
.table-hint {
  position: absolute;
  right: 2%;
  bottom: 4%;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--on-dark-muted);
  rotate: -4deg;
}

.polaroid,
.ticket {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: rotate(var(--r));
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.polaroid {
  width: clamp(11rem, 22vw, 18rem);
  background: #fbfaf6;
  padding: 0.7rem 0.7rem 0;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.12), 0 14px 30px -8px rgb(30 34 15 / 0.5);
  transition: box-shadow 0.3s ease;
}
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; pointer-events: none; }
.polaroid figcaption {
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  padding: 0.65rem 0.2rem 0.9rem;
}
.is-held { cursor: grabbing; z-index: 20 !important; }
/* on touch, vertical swipes keep scrolling the page; sideways drags move the photo */
@media (pointer: coarse) {
  .polaroid, .ticket { touch-action: pan-y; }
}
.polaroid.is-held { box-shadow: 0 2px 2px rgb(0 0 0 / 0.1), 0 34px 50px -12px rgb(30 34 15 / 0.6); }

.ticket {
  width: clamp(13rem, 20vw, 16rem);
  padding: 1rem 1.1rem 1.1rem;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-type);
  box-shadow: 0 12px 26px -10px rgb(30 34 15 / 0.55);
  border-radius: 2px;
  -webkit-mask: radial-gradient(circle at 0 60%, transparent 0.55rem, #000 0.6rem) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 60%, transparent 0.55rem, #000 0.6rem) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 60%, transparent 0.55rem, #000 0.6rem) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 60%, transparent 0.55rem, #000 0.6rem) right / 51% 100% no-repeat;
}
.ticket-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--ink);
}
.ticket-name { font-size: 1.6rem; font-weight: 700; padding: 0.6rem 0 0.4rem; border-bottom: 1px dashed rgb(0 0 0 / 0.35); }
.ticket-line { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); padding-top: 0.5rem; }
.ticket-hand { font-size: 1.15rem; color: var(--olive); margin-top: 0.4rem; text-align: right; }

/* Club goods */
.goods {
  max-width: var(--max);
  margin: clamp(4rem, 8vw, 7rem) auto 0;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-on-dark);
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.goods-title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.goods-head p { color: var(--on-dark-muted); max-width: 22rem; }
.goods-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
}
.good-img {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  perspective: 900px;
}
.good-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgb(30 34 15 / 0.45));
  transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
}
.good:hover .good-img img {
  transform: translateY(-8px) rotateY(-10deg) rotateZ(-1.5deg);
  filter: drop-shadow(10px 30px 22px rgb(30 34 15 / 0.5));
}
.good-name { font-family: var(--font-type); margin-top: 1rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--line-on-dark); }
.good .hand { font-size: 1.15rem; color: var(--on-dark-muted); margin-top: 0.35rem; }

@media (max-width: 900px) {
  .club-head { grid-template-columns: 1fr; }
  .club-terms { justify-self: start; }
  .goods { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .table { height: 38rem; }
  .polaroid { width: 9.5rem; padding: 0.45rem 0.45rem 0; }
  .ticket { width: 12rem; }
  .goods-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
  .good .hand { display: none; }
  .good-name { font-size: 0.85rem; }
}

/* ==========================================================================
   Visit
   ========================================================================== */

.visit {
  background: var(--paper);
  padding: clamp(5rem, 10vw, 8.5rem) var(--gutter);
}
.visit-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.visit-house img { width: 100%; max-width: 44rem; }
.cities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.city {
  border-top: 1.5px solid var(--ink);
  padding-top: 1rem;
}
.city h3 {
  font-family: var(--font-type);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: -0.02em;
}
.city .hand { font-size: 1.2rem; color: var(--olive); margin: 0.2rem 0 0.75rem; }

@media (max-width: 820px) {
  .visit-grid { grid-template-columns: 1fr; }
  .visit-house { order: 2; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(4rem, 8vw, 6rem) var(--gutter) 2rem;
  overflow: hidden;
}
.footer-thanks {
  width: clamp(12rem, 26vw, 22rem);
  filter: invert(1);
  margin: 0 0 clamp(3rem, 6vw, 5rem) auto;
  margin-right: 6%;
  rotate: -4deg;
}
.footer-mark {
  width: 100%;
  max-width: none;
  filter: invert(1);
  opacity: 0.96;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-on-dark);
  font-family: var(--font-type);
  font-size: 0.8rem;
  color: var(--on-dark-muted);
}
.footer-row .tw-link { color: var(--on-dark); font-size: 0.8rem; }

/* ==========================================================================
   Reveal
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cup-float, .cup-contact, .scroll-line { animation: none; }
  .cup img, .plate-item { transform: none !important; transition: opacity 0.25s ease; }
  .js .reveal { transform: none; transition: opacity 0.4s ease; }
  .note, .is-annotated .note { transform: none; }
  .good:hover .good-img img { transform: none; }
  .coldbrew-media img { transform: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .nav { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --text-muted: #2c2622; --line: rgb(0 0 0 / 0.4); --on-dark-muted: #fff; }
}
