/* Worcester Community Fridges - editorial community-fridge UI. ASCII only. */

:root {
  --ink: #1A1815;
  --ink-soft: #4D453B;
  --cream: #FAF4EB;
  --cream-deep: #F2E9D7;
  --paper: #FFFFFF;
  --primary: #1F4D38;
  --primary-deep: #143025;
  --primary-soft: #2E6B50;
  --accent: #E8845B;
  --accent-deep: #C46741;
  --accent-soft: #F5BFA5;
  --mustard: #E5B95B;
  --mustard-deep: #C99F47;
  --blush: #F4D5C4;
  --line: #E0D6C5;
  --line-soft: #EFE7D8;
  --tomato: #C44536;
  --muted: #6B6557;
  --shadow-soft: 0 6px 24px rgba(26, 24, 21, 0.06);
  --shadow: 0 12px 32px rgba(26, 24, 21, 0.10);
  --shadow-lg: 0 22px 48px rgba(26, 24, 21, 0.14);
  --stamp: 4px 6px 0 var(--ink);
  --stamp-accent: 4px 6px 0 var(--accent);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --serif: 'Cormorant Garamond', 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; height: auto; display: block; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(232, 132, 91, 0.06) 0%, transparent 32%),
    radial-gradient(circle at 88% 78%, rgba(31, 77, 56, 0.05) 0%, transparent 30%);
}

a { color: var(--primary-deep); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-deep); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.012em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p { color: var(--ink); }
.muted { color: var(--muted); }
.lead { font-size: 1.18rem; color: var(--ink-soft); line-height: 1.6; }
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.eyebrow.eyebrow-plain::before { display: none; }
.center { text-align: center; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--ink-soft); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; position: relative; }
.section-tight { padding: 40px 0; }
.section-cream { background: var(--cream-deep); }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: var(--cream); }
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--cream); }

/* Decorative wavy divider as SVG background */
.wavy-divider {
  height: 18px;
  background-repeat: repeat-x;
  background-position: center;
  background-size: 60px 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 18'><path d='M0 9 Q15 0 30 9 T60 9' fill='none' stroke='%23E8845B' stroke-width='2' stroke-linecap='round'/></svg>");
}

/* ============ Header / Brand ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(250, 244, 235, 0.92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { background: rgba(250, 244, 235, 0.98); box-shadow: 0 6px 24px rgba(26, 24, 21, 0.05); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 24px; min-height: 78px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  color: var(--ink);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark-light svg rect:first-of-type { /* keeps light variant */ }

.brand-wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand-line-1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-deep);
  letter-spacing: -0.012em;
}
.brand-line-2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.brand-wordmark-light .brand-line-1 { color: var(--cream); }
.brand-wordmark-light .brand-line-2 { color: var(--mustard); }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 10px 14px;
  border-radius: 999px;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover { color: var(--primary-deep); background: rgba(31, 77, 56, 0.06); }
