/* ============================================================
   Cristie's Recipes — editorial design system
   ============================================================ */

:root {
  --ink:        #1a1a1a;
  --ink-soft:   #4a443a;
  --cream:      #fbfaf7;
  --cream-warm: #f6f1e6;
  --brass:      #b8946a;
  --brass-deep: #8b6f47;
  --rule:       #e8e3d9;
  --rule-warm:  #e0d6bf;
  --muted:      #6b6356;
  --footer-rule:#3a342b;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body:  Georgia, 'Times New Roman', serif;

  --label-tracking: 3px;
  --nav-tracking:   2.5px;

  --gutter: 64px;
  --gutter-mobile: 24px;
  --max: 1320px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
main { display: block; }

/* ---------- typography primitives ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow--rule::before { content: "— "; }
.eyebrow--rule::after  { content: " —"; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  color: var(--ink);
  margin: 0;
}
.display em { font-style: italic; color: var(--brass); }

.lede {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- layout primitives ---------- */
.page { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.section--tight { padding: 40px 0; }
.section--cream-warm { background: var(--cream-warm); }
.divider-top { border-top: 1px solid var(--rule); }

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.header-masthead {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--gutter) 24px;
  text-align: center;
}
.logo {
  display: inline-block;
}
.logo img {
  display: block;
  height: 88px;
  width: auto;
  margin: 0 auto;
}

.header-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.simple-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  grid-column: 2;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--nav-tracking);
  text-transform: uppercase;
  color: var(--muted);
}
.simple-nav a { transition: color 0.2s; }
.simple-nav a:hover { color: var(--ink); }

.header-bar .search-bar {
  grid-column: 3;
  justify-self: end;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rule);
  padding: 8px 14px;
  background: var(--cream);
  transition: border-color 0.2s;
  min-width: 220px;
}
.search-bar.search-focused { border-color: var(--ink); }
.search-bar .search-icon { color: var(--brass); font-size: 12px; }
.search-bar input {
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--ink);
  width: 100%;
}
.search-bar input::placeholder { color: var(--muted); }

.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  padding: 6px 0;
}
.hamburger-line {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger-menu.active .hamburger-line:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-menu.active .hamburger-line:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.4);
  z-index: 40;
}
.menu-overlay.active { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ink);
  color: var(--rule);
  margin-top: 96px;
}
.footer-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--gutter) 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
}
.footer-section h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
  margin: 0 0 14px;
}
.footer-section h3 strong { font-weight: 700; font-style: normal; }
.footer-section h4 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--nav-tracking);
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px;
}
.footer-section p {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.6;
  color: #a8a094;
  margin: 0 0 20px;
  max-width: 320px;
}
.footer-section ul li {
  font-family: var(--body);
  font-size: 14px;
  line-height: 2.1;
  color: var(--rule);
}
.footer-section ul li a { transition: color 0.2s; }
.footer-section ul li a:hover { color: var(--brass); }

.footer-tag {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass);
}
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--footer-rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 28px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-ink {
  background: var(--ink);
  color: var(--cream);
}
.btn-ink:hover { background: var(--brass-deep); }
.btn-link {
  padding: 16px 0;
  border-bottom: 1px solid var(--ink);
}
.btn-link:hover { color: var(--brass); border-color: var(--brass); }

/* ============================================================
   RECIPE CARD (the workhorse component)
   ============================================================ */
.recipe-card {
  display: block;
  color: inherit;
}
.recipe-card .recipe-image {
  aspect-ratio: 1 / 1;
  background: var(--cream-warm);
  margin-bottom: 14px;
  overflow: hidden;
}
.recipe-card .recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.recipe-card:hover .recipe-image img { transform: scale(1.04); }

.recipe-card .recipe-eyebrow {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 6px;
}
.recipe-card .recipe-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 8px;
}
.recipe-card .recipe-title em { font-style: italic; }
.recipe-card .recipe-description {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 8px;
}
.recipe-card .recipe-meta {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 16px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 28px;
}
.recipe-grid--three { grid-template-columns: repeat(3, 1fr); gap: 36px; }

/* ============================================================
   HOMEPAGE — hero + featured + grid sections
   ============================================================ */
