:root {
  color-scheme: dark;
  --bg: #0f0b08;
  --panel: rgba(255, 248, 240, 0.06);
  --text: #f6efe7;
  --muted: rgba(246, 239, 231, 0.72);
  --line: rgba(246, 239, 231, 0.12);
  --accent: #caa57a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top, #2a1a12 0%, var(--bg) 48%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .28;
  mix-blend-mode: soft-light;
}
.hero, .section, .order-band {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.hero { padding: 28px 0 72px; }
.topbar, .hero-grid, .story-grid, .bean-grid, .split, .order-band {
  display: grid;
  gap: 24px;
}
.topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 72px;
}
.brand { font-family: "Noto Serif SC", serif; font-size: 1.6rem; letter-spacing: .12em; }
.ghost-link, .secondary-btn { color: var(--muted); }
.hero-grid { grid-template-columns: 1.3fr .7fr; align-items: end; }
h1, h2, h3, .card-title { font-family: "Noto Serif SC", serif; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(3.1rem, 8vw, 6.1rem); max-width: 10ch; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 14ch; }
.eyebrow, .section-heading p, .card-label, .tag, .origin, .notes, .brew-panel p, .stats span, .card-footer, .section p { color: var(--muted); }
.lead { font-size: 1.08rem; line-height: 1.8; max-width: 58ch; margin: 24px 0 0; }
.cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.primary-btn, .secondary-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); }
.primary-btn { background: linear-gradient(135deg, var(--accent), #f0d0ad); color: #1d130c; font-weight: 700; }
.primary-btn.dark { background: #f3e8dd; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.stats div, .hero-card, .bean-card, .brew-panel, .order-band { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; backdrop-filter: blur(16px); }
.stats div { padding: 18px; }
.stats strong { display: block; font-size: 1.6rem; margin-bottom: 8px; }
.hero-card { padding: 28px; min-height: 340px; display: flex; flex-direction: column; justify-content: end; background: linear-gradient(180deg, rgba(202,165,122,.1), rgba(255,255,255,.04)); }
.card-title { font-size: 2rem; margin: 10px 0 8px; }
.card-footer { display: flex; justify-content: space-between; margin-top: 20px; font-size: .95rem; }
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 24px; }
.story-grid { grid-template-columns: repeat(2, minmax(0,1fr)); line-height: 1.9; color: var(--muted); }
.bean-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.bean-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.bean-card.featured { background: linear-gradient(180deg, rgba(202,165,122,.16), rgba(255,255,255,.06)); transform: translateY(-8px); }
.tag { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.bean-meta { display: flex; justify-content: space-between; margin-top: 8px; font-weight: 600; }
.bean-card a { margin-top: auto; color: var(--accent); }
.split { grid-template-columns: .9fr 1.1fr; align-items: start; }
.brew-panel { padding: 24px; }
.brew-panel > div + div { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.order-band { grid-template-columns: 1.2fr auto; align-items: center; padding: 28px; margin: 56px auto 72px; background: linear-gradient(135deg, rgba(202,165,122,.18), rgba(255,255,255,.06)); }
@media (max-width: 900px) {
  .hero-grid, .story-grid, .bean-grid, .split, .order-band, .stats { grid-template-columns: 1fr; }
  h1 { max-width: none; }
  .bean-card.featured { transform: none; }
}