/* Cedarvalley Recipes - editorial cookbook stylesheet (ASCII only) */
:root {
  --primary: #2D4A35;
  --primary-dark: #1A2D20;
  --primary-light: #466B53;
  --accent: #D17A2C;
  --accent-dark: #A95F1E;
  --accent-light: #ECB783;
  --cream: #F8F1E1;
  --paper: #FBF6E8;
  --sand: #ECE0C2;
  --sand-deep: #DCC99F;
  --ink: #1A1612;
  --soft: #5C5145;
  --line: #D9C9A2;
  --line-soft: #E8DCBC;
  --tomato: #B5371E;
  --olive: #6B7A3A;
  --shadow-sm: 0 4px 14px rgba(26, 22, 18, 0.07);
  --shadow-md: 0 14px 36px rgba(26, 22, 18, 0.10);
  --shadow-lg: 0 26px 64px rgba(26, 22, 18, 0.16);
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 36px;
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --grid-line: rgba(45, 74, 53, 0.06);
}

*, *::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; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(at 20% -10%, rgba(209, 122, 44, 0.06), transparent 50%),
    radial-gradient(at 90% 0%, rgba(45, 74, 53, 0.05), transparent 45%),
    var(--cream);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.serif { font-family: var(--serif); }
.smallcap { text-transform: uppercase; letter-spacing: 3px; font-size: 0.78rem; font-weight: 700; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ---------- TOP STRIP ---------- */
.top-strip {
  background: var(--primary-dark);
  color: var(--cream);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 9px 14px;
  font-weight: 600;
}
.top-strip .dot {
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
  margin: 0 12px;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 241, 225, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: 1280px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--primary); }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; }
.brand-mark svg { display: block; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.brand-text {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.3px;
}
.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
}
.brand-dark .brand-text { color: var(--cream); }
.brand-dark .brand-sub  { color: var(--accent-light); }