.hero-editorial {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 88px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.hero-editorial .hero-text { display: flex; flex-direction: column; }
.hero-editorial .eyebrow { margin-bottom: 24px; }
.hero-editorial h1 { margin-bottom: 24px; }
.hero-editorial .lede { margin: 0 0 24px; max-width: 480px; }
.hero-editorial .lede:last-of-type { margin-bottom: 36px; }
.hero-editorial .hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art img {
  width: 100%;
  height: auto;
  max-width: 520px;
}

.hero-feature .recipe-image {
  aspect-ratio: 1 / 1;
  background: var(--cream-warm);
  overflow: hidden;
  margin-bottom: 20px;
}
.hero-feature .recipe-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-feature .recipe-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 8px;
}
.hero-feature .recipe-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 12px;
}
.hero-feature .recipe-title em { font-style: italic; }
.hero-feature .recipe-meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 20px;
}

.section-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--gutter) 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
}
.section-header .eyebrow { margin-bottom: 6px; }
.section-header h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 38px;
  margin: 0;
  color: var(--ink);
}
.section-header h2 em { font-style: italic; }
.section-header .view-all {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.section-header .view-all:hover { color: var(--brass); border-color: var(--brass); }

.section-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter) 64px;
}

.about-home {
  background: var(--cream-warm);
  padding: 88px var(--gutter);
  text-align: center;
}
.about-home .about-content {
  max-width: 680px;
  margin: 0 auto;
}
.about-home h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 24px;
}
.about-home h2 em { font-style: italic; }
.about-home p {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.about-home .btn { margin-top: 16px; }

/* ---------- browse pill grid ---------- */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--rule-warm);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pill:hover {
  background: var(--cream-warm);
  border-color: var(--brass);
  color: var(--brass-deep);
}
.pill-count {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

/* ============================================================
   RECIPE DETAIL PAGE
   ============================================================ */
.recipe-breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--gutter) 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brass);
}
.recipe-breadcrumb a { color: var(--brass); transition: color 0.2s; }
.recipe-breadcrumb a:hover { color: var(--ink); }
.recipe-breadcrumb .separator { margin: 0 10px; color: var(--rule-warm); }
.recipe-breadcrumb .current { color: var(--muted); }

.recipe-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--gutter) 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.recipe-hero .recipe-image {
  aspect-ratio: 1 / 1;
  background: var(--cream-warm);
  overflow: hidden;
}
.recipe-hero .recipe-image img { width: 100%; height: 100%; object-fit: cover; }

.recipe-title-block { display: flex; flex-direction: column; }
.recipe-title-block .eyebrow { margin-bottom: 18px; }
.recipe-title-block h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 20px;
}
.recipe-title-block h1 em { font-style: italic; color: var(--brass); }
.recipe-title-block .lede { margin: 0 0 28px; }

.recipe-meta-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}
.recipe-meta-strip .meta-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 6px;
}
.recipe-meta-strip .meta-value {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
}
.recipe-actions { display: flex; gap: 16px; align-items: center; }

.recipe-body {
  background: var(--cream-warm);
  border-top: 1px solid var(--rule);
  padding: 72px 0;
}
.recipe-body-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
}

.ingredients-section .eyebrow,
.instructions-section .eyebrow { margin-bottom: 8px; }
.ingredients-section h2,
.instructions-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  margin: 0 0 24px;
  color: var(--ink);
}
.ingredients-list { font-family: var(--body); font-size: 15px; line-height: 1.6; color: var(--ink); }
.ingredients-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-warm);
  display: flex;
  gap: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.ingredients-list li:last-child { border-bottom: 0; }
.ingredients-list li.checked { opacity: 0.45; text-decoration: line-through; }
.ingredient-checkbox {
  width: 14px;
  height: 14px;
  border: 1px solid var(--brass);
  flex-shrink: 0;
  margin-top: 4px;
  transition: background 0.2s;
}
.ingredient-checkbox.checked { background: var(--brass); }

.instructions-prose {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  max-width: 680px;
}
.instructions-prose p { margin: 0 0 18px; }

.try-more-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--gutter);
}
.try-more-section .section-header {
  border-top: 0;
  padding: 0 0 28px;
}

/* ============================================================
   LISTING / RESULTS PAGE
   ============================================================ */
