/* ============================================
   Kahawa Nzuri Coffee — Design System v1
   Palette, typography, layout, components.
   Every page inherits this file.
   ============================================ */

:root {
  /* Brand palette */
  --cream: #F4EFE7;
  --cream-warm: #EBE4D6;
  --cream-deep: #E3DBCB;
  --espresso: #241C15;
  --espresso-lift: #2E241B;
  --espresso-warm: #3A2C20;
  --ochre: #B87333;
  --ochre-warm: #C88849;
  --stone: #D9D2C6;
  --ash: #6E6862;
  --ash-soft: #9C958C;
  --highland: #3F5445;
  --clay: #8A5A44;

  /* Semantic tokens */
  --ground: var(--cream);
  --ground-inv: var(--espresso);
  --panel: var(--cream-warm);
  --panel-deep: var(--cream-deep);
  --ink: var(--espresso);
  --ink-mute: var(--ash);
  --ink-inv: var(--cream);
  --ink-inv-mute: #B8AFA5;
  --rule: #DDD3C3;
  --rule-inv: #3A2E24;
  --accent: var(--ochre);

  /* Type stacks */
  --font-display: "Didot", "Bodoni 72 Book", "Bodoni 72", "Playfair Display", "Big Caslon", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1240px;
  --container-narrow: 1080px;
  --container-text: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #17110D;
    --ground-inv: #24190F;
    --panel: #1D160F;
    --panel-deep: #221A12;
    --ink: var(--cream);
    --ink-mute: #B0A79C;
    --ink-inv: var(--cream);
    --ink-inv-mute: #B0A79C;
    --rule: #33291F;
    --rule-inv: #33291F;
    --accent: var(--ochre-warm);
  }
}
:root[data-theme="dark"] {
  --ground: #17110D;
  --ground-inv: #24190F;
  --panel: #1D160F;
  --panel-deep: #221A12;
  --ink: var(--cream);
  --ink-mute: #B0A79C;
  --ink-inv: var(--cream);
  --ink-inv-mute: #B0A79C;
  --rule: #33291F;
  --rule-inv: #33291F;
  --accent: var(--ochre-warm);
}
:root[data-theme="light"] {
  --ground: var(--cream);
  --ground-inv: var(--espresso);
  --panel: var(--cream-warm);
  --panel-deep: var(--cream-deep);
  --ink: var(--espresso);
  --ink-mute: var(--ash);
  --ink-inv: var(--cream);
  --ink-inv-mute: #B8AFA5;
  --rule: #DDD3C3;
  --rule-inv: #3A2E24;
  --accent: var(--ochre);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: var(--accent); color: var(--cream); }

/* ============================================
   Grain overlay (used inside photo placeholders)
   ============================================ */
.grain::before,
.photo::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.3;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.photo { position: relative; overflow: hidden; }
.photo-caption {
  position: absolute; bottom: 16px; left: 20px; right: 20px;
  z-index: 2;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(244, 239, 231, 0.55);
  font-style: italic;
}
.photo.on-cream .photo-caption { color: rgba(36, 28, 21, 0.55); }

