/* Oriental Brewing public site — shared by every page (product pages now,
   the one-page company site later). Per-product colour comes from a
   .theme-<name> class on <body> or on a card; everything else is shared. */

:root {
  --paper: #fbfaf7;
  --ink: #221f1c;
  --muted: #736c65;
  --line: rgba(34, 31, 28, 0.12);
  --accent: #7a5a3a;
  --accent-ink: #fff;
  --soft: #f1ece5;
  --panel: #f1ece5;

  --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", serif;
  --serif-zh: "Noto Serif SC", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;

  --gutter: 20px;
  --max: 1120px;
  --radius: 14px;
}

.theme-rose {
  --accent: #a3365c;
  --soft: #f7e9ef;
  --panel: #fbf1f5;
  --ink: #2b1f25;
}
/* A product with its own colours (配色: #底色 #强调色): --panel and --accent
   arrive inline on the element, the rest is derived from them. */
.theme-custom {
  --soft: color-mix(in srgb, var(--panel) 24%, #fff);
  --ink: color-mix(in srgb, var(--accent) 18%, #1d1b19);
}
.theme-mijooo {
  --accent: #454e5b;
  --soft: #eceef1;
  --panel: #96969a; /* sampled from the studio photo's backdrop */
  --ink: #1e2228;
}

/* ---------- base ---------- */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  /* Cormorant's default old-style figures make 1 read as I. */
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }

/* Both languages ship in the markup; show the chosen one. */
[data-lang="zh"] .en, [data-lang="en"] .zh { display: none !important; }

.eyebrow {
  font: 600 11px/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.muted { color: var(--muted); }
.tbc { color: var(--muted); }

/* ---------- header / footer ---------- */

.site-head {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font: 500 19px/1 var(--serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
/* 产品 · 关于 — on every page (2026-10-07). */
.site-nav { margin-left: auto; display: flex; gap: 2px; font-size: 13px; white-space: nowrap; }
.wordmark { white-space: nowrap; }
/* A phone fits the wordmark, 产品 · 关于 and 中/EN on one line. */
@media (max-width: 480px) {
  .site-head { padding: 0 12px 0 16px; }
  .site-head .wordmark { font-size: 14px; letter-spacing: 0.06em; }
  .site-nav a { padding: 0 6px; }
  .lang { margin-left: 2px; }
  .lang button { min-width: 30px; padding: 0 4px; }
}
/* Narrower still: the wordmark is the way to the landing page (关于). */
@media (max-width: 380px) { .site-nav a:last-child { display: none; } }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 8px;
  color: var(--muted); text-decoration: none; border-radius: 8px;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current] { font-weight: 600; }
.lang { display: flex; align-items: center; gap: 2px; color: var(--muted); font-size: 13px; margin-left: 8px; }
.lang button {
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  min-width: 36px; min-height: 36px; padding: 0 6px; border-radius: 8px;
}
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }

.site-foot {
  margin-top: 72px; padding: 40px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  text-align: center; font-size: 13px; color: var(--muted);
  display: grid; gap: 6px;
}
.foot-name { font: 500 17px/1.3 var(--serif); letter-spacing: 0.08em; color: var(--ink); }
.foot-drink { margin-top: 8px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--accent);
  font: 500 15px/1 var(--sans); letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--soft); }
.btn.wide { width: 100%; margin-top: 28px; }

/* ---------- hero ---------- */

.hero { display: grid; }
.hero-media {
  position: relative; overflow: hidden;
  background: var(--panel);
  height: min(68vh, 540px);
}
/* Absolutely placed so object-fit works against the panel, not the image's own size. */
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* White-background cutout: multiply drops the white into the panel colour. */
.media-blend img { object-fit: contain; mix-blend-mode: multiply; padding: 28px 0 20px; }
/* Studio photograph: shown whole on a panel matched to its backdrop, the
   side edges feathered so the seam between photo and panel disappears. */
.media-photo img {
  /* Sized to the photo itself (not the panel) so the mask feathers the photo's own edges. */
  left: 50%; right: auto; width: auto; max-width: none; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}