.primary-nav { display: flex; gap: 30px; }
.primary-nav a {
  color: var(--ink); font-weight: 500; font-size: 0.96rem;
  padding: 6px 0; position: relative;
  font-family: var(--sans);
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--accent); border-radius: 2px;
  transition: right 0.3s ease;
}
.primary-nav a:hover { color: var(--primary); }
.primary-nav a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-link { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.cart-link { position: relative; color: var(--primary); display: inline-flex; align-items: center; padding: 4px; }
.cart-link:hover { color: var(--accent-dark); }
.cart-count {
  position: absolute; top: -4px; right: -8px;
  background: var(--accent); color: var(--primary-dark); border-radius: 999px;
  min-width: 18px; height: 18px; font-size: 0.72rem; line-height: 18px; text-align: center; padding: 0 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  font-weight: 700;
}
.hamburger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

/* ---------- DRAWER ---------- */
.mobile-drawer {
  position: fixed; top: 0; right: -100%; width: min(340px, 88vw); height: 100vh;
  background: var(--cream); padding: 84px 28px 28px;
  transition: right 0.35s cubic-bezier(.65,.05,.36,1); z-index: 200;
  display: flex; flex-direction: column; gap: 16px; overflow-y: auto;
  box-shadow: -10px 0 50px rgba(0,0,0,0.22);
}
.mobile-drawer a {
  color: var(--ink); font-size: 1.15rem; font-weight: 500; padding: 10px 0;
  border-bottom: 1px solid var(--line-soft); font-family: var(--serif);
}
.mobile-drawer.open { right: 0; }
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(26, 22, 18, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 150;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

/* ---------- BUTTONS ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.96rem;
  font-family: var(--sans);
  transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.2s;
  text-decoration: none;
  letter-spacing: 0.4px;
  overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.6s ease;
}
.btn:hover::after { transform: translateX(110%); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--cream); box-shadow: 0 4px 14px rgba(45, 74, 53, 0.25); }
.btn-primary:hover { background: var(--primary-dark); color: var(--cream); }
.btn-accent { background: var(--accent); color: var(--primary-dark); box-shadow: 0 4px 14px rgba(209, 122, 44, 0.30); }
.btn-accent:hover { background: var(--accent-dark); color: var(--cream); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--cream); border: 2px solid var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--primary); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.04rem; }
.btn .arr { transition: transform 0.25s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- HERO (editorial) ---------- */
.hero {
  position: relative;
  padding: 60px 0 100px;
  background:
    linear-gradient(180deg, rgba(26, 22, 18, 0.55), rgba(26, 22, 18, 0.72)),
    var(--hero-image, url('https://images.pexels.com/photos/1279330/pexels-photo-1279330.jpeg?auto=compress&cs=tinysrgb&w=1600&h=900&dpr=1'));
  background-size: cover; background-position: center;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px;
  background: var(--cream);
  -webkit-mask: radial-gradient(28px 40px at 24px 0, transparent 99%, #000) 0 0 / 56px 100% repeat-x;
          mask: radial-gradient(28px 40px at 24px 0, transparent 99%, #000) 0 0 / 56px 100% repeat-x;
}
.hero h1 { color: var(--cream); margin-bottom: 18px; }
.hero .issue-no {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--accent-light);
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; margin-bottom: 14px;
}
.hero .issue-no::before, .hero .issue-no::after {
  content: ""; display: inline-block; width: 38px; height: 1px; background: var(--accent-light);
}
.hero .eyebrow {
  color: var(--accent-light);
  text-transform: uppercase; letter-spacing: 4px; font-size: 0.8rem; font-weight: 700;
  margin-bottom: 10px;
}
.hero p.lead { font-size: 1.18rem; max-width: 660px; margin-bottom: 28px; color: var(--cream); opacity: 0.94; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  position: absolute; right: 28px; bottom: 80px;
  background: rgba(26,22,18,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  padding: 14px 18px;
  color: var(--cream);
  font-size: 0.85rem;
  display: flex; flex-direction: column; gap: 4px;
  max-width: 240px;
}
.hero-meta .smallcap { color: var(--accent-light); font-size: 0.7rem; }

/* ---------- DECORATIVE DIVIDER ---------- */
.flourish {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 8px 0 22px; color: var(--accent-dark);
}
.flourish::before, .flourish::after {
  content: ""; flex: 1; max-width: 120px;
  height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.flourish .leaf {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
}
.flourish .leaf svg { width: 100%; height: 100%; }

/* ---------- SECTION ---------- */
.section { padding: 90px 0; position: relative; }
.section-light { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-tight { padding: 56px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.section-head .eyebrow {
  display: inline-block; color: var(--accent-dark);
  text-transform: uppercase; letter-spacing: 4px;
  font-size: 0.78rem; font-weight: 700; margin-bottom: 14px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--soft); font-size: 1.06rem; }
.section-head h2 .accent {
  font-family: var(--serif); font-style: italic;
  color: var(--accent-dark); font-weight: 400;
}

/* ---------- GRIDS ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-cards.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cards.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- CARDS (editorial cookbook) ---------- */
.card {
  background: var(--paper);
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  position: relative;
  isolation: isolate;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}
.card-image {
  aspect-ratio: 4 / 3; overflow: hidden; position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.18,.85,.25,1); }
.card:hover .card-image img { transform: scale(1.06); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.card-eyebrow {
  color: var(--accent-dark);
  text-transform: uppercase; letter-spacing: 2.5px;
  font-size: 0.7rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
}
.card-eyebrow::before {
  content: ""; width: 14px; height: 1px; background: var(--accent-dark);
}
.card-title { font-size: 1.22rem; line-height: 1.3; color: var(--ink); }
.card-title a { color: inherit; }
.card-desc { color: var(--soft); font-size: 0.94rem; flex: 1; }
.card-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  color: var(--soft); font-size: 0.83rem; margin-top: 4px;
  padding-top: 12px; border-top: 1px dashed var(--line-soft);
  font-family: var(--serif); font-style: italic;
}
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-actions { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--serif); font-weight: 700; color: var(--primary); font-size: 1.3rem; }
.price small { color: var(--soft); font-size: 0.78rem; font-weight: 500; font-family: var(--sans); }

/* ---------- WAX-SEAL PADLOCK BADGE ---------- */
.lock-badge {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px;
  background: var(--tomato);
  color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(181, 55, 30, 0.45);
  clip-path: polygon(
    50% 0%, 78% 8%, 92% 22%, 100% 50%, 92% 78%, 78% 92%,
    50% 100%, 22% 92%, 8% 78%, 0% 50%, 8% 22%, 22% 8%
  );
}
.lock-badge svg { width: 20px; height: 20px; fill: white; }
.member-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px;
  border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  background: var(--tomato); color: white;
  text-transform: uppercase; letter-spacing: 1.6px;
}
.member-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light);
}
.member-pill.free { background: var(--olive); }
.member-pill.free::before { background: var(--cream); }

/* ---------- RECIPE NUMBER CHIP ---------- */
.recipe-no {
  position: absolute; top: 14px; left: 14px;
  background: rgba(248, 241, 225, 0.92);
  color: var(--primary-dark);
  font-family: var(--serif); font-style: italic; font-size: 0.85rem;
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  letter-spacing: 0.5px;
}

/* ---------- PHOTO MOSAIC ---------- */
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 230px);
  gap: 14px;
}
.photo-mosaic .tile {
  overflow: hidden;
  border-radius: var(--r-md);
  position: relative;
  border: 1px solid var(--line-soft);
}
.photo-mosaic .tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.photo-mosaic .tile:hover img { transform: scale(1.04); }
.photo-mosaic .tile:nth-child(1) { grid-row: span 2; border-radius: var(--r-lg); }
.photo-mosaic .tile:nth-child(6) { grid-row: span 2; border-radius: var(--r-lg); }

