*, *::before, *::after { box-sizing: border-box; }
/* ------------------------------------------------------------------
   Little Healthy Plates — design tokens + global styles
------------------------------------------------------------------ */
:root {
  /* Palette — soft beige, almost off-white */
  --cream: #f7f1e3;          /* soft beige base */
  --cream-deep: #ece2cb;     /* slightly deeper */
  --paper: #fdf9ef;          /* near-white for cards */
  --paper-2: #f2ead6;        /* gentle mid tone */
  --ink: #2a1d12;
  --ink-soft: #5a4632;
  --ink-mute: #9a8466;
  --terracotta: #c4633e;
  --terracotta-deep: #9b4724;
  --sage: #7e8a6a;
  --sage-deep: #5e6a4a;
  --butter: #ecb858;
  --tape: rgba(236, 184, 88, 0.4);

  /* Type */
  --f-display: "Instrument Serif", "Cormorant", Georgia, serif;
  --f-hand: "Caveat", "Bradley Hand", cursive;
  --f-body: "DM Sans", "Helvetica Neue", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(155,71,36,0.04), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(94,106,74,0.05), transparent 40%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02";
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* Paper grain overlay — subtle SVG noise */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17  0 0 0 0 0.11  0 0 0 0 0.07  0 0 0 0.08 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

#root { position: relative; z-index: 2; }

/* Selection */
::selection { background: var(--terracotta); color: var(--paper); }

/* Headings */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; margin: 0; line-height: 1.05; letter-spacing: -0.005em; }
p { margin: 0; line-height: 1.55; }

/* Utility — handwritten */
.hand { font-family: var(--f-hand); font-weight: 500; }

/* Tape decoration */
.tape {
  position: absolute;
  width: 90px; height: 22px;
  background: var(--tape);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.18) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, rgba(255,255,255,0.25), transparent);
  pointer-events: none;
}
.tape::before, .tape::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 6px;
  background:
    radial-gradient(circle at 50% 50%, transparent 3px, var(--tape) 3px) 0 0/6px 6px;
}
.tape::before { left: -3px; }
.tape::after { right: -3px; }

