/*
Theme Name: Okra & Oak — Sunday Table (Minimal)
Theme URI: https://okraandoak.com
Author: Okra & Oak
Description: A deliberately minimal, single-purpose WordPress theme: soul & Southern recipes, fully detailed, with one job — turning readers into email subscribers via a free ebook opt-in. No ads, no affiliate links, no clutter. Includes a built-in Recipe post type, JSON-LD recipe schema, and a few tasteful scroll/hover animations.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: okra-oak
*/

/* ==========================================================================
   Design tokens — warm parchment + deep wine, restrained and minimal
   ========================================================================== */
:root {
  --background: #fbf7f0;
  --surface: #ffffff;
  --foreground: #2b1d1a;
  --muted: #8a7a6e;
  --accent: #7a2e3a;
  --accent-foreground: #fff8ef;
  --secondary: #c98a3e;
  --highlight: #c98a3e;
  --border: #ece3d6;
  --ring: #7a2e3a;

  --tone-linen-from: #f5f0e6;
  --tone-linen-to: #e9e1d1;
  --tone-stone-from: #e7e3dc;
  --tone-stone-to: #cec7bb;
  --tone-clay-from: #dc9973;
  --tone-clay-to: #c97a55;
  --tone-sage-from: #bdc7b1;
  --tone-sage-to: #8c9a7c;
  --tone-walnut-from: #5a4c3f;
  --tone-walnut-to: #2e2620;
  --tone-ivory-from: #ffffff;
  --tone-ivory-to: #f1ece2;

  --radius-lg: 1rem;
  --radius-md: 0.65rem;
  --radius-sm: 0.4rem;

  --shadow-soft: 0 10px 30px -18px rgba(43, 29, 26, 0.28);
  --shadow-soft-lg: 0 26px 60px -24px rgba(43, 29, 26, 0.32);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  line-height: 1.15;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
::selection { background: var(--accent); color: var(--accent-foreground); }

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) {
  .container { padding-inline: 2.5rem; }
}
.container-narrow {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.text-muted { color: var(--muted); }
.text-highlight { color: var(--highlight); }
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

/* ==========================================================================
   Underline link hover
   ========================================================================== */
.underline-link { position: relative; text-decoration: none; }
.underline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.underline-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-foreground); }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 13px; }
.btn svg { width: 14px; height: 14px; }

/* ==========================================================================
   Header — one clean row, single call to action
   ========================================================================== */
.site-header-wrap {
  position: sticky;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--background) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.site-header-wrap:has(.site-header.is-scrolled) { box-shadow: 0 6px 20px -16px rgba(43,29,26,0.3); }

.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin-inline: auto;
  padding: 0.9rem 1.5rem;
}
@media (min-width: 768px) { .site-header { padding: 1.1rem 2.5rem; } }

.site-nav { display: none; align-items: center; gap: 1.75rem; flex: 1; padding-inline-start: 1.5rem; }
.site-nav a { font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.site-nav a:hover { color: var(--accent); }
@media (min-width: 860px) { .site-nav { display: flex; } }

.brand-mark-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-mark-link svg { height: 26px; width: 26px; }
.brand-mark-link.footer-mark { font-size: 26px; }
.brand-mark-link.footer-mark svg { height: 34px; width: 34px; }

.btn-ebook-nav { margin-inline-start: auto; }
@media (min-width: 860px) { .btn-ebook-nav { margin-inline-start: 0; } }
.btn-ebook-nav svg { color: var(--highlight); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: var(--foreground);
  flex-shrink: 0;
}
.icon-btn:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.icon-btn svg { width: 18px; height: 18px; }
.mobile-menu-toggle { display: inline-flex; }
@media (min-width: 860px) { .mobile-menu-toggle { display: none; } }

.mobile-nav {
  display: none;
  position: fixed;
  inset-inline: 1rem;
  top: 72px;
  z-index: 30;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
  box-shadow: var(--shadow-soft-lg);
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
}
.mobile-nav a:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); color: var(--accent); }
.mobile-nav a svg { width: 16px; height: 16px; color: var(--highlight); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-block: 3rem 4rem;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 3.5rem; padding-block: 4rem 5rem; }
}
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); }
.hero-copy p { font-size: 1.1rem; color: var(--muted); max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 1.5rem 0; }
.hero-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-soft); }

