/* Tidewater Coffee Co. - shared stylesheet */

:root {
  --ink: #14202a;
  --ink-soft: #2c3a47;
  --paper: #f6f1e7;
  --paper-warm: #ede4d2;
  --cream: #fbf7ed;
  --brass: #b07a3a;
  --brass-bright: #d09451;
  --brass-deep: #885a25;
  --teal: #2d4a5b;
  --teal-deep: #1c3441;
  --muted: #7a8693;
  --line: rgba(20, 32, 42, 0.12);
  --line-soft: rgba(20, 32, 42, 0.06);
  --line-dark: rgba(251, 247, 237, 0.18);
  --shadow: 0 18px 50px rgba(20, 32, 42, 0.18);
  --shadow-deep: 0 28px 80px rgba(20, 32, 42, 0.32);
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--paper); }

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    linear-gradient(90deg, rgba(20,32,42,0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20,32,42,0.018) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img, video { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }

/* Skip link */
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: 10px 14px; border-radius: 4px; transition: top 0.15s;
}
.skip-link:focus { top: 16px; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 14px 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  display: inline-flex; flex-direction: column;
  text-decoration: none; line-height: 1;
}
.brand-mark .name {
  font-family: 'Frank Ruhl Libre', 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark .tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brass-deep);
  margin-top: 4px;
  font-weight: 600;
}
.menu-toggle {
  display: none;
  background: transparent; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--ink);
}
.nav-links {
  display: flex; align-items: center; gap: 30px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--brass-deep); }
.nav-links a.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--brass);
}
.nav-cart {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.nav-cart:hover { background: var(--ink); color: var(--cream); }
.nav-cart .cart-count {
  background: var(--brass);
  color: var(--cream);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}
.nav-cart .cart-count.zero { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.2s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: var(--teal-deep); }
.btn-brass {
  background: var(--brass);
  color: var(--cream);
}
.btn-brass:hover { background: var(--brass-deep); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 1rem; }

/* Hero */
.hero {
  background:
    linear-gradient(90deg, rgba(20,32,42,0.92), rgba(20,32,42,0.72) 42%, rgba(20,32,42,0.22)),
    url("hero-coffee.jpg") center right / cover no-repeat;
  padding: 72px 28px 62px;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
}
.hero-inner {
  max-width: 1140px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brass-bright);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  letter-spacing: -0.022em;
  line-height: 1.06;
  color: var(--cream);
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--brass-bright); font-weight: 700; }
.hero-lede {
  font-size: 1.08rem;
  color: rgba(251, 247, 237, 0.82);
  margin-bottom: 30px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary {
  background: var(--brass);
  color: var(--ink);
}
.hero .btn-primary:hover { background: var(--brass-bright); }
.hero .btn-ghost {
  border-color: rgba(251, 247, 237, 0.62);
  color: var(--cream);
}
.hero .btn-ghost:hover {
  background: var(--cream);
  color: var(--ink);
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}
.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  background: rgba(251,247,237,0.12);
  border: 1px solid rgba(251,247,237,0.26);
  border-radius: 999px;
  color: rgba(251,247,237,0.84);
  font-size: 0.82rem;
  font-weight: 700;
}
.hero-art {
  position: relative;
  aspect-ratio: 4/5;
  background:
    linear-gradient(180deg, rgba(20,32,42,0.1) 0%, rgba(20,32,42,0.7) 100%),
    url("hero-coffee.jpg") center right / cover no-repeat;
  border: 1px solid rgba(251,247,237,0.22);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 28px;
  color: var(--cream);
  box-shadow: var(--shadow-deep);
}
.hero-art .badge-set {
  display: flex; flex-direction: column; gap: 8px;
}
.hero-art .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(251, 247, 237, 0.14);
  border: 1px solid rgba(251, 247, 237, 0.3);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Section base */
section { padding: 70px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.section-head h2 em { font-style: italic; color: var(--brass-deep); }
.section-head .lede {
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 380px;
}
.eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brass-deep);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 12px;
}

