@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --navy: #0b2a4a;
  --navy-2: #061b30;
  --ink: #10243b;
  --cream: #fbf7f1;
  --paper: #fffdfa;
  --copper: #b56d49;
  --copper-soft: #d8aa8d;
  --line: #e7ded4;
  --muted: #6f756f;
  --shadow: 0 20px 50px rgba(34, 42, 50, .10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.92);
  font-size: .82rem;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-links {
  display: flex;
  gap: 22px;
}

.site-header {
  background: rgba(255,253,250,.96);
  border-bottom: 1px solid rgba(15, 39, 63, .07);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 62px;
  height: 62px;
}

.brand-copy {
  display: grid;
  line-height: .95;
}

.brand-copy strong {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  font-size: 2rem;
}

.brand-copy em {
  color: var(--copper);
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 600;
}

.main-nav a {
  padding: 12px 0;
  position: relative;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: var(--copper);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: linear-gradient(90deg, #fffdfa 0%, #fbf7f1 43%, rgba(251,247,241,.2) 64%, rgba(251,247,241,0) 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;

  width: 90px;
  height: 90px;

  background-image: url("assets/icons/snowflake.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  opacity: 0.28;
  pointer-events: none;
}

.hero::before {
  left: 32%;
  top: 80px;
}

.hero::after {
  right: 4%;
  bottom: 30px;
}

.hero-media {
  position: absolute;
  inset: 0 0 0 37%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--cream) 0%, rgba(251,247,241,.72) 13%, rgba(251,247,241,0) 42%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(560px, 52%);
  padding: 64px 0 112px;
}

.eyebrow,
.section-kicker {
  color: var(--copper);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
}

.hero h1,
.section-heading h2,
.guide-card h2,
.newsletter-card h2,
.story-grid h2,
.recipe-hero h1,
.ingredients-card h2,
.method-card h2 {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  line-height: 1.05;
  margin: 16px 0;
}

.hero h1 {
  font-size: clamp(3.2rem, 5.5vw, 5.8rem);
  letter-spacing: -.03em;
}

.hero h1 em {
  font-weight: 600;
}

.hero-copy p {
  font-size: 1.05rem;
  max-width: 520px;
  color: #53606c;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 12px 30px rgba(11,42,74,.18);
}

.button-light {
  background: #fff;
  color: var(--navy);
}

.category-strip {
  position: relative;
  z-index: 5;
  margin-top: -52px;
}

.category-card {
  display: grid;
  grid-template-columns: repeat(6, 1fr);

  background: rgba(255, 253, 250, 0.97);
  border: 1px solid rgba(16, 36, 59, 0.06);

  border-radius: 18px;
  overflow: hidden;

  box-shadow:
    0 12px 30px rgba(31, 39, 47, 0.08),
    0 2px 6px rgba(31, 39, 47, 0.03);
}

.category-item {
  min-height: 112px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 15px 12px;

  border-right: 1px solid #e8e0d8;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.category-item:last-child {
  border-right: none;
}

.category-item:hover {
  background: #fffaf5;
}

.category-item img {
  width: 32px;
  height: 32px;

  object-fit: contain;

  margin-bottom: 7px;
}

.category-item strong {
  display: block;

  font-family: "Playfair Display", serif;
  font-size: 15px;
  line-height: 1.15;

  color: var(--navy);

  margin-bottom: 3px;
}

.category-item small {
  display: block;

  font-size: 10px;
  line-height: 1.2;

  color: #74746f;
}

.section {
  padding: 96px 0;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading.centered {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2 {
  font-size: clamp(2.3rem, 4vw, 3.7rem);
}

.section-heading p {
  color: var(--muted);
}

.section-heading code {
  background: #f1e9e0;
  padding: 2px 6px;
  border-radius: 6px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.recipe-card {
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(16,36,59,.07);
  box-shadow: 0 14px 38px rgba(38,45,52,.07);
  transition: transform .25s ease, box-shadow .25s ease;
}

.recipe-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 46px rgba(38,45,52,.13);
}

.recipe-image-link {
  display: block;
  position: relative;
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
  background: #eee;
}

.recipe-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.recipe-card:hover img {
  transform: scale(1.035);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .72rem;
  font-weight: 700;
}

.recipe-card-body {
  padding: 20px;
}

.recipe-card h3 {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0 0 10px;
}

.recipe-card p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 18px;
}

.card-meta {
  display: flex;
  gap: 12px;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--copper);
}

.feature-split {
  padding-top: 30px;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
}

.guide-card {
  min-height: 390px;
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: var(--navy);
}

.guide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.guide-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,27,48,.95) 0%, rgba(6,27,48,.76) 48%, rgba(6,27,48,.08) 100%);
}