.hero-info { padding: 28px var(--gutter) 8px; }
.hero h1 { margin: 10px 0 6px; line-height: 1.05; }
.name-zh { display: block; font: 600 40px/1.15 var(--serif-zh); letter-spacing: 0.06em; }
.name-en { display: block; font: italic 400 28px/1.2 var(--serif); color: var(--muted); margin-top: 4px; }
.kind { font-size: 14px; color: var(--muted); letter-spacing: 0.04em; }
.tagline { margin-top: 18px; font: 400 21px/1.45 var(--serif); }
[data-lang="zh"] .tagline { font-family: var(--serif-zh); font-size: 18px; letter-spacing: 0.04em; }

.facts {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.facts li {
  font-size: 13px; padding: 5px 12px; border-radius: 999px;
  background: var(--soft); color: var(--ink);
}

.price {
  margin-top: 26px; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; gap: 4px;
}
/* With no buttons below, the price closes the hero; its bottom rule would double the highlights' top rule. */
.price:last-child { border-bottom: 0; padding-bottom: 0; }
.price-main { font: 500 30px/1.1 var(--serif); }
.price-main .per { font: 400 15px var(--sans); color: var(--muted); }
.price-note { font-size: 13px; color: var(--muted); }

.cta { display: grid; gap: 10px; margin-top: 22px; }
/* 联系了解更多: a text link with an underline, not a button. */
.contact-link { margin-top: 18px; font-size: 15px; }
.contact-link a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.contact-link a:hover { text-decoration-thickness: 2px; }
.order .contact-link { margin-top: 22px; }

/* ---------- sections ---------- */

main { max-width: var(--max); margin: 0 auto; }
.block { padding: 48px var(--gutter) 0; }
.label {
  font: 600 11px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
h3 { font: 600 12px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

.prose p { max-width: 64ch; }
.prose .lead { font: 400 20px/1.6 var(--serif); }
[data-lang="zh"] .prose .lead { font: 400 17px/1.95 var(--serif-zh); letter-spacing: 0.02em; }

/* highlights — three selling points right under the hero */
.highlights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.highlights li { background: var(--paper); padding: 20px 0; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.highlights .hl-n { grid-row: span 2; font: 500 22px/1.2 var(--serif); color: var(--accent); }
.highlights h3 { color: var(--ink); margin-bottom: 4px; letter-spacing: 0.06em; }
.highlights p { font-size: 15px; color: var(--muted); }

/* process — a vertical timeline */
.process { list-style: none; margin: 0; padding: 0; position: relative; }
.process li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-bottom: 26px; }
.process li:not(:last-child)::before {
  content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 1px; background: var(--line);
}
.process .n {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent); background: var(--paper);
  font: 500 16px/1 var(--serif);
}
/* Icon tiles: the step number rides as a badge on the corner. */
.process:has(.step-ico) { --dot: 56px; }
.process li:has(.step-ico) { grid-template-columns: 56px 1fr; }
.process:has(.step-ico) li:not(:last-child)::before { left: 27.5px; top: 64px; }
.step-ico {
  position: relative; width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--soft); color: var(--accent);
  transition: transform 0.2s ease;
}
.step-ico .ico { width: 32px; height: 32px; }
.process li:hover .step-ico { transform: translateY(-3px); }
/* Step number as a prefix to the title — not a corner badge, which read as an unread count. */
.step-no {
  margin-right: 10px;
  font: 500 15px/1 var(--serif); letter-spacing: 0.04em;
  color: var(--accent); font-variant-numeric: lining-nums;
}
.process:has(.step-ico) h3 { margin-top: 6px; }
.process h3 { color: var(--ink); margin: 5px 0 4px; letter-spacing: 0.06em; }
.process p { font-size: 15px; }
.callout {
  margin-top: 8px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--soft); border-left: 3px solid var(--accent);
}
.callout p { font: 400 18px/1.6 var(--serif); }
[data-lang="zh"] .callout p { font: 400 15px/1.9 var(--serif-zh); }

/* poems — an epigraph opening the story: a thin rule, no card */
.poem { margin: 0 0 36px; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); }
.poem blockquote {
  margin: 0; font: 400 clamp(17px, 4.6vw, 21px)/2 var(--serif-zh);
  letter-spacing: 0.14em;
}
.poem blockquote span { display: block; }
.poem blockquote .stanza { height: 0.9em; }
.poem blockquote .ph { display: inline-block; }
/* A line that wraps on a phone still reads as one line: space between lines, not inside them. */
.poem blockquote > span + span:not(.stanza) { margin-top: 0.45em; }
.poem-en { margin-top: 14px; font: italic 400 18px/1.6 var(--serif); color: var(--muted); }
.poem figcaption { margin-top: 14px; font-size: 13px; letter-spacing: 0.1em; color: var(--muted); }

