/* Oolong Hours. Built on the tasteskill base: tokens first, everything below reads them. */

@font-face { font-family: "Zodiak"; src: url("../assets/fonts/zodiak-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("../assets/fonts/zodiak-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../assets/fonts/cabinet-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../assets/fonts/cabinet-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../assets/fonts/cabinet-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* colour: the brand's paper and ink, an olive accent taken from the leaf, a field in the tea's green */
  --paper: #f1f0ec;
  --paper-2: #e6e4dd;
  --ink: #2b2a26;
  --soft: #625e55;
  --accent: #46512c;
  --accent-hover: #37401f;
  --accent-ink: #f1f0ec;
  --field: #9aa87a;
  --night: #2b2a26;
  --night-ink: #f1f0ec;
  --night-soft: #c9c3b4;

  --font-display: "Zodiak", Georgia, serif;
  --font-text: "Cabinet Grotesk", system-ui, sans-serif;

  /* five sizes, no more */
  --step-small: 0.875rem;                                   /* 14px */
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);   /* 17-19px */
  --step-lead: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);    /* 22-28px */
  --step-head: clamp(2.375rem, 1.6rem + 2.6vw, 4rem);       /* 38-64px */
  --step-display: clamp(2.75rem, 1.2rem + 4vw, 4.5rem);  /* 44-76px */

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7.5rem, 12vw, 12rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, h4, p, figure, ul, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nums { font-variant-numeric: tabular-nums; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; text-wrap: balance; }
h2 { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.025em; }
b { font-weight: 500; }

/* controls */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--radius); font-weight: 500; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:hover { background: var(--accent-hover); }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; text-decoration-thickness: 0.08em; transition: text-decoration-color var(--t-hover) ease; }
.link:hover, .link:focus-visible { text-decoration-color: currentColor; }
.field { flex: 1; min-width: 0; min-height: 3.25rem; padding: 0 1rem; background: var(--paper-2); border: 0; border-radius: var(--radius); font-size: max(1rem, var(--step-body)); transition: background-color var(--t-hover) ease; }
.field:hover { background: #dedbd2; }
.field[aria-invalid="true"] { background: #f0d9cf; }

/* ---------- the stage: a reading column beside a photograph that stays put ---------- */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--margin); padding: var(--margin); }
.reading { min-width: 0; }
.photo-col { min-width: 0; }
.photo-panel { position: sticky; top: var(--margin); height: calc(100svh - 2 * var(--margin)); overflow: hidden; background: var(--paper-2); }
.photo-stack { position: absolute; inset: 0; }
.photo-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1600ms ease; }
.photo-stack img.is-on { opacity: 1; }
.photo-stack img:nth-child(1) { object-position: 50% 55%; }
.photo-stack img:nth-child(4) { object-position: 40% 60%; }
.photo-bar { position: absolute; left: 0; right: 0; bottom: 0; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 1.25rem; background: var(--paper); font-size: var(--step-small); font-weight: 500; }

/* hero: a menu card, everything centred */
.hero { min-height: calc(100svh - 2 * var(--margin)); display: flex; flex-direction: column; text-align: center; padding-inline: clamp(0.5rem, 3vw, 3rem); }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-top: 0.75rem; font-size: var(--step-small); font-weight: 500; }
.topbar .link:first-child { justify-self: start; }
.topbar .link:last-child { justify-self: end; }
.wordmark { font-family: var(--font-display); font-weight: 400; font-size: var(--step-lead); letter-spacing: -0.01em; text-decoration: none; line-height: 1; }
.hero-body { margin-block: auto; padding-block: 3rem 4rem; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: var(--step-display); line-height: 1; letter-spacing: -0.035em; max-width: 14ch; color: var(--accent); }
.hero-lead { margin-top: 2.25rem; max-width: 34ch; }