.guide-overlay {
  position: relative;
  z-index: 2;
  padding: 46px;
  max-width: 58%;
  color: #fff;
}

.guide-card h2 {
  color: #fff;
  font-size: 2.6rem;
}

.script-label {
  color: #e9ae8c;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.35rem;
}

.newsletter-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 10px 35px rgba(43,48,53,.06);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-card::after {
  content: "❄";
  position: absolute;
  right: -10px;
  top: -30px;
  font-size: 110px;
  color: rgba(181,109,73,.08);
}

.newsletter-card h2 {
  font-size: 2.4rem;
}

.newsletter-card p {
  color: var(--muted);
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 16px;
}

.newsletter-form input {
  min-width: 0;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 4px rgba(181,109,73,.10);
}

.form-status {
  min-height: 1.6em;
  font-size: .82rem;
}

.story-section {
  background: #f2ebe3;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.story-grid h2 {
  font-size: 3rem;
}

.story-grid > p {
  color: #59646c;
  font-size: 1.05rem;
}

.site-footer {
  background: var(--navy-2);
  color: rgba(255,255,255,.78);
  padding: 58px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr 1.2fr;
  gap: 40px;
}

.footer-brand .brand-copy strong {
  color: #fff;
}

.site-footer strong,
.site-footer a,
.site-footer span,
.site-footer small {
  display: block;
}

.footer-copyright {
  width: 100%;
  margin-top: 34px;
  padding-top: 22px;

  border-top: 1px solid rgba(255, 250, 241, 0.15);

  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: rgba(255, 250, 241, 0.60);

  white-space: nowrap;
  text-align: center;
}

.footer-copyright span {
  display: inline;
}

.site-footer > .container > div strong {
  color: #fff;
  margin-bottom: 12px;
}

.site-footer a {
  margin: 5px 0;
}

.footer-note {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.compact-footer {
  padding: 28px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
}

/* Recipe page */
.recipe-page {
  background: var(--cream);
}

.recipe-hero-shell {
  padding: 48px 0 32px;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--copper);
  font-weight: 700;
}

