:root {
  --bg: #f7ecdb;
  --bg-deep: #241209;
  --paper: #fffaf1;
  --ink: #2b1a0f;
  --muted: #8a6c54;
  --line: rgba(43,26,15,0.12);
  --accent: #c9872f;
  --accent-2: #8a3a1f;
  --accent-soft: rgba(201,135,47,0.14);
  --radius: 16px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Karla", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand { font-family: "Zilla Slab", Georgia, serif; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
a { color: inherit; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247,236,219,0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 22px; color: var(--ink); letter-spacing: -0.01em; }
.brand-mark {
  width: 24px; height: 24px; border-radius: 50% 50% 50% 4px;
  background: radial-gradient(circle at 35% 30%, var(--accent), var(--accent-2));
  display: inline-block;
}
.nav { display: flex; gap: 32px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; transition: color .2s var(--ease); }
.nav a:hover, .nav a.active { color: var(--accent-2); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fffaf1;
  padding: 10px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  text-decoration: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover { opacity: .9; transform: translateY(-1px); }

main { position: relative; z-index: 1; }

/* hero */
.hero { padding: 88px 0 72px; background: var(--bg); }
.hero.dark { background: var(--bg-deep); color: #f3e3cf; }
.hero.dark .muted-x { color: #c7a988; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft); border: 1px solid rgba(201,135,47,0.3);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.hero.dark .eyebrow { color: #f0b15e; background: rgba(240,177,94,0.14); border-color: rgba(240,177,94,0.3); }
h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 20px; max-width: 680px; font-weight: 600; }
h1 .grad { color: var(--accent-2); }
.hero.dark h1 .grad { color: #f0b15e; }
.lede { font-size: 17.5px; color: var(--muted); max-width: 540px; margin: 0 0 36px; }
.hero.dark .lede { color: #c7a988; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-size: 14.5px; font-weight: 700;
  text-decoration: none; transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent-2); color: #fff6ea; }
.btn-primary:hover { opacity: .92; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.hero.dark .btn-ghost { color: #f3e3cf; border-color: rgba(243,227,207,0.25); }
.btn-ghost:hover { border-color: var(--accent-2); }

/* sections */
.section { padding: 68px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 560px; margin-bottom: 44px; }
.section-head h2 { font-size: 30px; letter-spacing: -0.01em; margin: 0 0 12px; font-weight: 600; }
.section-head p { color: var(--muted); margin: 0; font-size: 15px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.card .icon { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 18px; }
.card h3 { font-size: 17px; margin: 0 0 8px; font-weight: 600; }
.card p { font-size: 13.8px; color: var(--muted); margin: 0; line-height: 1.6; }
.card .origin-tag { font-size: 12px; color: var(--accent-2); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; display: block; }

.stat-row { display: flex; gap: 52px; flex-wrap: wrap; }
.stat b { display: block; font-size: 32px; font-family: "Zilla Slab", serif; color: var(--ink); font-weight: 600; }
.stat span { font-size: 13px; color: var(--muted); }

.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step .num { font-family: "Zilla Slab", serif; font-size: 26px; color: var(--accent-2); font-weight: 600; width: 44px; flex-shrink: 0; }
.step h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 14px; max-width: 520px; }

/* shop */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.pill { font-size: 13.5px; font-weight: 600; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--paper); }
.pill.active { background: var(--accent-2); color: #fff6ea; border-color: var(--accent-2); }

.product {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.product-art {
  height: 140px; display: flex; align-items: center; justify-content: center;
  font-size: 40px;
}
.product-body { padding: 20px 22px 22px; }
.roast-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; display: inline-block; margin-bottom: 12px; }
.roast-light { background: rgba(201,135,47,0.16); color: #a8711f; }
.roast-medium { background: rgba(138,58,31,0.14); color: var(--accent-2); }
.roast-dark { background: rgba(43,26,15,0.12); color: var(--ink); }
.product h3 { font-size: 16px; margin: 0 0 4px; font-weight: 600; }
.product .origin { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-family: "Zilla Slab", serif; font-size: 18px; font-weight: 600; }
.add-btn { font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); border: 1px solid rgba(201,135,47,0.3); }

/* journal */
.post-list { display: flex; flex-direction: column; gap: 0; }
.post { padding: 28px 0; border-bottom: 1px solid var(--line); display: flex; gap: 26px; }
.post:first-child { padding-top: 0; }
.post .date { font-family: "Zilla Slab", serif; font-size: 13px; color: var(--accent-2); width: 92px; flex-shrink: 0; padding-top: 3px; font-weight: 600; }
.post h3 { font-size: 18px; margin: 0 0 8px; font-weight: 600; }
.post p { font-size: 14px; color: var(--muted); margin: 0; max-width: 560px; }
.post .tag { font-size: 11px; color: var(--accent); margin-left: 10px; font-weight: 700; text-transform: uppercase; }

.newsletter {
  background: var(--bg-deep); border-radius: var(--radius); padding: 40px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  color: #f3e3cf;
}
.newsletter h3 { margin: 0 0 6px; font-size: 20px; }
.newsletter p { margin: 0; color: #c7a988; font-size: 14px; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input { padding: 11px 16px; border-radius: 999px; border: 1px solid rgba(243,227,207,0.25); background: rgba(243,227,207,0.08); color: #f3e3cf; font-size: 14px; min-width: 220px; }
.newsletter input::placeholder { color: #a9896c; }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent-2); }

@media (max-width: 760px) {
  .nav { display: none; }
  h1 { font-size: 34px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .post { flex-direction: column; gap: 6px; }
  .post .date { width: auto; }
  .newsletter { flex-direction: column; align-items: flex-start; }
}