.waitlist { margin-top: 2.5rem; width: 100%; max-width: 30rem; text-align: left; }
.waitlist-label { display: block; font-size: var(--step-small); font-weight: 500; margin-bottom: 0.5rem; }
.waitlist-row { display: flex; gap: 0.5rem; }
.waitlist-note { margin-top: 0.75rem; font-size: var(--step-small); color: var(--soft); }
.waitlist-note.is-error { color: #8f3b1f; font-weight: 500; }
.waitlist-done { font-family: var(--font-display); font-size: var(--step-lead); line-height: 1.25; color: var(--accent); }
.waitlist-done:focus { outline: none; }
.waitlist-done + p { margin-top: 0.75rem; font-size: var(--step-small); color: var(--soft); }

/* the boxes: two-ended rows in a narrow column */
.boxes { width: min(100%, 34rem); margin: 0 auto; padding-block: calc(var(--section) * 0.6) calc(var(--section) * 0.8); }
.boxes h2 { font-size: var(--step-head); }
.boxes-intro { margin-top: 1.5rem; }
.box-group { margin-top: 4rem; }
.box-group h3 { font-family: var(--font-text); font-weight: 500; font-size: var(--step-body); color: var(--soft); margin-bottom: 1rem; }
.rows li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; column-gap: 0.75rem; align-items: baseline; padding-block: 0.6rem; }
.dot { width: 16px; height: 16px; border-radius: 50%; background: var(--c); align-self: start; margin-top: 0.35em; }
.row-name { font-weight: 500; font-size: var(--step-lead); font-family: var(--font-display); line-height: 1.2; }
.row-note { grid-column: 2 / -1; margin-top: 0.3rem; font-family: var(--font-text); font-weight: 400; font-size: var(--step-body); line-height: 1.5; }
.row-value { font-size: var(--step-small); color: var(--soft); }

/* ---------- the brew note: a slip on a field of green ---------- */
.brew { background: var(--field); color: var(--ink); padding: var(--section) var(--margin); }
.brew-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.brew-text { grid-column: 1 / span 5; }
.brew-text p { margin-top: 1.5rem; max-width: 34ch; }
.brew-text h2 + p { margin-top: 2rem; }
.brew-photo { margin-top: 3rem; }
.brew-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.brew-photo figcaption { margin-top: 0.6rem; font-size: var(--step-small); }