/* Scroll-in: only when JS is running (html.js), never for reduced motion. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: calc(var(--i, 0) * 110ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .step-ico { transition: none; }
}

/* tasting — guided steps beside the profile */
.tasting { display: grid; gap: 36px; }
.tsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.tsteps li { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: baseline; }
.tsteps .tk { font: 600 20px/1.3 var(--serif-zh); color: var(--accent); }
[data-lang="en"] .tsteps .tk { font: italic 500 21px/1.3 var(--serif); }
.tsteps p { font: 400 19px/1.55 var(--serif); }
[data-lang="zh"] .tsteps p { font: 400 16px/1.85 var(--serif-zh); }
.taste-side .notes-h { margin-top: 24px; }

/* taste */
.taste { display: grid; gap: 32px; }
.profile { margin: 0; display: grid; gap: 14px; }
.profile div { display: grid; grid-template-columns: 96px 1fr; align-items: center; }
.profile dt { font-size: 14px; }
.profile dd { margin: 0; }
.dots { display: flex; gap: 8px; }
.dots i {
  width: 100%; max-width: 44px; height: 6px; border-radius: 3px;
  background: var(--soft);
}
.dots i.on { background: var(--accent); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 14px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
}

/* serve */
.serve { display: grid; gap: 16px; }
.serve > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.serve-temp .big { font: 500 44px/1.1 var(--serif); color: var(--accent); }
.serve-pair p { margin-bottom: 14px; }

/* specs */
.specs { margin: 0; display: grid; grid-template-columns: 1fr; }
.specs div {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

/* order */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start;
  background: var(--soft); border-radius: var(--radius); padding: 18px;
}
.steps .n {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font: 500 16px/1 var(--serif);
}
.steps h3 { color: var(--ink); margin-bottom: 4px; }
.steps p { font-size: 15px; }

/* brand */
.brand { text-align: left; }
.brand-h { font: 400 30px/1.3 var(--serif); margin: 8px 0 16px; }
[data-lang="zh"] .brand-h { font: 400 24px/1.4 var(--serif-zh); letter-spacing: 0.1em; }
.brand .prose p { color: var(--muted); }
.brand figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.brand img { width: 100%; height: 100%; object-fit: cover; }
/* The brewery under the mountains: keep the building and the ridge, trim the sky on phones. */
.brand-wide { aspect-ratio: 16 / 9; margin-bottom: 28px !important; }
.brand-wide img { object-position: center 75%; }
.brand-body { display: grid; gap: 24px; }
.brand-side { aspect-ratio: 4 / 5; }



/* ---------- beer pages ---------- */

/* Preview-only: the page still has 待确认 fields (build --strict refuses to publish). */
.pending-bar {
  position: relative; z-index: 20;
  padding: 8px var(--gutter); text-align: center;
  background: #b42318; color: #fff; font-size: 13px; letter-spacing: 0.02em;
}

/* A lifestyle photo is cropped to the panel. */
.media-art img, .media-cover img { object-fit: cover; object-position: center 30%; }
/* Label art is shown WHOLE, at its own proportions — never cropped (Yuehao,
   2026-10-07: 首图剪切了，不好看，调一下 aspect ratio). The hero takes the
   image's height, up to the old desktop cap; past that the image is fitted
   inside and the panel (the poster's own colour, 配色) fills the sides. Tiles
   keep their 4:5 frame and fit the art inside it the same way. */
.hero-media.media-art { height: auto; }
.hero-media.media-art img { position: static; display: block; width: 100%; height: auto; max-height: min(82vh, 680px); object-fit: contain; }
.tile-media.media-art img { object-fit: contain; }
.hero-beer .eyebrow .sep { opacity: 0.5; margin: 0 2px; }

/* The numbers get a band of their own: big figures, small labels. */
.stats-block { padding-top: 28px; }
.stats {
  margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--soft); padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; }