.recipe-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.recipe-hero-copy {
  padding: clamp(36px, 6vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recipe-badge {
  display: inline-flex;
  align-self: flex-start;
  background: #f2e6dd;
  color: var(--copper);
  border-radius: 999px;
  padding: 7px 12px;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .12em;
  font-weight: 800;
}

.recipe-hero h1 {
  font-size: clamp(2.9rem, 5vw, 5rem);
}

.recipe-hero-copy > p {
  color: var(--muted);
  font-size: 1.05rem;
}

.recipe-hero-image {
  min-height: 560px;
}

.recipe-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.recipe-meta span,
.recipe-meta strong {
  display: block;
}

.recipe-meta span {
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.recipe-meta strong {
  margin-top: 4px;
  color: var(--navy);
  font-size: .9rem;
}

.recipe-content-grid {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 30px;
  align-items: start;
}

.ingredients-card,
.method-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
}

.ingredients-card {
  position: sticky;
  top: 118px;
}

.ingredients-card h2,
.method-card h2 {
  font-size: 2rem;
}

.ingredients-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.ingredients-list li {
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.ingredients-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--copper);
  font-size: 1.4rem;
}

.method-list {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  margin: 26px 0 0;
}

.method-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.method-list li::before {
  content: counter(steps);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.tip-box {
  margin-top: 30px;
  padding: 22px;
  background: #f3ebe4;
  border-radius: 18px;
}

.tip-box strong {
  color: var(--copper);
}

.tip-box p {
  margin-bottom: 0;
}

.empty-state {
  min-height: 55vh;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

/* Responsive */
@media (max-width: 980px) {
  .hero {
    min-height: auto;
    background: var(--cream);
  }

  .hero-media {
    position: relative;
    inset: auto;
    height: 440px;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(251,247,241,0) 55%, var(--cream) 100%);
  }

  .hero-inner {
    min-height: 0;
  }

  .hero-copy {
    width: 100%;
    padding: 40px 0 110px;
  }

  .category-strip {
    margin-top: -66px;
  }

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

  .split-grid,
  .story-grid,
  .recipe-content-grid {
    grid-template-columns: 1fr;
  }

  .guide-overlay {
    max-width: 75%;
  }

  .ingredients-card {
    position: static;
  }

  .recipe-hero {
    grid-template-columns: 1fr;
  }

  .recipe-hero-image {
    min-height: 400px;
    order: -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .topbar-links {
    display: none;
  }

  .nav-wrap {
    min-height: 76px;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .brand-copy strong {
    font-size: 1.55rem;
  }

  .brand-copy em {
    font-size: 1.35rem;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 18px 24px;
  }

  .main-nav.open {
    display: flex;
  }

  .hero-media {
    height: 340px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .category-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card article {
    border-bottom: 1px solid var(--line);
  }

  .category-card article:nth-child(2n) {
    border-right: 0;
  }

  .category-card article:last-child {
    grid-column: 1 / -1;
  }

  .section {
    padding: 72px 0;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 430px;
  }

  .guide-overlay {
    max-width: 100%;
    padding: 32px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-card {
    padding: 30px 24px;
  }

  .story-grid {
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .recipe-hero-copy,
  .ingredients-card,
  .method-card {
    padding: 28px 24px;
  }

  .recipe-hero-image {
    min-height: 300px;
  }
}

/* =========================================================
   FINAL WINTER BAKING OVERRIDES
   ========================================================= */

:root {
  --burgundy: #681d24;
  --burgundy-dark: #421014;
  --forest: #183b2b;
  --forest-dark: #10291e;
  --gold: #b8944e;
  --gold-light: #d4bd82;
  --cream: #f7f0e4;
  --paper: #fffaf1;
  --paper-dark: #eee1ce;
  --ink: #30231d;
  --muted: #766b61;
  --line: #dfd2c0;
  --navy: var(--burgundy);
  --navy-2: var(--forest-dark);
  --copper: var(--gold);
  --copper-soft: var(--gold-light);
  --shadow: 0 20px 50px rgba(54,30,22,.12);
  --radius: 24px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(184,148,78,.05), transparent 26%),
    var(--cream);
}

.container {
  width: min(1260px, calc(100% - 96px));
}

/* Header */
.site-header {
  background: rgba(255,250,241,.97);
  border-bottom: 1px solid rgba(104,29,36,.08);
  box-shadow: 0 3px 18px rgba(66,16,20,.04);
}

.nav-wrap {
  min-height: 82px;
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  line-height: 1;
}

.brand-title {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.72rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .16em;
  color: var(--burgundy);
  white-space: nowrap;
}

.brand-tagline {
  display: block;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: .54rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .19em;
  color: #68735f;
  white-space: nowrap;
  margin-top: 4px;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  background: var(--gold);
}

.nav-toggle span {
  background: var(--burgundy);
}

/* Hero */
.hero {
  min-height: 520px;
  background: linear-gradient(
    90deg,
    #fffaf1 0%,
    #f7f0e4 43%,
    rgba(247,240,228,.22) 64%,
    rgba(247,240,228,0) 100%
  );
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;

  width: 90px;
  height: 90px;

  background-image: url("assets/icons/snowflake.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  opacity: 0.28;
  pointer-events: none;
}

.hero::before {
  left: 32%;
  top: 80px;
}

.hero::after {
  right: 4%;
  bottom: 30px;
}

.hero-inner {
  min-height: 520px;
}

.hero-copy {
  width: min(510px, 44%);
  padding: 42px 0 82px;
}

.hero-media {
  inset: 0 0 0 42%;
}

.hero-media::after {
  background: linear-gradient(
    90deg,
    var(--cream) 0%,
    rgba(247,240,228,.80) 14%,
    rgba(247,240,228,.25) 30%,
    rgba(247,240,228,0) 48%
  );
}

.hero h1,
.section-heading h2,
.story-grid h2,
.recipe-hero h1,
.ingredients-card h2,
.method-card h2 {
  color: var(--burgundy);
}

.hero h1 {
  font-size: clamp(2.9rem, 4.2vw, 4.6rem);
  line-height: 1.02;
  margin: 14px 0 18px;
}

.hero h1 em {
  color: var(--forest);
  font-weight: 600;
}

.hero-copy p {
  max-width: 480px;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 24px;
  color: #53606c;
}

.eyebrow,
.section-kicker,
.card-meta,
.back-link {
  color: var(--gold);
}

.eyebrow,
.section-kicker {
  font-size: .70rem;
}

.button-primary {
  background: var(--burgundy);
  box-shadow: 0 12px 30px rgba(104,29,36,.22);
}

.button-primary:hover {
  background: var(--burgundy-dark);
}

/* Categories */
.category-strip {
  margin-top: -42px;
}

.category-strip .container {
  width: min(1220px, calc(100% - 120px));
}

.category-card {
  background: rgba(255,250,241,.98);
  border: 1px solid rgba(104,29,36,.07);
  border-radius: 20px;
  box-shadow:
    0 12px 30px rgba(79,43,31,.09),
    0 2px 6px rgba(79,43,31,.03);
}

.category-item {
  min-height: 94px;
  padding: 12px 18px;
  border-right: 1px solid #e4d7c7;
}

.category-item:hover {
  background: #f9f1e4;
}

.category-item img {
  width: 27px;
  height: 27px;
  margin-bottom: 6px;
  filter: sepia(.35) saturate(.8) hue-rotate(345deg) brightness(.75);
}

.category-item strong {
  font-size: 14px;
  color: var(--burgundy);
}

.category-item small {
  font-size: 9.5px;
}

/* General content */
.section {
  padding: 78px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.recipe-card {
  background: rgba(255,250,241,.98);
  border: 1px solid rgba(104,29,36,.07);
  box-shadow: 0 14px 38px rgba(79,43,31,.08);
}

.recipe-card:hover {
  box-shadow: 0 20px 46px rgba(79,43,31,.14);
}

.recipe-card h3,
.newsletter-card h2 {
  color: var(--burgundy);
}

.card-badge {
  background: rgba(255,250,241,.94);
}

.guide-card {
  background: var(--forest);
  box-shadow: 0 18px 45px rgba(16,41,30,.16);
}

.guide-card::after {
  background: linear-gradient(
    90deg,
    rgba(16,41,30,.96) 0%,
    rgba(24,59,43,.78) 48%,
    rgba(24,59,43,.10) 100%
  );
}

.script-label {
  color: var(--gold-light);
}

.newsletter-card {
  background:
    linear-gradient(rgba(255,250,241,.97), rgba(255,250,241,.97)),
    radial-gradient(circle at 100% 0%, rgba(184,148,78,.10), transparent 35%);
}

/* Prevent emoji snowflake here too */
.newsletter-card::after {
  content: none;
}

.newsletter-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184,148,78,.12);
}

.story-section {
  background: #efe4d2;
  border-top: 1px solid rgba(184,148,78,.15);
  border-bottom: 1px solid rgba(184,148,78,.15);
}

/* Recipe page */
.recipe-badge {
  background: #f2e6cf;
  border: 1px solid rgba(184,148,78,.18);
}

.method-list li::before {
  background: var(--forest);
}

.tip-box {
  background: #f1e6d3;
  border: 1px solid rgba(184,148,78,.16);
}

.site-footer {
  background: var(--forest-dark);
  color: #fffaf1;
  padding: 72px 24px 54px;
  border-top: 1px solid rgba(212,189,130,.18);
}

.footer-brand-centered {
  width: min(680px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  width: 105px;
  height: 105px;
  object-fit: contain;
  margin-bottom: 22px;
}

.footer-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.footer-brand-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.15rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .16em;
  color: #fffaf1;
}

.footer-brand-tagline {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: .67rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .19em;
  color: var(--gold-light);
}

.footer-copyright {
  margin-top: 34px;
  padding-top: 22px;

  width: 100%;

  border-top: 1px solid rgba(255, 250, 241, 0.15);

  font-size: 0.76rem;
  letter-spacing: 0.08em;

  color: rgba(255, 250, 241, 0.60);

  white-space: nowrap;
  text-align: center;
}

.site-footer a:hover {
  color: var(--gold-light);
}

@media (max-width: 980px) {
  .container {
    width: calc(100% - 56px);
  }

  .nav-wrap {
    min-height: 76px;
  }

  .hero {
    min-height: auto;
    background: var(--cream);
  }

  .hero-media {
    position: relative;
    inset: auto;
    height: 300px;
  }

  .hero-media img {
    object-position: 64% center;
  }

  .hero-media::after {
    background: linear-gradient(
      180deg,
      rgba(247,240,228,0) 55%,
      rgba(247,240,228,.35) 75%,
      var(--cream) 100%
    );
  }

  .hero-inner {
    min-height: 0;
  }

  .hero-copy {
    width: 100%;
    max-width: 680px;
    padding: 28px 0 78px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 7vw, 4rem);
    max-width: 620px;
  }

  .hero-copy p {
    max-width: 620px;
  }

  .category-strip {
    margin-top: -42px;
  }

  .category-strip .container {
    width: calc(100% - 72px);
  }

  .category-item {
    min-height: 90px;
  }

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

  .split-grid,
  .story-grid,
  .recipe-content-grid {
    grid-template-columns: 1fr;
  }

  .guide-overlay {
    max-width: 75%;
  }

  .ingredients-card {
    position: static;
  }

  .recipe-hero {
    grid-template-columns: 1fr;
  }

  .recipe-hero-image {
    min-height: 400px;
    order: -1;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {
  .container {
    width: calc(100% - 48px);
  }

  .nav-wrap {
    min-height: 70px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-title {
    font-size: 1.25rem;
    letter-spacing: .12em;
  }

  .brand-tagline {
    font-size: .42rem;
    letter-spacing: .12em;
    margin-top: 3px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 16px 24px;
  }

  .main-nav.open {
    display: flex;
  }

  .hero-media {
    height: 245px;
  }

  .hero-media img {
    object-position: 66% center;
  }

  .hero-copy {
    padding: 24px 0 70px;
  }

  .eyebrow {
    font-size: .66rem;
    letter-spacing: .14em;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.2rem);
    line-height: 1.03;
    margin: 12px 0 16px;
  }

  .hero-copy p {
    font-size: .96rem;
    line-height: 1.6;
    margin-bottom: 22px;
  }

  .button {
    min-height: 44px;
    padding: 0 22px;
  }

  .category-strip {
    margin-top: -36px;
  }

  .category-strip .container {
    width: calc(100% - 48px);
  }

  .category-card {
    grid-template-columns: repeat(2, minmax(0,1fr));
    border-radius: 18px;
  }

  .category-item {
    min-height: 84px;
    padding: 11px 10px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .category-item:nth-child(2n) {
    border-right: 0;
  }

  .category-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .category-item img {
    width: 25px;
    height: 25px;
    margin-bottom: 5px;
  }

  .category-item strong {
    font-size: 13.5px;
  }

  .category-item small {
    font-size: 9px;
  }

  .section {
    padding: 62px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 430px;
  }

  .guide-overlay {
    max-width: 100%;
    padding: 32px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-card {
    padding: 30px 24px;
  }

  .story-grid {
    gap: 18px;
  }

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

  .recipe-hero-copy,
  .ingredients-card,
  .method-card {
    padding: 28px 24px;
  }

  .recipe-hero-image {
    min-height: 300px;
  }

  .site-footer {
    padding: 58px 24px 42px;
  }

  .footer-logo {
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
  }

  .footer-brand-title {
    font-size: 1.6rem;
    letter-spacing: .12em;
  }

  .footer-brand-tagline {
    max-width: 320px;
    font-size: .55rem;
    letter-spacing: .13em;
    line-height: 1.6;
  }

  .footer-copyright {
    margin-top: 28px;
    padding-top: 19px;
    font-size: .70rem;
  }
}

@media (max-width: 420px) {
  .container,
  .category-strip .container {
    width: calc(100% - 36px);
  }

  .brand-title {
    font-size: 1.05rem;
    letter-spacing: .10em;
  }

  .brand-tagline {
    font-size: .36rem;
    letter-spacing: .08em;
  }

  .hero-media {
    height: 220px;
  }

  .hero-copy {
    padding: 22px 0 62px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-copy p {
    font-size: .93rem;
  }

  .category-item {
    min-height: 80px;
  }
}

/* =========================================================
   MOBILE HERO OVERLAP FIX
   Pulls the existing hero text upward into the bottom of the image.
   Desktop/tablet above 720px is unchanged.
   ========================================================= */
@media (max-width: 720px) {
  .hero-inner {
    position: relative;
    z-index: 2;
    margin-top: -82px;
  }
}

@media (max-width: 420px) {
  .hero-inner {
    margin-top: -72px;
  }
}

/* =========================================================
   BAKING TIPS CARD
   ========================================================= */

.guide-card {
  min-height: 440px;
  display: flex;
  border: 1px solid rgba(212,189,130,.20);
  box-shadow:
    0 22px 52px rgba(14,38,27,.22),
    0 2px 8px rgba(14,38,27,.08);
  transition: box-shadow .3s ease, transform .3s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 30px 62px rgba(14,38,27,.28),
    0 2px 8px rgba(14,38,27,.10);
}

.guide-card::after {
  background: linear-gradient(
    96deg,
    rgba(12,32,22,.97) 0%,
    rgba(15,40,28,.93) 44%,
    rgba(20,54,38,.55) 74%,
    rgba(20,54,38,.10) 100%
  );
}

/* Warm glow above the artwork, below the copy. */
.guide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 76% 24%, rgba(212,189,130,.16), transparent 48%);
}

.guide-overlay {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 68%;
  padding: 50px 46px;
}

.script-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
}

.script-label::after {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-light), rgba(212,189,130,0));
}

.guide-card h2 {
  font-size: clamp(1.85rem, 2.5vw, 2.45rem);
  letter-spacing: -.01em;
  margin: 12px 0 14px;
}

.guide-overlay p {
  max-width: 44ch;
  margin: 0 0 26px;
  font-size: .98rem;
  line-height: 1.62;
  color: rgba(255,250,241,.78);
}

.guide-points {
  display: grid;
  gap: 15px;
  width: 100%;
  margin: 2px 0 30px;
  padding: 0;
  list-style: none;
}

.guide-points li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
  font-size: .9rem;
  line-height: 1.5;
  color: rgba(255,250,241,.76);
}

.guide-points li strong {
  color: #fffaf1;
  font-weight: 700;
}

.guide-points svg {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 8px;
  border: 1px solid rgba(212,189,130,.26);
  border-radius: 50%;
  background: rgba(212,189,130,.10);
  color: var(--gold-light);
}

.guide-overlay .button {
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  font-size: .92rem;
}

.button-gold {
  color: #14301f;
  background: linear-gradient(180deg, #e4cf99 0%, var(--gold) 100%);
  box-shadow:
    0 14px 30px rgba(8,24,16,.38),
    inset 0 1px 0 rgba(255,255,255,.34);
}

.button-gold:hover {
  background: linear-gradient(180deg, #eedcab 0%, #c8a45c 100%);
  box-shadow:
    0 18px 36px rgba(8,24,16,.44),
    inset 0 1px 0 rgba(255,255,255,.44);
}

.button-gold svg {
  width: 17px;
  height: 17px;
  transition: transform .2s ease;
}

.button-gold:hover svg {
  transform: translateX(4px);
}

.button-gold:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .guide-overlay {
    max-width: 76%;
  }
}

@media (max-width: 720px) {
  .guide-card {
    min-height: 0;
  }

  .guide-card::after {
    background: linear-gradient(
      180deg,
      rgba(12,32,22,.80) 0%,
      rgba(12,32,22,.94) 55%,
      rgba(12,32,22,.97) 100%
    );
  }

  .guide-overlay {
    max-width: 100%;
    padding: 36px 26px;
  }

  .guide-points {
    gap: 13px;
    margin-bottom: 26px;
  }

  .guide-points li {
    font-size: .86rem;
  }

  .guide-points svg {
    width: 30px;
    height: 30px;
    padding: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card,
  .guide-card:hover,
  .button-gold svg,
  .button-gold:hover svg {
    transform: none;
    transition: none;
  }
}

/* =========================================================
   FROM OUR KITCHEN — PULL QUOTE
   ========================================================= */

.story-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(184,148,78,.16), transparent 42%),
    radial-gradient(circle at 88% 100%, rgba(104,29,36,.08), transparent 44%),
    #efe4d2;
}

.story-quote {
  width: min(840px, calc(100% - 96px));
  margin: 0 auto;
  text-align: center;
}

.story-quote blockquote {
  margin: 0;
}

.story-quote blockquote p {
  margin: 18px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--burgundy);
  text-wrap: balance;
}

.story-quote blockquote em {
  font-style: italic;
  color: var(--forest);
}

.story-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(320px, 80%);
  margin: 32px auto 26px;
}

.story-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(184,148,78,0), rgba(184,148,78,.55));
}