/* ---------- PHOTO STRIP ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.photo-strip .strip-tile {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
  position: relative;
}
.photo-strip .strip-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.photo-strip .strip-tile:hover img { transform: scale(1.05); }

/* ---------- RECIPE GALLERY ---------- */
.recipe-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.recipe-gallery .g-tile {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
}
.recipe-gallery .g-tile img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption {
  text-align: center;
  color: var(--accent-dark);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--sans);
}

/* ---------- CATEGORY GRID (editorial tiles) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.category-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  color: white; box-shadow: var(--shadow-sm);
  isolation: isolate;
  border: 1px solid transparent;
  transition: border-color 0.25s, transform 0.25s;
}
.category-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 0.6s ease;
}
.category-tile::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(26, 22, 18, 0.85));
  z-index: -1;
}
.category-tile:hover { transform: translateY(-4px); border-color: var(--accent); }
.category-tile:hover img { transform: scale(1.06); }
.category-tile .cat-num {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--serif); font-style: italic;
  font-size: 0.95rem; color: var(--accent-light);
  background: rgba(26,22,18,0.4);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 2px 10px; border-radius: 999px;
}
.category-tile h3 { color: white; font-size: 1.18rem; margin: 0; }
.category-tile span { color: rgba(255,255,255,0.82); font-size: 0.82rem; }

/* ---------- FORMS ---------- */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-weight: 600; font-size: 0.86rem; color: var(--ink);
  text-transform: uppercase; letter-spacing: 1.5px;
}
.form-field input, .form-field select, .form-field textarea {
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: white; font-size: 0.97rem; font-family: inherit; color: var(--ink);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(45, 74, 53, 0.10);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  max-width: 580px;
  margin: 0 auto;
  border: 1px solid var(--line-soft);
  position: relative;
}
.form-card::before {
  content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  border-radius: 0 0 4px 4px;
}
.form-card h2 { margin-bottom: 8px; }
.form-card p.lead { color: var(--soft); margin-bottom: 22px; }
.helper { color: var(--soft); font-size: 0.85rem; }
.alert { padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: 16px; font-weight: 500; font-size: 0.94rem; }
.alert-error { background: #FCE9E4; color: #962914; border: 1px solid #F1B9AC; }
.alert-success { background: #E5EFD7; color: #3A5419; border: 1px solid #B7CC97; }
.alert-info { background: #FFF1D9; color: #6E4D11; border: 1px solid #E5C681; }

/* ---------- TWO COLUMN LAYOUTS ---------- */
.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px; align-items: center; }
.two-col-flip { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: center; }
.two-col h2 { margin-bottom: 18px; }
.two-col p { color: var(--soft); margin-bottom: 16px; }
.bullet-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bullet-list li {
  padding-left: 32px;
  position: relative;
  color: var(--ink);
}
.bullet-list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.editorial-image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.editorial-image::after {
  content: ""; position: absolute; inset: 12px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: calc(var(--r-lg) - 8px);
  pointer-events: none;
}
.tag-script {
  font-family: var(--serif); font-style: italic;
  color: var(--accent-dark); font-size: 1.05rem;
}

/* ---------- PRICING ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 960px; margin: 0 auto; }
.pricing-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 18px;
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.pricing-card h3 { font-size: 1.5rem; }
.pricing-card .price-large { font-family: var(--serif); font-size: 3.4rem; color: var(--primary); }
.pricing-card .price-large small { font-size: 1rem; color: var(--soft); font-weight: 500; font-family: var(--sans); }
.pricing-card.highlight {
  background: linear-gradient(160deg, var(--primary), var(--primary-dark));
  color: var(--cream);
  border-color: var(--primary-dark);
}
.pricing-card.highlight h3 { color: var(--cream); }
.pricing-card.highlight .price-large { color: var(--accent-light); }
.pricing-card.highlight .price-large small { color: rgba(255,255,255,0.7); }
.pricing-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.pricing-card ul li { position: relative; padding-left: 26px; }
.pricing-card ul li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 8px;
  border-left: 2px solid var(--olive); border-bottom: 2px solid var(--olive); transform: rotate(-45deg);
}
.pricing-card.highlight ul li::before { border-color: var(--accent); }
.pricing-card .ribbon {
  display: inline-block; align-self: flex-start;
  background: var(--accent); color: var(--primary-dark);
  padding: 5px 14px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background:
    linear-gradient(180deg, var(--primary-dark), #0F1A12);
  color: var(--cream);
  padding: 80px 28px 0;
  margin-top: 60px;
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 28px, transparent 28px 56px);
  opacity: 0.5;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 50px;
}
.footer-col h4 {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.05rem; margin-bottom: 16px;
  font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: rgba(248, 241, 225, 0.78); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-light); }
.footer-tag { color: rgba(248,241,225,0.74); margin: 14px 0; max-width: 320px; }
.footer-copy { color: rgba(248,241,225,0.55); font-size: 0.86rem; line-height: 1.7; }
.support-link { color: var(--accent); font-weight: 600; }
.footer-bottom {
  max-width: 1280px; margin: 60px auto 0;
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 0.85rem; color: rgba(248,241,225,0.55);
}
.footer-bottom .footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(248,241,225,0.7); }

/* ---------- COOKIE ---------- */
.cookie-notice {
  position: fixed; bottom: 18px; left: 18px; right: 18px;
  max-width: 760px; margin: 0 auto;
  background: var(--ink); color: var(--cream);
  padding: 18px 22px;
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  z-index: 250;
  border: 1px solid rgba(255,255,255,0.06);
}
.cookie-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 240px; font-size: 0.92rem; line-height: 1.55; }
.cookie-text a { color: var(--accent-light); }

/* ---------- TOASTS ---------- */
.toast-wrap { position: fixed; bottom: 100px; right: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 300; }
.toast {
  background: var(--ink); color: var(--cream);
  padding: 14px 22px;
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  animation: toast-in 0.3s ease;
  font-size: 0.95rem;
  border-left: 3px solid var(--accent);
}
@keyframes toast-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- PAYWALL (wax-stamp inspired) ---------- */
.paywall {
  background:
    radial-gradient(at 0% 0%, rgba(255,255,255,0.05), transparent 40%),
    linear-gradient(160deg, var(--primary), var(--primary-dark));
  color: var(--cream);
  padding: 44px;
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.paywall::after {
  content: "";
  position: absolute; right: -50px; top: -50px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(209, 122, 44, 0.18), transparent 60%);
}
.paywall .pw-icon {
  width: 64px; height: 64px;
  background: var(--accent);
  color: var(--primary-dark);
  display: inline-flex; align-items: center; justify-content: center;
  clip-path: polygon(
    50% 0%, 78% 8%, 92% 22%, 100% 50%, 92% 78%, 78% 92%,
    50% 100%, 22% 92%, 8% 78%, 0% 50%, 8% 22%, 22% 8%
  );
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.paywall .pw-icon svg { width: 28px; height: 28px; fill: var(--primary-dark); }
.paywall h3 { color: var(--cream); font-size: 1.7rem; }
.paywall p { color: rgba(255,255,255,0.86); }
.paywall ul {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px 22px; padding: 0; margin: 6px 0;
}
.paywall ul li { padding-left: 24px; position: relative; color: rgba(255,255,255,0.92); font-size: 0.95rem; }
.paywall ul li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent-light); border-bottom: 2px solid var(--accent-light);
  transform: rotate(-45deg);
}
.paywall .pw-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- RECIPE DETAIL ---------- */
.recipe-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  position: relative;
}
.recipe-hero .recipe-image-wrap {
  position: relative;
  isolation: isolate;
}
.recipe-hero .recipe-image-wrap::before {
  content: ""; position: absolute;
  top: 24px; left: 24px; right: -16px; bottom: -16px;
  background: var(--accent);
  border-radius: var(--r-lg);
  z-index: -1;
}
.recipe-hero img {
  width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.recipe-hero h1 { margin: 14px 0 14px; }
.recipe-hero .meta-tiles {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 28px;
}
.meta-tile {
  background: var(--paper);
  padding: 16px 12px;
  border-radius: var(--r-sm);
  text-align: center;
  border: 1px solid var(--line-soft);
}
.meta-tile strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-family: var(--serif);
}
.meta-tile span {
  display: block;
  color: var(--accent-dark);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 6px;
  font-weight: 600;
}

