/* ==========================================================================
   Tayramana — landing page styles
   Golden hour palette, drawn from Sana'a tower houses:
   brick walls, gypsum-white trim, qamariya stained glass, evening sky.
   Layout uses logical properties (margin-inline, padding-inline, etc.)
   so an Arabic right-to-left version works without a redesign.
   ========================================================================== */

/* ---------- Fonts (self-hosted: no connection to Google, GDPR-friendly) --- */
@font-face {
  font-family: "Gloock";
  src: url("../fonts/gloock-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --brick: #6e3f27;        /* sun-baked brick wall */
  --brick-deep: #45261a;   /* wall in shadow */
  --roast: #2b1a12;        /* body text on light */
  --gypsum: #fbf4e8;       /* lime-plaster trim */
  --sand: #efdcbd;         /* terrace earth in evening light */
  --amber: #e7a246;        /* low sun */
  --ember: #c8612f;        /* last light on the wall */
  --glass-red: #a7342b;
  --glass-blue: #2e5e7e;
  --glass-green: #4f7a4a;

  --text-on-dark: #f6e9d6;
  --muted-on-dark: #d8bf9e;
  --muted-on-light: #6d4a36;

  --font-display: "Gloock", "Iowan Old Style", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  /* Type scale (perfect fourth, 1.333) */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.4165rem;
  --step-2: 1.888rem;
  --step-3: 2.517rem;
  --step-4: 3.355rem;

  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 34em;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--brick-deep);
  color: var(--roast);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--gypsum);
  color: var(--roast);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { inset-block-start: 1rem; }

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

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Frieze: the gypsum zigzag band between floors ---------------- */
.frieze {
  height: 14px;
  background-color: var(--frieze-color, var(--gypsum));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14'%3E%3Cpath d='M0 14 8 2l8 12z'/%3E%3C/svg%3E") repeat-x left bottom / 16px 14px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14'%3E%3Cpath d='M0 14 8 2l8 12z'/%3E%3C/svg%3E") repeat-x left bottom / 16px 14px;
}
.frieze-wrap { background: var(--frieze-bg, var(--brick)); position: relative; z-index: 3; }

/* ---------- Hero: the top-floor room ------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 80% at 78% 55%, rgba(231, 162, 70, 0.22), transparent 60%),
    var(--brick);
  color: var(--text-on-dark);
  overflow: hidden;
}

.site-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}
.site-nav .brand {
  font-family: var(--font-display);
  font-size: var(--step-1);
  text-decoration: none;
  color: var(--gypsum);
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--muted-on-dark);
  text-decoration: none;
}
.site-nav a:hover { color: var(--gypsum); text-decoration: underline; }
.site-nav .lang a[aria-current="true"] { color: var(--gypsum); text-decoration: underline; }

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: 1.5rem 4rem;
}
@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    min-height: calc(100vh - 5rem);
    min-height: calc(100svh - 5rem);
    padding-block: 1rem 5rem;
  }
}

.hero-copy { max-width: 32rem; }
.hero h1 {
  font-size: clamp(3.4rem, 11vw, 7.25rem);
  line-height: 0.95;
  color: var(--gypsum);
  letter-spacing: -0.02em;
}
.hero .tagline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.35rem);
  line-height: 1.15;
  color: var(--amber);
  margin-block: 1.25rem 1.5rem;
}
.hero .lede {
  font-size: var(--step-0);
  color: var(--muted-on-dark);
  max-width: 26rem;
  margin-block-end: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--amber);
  color: var(--roast);
  font: 700 var(--step-0)/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.button:hover { background: #f0b562; text-decoration: none; }
.button:active { background: #d9913a; }

/* Empty slot that keeps the window's place in the hero layout.
   The window itself lives in .window-stage (see "The window" below). */
.hero-slot { aspect-ratio: 400 / 640; width: var(--win-w); justify-self: end; margin-block-start: 3rem; }
@media (max-width: 59.99rem) {
  .hero-grid .hero-slot { order: -1; justify-self: center; margin: 0; }
}
.hero .wrap { position: relative; z-index: 2; }

/* ---------- Story: the room ---------------------------------------------- */
.story {
  position: relative;
  z-index: 3;
  background: var(--gypsum);
  padding-block: clamp(4rem, 10vw, 7.5rem);
}
.story-grid {
  display: grid;
  gap: 2rem;
  grid-template-areas: "title" "visual" "text";
}
.story-grid > h2 { grid-area: title; }
.story-visual { grid-area: visual; width: min(100%, 26rem); margin-inline: auto; }
.story-text { grid-area: text; }
@media (min-width: 60rem) {
  .story-grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    grid-template-areas: "visual title" "visual text";
    grid-template-rows: auto 1fr;
    column-gap: 4.5rem;
    row-gap: 1.25rem;
    align-items: start;
  }
  .story-visual { width: 100%; max-width: 30rem; align-self: center; }
}