.nav-link.active { color: var(--cream); background: var(--primary); }
.nav-link.active:hover { background: var(--primary-deep); color: var(--cream); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cart-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); color: var(--primary-deep); }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--paper);
  font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink);
}
.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  border-radius: 12px;
  flex-direction: column;
  gap: 5px;
  align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 18, 14, 0.55);
  z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 320px; max-width: 90vw;
  background: var(--cream);
  z-index: 95; padding: 22px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(26, 24, 21, 0.12);
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 2px dashed var(--line);
}
.drawer-brand .brand-line-1 { font-size: 1.1rem; }
.drawer-brand .brand-line-2 { font-size: 0.78rem; }
.drawer-close {
  background: none; border: none; font-size: 30px; color: var(--ink);
  cursor: pointer; line-height: 1; padding: 0 8px;
}
.drawer-link {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 500;
}
.drawer-link:hover { color: var(--accent-deep); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.01em;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn-primary { background: var(--primary); color: var(--cream); }
.btn-primary:hover { background: var(--primary-deep); color: var(--cream); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-deep); color: var(--cream); }
.btn-mustard { background: var(--mustard); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn-ghost:hover { transform: none; box-shadow: 3px 3px 0 var(--ink); border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }

/* ============ Hero (asymmetric magazine) ============ */
.hero { position: relative; padding: 80px 0 90px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; left: -120px; top: 60px;
  width: 320px; height: 320px;
  background: var(--mustard);
  border-radius: 50%;
  opacity: 0.18;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; right: -80px; bottom: -100px;
  width: 280px; height: 280px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.15;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  color: var(--accent-deep);
  font-style: italic;
  font-weight: 600;
}
.hero p.lead { font-size: 1.22rem; margin-bottom: 30px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
  border: 6px solid var(--paper);
}
.hero-photo img { aspect-ratio: 4/3; object-fit: cover; width: 100%; display: block; }
.hero-photo-frame { position: relative; }
.hero-photo-frame::after {
  /* Magnet decoration */
  content: "";
  position: absolute;
  width: 56px; height: 56px;
  background: var(--mustard);
  border-radius: 50%;
  top: -22px;
  right: 20px;
  border: 4px solid var(--ink);
  z-index: 2;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(8deg);
}

/* Floating sticker badges */
.sticker {
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  background: var(--accent);
  color: var(--ink);
  border-radius: 50%;
  border: 2px solid var(--ink);
  text-align: center;
  line-height: 1.05;
  padding: 6px;
  box-shadow: 3px 3px 0 var(--ink);
}
.sticker-mustard { background: var(--mustard); }
.sticker-cream { background: var(--cream); }
.sticker-primary { background: var(--primary); color: var(--cream); }

/* ============ Photo mosaic (postcard-style) ============ */
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}
.photo-mosaic .tile {
  overflow: hidden;
  border-radius: var(--radius);
  border: 4px solid var(--paper);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}
.photo-mosaic .tile:nth-child(odd) { transform: rotate(-0.6deg); }
.photo-mosaic .tile:nth-child(even) { transform: rotate(0.6deg); }
.photo-mosaic .tile:hover { transform: rotate(0) scale(1.02); z-index: 2; }
.photo-mosaic .tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 0.4s ease; }
.photo-mosaic .tile.tall { grid-row: span 2; }
.photo-mosaic .tile.tall img { aspect-ratio: 3/4; }

/* ============ Photo strip (filmstrip) ============ */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 14px;
  background: var(--ink);
  border-radius: var(--radius);
  position: relative;
}
.photo-strip::before, .photo-strip::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 8px;
  background-image:
    linear-gradient(to right, var(--cream) 0 8px, transparent 8px 22px);
  background-size: 22px 8px;
  background-repeat: repeat-x;
}
.photo-strip::before { top: -1px; }
.photo-strip::after  { bottom: -1px; }
.photo-strip .strip-tile { overflow: hidden; border-radius: 4px; }
.photo-strip .strip-tile img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 1/1;
  transition: transform 0.4s ease;
  filter: saturate(1.05);
}
.photo-strip .strip-tile:hover img { transform: scale(1.07); }

/* ============ Recipe gallery ============ */
.recipe-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 36px 0 8px;
}
.recipe-gallery .gal {
  overflow: hidden;
  border-radius: var(--radius);
  border: 4px solid var(--paper);
  box-shadow: var(--shadow-soft);
}
.recipe-gallery .gal img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery-caption {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 10px;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
}

/* ============ Cards (recipe / product) ============ */
.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translate(-2px, -3px); box-shadow: 7px 8px 0 var(--ink); }
.card-img { position: relative; overflow: hidden; }
.card-img img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform 0.4s ease; display: block; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 800;
  margin-bottom: 6px;
}
.card-title {
  font-family: var(--serif);
  font-size: 1.32rem;
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent-deep); }
.card-desc { color: var(--ink-soft); font-size: 0.94rem; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.83rem;
  color: var(--ink-soft);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-weight: 500;
}
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta span::before {
  content: "";
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%;
}