.results-hero {
  text-align: center;
  padding: 72px var(--gutter) 48px;
  border-bottom: 1px solid var(--rule);
}
.results-hero .breadcrumb {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}
.results-hero .breadcrumb a { color: var(--brass); }
.results-hero .breadcrumb a:hover { color: var(--ink); }
.results-hero .breadcrumb .separator { margin: 0 10px; color: var(--rule-warm); }
.results-hero .breadcrumb .current { color: var(--muted); }
.results-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1;
  color: var(--ink);
  margin: 0 0 18px;
}
.results-hero .subtitle {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.55;
}
.results-hero .results-count {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.recipe-results {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--gutter) 32px;
}

.no-results { text-align: center; padding: 80px 0; }
.no-results-icon {
  font-size: 36px;
  color: var(--brass);
  margin-bottom: 18px;
}
.no-results h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  color: var(--ink);
  margin: 0 0 12px;
}
.no-results p {
  font-family: var(--body);
  color: var(--muted);
  margin: 0 0 24px;
}
.btn-back {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

.pagination {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) 96px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.pagination .pagination-btn { color: var(--muted); transition: color 0.2s; }
.pagination .pagination-btn:hover { color: var(--ink); }
.pagination .pagination-btn.active { color: var(--ink); font-weight: 700; }
.pagination .pagination-btn.prev,
.pagination .pagination-btn.next {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.pagination .pagination-btn.prev:hover,
.pagination .pagination-btn.next:hover { color: var(--brass); border-color: var(--brass); }
.pagination .pagination-dots { color: var(--muted); }

/* ============================================================
   BROWSE PAGES (categories / countries / ingredients)
   ============================================================ */
.browse-hero {
  text-align: center;
  padding: 72px var(--gutter) 32px;
}
.browse-hero .eyebrow { margin-bottom: 14px; }
.browse-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1;
  color: var(--ink);
  margin: 0 0 18px;
}
.browse-hero p {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.55;
}

.ingredients-search {
  max-width: 480px;
  margin: 32px auto 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--rule);
  padding: 12px 18px;
  background: var(--cream);
}
.ingredients-search .search-icon { color: var(--brass); font-size: 13px; }
.ingredients-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--ink);
  width: 100%;
}
.ingredients-search input::placeholder { color: var(--muted); }

.alphabet-filter {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.alphabet-btn {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.alphabet-btn:hover { color: var(--ink); }
.alphabet-btn.active {
  color: var(--ink);
  border-color: var(--ink);
}

.ingredients-stats {
  text-align: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px var(--gutter) 32px;
}

.ingredients-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 28px;
}
.ingredient-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}
.ingredient-card:hover { transform: translateY(-3px); }
.ingredient-card .ingredient-image,
.ingredient-card .ingredient-icon {
  aspect-ratio: 1 / 1;
  background: var(--cream-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 56px;
  color: var(--brass);
  overflow: hidden;
}
.ingredient-card .ingredient-image img,
.ingredient-card .ingredient-icon img { width: 100%; height: 100%; object-fit: cover; }
.ingredient-card .ingredient-icon img.country-flag {
  width: 80%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.ingredient-card .ingredient-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 4px;
}
.ingredient-card .ingredient-name em { font-style: italic; }
.ingredient-card .ingredient-count {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   STATIC PAGES (about / contact / privacy / terms / 404)
   ============================================================ */
.static-hero {
  text-align: center;
  padding: 88px var(--gutter) 56px;
}
.static-hero .eyebrow { margin-bottom: 14px; }
.static-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.02;
  color: var(--ink);
  margin: 0 0 18px;
}
.static-hero h1 em { font-style: italic; color: var(--brass); }
.static-hero p {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
}
.page-content h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  color: var(--ink);
  margin: 56px 0 18px;
}
.page-content h2 em { font-style: italic; color: var(--brass); }
.page-content h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  margin: 36px 0 12px;
}
.page-content p { margin: 0 0 18px; }
.page-content ul {
  margin: 0 0 24px;
  padding-left: 20px;
  list-style: disc;
  list-style-position: outside;
}
.page-content ul li { margin: 0 0 8px; }
.page-content a {
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  transition: color 0.2s;
}
.page-content a:hover { color: var(--brass); }
.page-content .signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--brass);
  margin-top: 36px;
}
.page-content .text-muted {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 32px;
}
.page-content .disclaimer {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--muted);
  background: var(--cream-warm);
  padding: 18px 22px;
  border-left: 2px solid var(--brass);
}
.page-content .contact-info { list-style: none; padding: 0; }
.page-content .contact-info li { margin: 0 0 10px; }

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 32px 0;
  padding: 32px;
  background: var(--cream-warm);
  border-left: 2px solid var(--brass);
}
.contact-info-item h4 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 10px;
}
.contact-info-item p {
  font-family: var(--body);
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--ink);
}