/* Buttons */
.btn {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn:hover { transform: translateY(-1px); background: var(--terracotta-deep); border-color: var(--terracotta-deep); }
.btn.terracotta { background: var(--terracotta); border-color: var(--terracotta); }
.btn.terracotta:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { padding: 9px 14px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Link */
.link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.link:hover { color: var(--terracotta-deep); }

/* Cards */
.card-paper {
  background: var(--paper);
  border: 1px solid rgba(42,29,18,0.1);
  box-shadow: 0 1px 0 rgba(42,29,18,0.05), 0 12px 30px -20px rgba(42,29,18,0.25);
}

/* Image placeholder — striped */
.placeholder {
  position: relative;
  background: var(--paper-2);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(196,99,62,0.10) 0 2px,
    transparent 2px 14px
  );
  border: 1px solid rgba(42,29,18,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.placeholder .label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  background: var(--paper);
  padding: 4px 8px;
  border: 1px solid rgba(42,29,18,0.1);
  text-transform: uppercase;
}

/* Wavy divider */
.wavy {
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 14' preserveAspectRatio='none'><path d='M0 7 Q 10 0 20 7 T 40 7 T 60 7 T 80 7' stroke='%23c4633e' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-size: 80px 14px;
  opacity: 0.6;
}

/* Dotted divider */
.dotted {
  height: 1px;
  background-image: radial-gradient(circle, var(--ink-mute) 1px, transparent 1px);
  background-size: 6px 1px;
  background-repeat: repeat-x;
  opacity: 0.5;
}

/* Layout */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* Page transition */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-enter { animation: fadeUp 0.4s ease both; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 227, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42,29,18,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 26px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  cursor: pointer;
}
.nav-logo .mark {
  font-family: var(--f-hand);
  font-style: normal;
  color: var(--terracotta);
  font-size: 28px;
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-link {
  background: none; border: none; cursor: pointer;
  font: inherit; color: var(--ink);
  padding: 4px 0;
  position: relative;
  font-weight: 500;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1.5px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--terracotta-deep); }

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background 0.15s;
}
.cart-pill:hover { background: var(--terracotta-deep); }
.cart-pill .count {
  background: var(--butter);
  color: var(--ink);
  border-radius: 999px;
  padding: 1px 7px;
  font-weight: 600;
  font-family: var(--f-mono);
}


.nav-actions {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(42,29,18,0.15);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-scrim {
  display: none;
}

/* Footer */
.footer {
  margin-top: 120px;
  padding: 60px 0 40px;
  border-top: 1px solid rgba(42,29,18,0.1);
  background: var(--cream-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.footer h4 {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.footer ul button {
  background: none; border: none; padding: 0;
  font: inherit; color: var(--ink);
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 20px;
}
.footer ul button:hover { color: var(--terracotta-deep); font-style: italic; }

/* Forms */
.input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(42,29,18,0.2);
  background: var(--paper);
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s;
}
.input:focus { border-color: var(--terracotta); }
.input::placeholder { color: var(--ink-mute); }
.label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-bottom: 8px;
  font-weight: 500;
}

/* Pill / tag */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 100;
  box-shadow: 0 20px 40px -10px rgba(42,29,18,0.3);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.4s forwards;
  display: flex; align-items: center; gap: 10px;
}
@keyframes toastIn { from { opacity:0; transform: translate(-50%, 10px); } to { opacity:1; transform: translate(-50%, 0); } }
@keyframes toastOut { to { opacity:0; transform: translate(-50%, 10px); } }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(42,29,18,0.4);
  backdrop-filter: blur(4px);
  z-index: 90;
  display: flex; align-items: flex-start; justify-content: flex-end;
  animation: fadeUp 0.25s ease both;
}
.modal-cart {
  background: var(--paper);
  width: 460px;
  max-width: 100%;
  height: 100vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: -20px 0 60px -20px rgba(42,29,18,0.3);
  position: relative;
}


/* ------------------------------------------------------------------
   Layout utilities (desktop defaults; stacked in mobile media queries)
------------------------------------------------------------------ */
.layout-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.layout-2-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.layout-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.layout-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.layout-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 36px;
}
.layout-cards-sm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 28px;
}
.layout-ebook {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.layout-checkout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
}
.layout-about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.layout-recipe-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.layout-recipe-body {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.layout-newsletter {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.featured-ebook-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}
.hero-collage {
  position: relative;
  height: 580px;
  max-width: 100%;
  overflow: hidden;
}
.hero-collage-desktop {
  position: absolute;
  inset: 0;
}
.hero-collage-mobile { display: none; }
.recipe-hero-art { max-width: 100%; }
.recipe-hero-art-inner { position: relative; transform: rotate(2deg); }

.stats-row {
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
}
.sticky-aside {
  position: sticky;
  top: 100px;
}
.ebook-cover {
  max-width: 100%;
}
.polaroid {
  max-width: 100%;
}
.recipe-ingredients {
  position: relative;
}

/* responsive — tablet / phone */
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .container, .container-narrow { padding: 0 16px; }

  .nav-actions { display: flex; }
  .nav-burger { display: flex; }
  .cart-pill--header { display: inline-flex; }

  .nav-inner {
    flex-wrap: wrap;
    position: relative;
    padding: 14px 16px;
  }
  .nav-logo { font-size: 22px; max-width: calc(100% - 120px); }
  .nav-logo span:not(.mark) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-logo .mark { font-size: 24px; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--paper);
    border: 1px solid rgba(42,29,18,0.12);
    border-radius: 14px;
    box-shadow: 0 18px 40px -20px rgba(42,29,18,0.35);
    z-index: 120;
  }
  .nav-links.is-open { display: flex; }
  .nav-links .nav-link {
    text-align: left;
    padding: 14px 12px;
    min-height: 44px;
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 18px;
    font-family: var(--f-display);
    font-style: italic;
  }
  .nav-links .nav-link::after { display: none; }
  /* Cart stays in header on mobile; hide duplicate inside the drawer */
  .nav-links-cart { display: none; }
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(42,29,18,0.25);
    border: none;
    padding: 0;
    z-index: 110;
    cursor: pointer;
  }
  .nav.is-menu-open { z-index: 130; }

  /* Stack major page layouts */
  .layout-hero,
  .layout-2-equal,
  .layout-3,
  .layout-4,
  .layout-ebook,
  .layout-checkout,
  .layout-about,
  .layout-recipe-hero,
  .layout-recipe-body,
  .layout-newsletter {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .featured-ebook-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 18px;
  }
  .featured-ebook-inner > div:last-child {
    width: 100%;
  }
  .featured-ebook-inner .btn {
    min-height: 44px;
  }

  .layout-cards,
  .layout-cards-sm {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .sticky-aside {
    position: static;
    top: auto;
  }

  .hero-collage {
    height: auto;
    max-width: 100%;
    width: 100%;
    margin: 8px auto 0;
    transform: none;
    overflow: visible;
  }
  .hero-collage-desktop { display: none; }
  .hero-collage-mobile {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    padding: 8px 0 4px;
  }
  .hero-collage-mobile .ebook-cover,
  .hero-collage-mobile > * {
    max-width: 46%;
  }
  .layout-hero {
    overflow: hidden;
  }
  .recipe-hero-art {
    max-width: 100%;
    overflow: hidden;
    padding: 12px 8px;
  }
  .recipe-hero-art-inner {
    transform: rotate(1.5deg);
    max-width: 100%;
  }
  .recipe-art {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .shop-add, .btn.small.shop-add {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 13px;
  }

  .hero-collage-mobile .ebook-cover {
    width: min(160px, 46vw) !important;
    max-width: 46% !important;
  }
  .card-paper {
    transform: none !important;
  }
  section { overflow-x: clip; }


  .stats-row {
    gap: 20px;
    justify-content: flex-start;
  }

  .about-photo {
    max-width: 320px;
    margin: 0 auto;
  }

  .recipe-ingredients {
    position: relative;
  }

  .step-num {
    font-size: 36px !important;
    min-width: 40px !important;
  }
  .belief-num {
    font-size: 32px !important;
    min-width: 36px !important;
  }

  /* Buttons / touch targets */
  .btn {
    min-height: 44px;
    padding: 14px 18px;
  }
  .btn.small {
    min-height: 40px;
    padding: 10px 14px;
  }
  .cart-pill {
    min-height: 40px;
  }
  .cart-close {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Cart drawer */
  .modal-cart {
    width: 100%;
    padding: 22px 16px;
  }

  /* Toast */
  .toast {
    max-width: calc(100vw - 32px);
    left: 50%;
    bottom: 20px;
  }

  /* Footer meta */
  .footer-meta {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    align-items: center;
  }

  .footer {
    margin-top: 72px;
    padding: 40px 0 32px;
  }

  /* Section padding breathe on phone */
  section {
    /* don't override all — pages use inline padding; soften large headings instead */
  }

  /* Prevent long display headings from forcing overflow */
  h1, h2, h3 {
    overflow-wrap: break-word;
  }

  .price-row { gap: 12px; }
  .card-paper { max-width: 100%; }
  .newsletter-trust { gap: 12px; font-size: 11px; }
}

@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 14px; }
  .nav-inner { padding: 12px 14px; }

  .hero-collage {
    height: 280px;
    transform: scale(0.68);
    margin-bottom: -90px;
    overflow: hidden;
  }

  .stats-row { gap: 14px; }
  .stats-row > div[style] { /* separators stay */ }

  .layout-hero,
  .layout-ebook,
  .layout-checkout,
  .layout-about,
  .layout-recipe-hero,
  .layout-recipe-body,
  .layout-newsletter,
  .layout-2-equal,
  .layout-3,
  .layout-4 {
    gap: 22px;
  }

  .step-num {
    font-size: 28px !important;
    min-width: 32px !important;
  }

  .modal-cart { padding: 18px 14px; }
}