/* Premium "magnet" badge */
.lock-badge {
  position: absolute;
  top: -14px;
  right: 14px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  z-index: 3;
  transform: rotate(-8deg);
}
.member-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  margin-left: 8px;
  vertical-align: middle;
  border: 1.5px solid var(--ink);
}
.pill-members { background: var(--accent); color: var(--ink); }
.pill-free { background: var(--mustard); color: var(--ink); }

/* ============ Grids ============ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.grid-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

/* ============ Forms ============ */
.form-grid { display: grid; gap: 18px; max-width: 520px; margin: 0 auto; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  padding: 13px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--paper);
  font-family: inherit;
  color: var(--ink);
  transition: box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  box-shadow: 4px 4px 0 var(--accent);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-help { color: var(--muted); font-size: 0.85rem; }

.alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  border: 1.5px solid var(--ink);
}
.alert-error { background: #FCEEEC; color: #8B2A20; border-color: #C44536; }
.alert-success { background: #E8F1E9; color: var(--primary-deep); border-color: var(--primary); }
.alert-info { background: var(--cream-deep); color: var(--ink); border-color: var(--mustard); }

/* ============ Detail pages (recipe / product) ============ */
.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0 28px;
}
.detail-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.detail-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-lg);
  transform: rotate(0.6deg);
}
.detail-hero-img img { aspect-ratio: 4/3; object-fit: cover; width: 100%; display: block; }

.meta-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0; }
.meta-tiles .tile {
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  box-shadow: 3px 3px 0 var(--ink);
}
.meta-tiles .tile-label { font-size: 0.7rem; color: var(--ink-soft); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.meta-tiles .tile-value { font-family: var(--serif); font-size: 1.5rem; color: var(--primary-deep); margin-top: 6px; font-weight: 700; }

.recipe-body {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 56px;
  padding: 24px 0 80px;
  align-items: start;
}
.ingredient-list {
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 5px 5px 0 var(--ink);
  position: relative;
}
.ingredient-list::before {
  content: "Ingredients";
  position: absolute;
  top: -14px; left: 24px;
  background: var(--mustard);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}
.ingredient-list h3 { display: none; }
.ingredient-list ul { list-style: none; padding: 0; margin-top: 8px; }
.ingredient-list li {
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 1rem;
  color: var(--ink);
}
.ingredient-list li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 9px;
  flex-shrink: 0;
  border: 1px solid var(--ink);
}

.method-list {
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}
.method-list li {
  counter-increment: step;
  padding: 18px 0 18px 64px;
  border-bottom: 1px dashed var(--line);
  position: relative;
  min-height: 56px;
  font-size: 1.02rem;
  line-height: 1.65;
}
.method-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

/* ============ Paywall (more distinctive) ============ */
.paywall {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: var(--cream);
  padding: 52px 40px;
  border-radius: var(--radius-xl);
  margin-top: 28px;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  position: relative;
  overflow: hidden;
}
.paywall::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: var(--mustard);
  border-radius: 50%;
  opacity: 0.18;
}
.paywall-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.paywall h3 { color: var(--cream); font-size: 2rem; margin-bottom: 14px; }
.paywall p { color: rgba(250, 244, 235, 0.92); margin-bottom: 16px; font-size: 1.05rem; }
.paywall ul {
  list-style: none; padding: 0;
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.paywall ul li { padding-left: 28px; position: relative; color: rgba(250, 244, 235, 0.94); }
.paywall ul li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 16px; height: 9px;
  border-left: 2.5px solid var(--mustard);
  border-bottom: 2.5px solid var(--mustard);
  transform: rotate(-45deg);
}

