/* The Cozy Keto Kitchen, v2
   Layout idea: a quiet shop window. Big, light serif headlines, wide margins and hairline
   rules; one button color (paprika); covers and photos carry the color. The butter net-carb
   stamp appears only on recipe photos and the hero. */
:root {
  --paper: #FFFAF3;
  --cream: #F6EFE4;
  --sage: #DCE3CF;
  --sage-soft: #E9EEE0;
  --cocoa: #3B2A20;
  --ink-soft: #6B5A4C;
  --line: #E9DFCF;
  --paprika: #B5532E;
  --paprika-deep: #963F1F;
  --avocado: #5E7D33;
  --butter: #F2C14E;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.22rem;
  --step-2: clamp(1.45rem, 1.25rem + 0.8vw, 1.85rem);
  --step-3: clamp(2.15rem, 1.6rem + 2.3vw, 3.5rem);
  --step-4: clamp(2.8rem, 1.9rem + 4.2vw, 5.5rem);
  --gutter: clamp(18px, 4.5vw, 56px);
  --measure: 64ch;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--cocoa); font: 400 var(--step-0)/1.65 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
main { overflow-x: clip; }
a { color: var(--cocoa); text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--paprika-deep); }
:focus-visible { outline: 3px solid var(--paprika); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 380;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 0.45em;
  font-optical-sizing: auto;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 420; letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 38ch; }
.muted { color: var(--ink-soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Top strip and header */
.announce { background: var(--paprika); color: #fff; text-align: center; font-size: 0.9rem; font-weight: 600; padding: 9px 16px; }
.announce a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 250, 243, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 36px; min-height: 74px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cocoa); text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand span { font-family: var(--font-display); font-size: 1.28rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 26px; margin: 0; padding: 0; }
.site-nav a { color: var(--cocoa); text-decoration: none; font-weight: 500; padding: 8px 0; display: inline-block; }
.site-nav a:hover { text-decoration: underline; color: var(--cocoa); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--paprika); }
.site-header .header-cta { margin-left: auto; display: none; }
@media (min-width: 980px) { .site-header .header-cta { display: inline-flex; } }
/* Phones: the nav is one line that scrolls sideways, so the header stays two rows */
@media (max-width: 759px) {
  .site-nav { width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { flex-wrap: nowrap; gap: 0 22px; padding-right: 28px; }
  .site-nav a { white-space: nowrap; }
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 10px;
  background: var(--paprika); color: #fff; border: 1.5px solid var(--paprika);
  font: 650 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; text-align: center;
}
.button:hover { background: var(--paprika-deep); border-color: var(--paprika-deep); color: #fff; }
.button-outline { background: transparent; color: var(--cocoa); border-color: var(--cocoa); }
.button-outline:hover { background: var(--cocoa); border-color: var(--cocoa); color: var(--paper); }
.button-small { min-height: 42px; padding: 9px 18px; font-size: 0.92rem; }
.button[aria-disabled="true"] { background: var(--cream); border-color: var(--line); color: var(--ink-soft); cursor: default; }
.text-link { font-weight: 650; text-decoration: underline; text-decoration-thickness: 1.5px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }

/* Sections */
.section { padding: clamp(56px, 9vw, 120px) 0; }
.rule { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 40ch; }

/* Hero with a fan of covers */
.hero .wrap { display: grid; gap: 40px; align-items: center; padding-top: clamp(36px, 6vw, 88px); padding-bottom: clamp(48px, 7vw, 104px); }
.hero h1 { max-width: 10ch; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1fr 1fr; gap: 56px; } }
.fan { position: relative; width: 100%; max-width: 560px; justify-self: center; aspect-ratio: 1 / 1.02; }
.fan .arch { position: absolute; left: 7%; right: 7%; bottom: 0; height: 80%; background: var(--sage); border-radius: 999px 999px 28px 28px; }
.fan img { position: absolute; border-radius: 6px; box-shadow: 0 18px 40px rgba(59, 42, 32, 0.22), 0 2px 6px rgba(59, 42, 32, 0.12); }
.fan .f1 { width: 50%; left: 5%; top: 12%; transform: rotate(-6deg); }
.fan .f2 { width: 54%; left: 39%; top: 2%; transform: rotate(4deg); z-index: 2; }
.fan .stamp { position: absolute; left: 2%; bottom: 5%; z-index: 4; }

/* Net-carb stamp */
.stamp {
  display: grid; place-content: center; text-align: center;
  width: 6.4rem; aspect-ratio: 1; border-radius: 50%;
  background: var(--butter); color: var(--cocoa);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--cocoa);
  transform: rotate(-6deg); line-height: 1.05;
}
.stamp b { font-family: var(--font-display); font-weight: 600; font-size: 1.65rem; letter-spacing: -0.02em; }
.stamp small { font-size: 0.66rem; font-weight: 700; max-width: 6.2em; margin: 3px auto 0; line-height: 1.15; }

/* Cookbook feature */
.product { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 0.9fr) 1.1fr; gap: 80px; } }
.cover { display: block; width: 100%; max-width: min(400px, 74vw); justify-self: center; transform: rotate(-2deg); }
.cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 24px 50px rgba(59, 42, 32, 0.25), 0 2px 8px rgba(59, 42, 32, 0.14); }
@media (max-width: 899px) { .product .cover { max-width: min(330px, 62vw); } }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 4px 0 6px; }
.price { font-family: var(--font-display); font-size: var(--step-3); font-weight: 400; line-height: 1; }
.status { color: var(--ink-soft); font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 13px; height: 7px; border-left: 2px solid var(--avocado); border-bottom: 2px solid var(--avocado); transform: rotate(-45deg); }