/* Decorative rising steam over the hero photo — soul-food comfort cue */
.hero-steam { position: absolute; bottom: 8%; left: 50%; width: 60px; height: 90px; transform: translateX(-50%); pointer-events: none; z-index: 2; opacity: 0.65; }
.hero-steam span {
  position: absolute; bottom: 0; width: 6px; height: 60px; border-radius: 999px;
  background: linear-gradient(to top, rgba(255,255,255,0.55), rgba(255,255,255,0));
  filter: blur(2px);
  animation: steam-rise 3.4s ease-in-out infinite;
}
.hero-steam span:nth-child(1) { left: 8px; animation-delay: 0s; }
.hero-steam span:nth-child(2) { left: 27px; height: 74px; animation-delay: 0.9s; }
.hero-steam span:nth-child(3) { left: 46px; animation-delay: 1.8s; }
@keyframes steam-rise {
  0%   { transform: translateY(0) scaleX(1); opacity: 0; }
  20%  { opacity: 0.8; }
  100% { transform: translateY(-70px) scaleX(1.6); opacity: 0; }
}

/* ==========================================================================
   Placeholder / photo tone blocks
   ========================================================================== */
.photo-tone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: rgba(255,255,255,0.85);
}
.photo-tone svg { width: 15%; height: auto; opacity: 0.9; }
.tone-linen { background: linear-gradient(155deg, var(--tone-linen-from), var(--tone-linen-to)); color: rgba(60,50,35,0.55); }
.tone-stone { background: linear-gradient(155deg, var(--tone-stone-from), var(--tone-stone-to)); color: rgba(45,40,35,0.55); }
.tone-clay { background: linear-gradient(155deg, var(--tone-clay-from), var(--tone-clay-to)); }
.tone-sage { background: linear-gradient(155deg, var(--tone-sage-from), var(--tone-sage-to)); }
.tone-walnut { background: linear-gradient(155deg, var(--tone-walnut-from), var(--tone-walnut-to)); }
.tone-ivory { background: linear-gradient(155deg, var(--tone-ivory-from), var(--tone-ivory-to)); color: rgba(60,50,35,0.4); }

/* ==========================================================================
   Section headings
   ========================================================================== */
.section { padding-block: 3.5rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.25rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head .eyebrow { display: block; margin-bottom: 0.5rem; }
.section-head .view-all { font-size: 13px; font-weight: 700; color: var(--accent); }

/* ==========================================================================
   Grids & cards — kept plain and quiet on purpose
   ========================================================================== */
.grid { display: grid; gap: 1.75rem; }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { display: block; }
.card-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.card:hover .card-photo { transform: scale(1.02); }
.card-body { padding-top: 0.9rem; }
.card-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.card-title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; margin: 0.3rem 0 0.4rem; line-height: 1.25; }
.card:hover .card-title { color: var(--accent); }
.card-meta { display: flex; align-items: center; gap: 0.6rem; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.card-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.card-meta svg { width: 13px; height: 13px; color: var(--muted); flex-shrink: 0; }
.card-badge { display: none; } /* category badge overlay intentionally unused — kept minimal */
.rank-badge { display: none; }

/* Star rating — small, quiet credibility signal, not the focus */
.star-rating { display: inline-flex; align-items: center; gap: 0.3rem; }
.star-rating .stars { display: inline-flex; gap: 1px; }
.star-rating svg { width: 12px; height: 12px; stroke: var(--highlight); }
.star-rating svg.is-filled { fill: var(--highlight); }
.star-rating svg.is-empty { fill: none; opacity: 0.4; }
.star-rating .rating-value { font-size: 12px; font-weight: 700; color: var(--foreground); }
.star-rating .rating-count { font-size: 11.5px; color: var(--muted); }
.star-rating.is-new .rating-count { color: var(--muted); font-style: italic; }

/* ==========================================================================
   Recipe archive / filter bar
   ========================================================================== */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 2.5rem; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-pill { padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; background: transparent; color: var(--foreground); }
.filter-pill.is-active { background: var(--accent); color: var(--accent-foreground); border-color: var(--accent); }
.search-box { display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--border); border-radius: 999px; padding: 0.5rem 1rem; min-width: 220px; }
.search-box input { border: none; background: transparent; outline: none; font-size: 13px; color: var(--foreground); width: 100%; }
.search-box svg { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }

/* ==========================================================================
   Recipe single page
   ========================================================================== */
.recipe-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 1rem; }
.recipe-breadcrumb a:hover { color: var(--accent); }
.recipe-hero { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-block: 1.5rem 3rem; }
@media (min-width: 900px) { .recipe-hero { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; } }
.recipe-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.recipe-dek { font-size: 1.1rem; color: var(--muted); max-width: 30rem; }
.recipe-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-block: 1.5rem 0; font-size: 14px; }
.recipe-meta-row .item { display: flex; align-items: center; gap: 0.5rem; }
.recipe-meta-row svg { width: 16px; height: 16px; color: var(--accent); }
.recipe-actions-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.recipe-body-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; padding-block: 1.5rem 4rem; }
@media (min-width: 1024px) { .recipe-body-grid { grid-template-columns: 200px 1fr; } }
.recipe-toc { position: sticky; top: 96px; align-self: start; display: none; }
@media (min-width: 1024px) { .recipe-toc { display: block; } }
.recipe-toc a { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0; font-size: 13px; font-weight: 600; color: var(--muted); border-inline-start: 2px solid var(--border); padding-inline-start: 1rem; }
.recipe-toc a.is-active, .recipe-toc a:hover { color: var(--accent); border-color: var(--accent); }
.recipe-toc .toc-ebook-link { color: var(--accent); }
.recipe-toc .toc-ebook-link svg { width: 13px; height: 13px; }