/* ============ Free strip / banner ============ */
.free-strip {
  background: var(--mustard);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  box-shadow: 5px 5px 0 var(--ink);
  margin-bottom: 36px;
}
.free-strip .strip-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-family: var(--serif);
  font-size: 1.3rem;
  border: 2px solid var(--ink);
}
.free-strip p { margin: 0; flex: 1; min-width: 240px; color: var(--ink); font-weight: 500; }
.free-strip strong { color: var(--primary-deep); }

/* ============ Tag pills (category bar) ============ */
.tag-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 32px;
}
.tag-pill {
  display: inline-flex; align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.15s ease;
  box-shadow: 2px 2px 0 var(--ink);
}
.tag-pill:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); color: var(--ink); }
.tag-pill.active { background: var(--primary); color: var(--cream); }

/* ============ Pricing ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 880px;
  margin: 36px auto 0;
}
.pricing-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 6px 6px 0 var(--ink);
  display: flex; flex-direction: column;
  position: relative;
}
.pricing-card.featured {
  background: var(--cream-deep);
  position: relative;
}
.pricing-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -16px; left: 24px;
  background: var(--accent);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pricing-card h3 { font-family: var(--serif); font-size: 1.6rem; }
.price { font-family: var(--serif); font-size: 3.4rem; color: var(--primary-deep); margin: 12px 0; font-weight: 700; line-height: 1; }
.price small { font-size: 1rem; color: var(--ink-soft); font-family: var(--sans); font-weight: 500; }
.pricing-card ul { list-style: none; padding: 0; margin: 22px 0; }
.pricing-card ul li {
  padding: 9px 0 9px 32px;
  position: relative;
  color: var(--ink);
}
.pricing-card ul li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 16px; height: 9px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ============ Cart ============ */
.cart-row {
  display: grid;
  grid-template-columns: 100px 1fr auto auto auto;
  gap: 22px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}
.cart-row img { width: 100px; height: 100px; object-fit: cover; border-radius: 12px; border: 1.5px solid var(--ink); }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink);
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink);
}
.qty button:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); color: var(--accent-deep); }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
.cart-summary {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 5px 5px 0 var(--ink);
}
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; }
.summary-row.total {
  font-size: 1.25rem; font-weight: 700;
  font-family: var(--serif);
  padding: 16px 0 0;
  margin-top: 10px;
  border-top: 2px dashed var(--ink);
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--ink);
  color: var(--cream);
  padding: 16px 22px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 5px 5px 0 var(--accent);
  border: 2px solid var(--accent);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 200;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ============ Cookie notice ============ */
.cookie-notice {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 18px 0;
  z-index: 150;
  border-top: 4px solid var(--accent);
}
.cookie-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cookie-row p { color: var(--cream); flex: 1; min-width: 240px; margin: 0; font-size: 0.95rem; }
.cookie-row p a { color: var(--mustard); text-decoration: underline; }

/* ============ Footer ============ */
.site-footer {
  background: var(--ink);
  color: rgba(250, 244, 235, 0.85);
  padding: 70px 0 30px;
  margin-top: 80px;
  border-top: 4px solid var(--accent);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -22px;
  height: 18px;
  background-repeat: repeat-x;
  background-position: center top;
  background-size: 60px 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 18'><path d='M0 9 Q15 0 30 9 T60 9' fill='none' stroke='%231A1815' stroke-width='3' stroke-linecap='round'/></svg>");
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.footer-grid h4 {
  color: var(--cream);
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.footer-grid a {
  display: block;
  color: rgba(250, 244, 235, 0.78);
  padding: 5px 0;
  font-size: 0.95rem;
}
.footer-grid a:hover { color: var(--accent); }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.1rem; margin: 12px 0; color: var(--cream); }
.footer-meta { font-size: 0.85rem; color: rgba(250, 244, 235, 0.6); }
.footer-bottom {
  border-top: 1px solid rgba(250, 244, 235, 0.12);
  padding-top: 22px;
  margin-top: 44px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(250, 244, 235, 0.55);
}

/* ============ Page head (editorial) ============ */
.page-head { padding: 72px 0 40px; text-align: center; position: relative; }
.page-head h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  margin-bottom: 16px;
}
.page-head .lead { max-width: 720px; margin: 0 auto; font-size: 1.18rem; }
.page-head::after {
  content: "";
  display: block;
  width: 120px; height: 14px;
  margin: 28px auto 0;
  background-repeat: repeat-x;
  background-position: center;
  background-size: 30px 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 14'><path d='M0 7 Q7.5 0 15 7 T30 7' fill='none' stroke='%23E8845B' stroke-width='2' stroke-linecap='round'/></svg>");
}