/* The tower on the rock: traced line art that draws itself from the centre outwards
   once you reach the section (main.js animates --draw). Without JS it is simply shown. */
.story-art { --line: var(--ember); --draw: 1; display: block; width: 100%; height: auto; }
/* each ring of strokes starts a little later (--s) and draws over a window of .22,
   so neighbouring rings overlap and the drawing flows outwards as one wave */
.story-art path { --p: clamp(0, calc((var(--draw) - var(--s, 0)) / .22), 1); }
.story-art .sl { fill: none; stroke: var(--line); stroke-linecap: round; stroke-linejoin: round; }
.story-art .sl.d { stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--p)); }
.story h2 {
  font-size: var(--step-3);
  color: var(--brick);
}
.story-text {
  max-width: var(--measure);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.55;
}
.story-text p + p { margin-block-start: 1.1em; }
.story-text .term { font-style: normal; color: var(--ember); }

/* ---------- The window ---------------------------------------------------
   One engraved window for the whole journey, drawn like the labels: cream
   lines, coloured stained glass. In the hero it draws itself; the story
   section slides over it; in "The selection" it draws itself again and the
   coffees turn past while the sun sinks, turns gold, and gives way to the
   moon. Without JavaScript (or with reduced motion) it simply sits in the hero. */
:root {
  --win-w: min(24rem, calc(74svh * 0.625));
  --win-line: #f6e9d6;
  --win-bg: var(--brick);
}
@media (max-width: 59.99rem) {
  :root { --win-w: min(54vw, calc(38svh * 0.625)); }
}

.window-stage {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100svh;
  z-index: 1;
  pointer-events: none;
  --draw: 1;
  --sun-y: 352;
  --sun-o: 1;
  --gold: 0;
  --moon: 0;
  --stars: 0;
  --lights: 0;
  --turn: 0;
  --carousel-o: 0;
}
.scrolly .window-stage {
  position: fixed;
  inset: 0;
  height: auto;
  will-change: transform;
}
.scrolly .window-stage.stage-native {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100svh;
  will-change: auto;
  overflow: hidden;                 /* older browsers */
}
/* The rings reach past the screen edge; clip them sideways only, so the page never
   gets wider than the phone (which made Safari zoom out and show a dark strip). */
@supports (overflow: clip) {
  .scrolly .window-stage.stage-native { overflow: visible; overflow-x: clip; }
  html, body { overflow-x: clip; }
}
.stage-grid {
  height: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.win {
  grid-column: 2;
  justify-self: end;
  position: relative;
  width: var(--win-w);
  aspect-ratio: 400 / 640;
  margin-block-start: 3rem;
}
@media (max-width: 59.99rem) {
  .stage-grid { grid-template-columns: 1fr; align-items: start; padding-block-start: 4.75rem; }
  .win { grid-column: 1; justify-self: center; margin: 0; }
}
[dir="rtl"] .win { justify-self: start; }

/* engraved lines: pathLength=1 on every stroke, so --draw 0..1 draws them */
.lw { fill: none; stroke: var(--win-line); stroke-linecap: round; }
.lw.d { stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--draw)); }
.lw-bg { fill: var(--win-bg); }
.lw-dot { fill: var(--win-line); opacity: var(--draw); }
.lw-bean { fill: none; stroke: var(--win-bg); stroke-width: 7; stroke-linecap: round; opacity: var(--draw); }