/* Method step */
.method-step {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 16px;
  background: var(--paper);
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
}
.method-num {
  flex: 0 0 44px; height: 44px;
  background: var(--primary);
  color: var(--accent-light);
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--accent);
}

/* ---------- BLOG ---------- */
.blog-card .card-image { aspect-ratio: 16 / 10; }
.blog-detail { max-width: 760px; margin: 0 auto; padding: 30px 0 60px; }
.blog-detail .meta { color: var(--soft); margin-bottom: 12px; font-size: 0.92rem; }
.blog-detail h1 { margin-bottom: 22px; }
.blog-detail img.cover {
  width: 100%; aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-lg);
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
}
.blog-detail p { font-size: 1.07rem; margin-bottom: 18px; color: var(--ink); line-height: 1.75; }
.blog-detail p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 4rem; line-height: 1;
  float: left; padding: 6px 12px 0 0; color: var(--accent-dark);
}

/* ---------- FAQ / LEGAL ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 880px; margin: 0 auto; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 24px 26px;
  position: relative;
}
.faq-item::before {
  content: "Q"; position: absolute; top: 18px; right: 22px;
  font-family: var(--serif); font-style: italic;
  color: var(--accent); font-size: 2rem; opacity: 0.5;
}
.faq-item h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.12rem; padding-right: 30px; }
.legal-page { max-width: 860px; margin: 0 auto; padding: 60px 28px; }
.legal-page h1 { margin-bottom: 18px; }
.legal-page h2 { margin-top: 36px; margin-bottom: 14px; font-size: 1.5rem; color: var(--primary); }
.legal-page p { margin-bottom: 16px; color: var(--ink); }
.legal-page ul { padding-left: 26px; margin-bottom: 16px; color: var(--ink); }
.legal-page table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.legal-page th, .legal-page td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.legal-page th { background: var(--sand); }

/* ---------- CART / CHECKOUT ---------- */
.cart-row {
  display: grid;
  grid-template-columns: 110px 1fr 110px 110px 60px;
  gap: 18px; align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-row img { width: 100px; height: 80px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line-soft); }