.story-rule span:last-child {
  background: linear-gradient(90deg, rgba(184,148,78,.55), rgba(184,148,78,0));
}

.story-rule svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.story-note {
  max-width: 60ch;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--muted);
  text-wrap: pretty;
}

@media (max-width: 720px) {
  .story-section {
    padding: 68px 0;
  }

  .story-quote {
    width: calc(100% - 48px);
  }

  .story-quote blockquote p {
    margin-top: 14px;
    line-height: 1.26;
  }

  .story-rule {
    gap: 14px;
    margin: 26px auto 20px;
  }

  .story-note {
    font-size: .96rem;
    line-height: 1.68;
  }
}


/* Firestore recipe homepage */
#recipeGrid.home-recipe-sections,
#recipeGrid {
  display: block;
}

.home-category {
  scroll-margin-top: 120px;
  padding: 26px 0 34px;
}

.home-category + .home-category {
  border-top: 1px solid var(--line);
}

.home-category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.home-category-heading h2 {
  margin: 5px 0 0;
  color: var(--navy);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-symbol {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(181,109,73,.09);
  color: var(--copper);
  font-size: 1.3rem;
}

.admin-recipe-edit {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 30px rgba(6,27,48,.28);
  font-size: 1.45rem;
  font-weight: 800;
}

.dynamic-recipe-image figcaption {
  padding: 10px 4px 0;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}

.method-section-heading {
  list-style: none;
  margin-left: -1.7rem;
  padding-top: 10px;
}

@media (max-width: 1050px) {
  .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-category-grid {
    grid-template-columns: 1fr;
  }
  .home-category {
    padding: 18px 0 26px;
  }
  .admin-recipe-edit {
    width: 48px;
    height: 48px;
    right: 14px;
    bottom: 14px;
  }
}

/* Dynamic recipe method layout fix: keep all step content in the main column. */
.method-list > li:not(.method-section-heading) > * {
  grid-column: 2;
}

.method-list > li:not(.method-section-heading)::before {
  grid-column: 1;
  grid-row: 1;
}

.method-list > .method-section-heading {
  counter-increment: none;
  display: block;
  padding: 10px 0 14px;
  margin: 8px 0 18px;
  border-bottom: 0;
}

.method-list > .method-section-heading::before {
  display: none;
  content: none;
}

.method-list > .method-section-heading .method-step-title {
  margin: 0;
}