/* ============ Product detail ============ */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 56px 0;
  align-items: start;
}
.product-hero img {
  width: 100%;
  aspect-ratio: 6/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-lg);
  transform: rotate(-0.6deg);
}
.product-price { font-family: var(--serif); font-size: 2.6rem; color: var(--primary-deep); margin: 16px 0; font-weight: 700; }
.product-features { list-style: none; padding: 0; margin: 18px 0; }
.product-features li { padding: 9px 0 9px 32px; position: relative; }
.product-features li::before {
  content: "";
  position: absolute; left: 0; top: 16px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ============ Category tile (fridge magnet) ============ */
.cat-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cat-tile:hover { transform: translate(-2px, -3px); box-shadow: 6px 7px 0 var(--ink); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 18, 14, 0.78) 0%, transparent 65%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.cat-tile-overlay h4 {
  color: var(--cream);
  margin: 0;
  font-size: 1.15rem;
}

/* ============ Blog ============ */
.blog-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.blog-card:hover { transform: translate(-2px, -3px); box-shadow: 6px 7px 0 var(--ink); }
.blog-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; display: block; }
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h3 { font-size: 1.28rem; margin-bottom: 8px; line-height: 1.25; }
.blog-card-body h3 a { color: var(--ink); }
.blog-card-body h3 a:hover { color: var(--accent-deep); }
.blog-meta-line {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-style: italic;
}
.blog-detail { max-width: 760px; margin: 0 auto; padding: 36px 0 70px; }
.blog-detail img {
  aspect-ratio: 16/9; object-fit: cover; width: 100%;
  border-radius: var(--radius-lg);
  margin: 28px 0;
  border: 4px solid var(--paper);
  box-shadow: var(--shadow);
}
.blog-detail p { margin-bottom: 22px; font-size: 1.08rem; line-height: 1.85; color: var(--ink); }
.blog-detail p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent-deep);
  float: left;
  line-height: 0.9;
  margin: 6px 10px 0 0;
}
.blog-detail h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 16px; }

/* ============ About / Team ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.team-card { text-align: center; }
.team-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 16px;
}
.team-card h4 { margin-bottom: 4px; font-size: 1.15rem; }
.team-card .team-role {
  color: var(--accent-deep);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 10px;
}

/* ============ FAQ ============ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.faq-item:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--ink); }
.faq-item h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: var(--primary-deep);
}
.faq-item p { color: var(--ink); }

/* ============ Sitemap ============ */
.sitemap-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.sitemap-cols h4 { color: var(--primary-deep); margin-bottom: 14px; font-size: 1.05rem; }
.sitemap-cols a { display: block; padding: 6px 0; color: var(--ink); }
.sitemap-cols a:hover { color: var(--accent-deep); }

/* ============ Legal pages ============ */
.legal { max-width: 820px; margin: 0 auto; padding: 28px 0 70px; }
.legal h2 { margin-top: 36px; margin-bottom: 14px; font-size: 1.7rem; color: var(--primary-deep); }
.legal h3 { margin-top: 22px; margin-bottom: 10px; font-size: 1.2rem; color: var(--ink); }
.legal p, .legal li { margin-bottom: 14px; line-height: 1.8; }
.legal ul { padding-left: 26px; margin-bottom: 16px; }
.legal table { width: 100%; border-collapse: collapse; margin: 22px 0; }
.legal th, .legal td { padding: 14px; border: 1.5px solid var(--ink); text-align: left; vertical-align: top; }
.legal th { background: var(--cream-deep); }

