/* wherever-qa.com — one stylesheet, no framework. Brand guide: blue #172F82 on beige #F4F2EA,
   EB Garamond display, Inter body, the guide's line drawings. No section numerals (founder,
   2026-11-08). No inline styles anywhere: the CSP is style-src 'self'. */

:root {
  --ink: #172f82;
  --paper: #f4f2ea;
  --card: #fbfaf6;
  --muted: rgba(23, 47, 130, 0.74); /* 5.2:1 on the beige */
  --line: rgba(23, 47, 130, 0.22);
  --line-strong: rgba(23, 47, 130, 0.6); /* control borders at 3.6:1 */
  --display: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 8px;
  --gutter: 20px;
  --max: 1120px;
  --header: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; } /* the AVIF/JPEG wrapper leaves the img exactly where it was */ /* width/height attributes keep the ratio; a CSS width alone must never stretch the box */
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); }
h2 { font-size: clamp(2rem, 5.2vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
p { margin: 0 0 1em; }
.serif { font-family: var(--display); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* ── header: the quiet bar from the reference, wordmark centred ── */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--header);
  background: rgba(244, 242, 234, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.menu-btn {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 8px 0; cursor: pointer; font-weight: 500; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
}
.menu-btn .bars { width: 22px; height: 14px; display: inline-flex; flex-direction: column; justify-content: space-between; }
.menu-btn .bars i { display: block; height: 1.5px; background: var(--ink); }
.menu-btn .bars i:nth-child(2) { width: 70%; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }
.menu-btn .bars i { transition: transform 0.2s ease, opacity 0.2s ease; }
.brand { justify-self: center; line-height: 0; }
.brand img { height: 24px; width: auto; }
.top .cta { justify-self: end; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: #122566; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(23, 47, 130, 0.08); }
.btn.small { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ── the menu panel: a plain list, like the reference ── */
.menu {
  position: fixed; inset: var(--header) 0 0 0; z-index: 40; background: var(--paper);
  padding: 8px max(var(--gutter), env(safe-area-inset-left, 0px)) 40px; overflow: auto;
}
.menu[hidden] { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; max-width: var(--max); margin-inline: auto; }
.menu li { border-bottom: 1px solid var(--line); }
.menu a { display: block; padding: 18px 0; font-size: 22px; font-family: var(--display); text-decoration: none; }
.menu .social { display: flex; justify-content: center; gap: 20px; padding: 36px 0 0; }
.menu .social a { font-size: 15px; font-family: var(--body); text-decoration: underline; }
body.menu-open { overflow: hidden; }

/* ── hero: the photo carries the mark (it is printed in the image); the words sit under it ── */
.hero { padding: 0; }
.hero-media { position: relative; height: min(62vh, 560px); min-height: 400px; overflow: hidden; background: #1a1612; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-copy { padding: 40px max(var(--gutter), env(safe-area-inset-left, 0px)) 56px; text-align: center; max-width: 760px; margin: 0 auto; }
.eyebrow { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* From laptop width the hero is two halves: the words on the left, the photo on the right in a
   square frame, so a square top-down photo keeps its composition instead of being cropped into a band. */
@media (min-width: 900px) {
  .hero-inner { max-width: var(--max); margin: 0 auto; padding: 56px max(var(--gutter), env(safe-area-inset-left, 0px)) 72px max(var(--gutter), env(safe-area-inset-left, 0px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .hero-media { order: 2; height: auto; min-height: 0; aspect-ratio: 1 / 1; border-radius: 14px; }
  .hero-media img { position: absolute; inset: 0; }
  .hero-copy { order: 1; text-align: left; padding: 0; margin: 0; max-width: none; }
  .hero-copy h1 { font-size: clamp(2.8rem, 4.6vw, 4.4rem); }
}

/* ── inner pages ── */
.page-head { padding-top: 44px; } /* padding-top only: the shorthand once zeroed .wrap's side gutters on phones */
.page-head h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
.page-head .section-sub { margin-top: 12px; }
.page-head + .section { padding-top: 40px; }
@media (min-width: 900px) { .page-head { padding-top: 64px; } .page-head + .section { padding-top: 56px; } }
.actions-left { justify-content: flex-start; margin-top: 28px; }


/* home: the three doors. The whole card is the link; the pill inside says what happens. */
.next { display: grid; gap: 14px; }
@media (min-width: 600px) { .next { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .next { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.next a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border: 1px solid var(--line-strong); border-radius: 14px; padding: 24px; background: var(--card); text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.next a:hover, .next a:focus-visible { border-color: var(--ink); transform: translateY(-2px); }
.next a:active { transform: translateY(0); }
.next .illus { height: 64px; width: auto; max-width: 120px; margin-bottom: 6px; }
.next h3 { margin: 0; }
.next p { color: var(--muted); margin: 0 0 10px; font-size: 15px; }
.next .btn { margin-top: auto; }
.quotes-empty { margin-bottom: 28px; }
.head-actions { margin-top: 18px; }
#voices .quotes { margin-bottom: 22px; }
/* the photos page: one photo wide on a phone, two by two from a tablet, large tiles */
.grid.photos-grid { grid-template-columns: 1fr; gap: 16px; max-width: 920px; }
@media (min-width: 600px) { .grid.photos-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 900px) { .grid.photos-grid { gap: 20px; } }


/* ── sections ── */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
@media (min-width: 900px) { .section { padding: 110px 0; } }
.section-head { margin-bottom: 36px; }
.section-sub { color: var(--muted); max-width: 600px; margin-top: 10px; }
.two { display: grid; gap: 36px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.illus { color: var(--ink); width: 150px; height: auto; }
.illus.sm { width: 96px; }
.illus.lg { width: 170px; }

/* how it works */
.steps { display: grid; gap: 36px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.step .illus { height: 120px; width: auto; max-width: 160px; margin-bottom: 18px; }
.step p { color: var(--muted); margin: 8px 0 0; }
.closing { font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 48px; }

/* packages: a compact price grid (the form above prices any number of cups) */
.tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .tiers { grid-template-columns: repeat(5, 1fr); gap: 12px; } }
.tiers li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.tiers b { font-weight: 500; font-size: 15px; }
.tiers .price { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tiers .price small { font-family: var(--body); font-size: 12px; margin-left: 4px; color: var(--muted); }
.addons { margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 28px; }

/* fields */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field > span.field-help { font-weight: 400; font-size: 13px; color: var(--muted); margin: -2px 0 8px; }
input[type="text"], input[type="tel"], input[type="number"], input[type="date"], input[type="password"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; min-height: 44px; cursor: pointer; background: #fff; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choices label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
/* an optional extra as one card: tick it and see what it costs for your cups */
.addon { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: start; padding: 16px; margin: 0 0 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; cursor: pointer; }
.addon input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.addon-check { width: 22px; height: 22px; margin-top: 2px; border: 1.5px solid var(--line-strong); border-radius: 6px; background: #fff; display: grid; place-items: center; }
.addon-check::after { content: ""; width: 10px; height: 5px; border: 2px solid var(--paper); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.addon input:checked + .addon-check { background: var(--ink); border-color: var(--ink); }
.addon input:checked + .addon-check::after { opacity: 1; }
.addon:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--card); }
.addon:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.addon-body { display: grid; gap: 4px; min-width: 0; }
.addon-title { font-weight: 500; }
.addon-text { font-size: 14px; line-height: 1.45; color: var(--muted); }
.addon-rule { font-size: 13px; color: var(--muted); }
.addon-price { text-align: right; white-space: nowrap; }
.addon-price b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.35rem; line-height: 1.15; }
.addon-price small { font-size: 12px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 14px; color: var(--muted); }
.error { color: #8a1c1c; font-size: 14px; margin-top: 6px; }
.ok-box { background: var(--ink); color: var(--paper); border-radius: 12px; padding: 24px; }
.ok-box h3 { color: var(--paper); margin-bottom: 8px; }
.ok-box p { margin-bottom: 10px; }
.ok-box .fine { opacity: 0.8; font-size: 14px; margin: 0; }

/* drinks: a hot side and a cold side, switched by two radios (no script). Each drink is a card with
   the client's product photo, cropped to the cup on white (assets/img/drinks, AVIF + JPEG). */
.tagline-it { font-family: var(--display); font-style: italic; font-size: 1.35rem; margin-top: 36px; }
.drinks-teaser { display: grid; gap: 24px; align-items: center; }
@media (min-width: 760px) { .drinks-teaser { grid-template-columns: 1fr auto; gap: 48px; } .drinks-teaser .illus { width: 180px; } }
.temp { position: relative; display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px; background: #fff; margin-bottom: 32px; }
.temp input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.temp label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 28px; border-radius: 999px; cursor: pointer; font-weight: 500; }
.temp input:checked + label { background: var(--ink); color: var(--paper); }
.temp input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.drinks:has(#temp-hot:checked) .cold, .drinks:has(#temp-cold:checked) .hot { display: none; }
.drinks h2.sub { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0 0 14px; }
.drinks-side .sub + .drinks-grid { margin-bottom: 36px; }
.drinks-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .drinks-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.drink { border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.drink-art { display: block; aspect-ratio: 4 / 5; background: #fff; }
.drink-art img { width: 100%; height: 100%; object-fit: cover; }
.drink-name { display: block; padding: 12px 14px; font-weight: 500; font-size: 15px; }

/* photos: the reference's grid, captions on the tile */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.tile { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: #e9e5da; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 36px 12px 12px; color: #fff; font-size: 14px; text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

/* booking */
.book-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .book-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.cal { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h3 { font-size: 1.3rem; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.cal-nav button[disabled] { opacity: 0.35; cursor: default; }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow span { text-align: center; font-size: 12px; color: var(--muted); padding: 6px 0; font-weight: 500; }
.cal-days button {
  aspect-ratio: 1; border-radius: 50%; border: 1px solid transparent; background: transparent; cursor: pointer;
  font-size: 15px; font-variant-numeric: tabular-nums; display: flex; align-items: center; justify-content: center;
}
.cal-days button:hover:not([disabled]) { border-color: var(--ink); }
.cal-days button[disabled] { color: rgba(23, 47, 130, 0.3); cursor: default; }
.cal-days button.unavailable { text-decoration: line-through; }
.cal-days button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cal-days .pad { visibility: hidden; }
.cal-loading { grid-column: 1 / -1; margin: 14px 4px; font-size: 14px; color: var(--muted); }
.cal-legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.cal-legend s { text-decoration: line-through; }
.chosen { margin-top: 14px; font-family: var(--display); font-size: 1.25rem; min-height: 1.6em; }
.summary { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--card); margin: 8px 0 18px; }
.summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 15px; }
.summary dt { color: var(--muted); white-space: nowrap; }
.summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.summary .total { font-family: var(--display); font-size: 1.6rem; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; display: flex; justify-content: space-between; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; }
.stepper button { width: 42px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 20px; }
.stepper output { min-width: 36px; text-align: center; font-weight: 500; }
.preview-note { display: none; background: #fff6d6; color: #5c4a00; border: 1px solid #e6cf6a; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
body.preview .preview-note { display: block; }

/* feedback */
.quotes { display: grid; gap: 16px; margin-bottom: 36px; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--card); }
.quote p { font-family: var(--display); font-size: 1.15rem; line-height: 1.4; }
.quote footer { font-size: 14px; color: var(--muted); }
.stars { letter-spacing: 2px; }
.rating { display: flex; gap: 6px; }
.rating label { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; background: #fff; }
.rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating label:has(input:checked) { background: var(--ink); color: var(--paper); }
.rating label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; max-width: 720px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* footer: the blue band, one centred stack */
.foot { background: var(--ink); color: var(--paper); padding: 60px 0 28px; text-align: center; }
.foot .wrap { max-width: 720px; display: flex; flex-direction: column; align-items: center; }
.foot-mark { width: 92px; height: auto; margin-bottom: 20px; }
.foot-line { font-family: var(--display); font-size: 1.35rem; line-height: 1.3; margin: 0 0 28px; text-wrap: balance; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.foot-nav { gap: 8px 32px; font-size: 15px; font-weight: 500; }
.foot-contact { margin-top: 16px; font-size: 14px; opacity: 0.82; }
.foot-contact li + li::before { content: "·"; margin: 0 12px; opacity: 0.6; }
.foot a { color: var(--paper); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .fine { width: 100%; margin: 36px 0 0; padding-top: 18px; border-top: 1px solid rgba(244, 242, 234, 0.18); font-size: 13px; opacity: 0.72; }
@media (max-width: 479px) {
  .foot-contact { flex-direction: column; gap: 8px; }
  .foot-contact li + li::before { content: none; }
}