.slip { grid-column: 7 / span 5; justify-self: center; width: min(100%, 30rem); background: var(--paper); padding: 2rem 2rem 3rem; clip-path: polygon(0 0, 100% 0, 100.000% 100%, 95.833% calc(100% - 10px), 91.667% 100%, 87.500% calc(100% - 10px), 83.333% 100%, 79.167% calc(100% - 10px), 75.000% 100%, 70.833% calc(100% - 10px), 66.667% 100%, 62.500% calc(100% - 10px), 58.333% 100%, 54.167% calc(100% - 10px), 50.000% 100%, 45.833% calc(100% - 10px), 41.667% 100%, 37.500% calc(100% - 10px), 33.333% 100%, 29.167% calc(100% - 10px), 25.000% 100%, 20.833% calc(100% - 10px), 16.667% 100%, 12.500% calc(100% - 10px), 8.333% 100%, 4.167% calc(100% - 10px), 0.000% 100%); font-size: 1rem; }
.slip-teas { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.slip-teas label { position: relative; cursor: pointer; }
.slip-teas input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.slip-teas span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; background: var(--paper-2); font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.slip-teas label:hover span { background: #dcd9d0; }
.slip-teas label:active span { transform: scale(0.97); }
.slip-teas input:checked + span { background: var(--ink); color: var(--paper); }
.slip-teas input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.slip-title { margin-top: 1.75rem; font-size: var(--step-lead); line-height: 1.2; }
.slip h4 { margin-top: 1.75rem; font-weight: 700; font-size: 1rem; }
.slip-rows li { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.3rem 0.5rem; margin-inline: -0.5rem; transition: background-color 300ms ease; }
.slip-rows i { flex: 1; min-width: 1rem; height: 4px; border-bottom: 4px dotted #9c968a; transform: translateY(-3px); }
.slip-rows li.is-now { background: var(--paper-2); font-weight: 500; }
.slip-rows li.is-done { color: var(--soft); }
.slip-timer { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.slip-timer[hidden] { display: none; }
.slip-status { font-size: var(--step-small); color: var(--soft); }
.slip-total { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 44px; margin: 1.75rem -2rem 0; padding: 0.5rem 2rem; background: var(--ink); color: var(--paper); font-weight: 500; }

/* ---------- prices, set like a menu ---------- */
.prices { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: var(--section) var(--margin) calc(var(--section) / 2); }
.prices-head { grid-column: 1 / span 4; }
.prices-head h2 { max-width: 8ch; }
.prices-photo { margin-top: 2.5rem; width: 75%; }
.prices-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; }
.prices-photo figcaption { margin-top: 0.6rem; font-size: var(--step-small); color: var(--soft); }
.menu { grid-column: 5 / span 8; display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; align-content: start; }
.menu h3 { font-family: var(--font-text); font-weight: 500; font-size: var(--step-lead); margin-top: 3rem; }
.menu-col > h3:first-child { margin-top: 0.4rem; }
.menu ul { margin-top: 1.25rem; display: grid; gap: 1.4rem; }
.menu li { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; }
.menu-name, .menu-price { font-size: 1.1875rem; font-weight: 500; }
.menu-note { grid-column: 1 / -1; margin-top: 0.2rem; color: var(--soft); max-width: 36ch; }

/* ---------- questions, as reading text ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: calc(var(--section) / 2) var(--margin) var(--section); }
.faq h2 { grid-column: 1 / span 4; max-width: 7ch; }
.faq-text { grid-column: 5 / span 8; columns: 2; column-gap: 3.5rem; }
.faq-text p { break-inside: avoid; margin-bottom: 1.25rem; line-height: 1.55; }
.faq-text b { font-weight: 700; }

/* ---------- closing photograph, text beside ---------- */
.closing { position: relative; min-height: min(90svh, 860px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: var(--margin); color: var(--paper); overflow: hidden; background: #2f3324; }
.closing-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; filter: brightness(0.58) saturate(0.8); }
.closing-text { position: relative; grid-column: 8 / span 5; align-self: end; padding-bottom: clamp(2rem, 8vh, 6rem); }
.closing-text h2 { max-width: 11ch; }
.closing-text > p { margin-top: 1.5rem; max-width: 36ch; }
.waitlist-light .button { background: var(--paper); color: var(--ink); }
.waitlist-light .button:hover { background: #ffffff; }
.waitlist-light .field { background: rgba(241, 240, 236, 0.95); color: var(--ink); }
.waitlist-light .waitlist-note { color: var(--paper); }
.waitlist-light .waitlist-note.is-error { color: #ffd9c7; }
.waitlist-light .waitlist-done { color: var(--paper); }
.waitlist-light .waitlist-done + p { color: var(--paper); }

/* ---------- footer: photograph half, menu half ---------- */
.footer { display: grid; grid-template-columns: 1fr 1fr; min-height: min(100svh, 900px); background: var(--night); color: var(--night-ink); }
.footer-photo { position: relative; overflow: hidden; }
.footer-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 45%; transform: scale(1.35); }
.footer-side { display: flex; flex-direction: column; padding: clamp(2.5rem, 6vh, 5rem) var(--margin) var(--margin) clamp(2rem, 8vw, 8rem); }
.footer-mark { font-weight: 400; font-size: var(--step-lead); letter-spacing: -0.01em; }
.footer-menu { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-menu a { width: fit-content; font-family: var(--font-display); font-size: clamp(1.75rem, 1rem + 2vw, 2.75rem); line-height: 1.15; text-decoration: none; transition: transform var(--t-hover) var(--ease-out), color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .footer-menu:hover a { color: var(--night-soft); }
  .footer-menu a:hover { color: var(--night-ink); transform: translateX(12px); }
}
.footer-menu a:focus-visible { outline-color: var(--night-ink); }
.footer-blocks { margin-top: 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; font-size: var(--step-small); max-width: 36rem; }
.credits { margin-top: auto; padding-top: 3rem; font-size: var(--step-small); color: var(--night-soft); max-width: 60ch; line-height: 1.5; }
.credits a { color: var(--night-ink); text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.2em; }
.legal { margin-top: 1rem; font-size: var(--step-small); color: var(--night-soft); }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .brew-text { grid-column: 1 / span 6; }
  .slip { grid-column: 7 / span 6; }
  .prices-head, .faq h2 { grid-column: 1 / -1; }
  .prices-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: start; margin-bottom: 3rem; }
  .prices-photo { margin-top: 0; width: 100%; }
  .prices-photo img { aspect-ratio: 3 / 2; }
  .menu { grid-column: 1 / -1; }
  .faq h2 { max-width: none; margin-bottom: 2.5rem; }
  .faq-text { grid-column: 1 / -1; }
  .closing-text { grid-column: 6 / span 7; }
  .footer-side { padding-left: var(--margin); }
}

/* ---------- phone: the photograph leads, the sheet slides over it ---------- */
@media (max-width: 900px) {
  .stage { display: flex; flex-direction: column; gap: 0; padding: 0; }
  .photo-col { order: -1; position: sticky; top: 0; height: 42svh; padding: 0.75rem 0.75rem 0; z-index: 0; }
  .photo-panel { position: relative; top: 0; height: 100%; }
  .photo-bar { min-height: 48px; padding: 0.5rem 0.9rem; font-size: 0.8125rem; }
  .reading { position: relative; z-index: 1; background: var(--paper); padding-inline: var(--margin); }
  .hero { min-height: 0; padding-inline: 0; }
  .topbar { padding-top: 1rem; }
  .hero-body { padding-block: 1.75rem 3rem; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.25rem); }
  .hero-lead { margin-top: 1rem; }
  .waitlist { margin-top: 1.5rem; }
  .waitlist-row { flex-direction: column; }
  .waitlist-row .button { width: 100%; }
  .boxes { padding-block: 2rem 5rem; }
  .box-group { margin-top: 3rem; }
  .rows li { padding-block: 0.75rem; }

  .brew { padding-block: 5rem; }
  .brew-inner { display: block; }
  .slip { margin-top: 3rem; width: 100%; padding: 1.5rem 1.25rem 2.5rem; }
  .slip-total { margin-inline: -1.25rem; padding-inline: 1.25rem; }
  .brew-photo { margin-top: 2.5rem; }

  .prices { padding-block: 5rem 2.5rem; }
  .prices-head { display: block; }
  .prices-photo { margin-top: 2rem; width: 70%; }
  .prices-photo img { aspect-ratio: 4 / 5; }
  .menu { display: block; }
  .menu-col + .menu-col { margin-top: 3rem; }
  .menu h3 { margin-top: 2.5rem; }
  .menu-name, .menu-price { font-size: 1.0625rem; }

  .faq { padding-block: 2.5rem 5rem; }
  .faq-text { columns: 1; }

  .closing { display: block; padding: 0; min-height: 0; background: var(--night); }
  .closing-photo { position: relative; height: min(50svh, 440px); filter: none; }
  .closing-text { padding: 2.5rem var(--margin) 3rem; }

  .footer { display: block; }
  .footer-photo { height: 46svh; }
  .footer-side { padding: 2.5rem var(--margin) 2rem; }
  .footer-menu a { font-size: 2rem; }
  .footer-blocks { grid-template-columns: 1fr; gap: 1rem; margin-top: 3rem; }
}

/* ---------- motion: content is visible without script and under reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(20px); animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .photo-stack img.is-on { animation: drift 22s var(--ease-soft) infinite alternate; }
  /* the clip sits on the picture, not the figure, so the figure stays visible to the observer */
  .js .brew-photo[data-reveal] { opacity: 1; transform: none; }
  .js .brew-photo[data-reveal] img { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms cubic-bezier(0.76, 0, 0.24, 1); }
  .js .brew-photo[data-reveal].is-in img { clip-path: inset(0); }
}
@media (prefers-reduced-motion: reduce) {
  .photo-stack img { transition: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.0); } to { transform: scale(1.07) translate(-1%, -1%); } }