/* Photo mood presets */
.photo.cherries {
  background:
    radial-gradient(120% 100% at 20% 20%, #4A3626 0%, transparent 55%),
    radial-gradient(80% 80% at 85% 80%, #C88849 0%, transparent 45%),
    linear-gradient(140deg, #2A1F16 0%, #1A130D 100%);
}
.photo.bag {
  background:
    radial-gradient(90% 90% at 30% 30%, #E8DCC6 0%, transparent 50%),
    linear-gradient(160deg, #D8CBB2 0%, #B39B7C 60%, #7C6549 100%);
}
.photo.hillside {
  background:
    radial-gradient(80% 60% at 50% 40%, #7A5238 0%, transparent 55%),
    radial-gradient(60% 60% at 20% 80%, #C88849 0%, transparent 50%),
    linear-gradient(200deg, #3E2D20 0%, #1A130D 100%);
}
.photo.highland {
  background:
    radial-gradient(80% 80% at 30% 70%, #5A6F5E 0%, transparent 55%),
    linear-gradient(180deg, #3F5445 0%, #23301E 100%);
}
.photo.brewed {
  background:
    radial-gradient(70% 70% at 60% 40%, #E8DCC6 0%, transparent 60%),
    linear-gradient(180deg, #D9CDB5 0%, #A98F70 100%);
}
.photo.roastery {
  background:
    radial-gradient(70% 70% at 60% 30%, #C88849 0%, transparent 55%),
    linear-gradient(160deg, #3A2C20 0%, #17110D 100%);
}
.photo.cafe {
  background:
    radial-gradient(80% 60% at 70% 30%, #E8DCC6 0%, transparent 55%),
    linear-gradient(160deg, #A98F70 0%, #5A4530 100%);
}
.photo.placeholder {
  background: repeating-linear-gradient(
    135deg,
    var(--panel-deep),
    var(--panel-deep) 12px,
    var(--panel) 12px,
    var(--panel) 24px
  );
}
.photo.placeholder::before { display: none; }
.photo.placeholder::after {
  content: 'TBD';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.3em;
  color: var(--ink-mute);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; line-height: 1.1; margin: 0; text-wrap: balance; }
.h-hero { font-size: clamp(44px, 6.4vw, 88px); line-height: 1.0; letter-spacing: -0.025em; font-weight: 400; }
.h-1    { font-size: clamp(36px, 5vw, 64px); font-weight: 400; }
.h-2    { font-size: clamp(28px, 3.2vw, 44px); font-weight: 400; }
.h-3    { font-size: clamp(22px, 2vw, 28px); }
.h-4    { font-size: 18px; }
.italic { font-style: italic; }
.serif  { font-family: var(--font-display); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before, .eyebrow.center::after {
  content: ''; width: 28px; height: 1px; background: var(--accent);
}
.eyebrow.trail::after {
  content: ''; width: 28px; height: 1px; background: var(--accent);
}
.eyebrow.accent { color: var(--accent); }

.kicker-p {
  font-size: 15px; color: var(--ink-mute); max-width: 62ch;
  margin: 0 0 40px;
  line-height: 1.6;
}

/* ============================================
   Layout — containers, sections
   ============================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.container-text { max-width: var(--container-text); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

.section { padding: clamp(64px, 8vw, 128px) 0; }
.section-tight { padding: clamp(48px, 6vw, 96px) 0; }
.section-cream { background: var(--ground); color: var(--ink); }
.section-panel { background: var(--panel); color: var(--ink); }
.section-espresso { background: var(--ground-inv); color: var(--ink-inv); }
.section-espresso .eyebrow { color: var(--ink-inv-mute); }
.section-espresso h1, .section-espresso h2, .section-espresso h3 { color: var(--ink-inv); }
.section + .section { border-top: 1px solid var(--rule); }
.section-espresso + .section, .section + .section-espresso { border-top: 0; }

/* ============================================
   Nav
   ============================================ */
.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px clamp(28px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
  background: var(--ground);
  color: var(--ink);
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in oklab, var(--ground) 92%, transparent);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-bean {
  width: 26px; height: auto;
  color: var(--ink);
  flex-shrink: 0;
}
.wordmark-lockup {
  display: inline-flex; flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.wordmark-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
}
.wordmark small {
  display: block;
  font-family: var(--font-body);
  font-size: 8px;
  letter-spacing: 0.28em;
  color: var(--ink-mute);
  margin-top: 6px;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links {
  display: flex; gap: 32px; justify-content: center;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink);
}
.nav-links a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-tools {
  display: flex; gap: 22px; justify-content: flex-end;
  align-items: center;
  color: var(--ink);
}
.nav-tools a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.nav-tools svg { width: 18px; height: 18px; }
.cart-count {
  font-family: var(--font-mono); font-size: 10px;
  padding: 2px 6px; margin-left: 2px;
  background: var(--accent); color: var(--cream); border-radius: 999px;
  vertical-align: super;
}

.mobile-toggle { display: none; background: transparent; border: 0; color: var(--ink); cursor: pointer; }

/* ============================================
   Buttons and links
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px;
  background: var(--ink); color: var(--ground);
  font-size: 13px; letter-spacing: 0.06em;
  border: 1px solid var(--ink);
  text-decoration: none;
  transition: gap 0.3s ease;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn:hover { gap: 18px; }
.btn svg { width: 14px; height: 14px; }
.btn-lg { padding: 16px 28px; font-size: 13px; }
.btn-full { width: 100%; justify-content: space-between; }
.btn-invert {
  background: var(--ink-inv); color: var(--ground-inv);
  border-color: var(--ink-inv);
}
.section-espresso .btn { background: var(--ink-inv); color: var(--ground-inv); border-color: var(--ink-inv); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.06em;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  align-self: flex-start;
}
.link-arrow svg { width: 14px; height: 14px; color: var(--accent); transition: transform 0.3s ease; }
.link-arrow:hover svg { transform: translateX(4px); }
.section-espresso .link-arrow { color: var(--ink-inv); border-color: rgba(244, 239, 231, 0.25); }

/* ============================================
   Homepage sections
   ============================================ */
.hero {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 640px;
}
.hero-text {
  padding: clamp(60px, 8vw, 128px) clamp(32px, 5vw, 96px);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--ground);
  color: var(--ink);
}
.hero h1 { margin: 28px 0 24px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 44ch;
  margin: 0 0 40px;
}
.hero-ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-image {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.featured-image { min-height: 560px; }
.featured-text {
  padding: clamp(60px, 6vw, 112px) clamp(32px, 5vw, 88px);
  background: var(--ground);
  color: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
}
.featured-text h2 { font-size: clamp(36px, 4.4vw, 56px); margin: 20px 0 8px; }
.featured-origin {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 24px; margin-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.featured-notes {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 24px;
}
.featured-story {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 44ch;
  margin: 0 0 40px;
}
.featured-buy {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 24px; border-top: 1px solid var(--rule);
}
.featured-price {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.01em;
}
.featured-price small {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
}

.promise .container-narrow { text-align: center; }
.promise-lede {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
  max-width: 24ch; margin: 24px auto 88px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  text-align: left;
}
.promise-cell {
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.promise-cell svg { width: 28px; height: 28px; color: var(--accent); }
.promise-cell h3 { font-size: 22px; margin: 20px 0 12px; }
.promise-cell p { font-size: 15px; line-height: 1.6; color: var(--ink-mute); margin: 0; }
.promise-link { display: block; margin: 72px auto 0; text-align: center; align-self: center; }

.partner {
  background: var(--ground-inv);
  color: var(--ink-inv);
  display: grid;
  grid-template-columns: 45fr 55fr;
  min-height: 640px;
}
.partner-image { position: relative; overflow: hidden; }
.partner-text {
  padding: clamp(60px, 6vw, 112px) clamp(32px, 5vw, 88px);
  display: flex; flex-direction: column; justify-content: center;
}
.partner-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  margin: 20px 0 10px;
  color: var(--ink-inv);
}
.partner-place {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-inv-mute);
  margin-bottom: 40px;
}
.partner-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--ink-inv);
  max-width: 34ch;
  margin: 0 0 40px;
  letter-spacing: -0.01em;
}
.partner-quote::before {
  content: '"';
  font-size: 2em;
  color: var(--accent);
  vertical-align: -0.3em;
  margin-right: 4px;
}

.focus-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.focus-header h2 { margin: 8px 0 0; max-width: 16ch; }
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.focus-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  color: var(--ink-inv);
  text-decoration: none;
  display: flex; align-items: flex-end;
  padding: 32px;
  transition: transform 0.4s ease;
}
.focus-tile:hover { transform: translateY(-4px); }
.focus-tile > * { position: relative; z-index: 2; }
.focus-tile.a {
  background:
    radial-gradient(80% 60% at 30% 30%, #E8DCC6 0%, transparent 60%),
    linear-gradient(180deg, #D9CDB5 0%, #A98F70 100%);
  color: var(--espresso);
}
.focus-tile.b {
  background:
    radial-gradient(80% 60% at 70% 20%, #C88849 0%, transparent 55%),
    linear-gradient(180deg, #3A2C20 0%, #17110D 100%);
}
.focus-tile.c {
  background:
    radial-gradient(80% 80% at 30% 70%, #5A6F5E 0%, transparent 55%),
    linear-gradient(180deg, #3F5445 0%, #23301E 100%);
}
.focus-tile h3 { font-size: 28px; margin: 0 0 8px; }
.focus-tile p { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0; opacity: 0.75; }
.focus-tile-mark {
  position: absolute; top: 24px; left: 24px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.7;
  z-index: 2;
}

.journal-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.journal-card { text-decoration: none; color: var(--ink); display: block; }
.journal-thumb {
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.journal-tag {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent);
}
.journal-card h3 {
  font-size: 22px;
  margin: 12px 0 8px;
  text-wrap: balance;
}
.journal-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 0 0 14px;
}
.journal-meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-mute);
}

.wholesale-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.wholesale-band h2 { max-width: 20ch; margin: 20px 0; }
.wholesale-band p { font-size: 16px; line-height: 1.6; color: var(--ink-mute); max-width: 48ch; margin: 0 0 32px; }
.wholesale-band-image { aspect-ratio: 4 / 3; }

.letter { text-align: center; }
.letter h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(36px, 4.5vw, 56px);
  margin: 0 0 16px;
}
.letter p { font-size: 15px; line-height: 1.6; color: var(--ink-inv-mute); max-width: 44ch; margin: 0 auto 40px; }
.letter-form {
  max-width: 460px; margin: 0 auto;
  display: flex; align-items: stretch;
  border-bottom: 1px solid rgba(244, 239, 231, 0.25);
}
.letter-form input {
  flex: 1;
  background: transparent; border: 0;
  font-family: var(--font-body); font-size: 16px;
  color: var(--ink-inv);
  padding: 14px 4px;
  outline: none;
}
.letter-form input::placeholder { color: var(--ink-inv-mute); }
.letter-form button {
  background: transparent; border: 0;
  color: var(--ink-inv);
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 14px 12px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
}
.letter-form button svg { width: 14px; color: var(--accent); }

/* ============================================
   Footer
   ============================================ */
.site-foot {
  padding: clamp(64px, 8vw, 96px) clamp(32px, 5vw, 96px) 32px;
  background: var(--ground-inv);
  color: var(--ink-inv);
}
.foot-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 56px;
}
.foot-lockup { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.foot-lockup .brand-bean { width: 44px; color: var(--ink-inv); margin-top: 4px; }
.foot-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.05em;
  color: var(--ink-inv);
  margin: 0 0 8px;
  line-height: 0.95;
}
.foot-brand-line {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.foot-brand-address {
  font-size: 13px; line-height: 1.65;
  color: var(--ink-inv-mute);
  max-width: 30ch;
}
.site-foot h4 {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  font-weight: 500;
}
.site-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-foot a {
  color: var(--ink-inv);
  text-decoration: none;
  font-size: 14px;
}
.site-foot a:hover { color: var(--accent); }
.foot-bottom {
  max-width: var(--container); margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--rule-inv);
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-inv-mute);
}
.foot-bottom a { color: inherit; text-decoration: none; margin-right: 20px; }

/* ============================================
   Product page — PDP
   ============================================ */
.crumb {
  padding: 20px clamp(28px, 4vw, 56px);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--rule);
  background: var(--ground);
}
.crumb a { color: var(--ink-mute); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.crumb span:last-child { color: var(--ink); }
.crumb span.sep { margin: 0 12px; opacity: 0.5; }

.pdp-hero {
  display: grid;
  grid-template-columns: 58fr 42fr;
  background: var(--ground);
  color: var(--ink);
}
.pdp-gallery {
  padding: clamp(40px, 4vw, 64px) clamp(24px, 3vw, 48px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  border-right: 1px solid var(--rule);
}
.pdp-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.pdp-photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pdp-photo.thumb { aspect-ratio: 1 / 1; }

.pdp-panel {
  padding: clamp(48px, 5vw, 80px) clamp(28px, 4vw, 64px);
  display: flex; flex-direction: column;
}
.pdp-kicker {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 12px;
}
.pdp-kicker::before { content: ''; width: 20px; height: 1px; background: var(--accent); }
.pdp-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 20px 0 8px;
  color: var(--ink);
}
.pdp-sub {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.pdp-notes-poetic {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  margin: 28px 0 16px;
}
.pdp-notes-precise {
  font-size: 15px; line-height: 1.6;
  color: var(--ink-mute);
  margin: 0 0 36px;
  max-width: 44ch;
}
.pdp-selector { margin-bottom: 28px; }
.pdp-selector-label {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 10px 16px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pill:hover { border-color: var(--ink); }
.pill.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ground);
}
.pill small {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.7;
  margin-left: 6px;
}
.pdp-selector-note {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-mute);
  font-style: italic;
  margin: 12px 0 0;
}
.pdp-buy {
  display: grid; grid-template-columns: auto 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.qty-stepper {
  display: flex; align-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.qty-stepper button {
  border: 0; background: transparent; color: inherit;
  padding: 0 14px; height: 100%;
  font-size: 16px; cursor: pointer;
  font-family: var(--font-body);
}
.qty-stepper span {
  padding: 0 12px;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 14px;
  min-width: 32px;
  text-align: center;
  line-height: 46px;
}
.pdp-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px 0 0;
  border-top: 1px solid var(--rule);
}
.pdp-meta-k {
  font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.pdp-meta-v {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
}
.pdp-meta-v.dot::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: #6BA36B;
  margin-right: 6px; vertical-align: middle;
}

.pdp-origin {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 480px;
  background: var(--panel);
  color: var(--ink);
}
.pdp-origin-text {
  padding: clamp(56px, 6vw, 96px) clamp(28px, 4vw, 72px);
  display: flex; flex-direction: column; justify-content: center;
}
.pdp-origin-text h2 { margin: 20px 0 24px; max-width: 20ch; }
.pdp-origin-text p { font-size: 15px; line-height: 1.7; color: var(--ink); max-width: 52ch; margin: 0 0 32px; }
.pdp-origin-image { position: relative; overflow: hidden; }

.pdp-brew {
  background: var(--ground-inv);
  color: var(--ink-inv);
  padding: clamp(72px, 8vw, 112px) clamp(28px, 4vw, 72px);
}
.pdp-brew .container-narrow > .eyebrow { color: var(--ink-inv-mute); }
.pdp-brew h2 { font-family: var(--font-display); font-style: italic; font-size: clamp(36px, 4vw, 56px); margin: 20px 0 48px; color: var(--ink-inv); }
.brew-specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px 48px;
  padding: 32px 0;
  border-top: 1px solid var(--rule-inv);
  border-bottom: 1px solid var(--rule-inv);
  margin-bottom: 32px;
}
.brew-spec label {
  display: block;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-inv-mute);
  margin-bottom: 8px;
}
.brew-spec span { font-family: var(--font-display); font-size: 22px; color: var(--ink-inv); }
.brew-spec span small { font-family: var(--font-body); font-size: 13px; color: var(--ink-inv-mute); margin-left: 4px; }

.spec-table {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0 64px;
  margin: 0;
}
.spec-table > div {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.spec-table dt {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}
.spec-table dd {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  margin: 0;
}

.pdp-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.coffee-card { text-decoration: none; color: var(--ink); display: block; }
.coffee-card-image { aspect-ratio: 4 / 5; margin-bottom: 20px; position: relative; overflow: hidden; }
.coffee-card-tag {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent);
}
.coffee-card h3 {
  font-size: 22px;
  margin: 10px 0 6px;
  line-height: 1.1;
}
.coffee-card-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  margin: 0;
}
.coffee-card-price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  margin-top: 6px;
}

/* ============================================
   Coffees index — shop grid
   ============================================ */
.shop-header {
  padding: clamp(80px, 8vw, 120px) 0 clamp(48px, 6vw, 72px);
}
.shop-header h1 { max-width: 20ch; margin: 20px 0 24px; }
.shop-header p { max-width: 56ch; font-size: 17px; line-height: 1.55; color: var(--ink-mute); margin: 0; }
.shop-filters {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.shop-filter-group { display: flex; align-items: center; gap: 12px; }
.shop-filter-group label {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-mute);
}
.shop-filter-group select {
  border: 0; background: transparent;
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  padding: 4px 24px 4px 4px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1 L 6 7 L 11 1' stroke='%23241C15' stroke-width='1.4' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}
.shop-count { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }
.shop-grid {
  padding: clamp(48px, 6vw, 72px) 0 clamp(80px, 10vw, 128px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* ============================================
   Editorial (journal articles, story pages)
   ============================================ */
.article-hero {
  padding: clamp(72px, 8vw, 128px) 0 clamp(56px, 6vw, 96px);
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.article-hero h1 { margin: 20px auto 24px; max-width: 22ch; }
.article-hero .article-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.article-hero .article-meta span + span::before { content: ' · '; margin: 0 4px; }
.article-image {
  aspect-ratio: 16 / 9;
  max-width: var(--container); margin: 0 auto clamp(48px, 6vw, 80px);
  position: relative; overflow: hidden;
}
.article-body {
  max-width: var(--container-text); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px) clamp(80px, 10vw, 128px);
  font-size: 18px; line-height: 1.7;
}
.article-body p { margin: 0 0 24px; }
.article-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 68px;
  float: left;
  line-height: 0.9;
  margin: 4px 12px 0 0;
  color: var(--accent);
}
.article-body h2 { margin: 48px 0 20px; font-size: 30px; }
.article-body h3 { margin: 40px 0 16px; font-size: 22px; }
.article-body blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.35;
  color: var(--ink);
  margin: 48px 0;
  padding: 24px 0 24px 32px;
  border-left: 2px solid var(--accent);
  max-width: 44ch;
}
.article-body ul, .article-body ol { margin: 0 0 24px 24px; padding: 0; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--rule); }
.article-body a:hover { border-color: var(--accent); }
.article-body figure { margin: 40px 0; }
.article-body figcaption { font-size: 13px; color: var(--ink-mute); margin-top: 12px; font-style: italic; }
.article-tag {
  display: inline-block;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Story cluster sub-nav */
.subnav {
  padding: 20px clamp(20px, 4vw, 40px);
  border-bottom: 1px solid var(--rule);
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.subnav a { color: var(--ink-mute); text-decoration: none; }
.subnav a.active, .subnav a:hover { color: var(--ink); }
.subnav .sep { color: var(--rule); }

/* ============================================
   Forms
   ============================================ */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px;
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  padding: 12px 0;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--ink);
}
.form-field textarea { min-height: 120px; resize: vertical; font-family: var(--font-body); }
.form-field select { appearance: none; background: transparent; }
.form-note {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-mute);
  font-style: italic;
  margin-top: 40px;
}

/* ============================================
   FAQ accordion
   ============================================ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid var(--rule);
  padding: 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item details { padding: 24px 0; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--ink-mute);
  font-weight: 200;
  transition: transform 0.2s ease;
}
.faq-item details[open] summary::after { content: '−'; }
.faq-item details p {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-mute);
  max-width: 62ch;
}

/* ============================================
   Utility
   ============================================ */
.mt-0 { margin-top: 0 !important; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 64px; }
.text-center { text-align: center; }
.text-mute { color: var(--ink-mute); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================
   404
   ============================================ */
.notfound { padding: clamp(80px, 10vw, 160px) 0; text-align: center; }
.notfound-code {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 180px);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}
.notfound h1 { margin: 24px 0 16px; }
.notfound p { color: var(--ink-mute); max-width: 44ch; margin: 0 auto 40px; font-size: 17px; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .hero, .featured, .partner, .pdp-hero, .pdp-origin, .wholesale-band { grid-template-columns: 1fr; }
  .hero-image, .featured-image { min-height: 380px; }
  .pdp-gallery { border-right: 0; border-bottom: 1px solid var(--rule); }
  .promise-grid, .focus-grid, .journal-grid, .shop-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .site-nav { grid-template-columns: 1fr auto; padding: 16px 20px; }
  .nav-links { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .brew-specs { grid-template-columns: repeat(2, 1fr); }
  .spec-table { grid-template-columns: 1fr; }
  .article-body { font-size: 17px; }
  .article-body p:first-of-type::first-letter { font-size: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