/* Look inside */
.inside { background: var(--cream); }
.inside .wrap { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .inside .wrap { grid-template-columns: 1fr 1fr; } }
.inside h2 { max-width: 12ch; }
.phone { width: min(92%, 330px); justify-self: center; background: #2C211A; border-radius: 46px; padding: 13px; box-shadow: 0 30px 60px rgba(59, 42, 32, 0.28); transform: rotate(2deg); }
@media (min-width: 900px) { .phone { transform: rotate(4deg); } }
.phone-screen { background: #FFFCF7; border-radius: 34px; padding: 26px 20px 16px; min-height: 560px; display: flex; flex-direction: column; gap: 9px; font-size: 0.8rem; line-height: 1.4; }
.pdf-top { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-soft); font-size: 0.66rem; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.pdf-chapter { color: var(--paprika); font-weight: 700; font-size: 0.7rem; margin: 4px 0 0; }
.phone-screen .pdf-title { font-family: var(--font-display); font-weight: 420; font-size: 1.42rem; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
.pdf-sub { color: var(--ink-soft); margin: 0; }
.pdf-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--sage-soft); border-radius: 8px; padding: 8px 10px; font-size: 0.66rem; font-weight: 700; }
.pdf-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 38%; border-radius: 10px; }
/* the phone shows real PDF pages, stacked like a PDF reader */
.phone-screen.pages { background: #E7E0D4; padding: 10px 8px; gap: 8px; min-height: 0; height: 600px; overflow: hidden; }
.phone-screen.pages img { width: 100%; display: block; border-radius: 2px; box-shadow: 0 1px 3px rgba(59, 42, 32, 0.18); }
/* a row of real pages from the PDF */
.pages-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
@media (min-width: 760px) { .pages-strip.pages-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .pages-strip.pages-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }
.pages-strip figure { margin: 0; }
.pages-strip img { width: 100%; display: block; border-radius: 3px; background: #FFFAF3;
  box-shadow: 0 1px 2px rgba(59, 42, 32, 0.12), 0 14px 28px -16px rgba(59, 42, 32, 0.45); }
.pages-strip figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--ink-soft); }
.pdf-need { font-family: var(--font-display); font-weight: 450; font-size: 1.05rem; margin: 2px 0 0; }
.pdf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pdf-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--line); padding: 3px 0; }
.pdf-list li span:last-child { color: var(--ink-soft); text-align: right; white-space: nowrap; }
.pdf-foot { margin-top: auto; display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 0.62rem; border-top: 1px solid var(--line); padding-top: 8px; }

/* Recipe tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 32px; } }
.tile a { display: grid; gap: 12px; color: var(--cocoa); text-decoration: none; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: contain; }   /* watercolor dish floats on the page */
.tile-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tile h3 { font-size: clamp(1.08rem, 0.9rem + 0.75vw, 1.6rem); font-weight: 400; margin: 0; }
.tile .carbs { white-space: nowrap; font-weight: 650; font-size: 0.9rem; color: var(--paprika); }
.tile p { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.88rem; }
.tile a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
@media (max-width: 520px) { .tile-meta { flex-direction: column; gap: 2px; } }

