/* 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;
}
.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;
}
.lang { display: flex; align-items: center; gap: 2px; color: var(--muted); font-size: 13px; }
.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, .pcard-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; }

/* ---------- 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; }

/* product card — shared with the home page */
.pgrid { display: grid; gap: 16px; }
.pcard {
  display: grid; grid-template-columns: 112px 1fr;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.pcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.pcard-media { display: block; position: relative; overflow: hidden; background: var(--panel); min-height: 176px; }
.pcard-media.media-blend img { padding: 14px 0; }
.pcard-body { padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.pcard-name .name-zh { font-size: 22px; }
.pcard-name .name-en { font-size: 19px; margin-top: 0; }
.pcard-kind { font-size: 13px; color: var(--muted); }
.pcard-go { margin-top: auto; padding-top: 10px; font-size: 14px; 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, .pcard-name .name-en, .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; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .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; }
}