/* Two to a row on a phone: an odd one out takes the whole last row rather than leave a hole. */
.stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stat dt { font: 600 11px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.stat dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; color: var(--accent); }
.stat b { font: 600 34px/1 var(--serif); font-variant-numeric: lining-nums; letter-spacing: -0.01em; }
.stat small { font-size: 13px; color: var(--muted); }
.stat .meter { flex-basis: 100%; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 16%, #fff); margin-top: 6px; }
.stat .meter i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }

/* Flavour words: louder than the rice-wine chips. */
.chips-bold { margin-top: 20px; }
.chips-bold li { background: var(--soft); border-color: transparent; color: var(--accent); font-weight: 600; }

/* 待补: a fact or an image we don't have yet (preview only — build --strict refuses it). */
mark.tbd { background: #fde68a; color: #7c2d12; padding: 0 4px; border-radius: 4px; font-style: normal; }
.no-img {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--accent); font: 600 14px/1.4 var(--sans); letter-spacing: 0.1em;
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--accent) 8%, transparent) 14px 28px);
  border: 2px dashed color-mix(in srgb, var(--accent) 40%, transparent);
}
.hero-media .no-img { border-radius: inherit; }

/* A poem still to be chosen. */
.poem-tbc { border-left-style: dashed; }
.poem-tbc blockquote { color: var(--muted); letter-spacing: 0.08em; font-size: 16px; }

/* Signature ingredients as icon tiles, the full list under them. */
.ingr { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.ingr li { display: grid; justify-items: center; gap: 10px; text-align: center; }
.ingr-ico {
  width: 72px; height: 72px; border-radius: 22px;
  display: grid; place-items: center;
  background: var(--soft); color: var(--accent);
}
.ingr-ico .ico { width: 38px; height: 38px; }
.ingr-name { font-size: 15px; font-weight: 600; }
.ingr-list { margin-top: 22px; font-size: 14px; color: var(--muted); max-width: 64ch; }
.ingr-list .k { font-weight: 600; color: var(--ink); margin-right: 10px; }

/* Photos: a swipeable strip on a phone, a row of three on wider screens. */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px;
  scroll-padding: 0 var(--gutter); scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--soft); scroll-snap-align: start; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.all-link { margin-top: 18px; font-size: 14px; }
.all-link a { color: var(--accent); text-decoration: none; }


/* ---------- home: one filter, a carousel per shelf ---------- */

.home-hero { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 4px; }
.home-h { margin-top: 10px; font: 500 34px/1.2 var(--serif); }
[data-lang="zh"] .home-h { font: 600 28px/1.35 var(--serif-zh); letter-spacing: 0.06em; }