/* Product card grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  display: flex; flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card .photo {
  aspect-ratio: 1/1;
  background: var(--coffee-bg, linear-gradient(135deg, var(--teal) 0%, var(--ink) 100%));
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.photo.has-product-photo,
.product-photo.has-product-photo {
  background:
    linear-gradient(180deg, rgba(20,32,42,0.02) 0%, rgba(20,32,42,0.14) 48%, rgba(20,32,42,0.72) 100%),
    var(--product-photo) center / cover no-repeat;
}
.product-card .photo::before,
.product-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(251,247,237,0.22), transparent 32%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.28), transparent 38%);
  pointer-events: none;
}
.photo.has-product-photo::before,
.product-photo.has-product-photo::before {
  background: linear-gradient(180deg, rgba(20,32,42,0.04) 0%, rgba(20,32,42,0.1) 52%, rgba(20,32,42,0.7) 100%);
}
.photo.yirgacheffe, .product-photo.yirgacheffe { --coffee-bg: linear-gradient(135deg, #214a58 0%, #14202a 62%, #d09451 180%); }
.photo.huila, .product-photo.huila { --coffee-bg: linear-gradient(135deg, #4d3425 0%, #14202a 68%, #c47b42 180%); }
.photo.mandheling, .product-photo.mandheling { --coffee-bg: linear-gradient(135deg, #1b2b24 0%, #111b1d 66%, #7b5a3a 180%); }
.photo.antigua, .product-photo.antigua { --coffee-bg: linear-gradient(135deg, #3c2521 0%, #14202a 68%, #b07a3a 180%); }
.photo.kenya, .product-photo.kenya { --coffee-bg: linear-gradient(135deg, #203a5f 0%, #14202a 64%, #9f2f3d 180%); }
.photo.tarrazu, .product-photo.tarrazu { --coffee-bg: linear-gradient(135deg, #384a27 0%, #14202a 68%, #d09451 180%); }
.bag-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: end center;
  width: 42%;
  max-width: 138px;
  aspect-ratio: 0.66;
  padding: 14px 10px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08), transparent 38%, rgba(0,0,0,0.22)),
    #10202d;
  border-radius: 5px 5px 10px 10px;
  box-shadow: 0 20px 42px rgba(0,0,0,0.3);
  transform: translateY(4px);
}
.bag-visual::before {
  content: '';
  position: absolute;
  top: 9%;
  left: 16%;
  right: 16%;
  height: 8%;
  background: var(--brass);
  border-radius: 2px;
}
.bag-visual::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 17%;
  height: 28%;
  background: var(--paper-warm);
  border: 1px solid rgba(20,32,42,0.18);
}
.bag-visual span {
  position: relative;
  z-index: 2;
  margin-bottom: 13%;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.product-card .photo .photo-tag {
  position: absolute; top: 14px; left: 14px;
  z-index: 2;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 2px;
}
.product-card .photo .photo-name {
  position: absolute; bottom: 18px; left: 18px;
  z-index: 2;
  font-family: 'Frank Ruhl Libre', serif;
  color: var(--cream);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.product-card .photo .photo-origin {
  position: absolute; bottom: 14px; right: 18px;
  z-index: 2;
  color: rgba(251, 247, 237, 0.78);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.product-card .body {
  padding: 22px;
  flex: 1;
  display: flex; flex-direction: column;
}
.product-card .meta-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.product-card h3 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.product-card .notes {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 18px;
  flex: 1;
}
.product-card .card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.product-card .price {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}
.product-card .view-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brass-deep);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.product-card .view-link::after { content: ' ->'; }

/* Product detail page */
.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  padding: 60px 0;
}
.product-photo {
  aspect-ratio: 4/5;
  background: var(--coffee-bg, linear-gradient(135deg, var(--teal) 0%, var(--ink) 100%));
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.product-photo .bag-visual {
  width: 46%;
  max-width: 190px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%);
}
.product-photo .name {
  position: absolute; bottom: 32px; left: 32px;
  z-index: 2;
  font-family: 'Frank Ruhl Libre', serif;
  color: var(--cream);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.product-photo .origin {
  position: absolute; bottom: 24px; right: 32px;
  z-index: 2;
  color: rgba(251, 247, 237, 0.78);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.product-photo .badge {
  position: absolute; top: 24px; left: 24px;
  z-index: 2;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 2px;
}
.detail-info h1 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.022em;
  line-height: 1.05;
  color: var(--ink);
}
.detail-info .origin-line {
  margin-top: 8px;
  color: var(--brass-deep);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.detail-info .price-line {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 22px 0;
}
.detail-info .price-line .weight { color: var(--muted); font-family: 'Source Sans 3', sans-serif; font-size: 0.8rem; font-weight: 500; margin-left: 10px; text-transform: uppercase; letter-spacing: 0.12em; }
.buy-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}
.detail-info p.notes-long { color: var(--ink-soft); margin-bottom: 28px; max-width: 500px; }
.notes-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.notes-pills .note-pill {
  background: var(--paper-warm);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.spec-table {
  margin: 30px 0;
  border-top: 1px solid var(--line);
}
.spec-table .row {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
}
.spec-table .row .label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}
.spec-table .row .val { color: var(--ink); }
.qty-row {
  display: flex; align-items: center; gap: 18px;
  margin: 24px 0;
}
.qty-row .label { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; }
.qty-stepper {
  display: inline-flex; align-items: center;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}
.qty-stepper button {
  width: 38px; height: 42px;
  background: transparent; border: none;
  font-size: 1.1rem; cursor: pointer;
  color: var(--ink);
}
.qty-stepper input {
  width: 50px; text-align: center;
  border: none; background: transparent;
  font-weight: 700;
  outline: none;
}
.grind-row { margin: 18px 0 28px; }
.grind-row .label { display: block; color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; margin-bottom: 10px; }
.grind-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.grind-options label {
  display: block;
  cursor: pointer;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  transition: border-color 0.15s, background 0.15s;
}
.grind-options label:hover { border-color: var(--brass); }
.grind-options input { display: none; }
.grind-options input:checked + .grind-content { color: var(--ink); }
.grind-options label:has(input:checked) { border-color: var(--ink); background: var(--paper-warm); }
.grind-options strong { display: block; font-weight: 600; font-size: 0.9rem; }
.grind-options small { color: var(--muted); font-size: 0.78rem; }

/* Cart */
.cart-page { padding: 60px 0 100px; }
.cart-page h1 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.022em;
  margin-bottom: 36px;
}
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: flex-start;
}
.cart-items { display: flex; flex-direction: column; gap: 0; }
.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item .photo {
  width: 88px; height: 88px;
  background: var(--coffee-bg, linear-gradient(135deg, var(--teal) 0%, var(--ink) 100%));
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.cart-item .photo.has-product-photo {
  background:
    linear-gradient(180deg, rgba(20,32,42,0.02) 0%, rgba(20,32,42,0.14) 48%, rgba(20,32,42,0.72) 100%),
    var(--product-photo) center / cover no-repeat;
}
.cart-item .photo .bag-visual {
  width: 44px;
  padding: 6px 4px;
  border-radius: 3px 3px 5px 5px;
}
.cart-item .photo .bag-visual span {
  display: none;
}
.cart-item .info strong {
  display: block; font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
}
.cart-item .info .sub {
  font-size: 0.82rem; color: var(--muted); margin-top: 4px;
}
.cart-item .info .remove {
  background: none; border: none; padding: 0; margin-top: 8px;
  color: var(--brass-deep); cursor: pointer;
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.cart-item .info .remove:hover { color: var(--brass); }
.cart-item .right { text-align: right; }
.cart-item .right .price {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700; font-size: 1.1rem;
  margin-bottom: 8px;
}
.cart-item .qty-stepper { transform: scale(0.85); transform-origin: right; }
.cart-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.cart-empty h2 {
  font-family: 'Frank Ruhl Libre', serif;
  color: var(--ink);
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.cart-summary {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 100px;
}
.cart-summary h3 {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cart-summary .line {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 0.94rem;
}
.cart-summary .line.total {
  border-top: 1px solid var(--line);
  margin-top: 12px; padding-top: 16px;
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.4rem;
  font-weight: 700;
}
.cart-summary .ship-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 12px 0 18px;
  padding: 10px 12px;
  background: var(--paper-warm);
  border-radius: var(--radius);
}

/* Confirmation */
.confirm-page { padding: 80px 0; }
.confirm-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.confirm-mark {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--cream);
  display: grid; place-items: center;
  margin: 0 auto 22px;
  font-size: 2rem;
}
.confirm-card h1 {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.confirm-card p { color: var(--ink-soft); margin-bottom: 22px; }
.confirm-card .order-id {
  display: inline-block;
  background: var(--paper-warm);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  margin-bottom: 26px;
}

/* About / story */
.story {
  background: var(--ink);
  color: var(--cream);
  padding: 90px 0;
}
.story h2 { color: var(--cream); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.story-art {
  aspect-ratio: 4/5;
  background:
    linear-gradient(180deg, rgba(20,32,42,0.1), rgba(20,32,42,0.74)),
    url("hero-coffee.jpg") center right / cover no-repeat;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.story-text p { color: rgba(251, 247, 237, 0.82); margin-bottom: 16px; }

/* Press strip */
.press {
  padding: 40px 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.press-row {
  display: flex; justify-content: space-around; align-items: center;
  gap: 30px; flex-wrap: wrap;
}
.press-row span {
  display: grid;
  gap: 4px;
  min-width: 190px;
  font-family: 'Frank Ruhl Libre', serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
}
.press-row span strong {
  font-family: 'Source Sans 3', sans-serif;
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-left: 8px;
}
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.shop-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}
.shop-filters a:hover {
  border-color: var(--brass);
  color: var(--brass-deep);
}

/* Footer */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 60px 28px 28px;
}
.footer-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
footer h4 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--cream);
}
footer p, footer a {
  color: rgba(251, 247, 237, 0.66);
  font-size: 0.9rem;
  line-height: 1.9;
}
footer a:hover { color: var(--brass-bright); }
footer .credit {
  max-width: 1140px; margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  color: rgba(251, 247, 237, 0.5);
  font-size: 0.82rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}

/* Toast */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--ink);
  color: var(--cream);
  padding: 16px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  font-weight: 500;
  display: none;
  z-index: 100;
  border-left: 3px solid var(--brass);
  max-width: 360px;
}
.toast.show { display: block; animation: toastIn 0.25s ease-out; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { aspect-ratio: 16/10; max-height: 360px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; gap: 36px; }
  .cart-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .story-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 700px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 78px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 12px 28px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); width: 100%; }
  .nav-links a.nav-cart { margin-top: 10px; }
  section { padding: 50px 0; }
  .product-grid { grid-template-columns: 1fr; }
  .grind-options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .confirm-card { padding: 36px 24px; }
}