/* Cookbook shelf: covers lie flat like books on a table, title and price below */
.book-sub { font-weight: 650; color: var(--ink-soft); margin: -0.15em 0 14px; }
.shop-head { padding-top: clamp(32px, 5vw, 72px); }
.shop-head h1 { margin-bottom: 0.25em; }
.filters { display: flex; gap: 4px 28px; overflow-x: auto; scrollbar-width: none; margin: 28px 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
@media (max-width: 759px) { .filters { gap: 4px 22px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 28px; } }
.filters[hidden] { display: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; background: none; border: 0; border-radius: 0; padding: 12px 0; cursor: pointer;
  font: 500 1rem/1.2 var(--font-body); color: var(--ink-soft); box-shadow: inset 0 -2px 0 transparent;
}
.filters button:hover { color: var(--cocoa); }
.filters button[aria-pressed="true"] { color: var(--paprika-deep); box-shadow: inset 0 -2px 0 var(--paprika); }
.filters button:focus-visible { outline-offset: -3px; }
.books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
@media (min-width: 760px) { .books { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 60px 32px; } }
@media (min-width: 1000px) { .books-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 28px; } }
.books > [hidden] { display: none; }
.book a { display: grid; gap: 4px; color: var(--cocoa); text-decoration: none; }
.book img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; background: var(--cream); margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(59, 42, 32, 0.12), 0 18px 32px -20px rgba(59, 42, 32, 0.5);
}
.book-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.book h3 { font-size: clamp(1.2rem, 0.98rem + 0.9vw, 1.8rem); font-weight: 400; margin: 0; }
.book-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.book p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.45; }
.book .book-status { color: var(--paprika-deep); font-weight: 650; font-size: 0.85rem; }
.book a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

/* Free sample panel */
.sample { background: var(--sage-soft); border-radius: 28px; padding: clamp(28px, 6vw, 88px); display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .sample { grid-template-columns: 0.85fr 1.15fr; gap: 72px; } }
.sample .cover { max-width: 340px; transform: rotate(-3deg); }
.sample h2 { margin-bottom: 0.3em; max-width: 12ch; }
.form { display: grid; gap: 12px; max-width: 520px; margin-top: 24px; }
.form label { font-weight: 650; font-size: 0.95rem; }
.form input[type="email"] {
  min-height: 56px; padding: 12px 16px; border-radius: 10px; border: 1.5px solid #D9CCB8;
  background: #fff; color: var(--cocoa); font: 500 1.02rem/1.3 var(--font-body); width: 100%;
}
.form input[type="email"]:focus { outline: none; border-color: var(--cocoa); box-shadow: 0 0 0 3px rgba(181, 83, 46, 0.25); }
.form .button { width: 100%; }
.fine { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }

/* FAQ */
.faq { display: grid; gap: 24px; }
@media (min-width: 900px) { .faq { grid-template-columns: 0.8fr 1.2fr; gap: 80px; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 1.1rem; font-weight: 550; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { width: 16px; height: 16px; position: relative; flex: none; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--cocoa); }
.faq .plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); max-width: 60ch; }