.win-rings {
  position: absolute;
  left: -100%;
  top: -46.875%;
  width: 300%;
  height: auto;
  max-width: none;
  opacity: 0.22;
  overflow: visible;
}
.win-frame { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.lw-glass { opacity: var(--draw); }
.win-view { position: absolute; overflow: hidden; background: var(--win-bg); }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.lw-sun {
  opacity: var(--sun-o);
  transform: translate(262px, calc(var(--sun-y) * 1px));
}
.lw-gold { fill: #e7a246; opacity: var(--gold); }
.lw-glow { opacity: calc(var(--gold) * var(--draw)); }
.lw-moon { opacity: calc(var(--moon) * var(--draw)); }
.lw-stars { opacity: calc(var(--stars) * var(--draw)); }
.lw-lit { fill: var(--win-line); opacity: calc(var(--lights) * var(--draw)); }

/* The coffees on a merry-go-round behind the window */
.carousel {
  position: absolute;
  inset: 0;
  perspective: 620px;
  container-type: size;
  opacity: var(--carousel-o);
}
.ring {
  position: absolute;
  left: 50%;
  bottom: 5%;
  transform-style: preserve-3d;
  transform: translateZ(-56cqw) rotateY(calc(var(--turn) * -1 * var(--ring-step, 72deg)));
}
.ring-item {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46cqw;
  margin-inline-start: -23cqw;
  aspect-ratio: 600 / 860;
  backface-visibility: hidden;
  transform: rotateY(calc(var(--i) * var(--ring-step, 72deg))) translateZ(56cqw);
}
.ring-item img { width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(20, 10, 5, 0.45)); }
.ring-item--all .mini { position: absolute; bottom: 0; width: 64%; }
.ring-item--all .m1 { left: -14%; rotate: -12deg; }
.ring-item--all .m2 { left: 18%; z-index: 1; bottom: 4%; }
.ring-item--all .m3 { left: 50%; rotate: 12deg; }

/* ---------- The selection ------------------------------------------------ */
.range {
  position: relative;
  background:
    radial-gradient(60% 50% at 78% 50%, rgba(231, 162, 70, 0.18), transparent 70%),
    var(--brick);
  color: var(--text-on-dark);
}
.range-panel { position: relative; z-index: 2; padding-block: clamp(4rem, 10vw, 6rem); }
.panel-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
.panel-copy { max-width: 30rem; }
@media (max-width: 59.99rem) {
  .panel-grid { grid-template-columns: 1fr; }
}
.range h2 {
  font-size: var(--step-1);
  color: var(--amber);
  margin-block-end: 1rem;
}

.stops { display: none; }
.items { display: grid; gap: 4rem; }
.item h3 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; color: var(--gypsum); }
.item-notes { margin-block-start: 0.6rem; font-size: var(--step-1); line-height: 1.35; color: var(--muted-on-dark); }
.item-text { margin-block: 0.9rem 0; color: var(--muted-on-dark); max-width: 28rem; }
.item-soon { font-weight: 700; color: var(--amber); margin-block-end: 0.4rem; }
.item .button { margin-block-start: 1.75rem; }
.item-bag { width: 9rem; height: auto; margin-block-end: 1rem; }

.specs {
  display: grid;
  gap: 1.25rem;
  margin-block-start: 1.75rem;
}
@media (min-width: 40rem) {
  .specs { grid-template-columns: auto auto; justify-content: start; column-gap: 3rem; }
}
.methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; align-content: start; }
.methods li { display: flex; align-items: center; gap: 0.7rem; font-weight: 500; }
.method-icon {
  width: 1.6rem; height: 1.6rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.meters { margin: 0; display: grid; gap: 0.7rem; }
.meter dd { margin: 0; display: grid; grid-template-columns: 4.75rem auto; align-items: center; gap: 0.9rem; }
.meter-vis { display: inline-flex; align-items: center; gap: 0.3rem; }
.meter .big { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1; }
.meter-txt { font-weight: 700; }
.bean { width: 0.8rem; height: 1.15rem; fill: transparent; stroke: currentColor; stroke-width: 1.3; }
.bean.on { fill: currentColor; }
.bean.on path { stroke: var(--brick); }
.dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 1.5px solid currentColor; }
.dot.on { background: currentColor; }

/* Scroll-driven version (JS adds .scrolly when motion is welcome) */
.scrolly .range-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 0;
  display: flex;
  align-items: center;
}
.scrolly .panel-grid { width: 100%; }
.scrolly .items { gap: 0; }
.scrolly .item { grid-area: 1 / 1; }
.scrolly .item-bag { display: none; }
.scrolly .stops {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.stops button {
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
}
.stops button::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1.5px solid var(--muted-on-dark);
  transition: background-color 0.2s, transform 0.2s;
}
.stops button[aria-current="true"]::before { background: var(--amber); border-color: var(--amber); transform: scale(1.25); }

@media (max-width: 59.99rem) {
  .scrolly .range-panel {
    align-items: flex-start;
    padding-block-start: calc(5.75rem + var(--win-w) * 1.6);
  }
  .scrolly .range h2 { display: none; }
  .scrolly .stops { margin-block-end: 0.75rem; }
  .item h3 { font-size: 1.9rem; }
  .item-notes { font-size: var(--step-0); margin-block-start: 0.35rem; }
  .specs { margin-block-start: 0.9rem; gap: 0.6rem; }
  .methods { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: var(--step--1); }
  .method-icon { width: 1.3rem; height: 1.3rem; }
  .meters { gap: 0.35rem; font-size: var(--step--1); }
  .meter .big { font-size: 1.4rem; }
  .item .button { margin-block-start: 1rem; min-height: 2.6rem; padding-block: 0.55rem; }
  .item-text { font-size: var(--step--1); }
}