/* ============ Account ============ */
.account-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 36px;
  align-items: start;
}
.account-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 5px 5px 0 var(--ink);
}
.account-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary-deep);
}
.order-row { padding: 14px 0; border-bottom: 1px dashed var(--line); }

/* ============ Stats strip ============ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 32px 0;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
  margin: 24px 0;
  text-align: center;
}
.stats-strip > div { padding: 0 16px; border-right: 1px dashed var(--line); }
.stats-strip > div:last-child { border-right: none; }
.stat-num { font-family: var(--serif); font-size: 2.8rem; color: var(--primary-deep); font-weight: 700; line-height: 1; }
.stat-label { color: var(--ink-soft); font-size: 0.85rem; margin-top: 6px; letter-spacing: 0.04em; }

/* ============ Trust band ============ */
.band {
  background: var(--primary);
  color: var(--cream);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.band::before {
  content: "";
  position: absolute;
  top: -30px; left: 8%;
  width: 120px; height: 120px;
  background: var(--mustard);
  border-radius: 50%;
  opacity: 0.18;
}
.band::after {
  content: "";
  position: absolute;
  bottom: -40px; right: 12%;
  width: 160px; height: 160px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.22;
}
.band h2 { color: var(--cream); margin-bottom: 8px; font-family: var(--serif); }
.band p { color: rgba(250, 244, 235, 0.92); font-size: 1.05rem; }
.band .grid-2 { position: relative; z-index: 1; align-items: center; }

/* ============ Issue eyebrow (date) ============ */
.issue-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  box-shadow: 3px 3px 0 var(--accent);
}
.issue-line::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ============ Pull quote ============ */
.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--primary-deep);
  border-left: 4px solid var(--accent);
  padding: 14px 0 14px 24px;
  margin: 24px 0;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .grid-cats { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .photo-mosaic { grid-template-columns: repeat(3, 1fr); }
  .photo-strip { grid-template-columns: repeat(4, 1fr); }
  .detail-hero, .recipe-body, .product-hero, .account-grid { grid-template-columns: 1fr; gap: 36px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip > div:nth-child(2) { border-right: none; }
  .sitemap-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 50px 0; }
  .container { padding: 0 18px; }
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-cats { grid-template-columns: 1fr; }
  .photo-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .photo-mosaic .tile.tall { grid-row: auto; }
  .photo-mosaic .tile.tall img { aspect-ratio: 4/3; }
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
  .recipe-gallery { grid-template-columns: 1fr 1fr; }
  .meta-tiles { grid-template-columns: 1fr 1fr; }
  .hero { padding: 56px 0 50px; }
  .hero h1 { font-size: 2.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { padding: 12px 18px; min-height: 70px; }
  .brand-line-1 { font-size: 1.1rem; }
  .brand-line-2 { font-size: 0.72rem; }
  .field-row { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 80px 1fr; gap: 14px; }
  .cart-row img { width: 80px; height: 80px; }
  .cart-row .qty, .cart-row .line-total, .cart-row .remove-btn { grid-column: span 2; padding-top: 6px; }
  .team-grid, .stats-strip, .sitemap-cols { grid-template-columns: 1fr; }
  .stats-strip > div { border-right: none; border-bottom: 1px dashed var(--line); padding: 16px 0; }
  .stats-strip > div:last-child { border-bottom: none; }
  .paywall ul { grid-template-columns: 1fr; }
  .page-head { padding: 44px 0 24px; }
  .page-head h1 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4, .grid-cats { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .recipe-gallery { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .meta-tiles { grid-template-columns: 1fr 1fr; }
  .pricing-card { padding: 28px 22px; }
  .price { font-size: 2.6rem; }
  .brand-wordmark { display: none; }
}