/* ------------------------------------------------------------------
   PRINT STYLES — clean recipe card on paper
------------------------------------------------------------------ */
.print-only { display: none; }

@media print {
  /* paper setup */
  @page {
    size: letter;
    margin: 0.6in 0.7in;
  }

  html, body {
    background: #fff !important;
    color: #1a1308 !important;
    font-size: 11pt;
    line-height: 1.45;
  }
  body::before { display: none !important; } /* kill the noise overlay */

  /* hide everything that isn't recipe content */
  .nav,
  .footer,
  .modal-backdrop,
  .toast,
  .no-print,
  .tape,
  .recipe-page > section:first-of-type, /* back link */
  .recipe-page > section:last-of-type {  /* "you might also like" */
    display: none !important;
  }

  /* show print-only header */
  .print-only { display: block; }
  .print-header {
    display: flex !important;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 10pt;
    margin-bottom: 18pt;
    border-bottom: 1pt solid #1a1308;
  }
  .print-brand {
    display: flex;
    align-items: baseline;
    gap: 6pt;
  }
  .print-mark {
    font-family: var(--f-hand);
    font-size: 18pt;
    color: #9b4724;
  }
  .print-brand-name {
    font-family: var(--f-display);
    font-style: italic;
    font-size: 14pt;
  }
  .print-url {
    font-family: var(--f-mono);
    font-size: 9pt;
    letter-spacing: 0.08em;
    color: #5a4632;
  }

  /* reset page container & let content flow */
  .container, .container-narrow {
    max-width: none !important;
    padding: 0 !important;
  }
  main { padding: 0 !important; }
  .recipe-page { padding: 0 !important; }
  .recipe-page section {
    padding: 0 0 14pt 0 !important;
    background: transparent !important;
    border: none !important;
  }

  /* collapse grids → single column */
  .recipe-page section > .container,
  .recipe-page section > .container-narrow {
    display: block !important;
  }
  .recipe-page section > .container > div,
  .recipe-page section > .container > aside {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
  }

  /* recipe hero photo — small or hidden */
  .recipe-page .placeholder,
  .recipe-page .recipe-art {
    display: none !important;
  }

  /* typography for paper */
  h1 {
    font-size: 28pt !important;
    line-height: 1.05 !important;
    margin-bottom: 6pt !important;
  }
  h2 { font-size: 16pt !important; margin: 12pt 0 6pt !important; }
  h3 { font-size: 13pt !important; margin: 10pt 0 4pt !important; }
  .hand { font-size: 14pt !important; }

  /* meta row stays tidy */
  .recipe-page > section:nth-of-type(2) > .container {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* ingredients block — light tint, no shadows */
  .recipe-page > section:nth-of-type(3) > .container > div:first-of-type {
    background: #f7f1e1 !important;
    border: 0.5pt solid #5a4632 !important;
    padding: 12pt 14pt !important;
    margin-bottom: 14pt !important;
    break-inside: avoid;
  }

  /* steps */
  ol li, ul li {
    break-inside: avoid;
  }

  /* color overrides — keep terracotta accents */
  .recipe-page * {
    text-shadow: none !important;
    box-shadow: none !important;
  }

  /* avoid awkward page breaks on important blocks */
  .recipe-page h1, .recipe-page h2, .recipe-page h3 { page-break-after: avoid; }

  /* footer signature on every page */
  .print-footer {
    display: block;
    margin-top: 20pt;
    padding-top: 8pt;
    border-top: 0.5pt solid #5a4632;
    font-family: var(--f-mono);
    font-size: 8pt;
    color: #5a4632;
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}


.footer a {
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: none;
}
.footer a:hover { color: var(--terracotta-deep); }