.recipe-intro p { font-size: 1.05rem; color: var(--muted); }
.recipe-intro p:first-child::first-letter {
  font-family: var(--font-serif);
  font-size: 3.3rem;
  float: left;
  line-height: 0.8;
  padding-right: 0.5rem;
  padding-top: 0.35rem;
  color: var(--accent);
  font-weight: 700;
}

.recipe-card-box { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin-block: 2.25rem; background: var(--surface); }
.recipe-card-box h2 { font-size: 1.6rem; }
.ingredients-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem 2rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .ingredients-grid { grid-template-columns: 1fr 1fr; } }
.ingredients-grid li { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--border); list-style: none; font-size: 14.5px; }
.ingredients-grid li::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--secondary); flex-shrink: 0; transform: translateY(-2px); }

/* The whole point of the page — the CTA sentence between ingredients & instructions */
.cta-ebook-line {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-block: 2.25rem;
  padding: 1.35rem 1.6rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 92%, black), var(--accent));
  color: var(--accent-foreground);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta-ebook-line:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft-lg); }
.cta-ebook-icon { display: inline-flex; flex-shrink: 0; color: var(--highlight); animation: sparkle-pulse 2.4s ease-in-out infinite; }
.cta-ebook-icon svg { width: 20px; height: 20px; }
.cta-ebook-text { font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; line-height: 1.35; flex: 1; }
.cta-ebook-arrow { display: inline-flex; flex-shrink: 0; animation: bounce-down 1.6s ease-in-out infinite; }
.cta-ebook-arrow svg { width: 16px; height: 16px; }
@keyframes sparkle-pulse { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(1.15) rotate(8deg); opacity: 0.75; } }
@keyframes bounce-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.steps-list { list-style: none; counter-reset: step; margin-top: 1.5rem; }
.steps-list li { display: grid; grid-template-columns: 40px 1fr; gap: 1.25rem; margin-bottom: 2rem; }
.step-num { width: 40px; height: 40px; border-radius: 999px; background: var(--accent); color: var(--accent-foreground); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 700; font-size: 1rem; }
.step-title { font-weight: 700; margin-bottom: 0.35rem; }
.step-text { color: var(--muted); font-size: 14.5px; }

.tip-storage-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-block: 2.5rem; }
@media (min-width: 640px) { .tip-storage-grid { grid-template-columns: 1fr 1fr; } }
.info-box { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; background: color-mix(in srgb, var(--secondary) 8%, var(--surface)); }
.info-box .eyebrow { display: block; margin-bottom: 0.6rem; }
.info-box p { font-size: 14px; color: var(--muted); margin: 0; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; padding: 1.25rem 0; text-align: left; font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; color: var(--foreground); }
.faq-question svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.25s ease; color: var(--accent); }
.faq-item.is-open .faq-question svg { transform: rotate(180deg); }
.faq-answer { display: none; padding-bottom: 1.25rem; font-size: 14.5px; color: var(--muted); }
.faq-item.is-open .faq-answer { display: block; }

.nutrition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-block: 2rem; }
@media (min-width: 640px) { .nutrition-grid { grid-template-columns: repeat(4, 1fr); } }
.nutrition-cell { background: var(--surface); padding: 1.25rem; text-align: center; }
.nutrition-cell .value { font-family: var(--font-serif); font-weight: 700; font-size: 1.5rem; color: var(--accent); }
.nutrition-cell .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

/* ==========================================================================
   The Opt-in section — the entire point of the site
   ========================================================================== */
.optin-section {
  background: color-mix(in srgb, var(--accent) 6%, var(--background));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 4rem;
  scroll-margin-top: 90px;
  transition: background 0.6s ease;
}
.optin-section.is-pulsing { animation: optin-glow 1.6s ease; }
@keyframes optin-glow {
  0%   { background: color-mix(in srgb, var(--highlight) 30%, var(--background)); }
  100% { background: color-mix(in srgb, var(--accent) 6%, var(--background)); }
}
.optin-inner { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .optin-inner { grid-template-columns: 340px 1fr; gap: 4rem; } }