/* 类别 filter: sticks under the header; without JS it does nothing, so it isn't shown. */
.filterbar {
  position: sticky; top: 56px; z-index: 9;
  display: none; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.js .filterbar { display: flex; }
.filterbar::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: 500 14px/1 var(--sans); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
/* On a phone the chips wrap instead of scrolling sideways: a sideways row hid
   half the 类别 off the edge with nothing saying more were there (Yuehao,
   2026-10-07: category 在手机上显示截断了，不够 intuitive). Two compact rows. */
@media (max-width: 720px) {
  .filterbar { flex-wrap: wrap; overflow: visible; gap: 6px; padding: 8px var(--gutter) 10px; }
  .chip { min-height: 36px; padding: 0 12px; font-size: 13px; gap: 5px; }
}
.chip .n, .shelf-name .count { font-variant-numeric: tabular-nums; opacity: 0.6; font-size: 0.85em; }

/* 大类 section (精酿啤酒 / 米酒): the big heading with a rule; brand shelves sit inside. */
.cat, .shelf { scroll-margin-top: 120px; }
.block.cat { padding-top: 24px; }
.block.cat + .block.cat { padding-top: 56px; }
.cat-h { font: 600 26px/1.3 var(--serif-zh); letter-spacing: 0.08em; display: flex; align-items: center; gap: 16px; }
[data-lang="en"] .cat-h { font: 500 30px/1.2 var(--serif); letter-spacing: 0; }
.cat-h::after { content: ""; flex: 1; height: 2px; background: var(--ink); }

.shelf { padding-top: 20px; }
.shelf + .shelf { margin-top: 16px; border-top: 1px solid var(--line); }
.shelf-head { margin-bottom: 12px; }
.shelf-name { font: 600 17px/1.3 var(--sans); letter-spacing: 0.02em; text-transform: none; color: var(--ink); margin: 0; display: flex; align-items: baseline; gap: 8px; }
.shelf-intro { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* The carousel: a scroll-snap row that bleeds to the screen edge, ~2¼ tiles
   on a phone so the next one peeks in. site.js turns it and drives the bar. */
.carousel { --peek: 2.25; --gap: 12px; }
.car-track {
  position: relative;
  display: grid; grid-auto-flow: column; gap: var(--gap);
  grid-auto-columns: calc((100% - (var(--peek) - 1) * var(--gap)) / var(--peek));
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 6px;
  scroll-padding: 0 var(--gutter); scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track > .tile { scroll-snap-align: start; }
.car-ctrl { display: none; align-items: center; gap: 6px; margin-top: 10px; }
.js .car-ctrl { display: flex; }
.carousel.static .car-ctrl { display: none; }
.car-bar { position: relative; flex: 1; height: 2px; margin-right: 8px; border-radius: 2px; background: var(--line); overflow: hidden; }
.car-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; border-radius: 2px; background: var(--ink); transition: transform 0.25s ease; }
.car-btn {
  flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.car-btn:hover { border-color: var(--ink); }
.car-btn svg { width: 18px; height: 18px; }
[data-play] .i-play, [data-play].paused .i-pause, [data-play].paused .car-ring { display: none; }
[data-play].paused .i-play { display: block; }
/* Countdown ring: fills over each turn's wait so a reader can see the row
   will move on by itself; it freezes while the carousel holds still. */
[data-play] { position: relative; }
.car-btn .car-ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); pointer-events: none; }
.car-ring circle { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 0.1s linear; }
.car-ring.snap circle { transition: none; }

.tile {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile { position: relative; min-width: 0; }
.badge-new {
  display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: 0.06em; text-transform: none;
  padding: 5px 9px; border-radius: 999px; background: #d4361c; color: #fff; vertical-align: 2px;
}
.tile > .badge-new { position: absolute; top: 10px; left: 10px; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
.hero-info .eyebrow .badge-new { margin-left: 6px; }
.tile-media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--panel); overflow: hidden; }
.tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-media.media-blend img { object-fit: contain; mix-blend-mode: multiply; padding: 10% 6%; }
/* The rice-wine studio photos: the hero's feathered, self-sized placement doesn't fit a tile — just cover. */
.tile-media.media-photo img { left: 0; width: 100%; max-width: 100%; transform: none; -webkit-mask-image: none; mask-image: none; object-fit: cover; }
.tile-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 14px; flex: 1; }
/* 16px on a phone: a seven-character name (海盐西柚金菲士) fits on one line. */
.tile-zh { font: 600 16px/1.3 var(--serif-zh); letter-spacing: 0.02em; }
.tile-en { font: italic 400 15px/1.25 var(--serif); color: var(--muted); font-variant-numeric: lining-nums; }
.tile-kind { margin-top: 4px; font-size: 12px; color: var(--muted); }
/* One line each: in a carousel every tile takes the tallest one's height, so one
   long name would leave a hole in all the others. The product page has it whole. */