/* ---------- Yemen + waitlist --------------------------------------------- */
.yemen {
  position: relative;
  z-index: 3;
  background:
    radial-gradient(60% 70% at 15% 0%, rgba(200, 97, 47, 0.28), transparent 70%),
    var(--brick-deep);
  color: var(--text-on-dark);
  padding-block: clamp(4rem, 10vw, 7.5rem);
}
.yemen-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 60rem) {
  .yemen-grid { grid-template-columns: 1.1fr 0.9fr; gap: 5rem; align-items: start; }
}
.yemen h2 { font-size: var(--step-3); color: var(--gypsum); margin-block-end: 1.5rem; }
.yemen-text p { max-width: var(--measure); color: var(--muted-on-dark); }
.yemen-text p + p { margin-block-start: 1em; }

.waitlist h3 {
  font-size: var(--step-2);
  color: var(--amber);
  margin-block-end: 0.75rem;
}
.waitlist > p { color: var(--muted-on-dark); margin-block-end: 1.5rem; }

.signup label {
  display: block;
  font-weight: 500;
  margin-block-end: 0.5rem;
  color: var(--text-on-dark);
}
.signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.signup input[type="email"] {
  flex: 1 1 14rem;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(246, 233, 214, 0.45);
  border-radius: 999px;
  background: rgba(251, 244, 232, 0.06);
  color: var(--gypsum);
  font: 400 var(--step-0)/1.2 var(--font-body);
}
.signup input[type="email"]::placeholder { color: rgba(216, 191, 158, 0.7); }
.signup input[type="email"]:focus-visible { border-color: var(--amber); }
.signup input[aria-invalid="true"] { border-color: #f08c6a; }
.signup .button { flex: 0 0 auto; }
.signup .button[disabled] { opacity: 0.7; cursor: progress; }
.signup .fine-print {
  margin-block-start: 1rem;
  font-size: var(--step--1);
  color: var(--muted-on-dark);
  max-width: 30rem;
}
.signup .status {
  margin-block-start: 1rem;
  min-height: 1.6em;
  font-weight: 500;
}
.signup .status[data-kind="success"] { color: var(--amber); }
.signup .status[data-kind="error"]   { color: #f4a68b; }
.hp { position: absolute; inset-inline-start: -9999px; }

/* ---------- Closing line ------------------------------------------------- */
.closing {
  position: relative;
  z-index: 3;
  background: var(--amber);
  color: var(--roast);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.closing-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}
.closing p.big {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1;
  max-width: 12ch;
}
.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.social a { font-weight: 700; }
.social span { color: var(--brick-deep); font-size: var(--step--1); display: block; }

/* ---------- Footer ------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 3;
  background: var(--brick-deep);
  color: var(--muted-on-dark);
  font-size: var(--step--1);
  padding-block: 2rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.site-footer a { color: var(--text-on-dark); }

/* ---------- Legal pages -------------------------------------------------- */
.legal-page { background: var(--gypsum); }
.legal-head {
  background: var(--brick);
  color: var(--text-on-dark);
}
.legal {
  padding-block: 3rem 5rem;
  max-width: 44rem;
}
.legal h1 { font-size: var(--step-3); color: var(--brick); margin-block-end: 2rem; }
.legal h2 { font-size: var(--step-1); color: var(--roast); margin-block: 2.25rem 0.75rem; }
.legal h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--step-0); margin-block: 1.5rem 0.5rem; }
.legal p, .legal ul { margin-block-end: 0.9rem; }
.legal ul { padding-inline-start: 1.25rem; }
.legal .fill { background: #f7d9a6; padding-inline: 0.2em; }

/* ---------- Opening-soon page (public while the site is locked) ---------- */
.soon-page .hero { min-height: calc(100svh - 4.5rem); }
.soon-page .hero-copy .signup { margin-block-start: 0.5rem; max-width: 30rem; }
.soon-page .hero .lede { margin-block-end: 1.5rem; }
.soon-page .site-nav { justify-content: flex-end; }
.soon-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-block-start: 1.5rem;
  font-size: var(--step--1);
  color: var(--muted-on-dark);
}
.soon-social a { color: var(--text-on-dark); font-weight: 700; }