.qty-controls { display: inline-flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  font-size: 1.2rem; line-height: 1;
  color: var(--primary);
  transition: 0.2s;
}
.qty-btn:hover { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }
.cart-summary {
  background: var(--paper);
  padding: 28px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
  position: sticky; top: 100px;
}
.cart-summary h3 { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-row.total {
  border-top: 2px solid var(--ink);
  margin-top: 12px; padding-top: 14px;
  font-weight: 700; font-size: 1.15rem; font-family: var(--serif);
}
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: start; }

/* ---------- HELPERS ---------- */
.muted { color: var(--soft); }
.center { text-align: center; }
.mb-12 { margin-bottom: 12px; } .mb-24 { margin-bottom: 24px; } .mb-40 { margin-bottom: 40px; }
.mt-12 { margin-top: 12px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.banner-strip {
  background:
    linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--cream);
  padding: 20px 28px;
  border-radius: var(--r-md);
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.08);
}
.banner-strip strong { color: var(--accent-light); }
.banner-strip a.btn { white-space: nowrap; }
.filter-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px;
  padding: 16px; background: var(--paper); border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
}
.filter-row .btn { padding: 9px 18px; font-size: 0.86rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .nav-link { display: none; }
  .hamburger { display: inline-block; }
  .grid-cards.grid-4 { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .recipe-hero { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; }
  .recipe-hero .recipe-image-wrap::before { display: none; }
  .checkout-grid { grid-template-columns: 1fr; }
  .two-col, .two-col-flip { grid-template-columns: 1fr; gap: 36px; }
  .photo-mosaic { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 200px); }
  .photo-mosaic .tile:nth-child(6) { grid-row: span 1; }
  .pricing-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .hero-meta { display: none; }
}
@media (max-width: 768px) {
  .grid-cards, .grid-cards.grid-4, .grid-cards.grid-2 { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 180px); }
  .photo-mosaic .tile:nth-child(1) { grid-row: span 1; }
  .photo-strip { grid-template-columns: repeat(4, 1fr); }
  .recipe-gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-row { grid-template-columns: 80px 1fr; grid-template-rows: auto auto; gap: 8px 14px; }
  .cart-row .price-cell, .cart-row .qty-cell, .cart-row .remove-cell { grid-column: 2; }
  .form-row { grid-template-columns: 1fr; }
  .recipe-hero .meta-tiles { grid-template-columns: 1fr 1fr; }
  .paywall ul { grid-template-columns: 1fr; }
  .blog-detail p:first-of-type::first-letter { font-size: 3rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .grid-cards, .grid-cards.grid-4, .grid-cards.grid-2 { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
  .recipe-gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 80px; }
  .hero .cta-row .btn { width: 100%; }
  .section { padding: 60px 0; }
  .form-card { padding: 28px 22px; }
  .pricing-card { padding: 30px 22px; }
  .top-strip { font-size: 0.7rem; }
  .top-strip .dot { margin: 0 8px; }
  .brand-text { font-size: 1.2rem; }
  .nav-wrap { padding: 12px 18px; }
}