/* Breadcrumbs */
.crumbs { font-size: var(--step--1); color: var(--ink-soft); padding-top: 24px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #CDBFA9; }
.crumbs a { color: var(--ink-soft); }

/* Recipe page */
.recipe-head { display: grid; gap: 32px; padding: 20px 0 12px; }
.recipe-head h1 { font-size: clamp(2.4rem, 1.7rem + 2.8vw, 4.1rem); }
.recipe-photo { position: relative; width: min(100%, 480px); }
.recipe-photo img { width: 100%; aspect-ratio: 1; object-fit: contain; }
/* when a real 2:3 photo replaces a watercolor (same file name), it gets the photo treatment */
.tile img.photo, .recipe-photo img.photo { aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; }
.recipe-photo .stamp { position: absolute; top: 12px; right: 12px; }
.recipe-photo .button { margin-top: 4px; }
@media (min-width: 960px) {
  .recipe-head { grid-template-columns: minmax(320px, 480px) 1fr; gap: 72px; align-items: start; padding-top: 28px; }
  .recipe-photo { position: sticky; top: 100px; }
  .recipe-photo .stamp { top: -16px; right: -16px; }
}
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5em, 1fr)); margin: 26px 0; border-top: 1px solid var(--cocoa); border-bottom: 1px solid var(--line); }
.facts div { padding: 12px 12px 12px 0; }
.facts dt { font-size: var(--step--1); color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4.5vw, 56px); margin: 40px 0 0; scroll-margin-top: 96px; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; border-bottom: 1px solid var(--cocoa); padding-bottom: 16px; margin-bottom: 28px; }
.card-head h2 { margin: 0; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
.card-head p { margin: 0; color: var(--ink-soft); font-weight: 600; }
.card-cols { display: grid; gap: 36px; }
@media (min-width: 900px) { .card-cols { grid-template-columns: minmax(260px, 0.8fr) 1.2fr; gap: 64px; } }
.ingredients h3, .method h3 { font-size: var(--step-2); }
.ingredients h4 { font: 650 0.98rem/1.3 var(--font-body); color: var(--avocado); margin: 24px 0 6px; }
.ingredients h4:first-of-type { margin-top: 0; }
.ingredients ul { list-style: none; margin: 0; padding: 0; }
.ingredients li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.ingredients li b { font-weight: 650; font-variant-numeric: tabular-nums; }
.method ol { list-style: none; counter-reset: step; margin: 0 0 30px; padding: 0; display: grid; gap: 20px; }
.method ol li { counter-increment: step; display: grid; grid-template-columns: 2.2rem 1fr; gap: 12px; scroll-margin-top: 96px; }
.method ol li::before { content: counter(step); font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1; color: var(--paprika); }
.method ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.note { font-size: var(--step--1); color: var(--ink-soft); margin-top: 26px; max-width: var(--measure); }

.nutrition { margin-top: 32px; max-width: 360px; border: 2px solid var(--cocoa); padding: 10px 14px 12px; background: #fff; }
.nutrition h3 { font: 800 1.12rem/1.2 var(--font-body); letter-spacing: 0; margin: 0 0 6px; padding-bottom: 6px; border-bottom: 8px solid var(--cocoa); }
.nutrition table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.nutrition th, .nutrition td { padding: 6px 0; border-bottom: 1px solid var(--cocoa); text-align: left; font-weight: 500; }
.nutrition td { text-align: right; font-weight: 700; }
.nutrition tr.key th, .nutrition tr.key td { font-weight: 800; background: rgba(242, 193, 78, 0.35); }
.nutrition tr:last-child th, .nutrition tr:last-child td { border-bottom: 0; }
.nutrition p { margin: 8px 0 0; font-size: 0.8rem; color: var(--ink-soft); }

/* Cookbook promo on recipe pages */
.promo { background: var(--cream); border-radius: 28px; padding: clamp(28px, 5vw, 72px); display: grid; gap: 36px; align-items: center; }
@media (min-width: 820px) { .promo { grid-template-columns: minmax(0, 260px) 1fr; gap: 64px; } }
.promo .cover { max-width: 260px; }

/* Simple pages */
.page { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 104px); }
.page h2 { font-size: var(--step-2); margin-top: 1.6em; }
.page h3 { margin-top: 1.2em; }
.page li { margin-bottom: 6px; }
.updated { color: var(--ink-soft); font-size: var(--step--1); }
.steps-list { padding-left: 1.2em; display: grid; gap: 8px; }
.chapters { list-style: none; padding: 0; margin: 0; display: grid; }
.chapters li { display: grid; grid-template-columns: minmax(11em, 0.6fr) 1fr; gap: 4px 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.chapters li:last-child { border-bottom: 1px solid var(--line); }
.chapters strong { font-family: var(--font-display); font-weight: 450; font-size: 1.2rem; }
.chapters span { color: var(--ink-soft); }
@media (max-width: 560px) { .chapters li { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 32px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-grid h2 { font: 650 0.95rem/1.3 var(--font-body); letter-spacing: 0; margin: 0 0 14px; color: var(--ink-soft); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-tag { color: var(--ink-soft); margin: 14px 0 0; max-width: 32ch; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 52px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 0.88rem; color: var(--ink-soft); }
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .announce, .site-header, .site-footer, .no-print, .crumbs, .recipe-photo .button, .actions { display: none !important; }
  body { background: #fff; }
  .card { border: 0; padding: 0; margin: 0; }
  .recipe-photo { width: 220px; position: static; }
  .recipe-photo .stamp { display: none; }
}