/* ---------- Team login + preview bar ------------------------------------- */
.login-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(231, 162, 70, 0.22), transparent 70%),
    var(--brick);
  color: var(--text-on-dark);
}
.login { width: min(100%, 26rem); }
.login-brand { font-family: var(--font-display); font-size: var(--step-1); color: var(--amber); }
.login h1 { font-size: var(--step-3); color: var(--gypsum); margin-block: 0.25rem 0.75rem; }
.login-intro { color: var(--muted-on-dark); margin-block-end: 1.75rem; }
.login input[type="password"] {
  flex: 1 1 12rem;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(246, 233, 214, 0.45);
  border-radius: 999px;
  background: rgba(251, 244, 232, 0.06);
  color: var(--gypsum);
  font: 400 var(--step-0)/1.2 var(--font-body);
}
.login input[type="password"]:focus-visible { border-color: var(--amber); }
.login input[aria-invalid="true"] { border-color: #f08c6a; }
.login-back { margin-block-start: 2rem; font-size: var(--step--1); }
.login-back a { color: var(--muted-on-dark); }

.preview-bar {
  position: fixed;
  inset-block-end: 1rem;
  inset-inline-start: 1rem;
  z-index: 50;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--roast);
  color: var(--gypsum);
  font: 700 var(--step--1)/1 var(--font-body);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.preview-bar a { color: var(--amber); }

.login-intro[data-kind="error"],
.login-problem { color: #f4a68b; }

/* =========================================================================
   WordPress / WooCommerce
   ========================================================================= */

/* ---------- Header on inner pages ---------------------------------------- */
.page-head {
  background:
    radial-gradient(80% 140% at 85% 0%, rgba(231, 162, 70, 0.18), transparent 60%),
    var(--brick);
  color: var(--text-on-dark);
  position: relative;
  z-index: 3;
}

.tm-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding-inline: 0.3rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--roast);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---------- Plain pages (legal, cart, checkout, account) ----------------- */
.page-main { background: var(--gypsum); position: relative; z-index: 3; }
.page-body { max-width: 46rem; padding-block: 3rem 5rem; }
.page-wide { padding-block: 3rem 5rem; }
.page-title { font-size: var(--step-3); color: var(--brick); margin-block-end: 2rem; }
.entry > * + * { margin-block-start: 0.9rem; }
.entry h2 { font-size: var(--step-1); color: var(--roast); margin-block: 2.25rem 0.75rem; }
.entry h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--step-0); margin-block: 1.5rem 0.5rem; }
.entry ul, .entry ol { padding-inline-start: 1.25rem; }
.entry .fill { background: #f7d9a6; padding-inline: 0.2em; }
.entry a { color: var(--brick); }
.entry-card + .entry-card { margin-block-start: 2.5rem; }

/* ---------- "Alle Kaffees" ---------------------------------------------- */
.catalog { background: var(--gypsum); position: relative; z-index: 3; }
.catalog-head { padding-block: clamp(2.5rem, 7vw, 5rem) 1.5rem; }
.eyebrow {
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
  margin-block-end: 0.75rem;
}
.catalog-head h1 {
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.95;
  color: var(--brick);
  letter-spacing: -0.02em;
}
.catalog-lede { margin-block: 1.25rem 2rem; max-width: 36rem; color: var(--muted-on-light); font-size: var(--step-0); }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  min-height: 2.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(110, 63, 39, 0.35);
  background: transparent;
  color: var(--brick);
  font: 700 var(--step--1)/1 var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.pill:hover { border-color: var(--brick); }
.pill[aria-pressed="true"] { background: var(--brick); border-color: var(--brick); color: var(--gypsum); }

.catalog-body { padding-block: 1rem 5rem; }
.catalog-group { padding-block-start: 2.5rem; }
.catalog-group[hidden] { display: none; }
.group-head {
  display: grid;
  gap: 0.35rem;
  padding-block-end: 1.25rem;
  margin-block-end: 1.5rem;
  border-block-end: 1px solid rgba(110, 63, 39, 0.2);
}
@media (min-width: 48rem) {
  .group-head { grid-template-columns: minmax(12rem, 1fr) 2fr; align-items: end; gap: 2rem; }
}
.group-head h2 { font-size: var(--step-2); color: var(--roast); }
.group-head p { color: var(--muted-on-light); max-width: 34rem; }
.catalog-empty, .catalog-none { padding-block: 2rem; color: var(--muted-on-light); }

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  background: #fffaf2;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(110, 63, 39, 0.08), 0 10px 30px -18px rgba(69, 38, 26, 0.45);
}
.card[hidden] { display: none; }
.card-visual {
  position: relative;
  display: grid;
  place-items: end center;
  aspect-ratio: 5 / 4;
  padding-block-start: 1.25rem;
  background: var(--card-sky);
  border-radius: 1.25rem 1.25rem 0 0;
  overflow: hidden;
}
.card-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  background: linear-gradient(transparent, rgba(69, 38, 26, 0.35));
}
.card-visual img {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -3%;
  translate: -50% 0;
  width: auto;
  max-width: none;
  height: 92%;
  filter: drop-shadow(0 12px 14px rgba(20, 10, 5, 0.4));
  transition: transform 0.35s ease;
}
.card:hover .card-visual img { transform: translateY(-4px) rotate(-1.5deg); }
@media (prefers-reduced-motion: reduce) { .card:hover .card-visual img { transform: none; } }
.card-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.25rem 1.35rem 1.4rem; flex: 1; }
.card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
}
.card-title { font-size: var(--step-2); line-height: 1.05; color: var(--roast); }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-notes { color: var(--brick); font-weight: 500; }
.card-sizes { color: var(--muted-on-light); font-size: var(--step--1); }
.card-text { color: var(--muted-on-light); font-size: var(--step--1); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-block-start: auto; padding-block-start: 1rem; }
.card-actions .button { min-height: 2.75rem; padding: 0.6rem 1.25rem; font-size: var(--step--1); }
.card-actions .added_to_cart { font-size: var(--step--1); font-weight: 700; color: var(--brick); }
.card-more {
  border: 0;
  background: none;
  padding: 0.4rem 0;
  font: 700 var(--step--1)/1.2 var(--font-body);
  color: var(--brick);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.card-more::after { content: " +"; }
.card-more[aria-expanded="true"]::after { content: " –"; }
.card-details { padding-block-start: 1rem; margin-block-start: 0.75rem; border-block-start: 1px solid rgba(110, 63, 39, 0.15); display: grid; gap: 1rem; }
.card-details[hidden] { display: none; }
.card-details .specs { margin: 0; grid-template-columns: 1fr; color: var(--roast); font-size: var(--step--1); }
.card-details .bean.on path { stroke: #fffaf2; }
.card-link { font-weight: 700; color: var(--brick); font-size: var(--step--1); }

/* Price and the legal lines under it */
.tm-price { margin-block-start: 0.5rem; }
.tm-price .price { font-family: var(--font-display); font-size: var(--step-1); color: var(--roast); }
.price-unit, .price-legal { font-size: 0.8rem; color: var(--muted-on-light); line-height: 1.4; }
.price-legal a { color: inherit; }
.price del { opacity: 0.6; margin-inline-end: 0.3em; }
.price ins { text-decoration: none; }

/* Facts table (origin, process …) */
.facts { margin: 0; display: grid; gap: 0; font-size: var(--step--1); }
.facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding-block: 0.45rem; border-block-end: 1px solid rgba(110, 63, 39, 0.12); }
.facts dt { color: var(--muted-on-light); }
.facts dd { margin: 0; font-weight: 500; }

/* ---------- Single coffee ---------------------------------------------- */
.product-page { background: var(--gypsum); position: relative; z-index: 3; }
.product-grid { display: grid; gap: 2.5rem; padding-block: clamp(2rem, 6vw, 4.5rem); }
@media (min-width: 56rem) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; }
  .product-visual { position: sticky; top: 1.5rem; }
}
.product-visual {
  position: relative;
  aspect-ratio: 1;
  padding-block-start: 2rem;
  border-radius: 12rem 12rem 1.25rem 1.25rem;
  background: var(--card-sky);
  overflow: hidden;
  box-shadow: 0 20px 50px -30px rgba(69, 38, 26, 0.6);
}
.product-visual img { position: absolute; left: 50%; bottom: -2%; translate: -50% 0; width: auto; max-width: none; height: 88%; filter: drop-shadow(0 16px 18px rgba(20, 10, 5, 0.4)); }
.crumbs { font-size: var(--step--1); color: var(--muted-on-light); display: flex; gap: 0.5rem; margin-block-end: 1.25rem; }
.crumbs a { color: var(--brick); }
.product-page .item-soon { color: var(--ember); }
.product-title { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; color: var(--brick); letter-spacing: -0.02em; }
.product-notes { font-size: var(--step-1); color: var(--roast); margin-block-start: 0.75rem; font-family: var(--font-display); }
.product-excerpt { margin-block-start: 1rem; color: var(--muted-on-light); max-width: 32rem; }
.product-buy { margin-block: 1.75rem 0.5rem; }
.product-buy .price { font-family: var(--font-display); font-size: var(--step-2); color: var(--roast); }
.product-buy .price + * { margin-block-start: 0.2rem; }
.product-summary .specs { margin-block-start: 2rem; padding-block-start: 1.5rem; border-block-start: 1px solid rgba(110, 63, 39, 0.15); }
.product-summary .bean.on path { stroke: var(--gypsum); }

