:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-alt: #f3ede3;
  --ink: #1d1a17;
  --muted: #5c544b;
  --border: #e3dacb;
  --dry: #c94f35;
  --wet: #c9931e;
  --blend: #288d56;
  --decaf: #2279be;
  --accent: #b8492e;
  --accent-hover: #963820;
  --radius: 12px;
  --maxw: 1080px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; margin: 0 auto; }

/* Four-color bag stripe */
.bag-stripe {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--dry) 0%, var(--dry) 25%,
    var(--blend) 25%, var(--blend) 50%,
    var(--wet) 50%, var(--wet) 75%,
    var(--decaf) 75%, var(--decaf) 100%
  );
}

/* Header & Nav */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.brand-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover, .site-nav a.active {
  background: var(--surface-alt);
  color: var(--accent);
}
.site-nav a.nav-cta {
  background: var(--ink);
  color: #fff;
}
.site-nav a.nav-cta:hover, .site-nav a.nav-cta.active {
  background: var(--accent);
  color: #fff;
}

/* Status banner */
.chapter-banner {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
  font-size: 0.92rem;
  color: var(--ink);
}
.chapter-banner p { margin: 0; text-align: center; }

/* Hero */
.hero {
  padding: 56px 0 44px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 26px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.hero-visual {
  position: relative;
}
.hero-photo {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(29, 26, 23, 0.1);
}
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  width: 108px;
  height: 108px;
  background: #fff;
  border-radius: 50%;
  padding: 10px;
  border: 2px solid var(--border);
  box-shadow: 0 10px 24px rgba(29, 26, 23, 0.12);
}

/* Sections */
.section {
  padding: 52px 0;
}
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 1.85rem;
  margin: 0;
  letter-spacing: -0.015em;
}
.section-sub {
  color: var(--muted);
  margin: 6px 0 0;
  max-width: 660px;
}

/* Page header */
.page-header {
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.18;
  margin: 0 0 10px;
}
.page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 720px;
}

/* Cards & grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(29, 26, 23, 0.07);
}
.card-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: var(--surface-alt);
}
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 {
  font-family: var(--serif);
  font-size: 1.24rem;
  margin: 8px 0 8px;
  line-height: 1.28;
}
.card-body h3 a {
  text-decoration: none;
  color: var(--ink);
}
.card-body h3 a:hover { color: var(--accent); }
.card-meta {
  font-size: 0.84rem;
  color: var(--muted);
}
.card-notes {
  font-style: italic;
  color: var(--ink);
  font-size: 0.93rem;
  margin: 6px 0 10px;
}
.card-desc {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0 0 14px;
  flex: 1;
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
  width: fit-content;
}
.badge-dry { background: var(--dry); }
.badge-wet { background: var(--wet); }
.badge-blend { background: var(--blend); }
.badge-decaf { background: var(--decaf); }
.badge-neutral { background: var(--ink); }

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Quote / Philosophy callout */
.callout {
  background: var(--surface-alt);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 28px;
}
.callout blockquote {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.45;
  color: var(--ink);
}
.callout cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

/* Prose / Blog article */
.prose {
  font-size: 1.05rem;
  line-height: 1.78;
}
.prose h2 {
  font-family: var(--serif);
  font-size: 1.65rem;
  margin: 38px 0 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.prose h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  margin: 24px 0 10px;
}
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin-bottom: 7px; }
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 34px 0;
}
.prose img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 22px auto;
  max-height: 520px;
  width: auto;
}
.article-hero {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 0 0 28px;
  max-height: 460px;
  width: 100%;
  object-fit: cover;
}
.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.tag {
  font-size: 0.8rem;
  background: var(--surface-alt);
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 999px;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 16px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.faq-item h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 10px;
}
.faq-item p { margin: 0 0 10px; color: var(--muted); }
.faq-item p:last-child { margin-bottom: 0; }

/* Artwork gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.gallery-item.contain img {
  object-fit: contain;
  padding: 20px;
  background: #fff;
}
.gallery-item figcaption {
  padding: 12px 15px;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* Local Order box */
.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #e6dfd5;
  padding: 46px 0 36px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.site-footer h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 12px;
}
.site-footer p { margin: 0 0 10px; font-size: 0.92rem; color: #c7bfb4; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; font-size: 0.92rem; }
.site-footer a { color: #f1e9dd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #a89f93;
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-badge { width: 84px; height: 84px; bottom: -12px; left: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}