.optin-cover { display: flex; justify-content: center; }
.optin-cover-stack { position: relative; width: 330px; perspective: 1000px; }
.optin-cover-page {
  position: absolute;
  inset: 6px 0 0 6px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.optin-cover-page-2 { inset: 12px 0 0 12px; opacity: 0.6; }
.optin-cover-page-1 { inset: 6px 0 0 6px; opacity: 0.85; }
.optin-cover-book {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft-lg);
  transform: rotate(-3deg);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.optin-cover-stack:hover .optin-cover-book { transform: rotate(0deg) scale(1.03); }
.optin-cover-book img { width: 100%; height: 100%; object-fit: cover; }
.optin-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.9rem;
  padding: 1.75rem;
  text-align: center;
  background: linear-gradient(155deg, var(--tone-walnut-from), var(--tone-walnut-to));
  color: #fff8ef;
}
.optin-cover-placeholder-title { font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; line-height: 1.25; }
.optin-cover-placeholder-sub { font-size: 10.5px; letter-spacing: 0.16em; color: var(--highlight); font-weight: 700; }
.optin-cover-mark { height: 34px; width: 34px; }
.optin-free-badge {
  position: absolute; top: -14px; right: -14px;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--highlight);
  color: var(--foreground);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 1rem;
  box-shadow: var(--shadow-soft);
  transform: rotate(12deg);
  animation: free-badge-float 3.5s ease-in-out infinite;
}
@keyframes free-badge-float { 0%, 100% { transform: rotate(12deg) translateY(0); } 50% { transform: rotate(12deg) translateY(-6px); } }

.optin-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 0.4rem; }
.optin-subtitle { font-size: 1.05rem; color: var(--muted); max-width: 32rem; }
.optin-bullets { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.9rem; }
.optin-bullets li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 14.5px; color: var(--muted); }
.optin-bullets li strong { color: var(--foreground); }
.optin-bullet-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 999px; background: color-mix(in srgb, var(--highlight) 20%, var(--surface)); display: flex; align-items: center; justify-content: center; margin-top: 0.1rem; }
.optin-bullet-icon svg { width: 13px; height: 13px; color: var(--accent); }

.optin-form-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; margin-top: 1.75rem; box-shadow: var(--shadow-soft); }
.optin-form-box h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.optin-form-box p { font-size: 13.5px; }
.optin-form { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 1.1rem; }
@media (min-width: 560px) { .optin-form { flex-direction: row; flex-wrap: wrap; } }
.optin-form input[type="text"], .optin-form input[type="email"] {
  flex: 1;
  min-width: 160px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
}
.optin-form input:focus { outline: 2px solid var(--ring); outline-offset: 1px; }
.optin-form .btn-primary { width: 100%; justify-content: center; }
@media (min-width: 560px) { .optin-form .btn-primary { width: auto; } }
.optin-privacy-note { font-size: 11.5px; color: var(--muted); margin: 0.75rem 0 0; }
.optin-form-description { font-size: 11px; color: var(--muted); margin-top: 0.5rem; }

.ebook-landing-intro { padding-block: 3rem 0.5rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; padding-block: 4.5rem; text-align: center; }
.footer-tagline { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--muted); max-width: 20rem; margin: 0; }
.footer-ebook-link { margin-top: 0.25rem; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.75rem 2.25rem; margin-top: 0.5rem; }
.footer-nav a { font-size: 13px; font-weight: 600; color: var(--muted); }
.footer-nav a:hover { color: var(--accent); }
.footer-social { display: flex; align-items: center; gap: 1rem; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-copyright { font-size: 11.5px; color: color-mix(in srgb, var(--muted) 75%, transparent); }

/* ==========================================================================
   Generic page content (About / Privacy)
   ========================================================================== */
.page-hero { padding-block: 3rem 2rem; max-width: 44rem; }
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.page-content { padding-block: 1rem 4rem; max-width: 44rem; }
.page-content p, .page-content li { color: var(--muted); font-size: 1rem; }
.page-content h2 { margin-top: 2rem; font-size: 1.5rem; }
.page-content ul, .page-content ol { padding-inline-start: 1.4rem; margin-bottom: 1em; }

/* ==========================================================================
   Misc
   ========================================================================== */
.divider-line { border-top: 1px solid var(--border); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-foreground); padding: 0.75rem 1.25rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fade-up 0.7s cubic-bezier(0.16,1,0.3,1) forwards; }

.icon-close { display: none; }
#mobile-nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
#mobile-nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.inline-star { width: 12px; height: 12px; display: inline-block; vertical-align: -1px; fill: var(--highlight); stroke: var(--highlight); }
.social-icon { width: 16px; height: 16px; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
.recipe-hero .btn svg, .recipe-actions-row .btn svg { width: 14px; height: 14px; }