.tile-en, .tile-kind { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-meta { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.tile-price { font: 600 18px/1.1 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); }
.tile-price small { font: 400 12px var(--sans); color: var(--muted); }
.tile-note { flex-basis: 100%; font-size: 11px; color: var(--muted); }
.pill { display: inline-block; font: 600 12px/1 var(--sans); padding: 5px 9px; border-radius: 999px; background: var(--soft); color: var(--accent); }

/* Cormorant defaults to old-style figures (1 reads as I). The font: shorthand
   resets font-variant-numeric, so it has to come after every rule using it. */
.wordmark, .name-en, .tagline, .price-main, .prose .lead, .serve-temp .big,
.steps .n, .brand-h, .foot-name, .age-q, .highlights .hl-n, .process .n,
.callout p, .tsteps p { font-variant-numeric: lining-nums; }

/* ---------- age gate ---------- */

.age-gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: var(--gutter);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.age-gate[hidden] { display: none; }
.age-card {
  width: 100%; max-width: 380px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 36px 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}
.age-card .wordmark { display: block; font-size: 16px; color: var(--muted); }
.age-q { font: 500 24px/1.35 var(--serif); margin: 18px 0 24px; }
[data-lang="zh"] .age-q { font: 500 20px/1.5 var(--serif-zh); }
.age-btns { display: grid; gap: 10px; }
.age-no { margin-top: 18px; font-size: 14px; color: var(--muted); }
body.gated { overflow: hidden; }

/* ---------- wider screens ---------- */

@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .taste, .serve { grid-template-columns: 1fr 1fr; }
  .highlights ul { grid-template-columns: repeat(3, 1fr); gap: 0; background: none; }
  .highlights li { padding: 26px 28px 26px 0; grid-template-columns: 1fr; }
  .highlights li + li { padding-left: 28px; border-left: 1px solid var(--line); }
  .highlights .hl-n { grid-row: auto; margin-bottom: 8px; }
  .tasting { grid-template-columns: 1.4fr 1fr; gap: 56px; }
  .brand-wide { aspect-ratio: 1600 / 558; margin-bottom: 40px !important; }
  .brand-body { grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
  .brand-side { aspect-ratio: 4 / 3; }
  /* Timeline turns horizontal: one column per step, the rule runs sideways. */
  .process { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 24px; }
  .process li { grid-template-columns: 1fr; gap: 10px; padding-bottom: 0; }
  .process li:not(:last-child)::before { left: 44px; right: -20px; top: 16px; bottom: auto; width: auto; height: 1px; }
  .process li:has(.step-ico) { grid-template-columns: 1fr; }
  .process:has(.step-ico) li:not(:last-child)::before { left: 72px; top: 28px; }
  .poem { margin-bottom: 44px; padding-left: 28px; }
  .callout { margin-top: 32px; }
  .serve { grid-template-columns: 1fr 2fr; }
  .specs { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { grid-template-columns: 1fr; }
  .btn.wide { width: auto; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .stat:last-child:nth-child(odd) { grid-column: auto; }
  .stat b { font-size: 42px; }
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; }
  .ingr { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .carousel { --peek: 3.3; --gap: 16px; }
  .tile-zh { font-size: 17px; letter-spacing: 0.04em; }
  .home-hero { padding-top: 48px; }
  .home-h { font-size: 44px; }
  [data-lang="zh"] .home-h { font-size: 36px; }
  .cta { grid-template-columns: auto auto; justify-content: start; }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
    max-width: var(--max); margin: 0 auto;
    padding: 32px var(--gutter) 0; gap: 56px; align-items: center;
  }
  .hero-media { height: min(82vh, 680px); border-radius: 20px; }
  .hero-info { padding: 0; }
  .name-zh { font-size: 54px; }
  .name-en { font-size: 34px; }
  .block { padding-top: 72px; }
  .carousel { --peek: 4.3; }
}


/* ---------- 关于我们 About (/about/) ----------
   Yuehao's landing page for venues (2026-10-07), ported from his about.html.
   Everything is .ab-* so nothing here touches the product pages. */

.about .ab-sec { padding: 72px var(--gutter); }
.about .ab-sec + .ab-sec { border-top: 1px solid var(--line); }
.ab-serif { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
[data-lang="zh"] .ab-serif { font-family: var(--serif-zh); letter-spacing: 0.02em; }
.ab-h1 { font-size: clamp(34px, 5.4vw, 56px); margin: 18px 0 22px; max-width: 820px; }
.ab-h2 { font-size: clamp(28px, 3.6vw, 36px); }
.ab-card-body .ab-h3 { font: 400 22px/1.2 var(--serif); text-transform: none; letter-spacing: 0; color: var(--ink); margin-bottom: 2px; }
[data-lang="zh"] .ab-card-body .ab-h3 { font-family: var(--serif-zh); font-size: 20px; letter-spacing: 0.02em; }
.ab-lead { font-size: 17px; color: var(--muted); max-width: 620px; margin-bottom: 32px; }
.ab-rule { display: flex; align-items: center; gap: 24px; margin-bottom: 36px; }
.ab-rule::after { content: ""; flex: 1; height: 1.5px; background: var(--ink); }
.ab-hero { padding-top: 88px !important; padding-bottom: 80px !important; }

.ab-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ab-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; text-decoration: none; transition: background 0.15s, border-color 0.15s;
}
.ab-btn:hover { border-color: rgba(34, 31, 28, 0.3); }
.ab-btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ab-btn.primary:hover { background: #000; }

.ab-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.ab-fact { padding: 20px 20px 0 0; }
.ab-fact + .ab-fact { padding-left: 20px; border-left: 1px solid var(--line); }
.ab-fact b { display: block; font: 500 30px/1.1 var(--serif); }
[data-lang="zh"] .ab-fact b { font-family: var(--serif-zh); font-size: 24px; }
.ab-fact > span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }

.ab-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ab-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.ab-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(34, 31, 28, 0.07); }
.ab-swatch { aspect-ratio: 16 / 10; display: flex; align-items: flex-end; padding: 18px; position: relative; }
.ab-swatch .glyph { position: absolute; right: 18px; top: 12px; font: 64px/1 var(--serif-zh); opacity: 0.85; }
.sw-beer { background: #f3e7c4; color: #6b5114; }
.sw-rice { background: #f6e6ea; color: #7c3a4b; }
.sw-free { background: #dcece3; color: #2f5e45; }
.ab-swatch .count { font-size: 12px; background: rgba(255, 255, 255, 0.75); padding: 3px 10px; border-radius: 999px; color: var(--ink); }
.ab-card-body { padding: 18px 18px 22px; }
.ab-card-body .sub { font: italic 15px var(--serif); color: var(--muted); margin-bottom: 10px; }
.ab-card-body p { font-size: 14px; color: var(--muted); }

.ab-brands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ab-brand { background: var(--panel); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; min-height: 240px; }
.ab-brand-mark { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ab-brand-mark .zhname { font: 500 30px var(--serif-zh); }
.ab-brand-mark .enname { font: 22px var(--serif); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ab-brand p { color: var(--muted); font-size: 14.5px; max-width: 460px; }
.ab-brand .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.ab-brand .tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #fff; }
.ab-brand-link { font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--ink); align-self: flex-start; padding-bottom: 1px; }

.ab-split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.ab-split .ab-h2 { margin: 14px 0 16px; }
.ab-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 36px; }
.ab-point { padding: 22px 0; border-top: 1px solid var(--line); }
.ab-point .num { font: italic 17px var(--serif); color: var(--accent); }
.ab-point h4, .ab-step h4 { font-size: 16px; font-weight: 600; margin: 4px 0 6px; }
.ab-point p, .ab-step p { font-size: 14px; color: var(--muted); }

.ab-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.ab-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.ab-step::before { counter-increment: s; content: "0" counter(s); font: 40px/1 var(--serif); color: var(--accent); display: block; margin-bottom: 18px; }

.about .ab-contact-sec { border-top: 0; padding-top: 0; scroll-margin-top: 72px; }
.ab-contact {
  background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 56px;
  display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center;
}
.ab-contact .eyebrow { color: #c9a982; }
.ab-contact .ab-h2 { margin: 14px 0 12px; }
.ab-contact p { color: rgba(251, 250, 247, 0.7); max-width: 480px; }
.ab-contact-list { display: flex; flex-direction: column; gap: 10px; }
.ab-contact-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px;
  border: 1px solid rgba(251, 250, 247, 0.18); border-radius: 12px; text-decoration: none; transition: background 0.15s;
}
.ab-contact-row:hover { background: rgba(251, 250, 247, 0.06); }
.ab-contact-row small { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(251, 250, 247, 0.55); }
.ab-contact-row .arr { font: 20px var(--serif); }
.about + .site-foot { margin-top: 0; }

@media (max-width: 860px) {
  .ab-cards, .ab-steps, .ab-brands { grid-template-columns: 1fr; }
  .ab-split { grid-template-columns: 1fr; gap: 24px; }
  .ab-contact { grid-template-columns: 1fr; padding: 36px 24px; }
}
@media (max-width: 640px) {
  .about .ab-sec { padding-top: 56px; padding-bottom: 56px; }
  .ab-hero { padding-top: 56px !important; padding-bottom: 56px !important; }
  .ab-facts { grid-template-columns: 1fr; }
  .ab-fact, .ab-fact + .ab-fact { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .ab-points { grid-template-columns: 1fr; }
  .ab-brand { padding: 24px; }
  .ab-swatch { aspect-ratio: 5 / 2; }
  .ab-swatch .glyph { font-size: 48px; }
}