/* FAQ */
.faq-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
}
.faq-container { margin-top: 24px; }
.faq-item {
  border-top: 1px solid var(--rule);
  transition: background 0.2s;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-question {
  padding: 24px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--brass); }
.faq-icon {
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  color: var(--brass);
  width: 24px;
  text-align: center;
  transition: transform 0.3s;
}
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.faq-answer.show {
  max-height: 600px;
  padding: 0 0 28px 42px;
}
.faq-aside {
  margin-top: 56px;
  padding: 36px;
  background: var(--cream-warm);
  border-left: 2px solid var(--brass);
  text-align: center;
}
.faq-aside h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 10px;
}
.faq-aside p {
  font-family: var(--body);
  color: var(--ink-soft);
  margin: 0;
}

/* 404 */
.notfound {
  max-width: 640px;
  margin: 0 auto;
  padding: 120px var(--gutter) 160px;
  text-align: center;
}
.notfound .eyebrow { margin-bottom: 20px; }
.notfound h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(80px, 12vw, 140px);
  line-height: 0.9;
  color: var(--ink);
  margin: 0 0 24px;
}
.notfound p {
  font-family: var(--body);
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 32px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --gutter: 40px; }
  .recipe-grid { grid-template-columns: repeat(3, 1fr); }
  .ingredients-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-content { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-section:nth-child(4) { display: none; }
}

@media (max-width: 768px) {
  :root { --gutter: 24px; }
  body { font-size: 16px; }

  .header-masthead {
    padding: 24px 24px 16px;
  }
  .logo img { height: 56px; }

  .header-bar {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 12px 24px;
  }
  .hamburger-menu {
    display: flex;
    grid-column: 1;
  }
  .simple-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: 88px 32px 32px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--rule);
    z-index: 60;
    align-items: flex-start;
    grid-column: auto;
  }
  .simple-nav.active { right: 0; }
  .simple-nav a {
    font-size: 13px;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
    width: 100%;
  }
  .header-bar .search-bar {
    grid-column: 3;
    min-width: 0;
    border: 0;
    padding: 0;
  }
  .header-bar .search-bar input { display: none; }
  .header-bar .search-bar .search-icon { font-size: 16px; }

  .hero-editorial {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 56px 24px;
  }
  .recipe-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 24px 24px 56px;
  }
  .recipe-body-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .recipe-grid--three { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .ingredients-grid { grid-template-columns: repeat(2, 1fr); }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 48px 24px 24px;
  }
  .section-header h2 { font-size: 30px; }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
    padding: 56px 24px 24px;
  }
  .footer-section:first-child { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px 28px;
    text-align: center;
  }

  .recipe-meta-strip { grid-template-columns: repeat(3, 1fr); }

  .about-home { padding: 64px 24px; }
  .about-home h2 { font-size: 32px; }

  .results-hero { padding: 56px 24px 32px; }
  .static-hero { padding: 56px 24px 32px; }
  .browse-hero { padding: 56px 24px 24px; }

  .alphabet-filter { padding: 12px 24px; }
}

@media (max-width: 480px) {
  .recipe-grid { grid-template-columns: 1fr; gap: 32px; }
  .recipe-grid--three { grid-template-columns: 1fr; }
  .ingredients-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .footer-content { grid-template-columns: 1fr; }
  .recipe-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .recipe-actions .btn { text-align: center; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  header, footer, .recipe-actions, .try-more-section, .recipe-breadcrumb { display: none; }
  body { background: white; color: black; font-size: 12pt; }
  .recipe-hero { display: block; padding: 0; }
  .recipe-hero .recipe-image { max-width: 320px; margin: 0 0 24px; }
  .recipe-body { background: white; padding: 24px 0; }
  .recipe-body-grid { display: block; padding: 0; }
}