/* WooCommerce add-to-cart form */
.product-buy form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.75rem; margin-block-start: 1.25rem; }
.product-buy form.variations_form { display: block; }
.product-buy table.variations { border-collapse: collapse; margin-block-end: 1rem; }
.product-buy table.variations th, .product-buy table.variations td { padding: 0 0 0.5rem; text-align: start; vertical-align: middle; }
.product-buy table.variations th { padding-inline-end: 1rem; font-weight: 700; }
.product-buy table.variations select,
.quantity input.qty {
  min-height: 3rem;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid rgba(110, 63, 39, 0.35);
  border-radius: 999px;
  background: #fffaf2;
  color: var(--roast);
  font: 500 var(--step-0)/1.2 var(--font-body);
}
.quantity input.qty { width: 5rem; text-align: center; }
.product-buy .reset_variations { font-size: var(--step--1); margin-inline-start: 0.75rem; color: var(--brick); }
.product-buy .single_variation_wrap .woocommerce-variation { margin-block-end: 0.75rem; }
.product-buy .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.single_add_to_cart_button,
.woocommerce .button.alt,
.wc-block-components-button:not(.is-link) {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.6rem; border: 0; border-radius: 999px;
  background: var(--amber); color: var(--roast);
  font: 700 var(--step-0)/1 var(--font-body);
  cursor: pointer;
}
.single_add_to_cart_button:hover, .wc-block-components-button:not(.is-link):hover { background: #f0b562; }
.single_add_to_cart_button.disabled { opacity: 0.5; cursor: not-allowed; }
.product-buy .stock { font-size: var(--step--1); color: var(--muted-on-light); }

.product-more { background: var(--sand); padding-block: clamp(3rem, 7vw, 5rem); }
.product-more-grid { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .product-more-grid { grid-template-columns: 1.3fr 1fr; gap: 5rem; } }
.product-more .entry { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.55; max-width: 34rem; }
.product-more h2 { font-size: var(--step-1); color: var(--brick); margin-block-end: 1rem; }

/* ---------- Notices ------------------------------------------------------ */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  list-style: none;
  margin: 1rem 0;
  padding: 0.9rem 1.2rem;
  border-radius: 0.75rem;
  background: #fffaf2;
  border-inline-start: 4px solid var(--amber);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.woocommerce-error { border-color: var(--glass-red); }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 2.5rem; padding: 0.5rem 1.1rem; font-size: var(--step--1); }
.product-page > .woocommerce-notices-wrapper { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Cart & checkout (block and classic) ------------------------- */
.page-wide .wc-block-components-title,
.page-wide .wc-block-cart__totals-title { font-family: var(--font-display); font-weight: 400; }
.page-wide .wc-block-components-product-name { font-family: var(--font-display); font-size: var(--step-1); color: var(--roast); text-decoration: none; }
.page-wide .wc-block-components-text-input input,
.page-wide .wc-block-components-combobox .wc-block-components-combobox-control input,
.page-wide .wc-blocks-components-select__select { border-radius: 0.6rem; }
.page-wide a { color: var(--brick); }
.page-wide table.shop_table { width: 100%; border-collapse: collapse; }
.page-wide table.shop_table th, .page-wide table.shop_table td { padding: 0.75rem 0.5rem; border-block-end: 1px solid rgba(110, 63, 39, 0.15); text-align: start; }
.page-wide .wc-block-cart-items__row .wc-block-components-product-metadata { color: var(--muted-on-light); }

/* ---------- Centering fix: optical alignment of the big wordmark -------- */
.hero h1 { margin-inline-start: -0.045em; }

/* Danke page (after confirming the waitlist) */
.thanks-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.5rem; }
.thanks-home { color: inherit; text-underline-offset: 0.2em; }


/* ---------- Main menu: dropdown on desktop, "Menü" panel on phones ------- */
.site-nav .brand { margin-inline-end: auto; }
.nav-menu { display: flex; align-items: center; gap: 1.75rem; }
.site-nav .nav-links { align-items: center; gap: 0.25rem 1.75rem; }
.nav-links > li > a,
.nav-sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  font: 500 var(--step--1)/1.2 var(--font-body);
  color: var(--muted-on-dark);
  text-decoration: none;
  cursor: pointer;
}
.nav-sub-toggle:hover, .nav-sub-toggle[aria-expanded="true"] { color: var(--gypsum); }
.chev { width: 0.75rem; height: 0.75rem; fill: none; stroke: currentColor; stroke-width: 1.6; transition: rotate 0.2s ease; }
.nav-sub-toggle[aria-expanded="true"] .chev { rotate: 180deg; }
.has-sub { position: relative; }
.site-nav .nav-sub {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: -1rem;
  display: none;
  flex-direction: column;
  gap: 0;
  min-width: 16rem;
  padding: 0.5rem;
  background: var(--gypsum);
  border-radius: 1rem;
  box-shadow: 0 18px 40px -18px rgba(20, 10, 5, 0.55);
}
.site-nav .nav-sub::before { content: ""; position: absolute; inset: -0.8rem 0 auto; height: 0.8rem; }
.has-sub.open .nav-sub { display: flex; }
.site-nav .nav-sub a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.6rem;
  color: var(--roast);
  font-size: var(--step--1);
}
.site-nav .nav-sub a:hover, .site-nav .nav-sub a[aria-current="page"] { background: var(--sand); color: var(--roast); text-decoration: none; }
.nav-sub-all { margin-block-start: 0.35rem; padding-block-start: 0.35rem; border-top: 1px solid rgba(110, 63, 39, 0.15); }
.site-nav .nav-sub-all a { color: var(--brick); font-weight: 700; }
.nav-soon { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ember); }
.site-nav .nav-tools { align-items: center; gap: 1.1rem; }
.site-nav .nav-cart { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--gypsum); }
.cart-icon { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.nav-toggle-item { display: none; }
@media (min-width: 60rem) and (hover: hover) {
  .has-sub:hover .nav-sub { display: flex; }
}

@media (max-width: 59.99rem) {
  .nav-toggle-item { display: block; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid rgba(251, 244, 232, 0.3);
    border-radius: 999px;
    background: rgba(251, 244, 232, 0.08);
    color: var(--gypsum);
    font: 500 var(--step--1)/1 var(--font-body);
    cursor: pointer;
  }
  .nav-toggle-icon { position: relative; width: 1rem; height: 0.75rem; }
  .nav-toggle-icon span {
    position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 1px; background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle-icon span:nth-child(1) { top: 0; }
  .nav-toggle-icon span:nth-child(2) { top: calc(50% - 0.75px); }
  .nav-toggle-icon span:nth-child(3) { bottom: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) { transform: translateY(0.33rem) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) { transform: translateY(-0.33rem) rotate(-45deg); }

  .nav-menu {
    position: absolute;
    top: calc(100% - 0.25rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.6rem;
    background: var(--brick-deep);
    border: 1px solid rgba(251, 244, 232, 0.12);
    border-radius: 1.25rem;
    box-shadow: 0 24px 50px -20px rgba(10, 5, 2, 0.7);
  }
  .site-nav.menu-open .nav-menu { display: flex; animation: menu-in 0.18s ease-out; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
  .site-nav .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links > li + li { border-top: 1px solid rgba(251, 244, 232, 0.1); }
  .nav-links > li > a,
  .nav-sub-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.9rem 0.75rem;
    font-size: var(--step-0);
    color: var(--text-on-dark);
  }
  .site-nav .nav-sub {
    position: static;
    min-width: 0;
    margin: 0 0 0.6rem;
    padding: 0.35rem;
    background: rgba(251, 244, 232, 0.06);
    box-shadow: none;
  }
  .site-nav .nav-sub::before { display: none; }
  .site-nav .nav-sub a { padding: 0.7rem 0.75rem; font-size: var(--step-0); color: var(--text-on-dark); }
  .site-nav .nav-sub a:hover, .site-nav .nav-sub a[aria-current="page"] { background: rgba(251, 244, 232, 0.1); color: var(--gypsum); }
  .nav-sub-all { border-top-color: rgba(251, 244, 232, 0.12); }
  .site-nav .nav-sub-all a { color: var(--amber); }
  .nav-lang:empty { display: none; }
  .nav-lang { padding: 0.5rem 0.75rem; }
}
@media (max-width: 29.99rem) {
  .nav-cart-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav.menu-open .nav-menu { animation: none; }
}

/* ---------- Product photos ------------------------------------------------ */
.card--photo .card-visual { aspect-ratio: 4 / 5; padding: 0; place-items: stretch; background: #d9cdbd; }
.card--photo .card-visual::after { display: none; }
.card--photo .card-visual img {
  position: static; translate: none; width: 100%; height: 100%; max-width: 100%;
  object-fit: cover; object-position: 50% 50%; filter: none;
  transition: transform 0.5s ease;
}
.card--photo:hover .card-visual img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) { .card--photo:hover .card-visual img { transform: none; } }
@media (min-width: 56rem) {
  .product-media { position: sticky; top: 1.5rem; }
  .product-media .product-visual { position: relative; top: auto; }
}
.product-visual--photo { aspect-ratio: 4 / 5; padding: 0; background: #d9cdbd; }
.product-visual--photo img.product-main {
  position: absolute; inset: 0; translate: none; width: 100%; height: 100%; max-width: none;
  object-fit: cover; filter: none; transition: opacity 0.2s ease;
}
.product-thumbs { display: flex; gap: 0.6rem; margin: 0.9rem 0 0; padding: 0; list-style: none; }
.product-thumbs a {
  display: block; width: 4.25rem; aspect-ratio: 1; border-radius: 0.75rem; overflow: hidden;
  outline: 2px solid transparent; outline-offset: 2px; opacity: 0.75; transition: opacity 0.2s ease;
}
.product-thumbs a:hover, .product-thumbs a[aria-current="true"] { opacity: 1; outline-color: var(--brick); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Gentle snapping on each coffee in the selection (markers placed by main.js) */
html.snappy { scroll-snap-type: y proximity; }
.snap-stop { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; pointer-events: none; }

.preview-ver { opacity: .7; font-variant-numeric: tabular-nums; }
