/* ============================================================
   THIRD RECIPE SITE — COOKBOOK / FIELD NOTES DESIGN
   This stylesheet intentionally does not depend on prior themes.
   ============================================================ */
:root {
    --ink: #26333a;
    --blue: #284d59;
    --blue-dark: #173640;
    --coral: #da7558;
    --paper: #f9f6ef;
    --white: #fffefa;
    --line: #dce0dc;
    --muted: #6b7475;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 15px/1.65 'DM Sans', Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.wrap { width: min(1200px, calc(100% - 64px)); margin: 0 auto; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; line-height: 1.13; font-weight: 600; }
.eyebrow { display: block; font: 700 11px/1.5 'DM Sans', sans-serif; letter-spacing: 2px; color: var(--coral); text-transform: uppercase; }

/* Header */
.announcement { background: var(--blue-dark); color: #e8f0ef; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.announcement .wrap { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; }
.announcement a { color: #ffc6ad; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.nav { min-height: 90px; display: flex; align-items: center; gap: 36px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--blue-dark); font: 700 25px/1.1 'Fraunces', Georgia, serif; white-space: nowrap; }
.logo-symbol { color: var(--coral); font-size: 38px; line-height: 1; }
.navlinks { display: flex; align-items: center; gap: 24px; margin: auto; }
.navlinks a { font-size: 12px; font-weight: 700; white-space: nowrap; }
.navlinks a:hover, .navlinks a.current { color: var(--coral); }
.nav-actions { display: flex; gap: 14px; align-items: center; }
.nav-fav { font-size: 29px; color: var(--coral); }
.nav-search-link { border-radius: 40px; background: var(--blue); color: white; font-size: 12px; font-weight: 700; padding: 11px 18px; white-space: nowrap; }
.hamburger { display: none; border: 0; background: transparent; font-size: 27px; }

/* Homepage opening: text panel + tall photograph */
.cover-layout { display: grid; grid-template-columns: .94fr 1.06fr; min-height: 590px; padding: 34px 0 52px; gap: 0; }
.cover-intro { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: var(--paper); padding: 58px 65px 58px 55px; }
.cover-intro h1 { font-size: clamp(54px, 6.2vw, 94px); letter-spacing: -4px; margin: 17px 0 24px; }
.cover-intro h1 em { font-weight: 400; color: var(--coral); }
.cover-intro p { max-width: 380px; font-size: 17px; color: #5f6b6b; line-height: 1.75; }
.cover-search { display: flex; width: 100%; margin: 27px 0; border-bottom: 2px solid var(--blue); }
.cover-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 15px 0; font-size: 14px; }
.cover-search button { border: 0; background: transparent; color: var(--blue); font-weight: 800; padding: 12px; }
.cover-footnote { color: #879090; font-size: 10px; font-weight: 700; letter-spacing: 1px; margin-top: 18px; }
.cover-photo { display: block; min-height: 520px; position: relative; overflow: hidden; background: #e7e5df; }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cover-photo:after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, #10242aa8); }
.cover-photo-label { position: absolute; z-index: 1; bottom: 34px; left: 36px; right: 36px; color: white; display: grid; gap: 8px; }
.cover-photo-label small { letter-spacing: 2px; font-size: 10px; font-weight: 700; }
.cover-photo-label strong { font: 600 32px/1.15 'Fraunces', serif; }
.cover-photo-label span { font-weight: 700; font-size: 12px; }

/* Category bar */
.collection-bar { border-block: 1px solid var(--line); background: #f2f5f2; }
.collection-inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: 21px 0; }
.collection-caption { font-size: 10px; font-weight: 800; color: var(--coral); letter-spacing: 1.4px; margin-right: auto; }
.collection-inner a { font-size: 12px; font-weight: 800; white-space: nowrap; }
.collection-inner a span { color: var(--coral); }

/* Editorial recipe layouts */
.home-section { padding-top: 84px; padding-bottom: 65px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { font-size: clamp(34px, 4vw, 52px); margin: 7px 0 0; }
.section-heading > a { font-size: 12px; font-weight: 800; border-bottom: 1px solid var(--coral); padding-bottom: 6px; }
.spotlight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.spotlight-card--large { grid-column: span 2; grid-row: span 2; }
.spotlight-photo { position: relative; overflow: hidden; aspect-ratio: 1.45; background: #e5e6e2; }
.spotlight-card--large .spotlight-photo { aspect-ratio: .92; }
.spotlight-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.spotlight-card:hover img { transform: scale(1.035); }
.spotlight-photo > span { position: absolute; top: 14px; left: 14px; background: var(--white); padding: 5px 10px; font-size: 11px; font-weight: 800; }
.spotlight-text { padding: 14px 0 7px; }
.spotlight-text h3 { font-size: 19px; margin: 0 0 6px; }
.spotlight-card--large h3 { font-size: 31px; }
.spotlight-text small { color: var(--muted); font-size: 12px; }
.kitchen-note { background: var(--blue); color: white; display: grid; grid-template-columns: 1.3fr 1fr; gap: 70px; padding: 55px 65px; }
.kitchen-note .eyebrow { color: #ffbba2; }
.kitchen-note h2 { font-size: clamp(32px, 4vw, 48px); margin: 9px 0 0; }
.kitchen-note p { font-size: 17px; color: #e1e9e9; }
.kitchen-note a { font-weight: 800; font-size: 13px; border-bottom: 1px solid #e6b09e; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.food-card { min-width: 0; }
.card-picture { aspect-ratio: 1.22; position: relative; background: #e8e8e1; }
.card-picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.heart { position: absolute; right: 11px; top: 11px; background: white; border: 0; border-radius: 50%; width: 38px; height: 38px; color: var(--coral); font-size: 23px; }
.heart.is-saved { background: var(--coral); color: white; }
.card-copy { padding: 13px 0 6px; }
.card-name { display: block; font: 600 19px/1.3 'Fraunces', serif; }
.card-rating { margin-top: 7px; }
.stars { color: var(--coral); }
.card-rating small, .card-time { color: var(--muted); font-size: 12px; }
.card-time { margin-top: 5px; }

/* Recipe story: cover split, narrow article with left-side chapter index */
.recipe-story { background: var(--white); }
.story-breadcrumb { font-size: 12px; color: var(--muted); padding: 26px 0; }
.story-breadcrumb a { color: var(--blue); }
.story-cover { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; background: var(--paper); }
.story-cover-copy { padding: 54px 55px; display: flex; flex-direction: column; justify-content: center; }
.story-cover-copy h1 { font-size: clamp(41px, 4.5vw, 69px); letter-spacing: -2px; margin: 15px 0; }
.story-cover-copy > p { color: #5f6b6b; font-size: 16px; line-height: 1.8; }
.story-cover-photo { position: relative; min-height: 470px; }
.story-cover-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.story-cover-photo > span { position: absolute; right: 20px; bottom: 20px; background: var(--white); padding: 9px 13px; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.story-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 15px 0 27px; }
.story-buttons button, .pill-button { padding: 10px 16px; border-radius: 30px; border: 1px solid #c9d1d0; background: transparent; font-size: 12px; font-weight: 800; }
.story-buttons .pill-button { background: var(--blue); color: white; border-color: var(--blue); }
.story-facts { border-top: 1px solid #d5dcd9; display: flex; gap: 28px; padding-top: 20px; }
.story-facts div { display: grid; gap: 4px; }
.story-facts small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.story-facts strong { font-size: 14px; }
.story-content { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 85px; padding-top: 70px; }
.story-sidebar { align-self: stretch; }
.story-index { position: sticky; top: 30px; display: grid; gap: 16px; padding: 26px; background: #f0f5f3; }
.story-index a { font-size: 13px; font-weight: 700; color: var(--blue); }
.story-main { max-width: 760px; }
.story-section { border-bottom: 1px solid var(--line); padding: 0 0 60px; margin-bottom: 62px; scroll-margin-top: 30px; }
.story-section-heading > span { color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: 1.8px; }
.story-section-heading h2 { font-size: 42px; margin: 10px 0 28px; }
.story-serving-control { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 13px; font-weight: 800; }
.story-serving-control span { margin-right: auto; }
.story-serving-control button { border: 1px solid var(--line); background: white; width: 32px; height: 32px; border-radius: 50%; }
.story-ingredients { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.story-ingredients label { display: flex; align-items: baseline; gap: 13px; border-bottom: 1px solid var(--line); padding: 14px 0; font-size: 14px; }
.story-ingredients input { accent-color: var(--coral); }
.story-ingredients input:checked + span { text-decoration: line-through; color: var(--muted); }
.story-step { display: grid; grid-template-columns: 55px 1fr; gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.story-step-number { font: 600 33px/1 'Fraunces', serif; color: var(--coral); }
.story-step h3 { font-size: 24px; margin: 0 0 10px; }
.story-step p { color: #566165; font-size: 15px; line-height: 1.85; }
.story-step img { display: block; width: 100%; max-height: 390px; object-fit: cover; margin-top: 18px; }
.story-video video { width: 100%; }
.story-note { padding: 25px; background: #f5ebe3; border-left: 4px solid var(--coral); }
.story-note strong { font: 600 21px 'Fraunces', serif; }
.story-extra { padding-top: 20px; }
.story-extra h3 { font-size: 23px; }
.story-extra p, .story-note p { color: #586366; line-height: 1.85; }
.story-print { background: var(--blue); color: white; border: 0; padding: 12px 20px; border-radius: 30px; margin-top: 25px; font-weight: 800; }
.story-related { padding-top: 25px; }

/* Footer */
.site-footer { background: var(--blue-dark); color: white; padding: 70px 0 22px; }
.site-footer .logo { color: white; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 45px; padding-bottom: 60px; }
.footer-brand p { color: #b9cecf; font-size: 14px; }
.footer-links { display: grid; align-content: start; gap: 13px; }
.footer-links strong { color: #f8b7a1; font-size: 11px; text-transform: uppercase; letter-spacing: 1.7px; margin-bottom: 5px; }
.footer-links a { color: #d8e4e3; font-size: 13px; }
.footer-bottom { border-top: 1px solid #45616a; display: flex; justify-content: space-between; padding-top: 18px; color: #b5c9ca; font-size: 11px; }

/* Responsive */
@media (max-width: 1050px) {
    .nav { gap: 20px; }
    .navlinks { gap: 14px; }
    .cover-intro { padding: 40px; }
    .spotlight-grid { gap: 14px; }
    .story-content { gap: 35px; grid-template-columns: 200px 1fr; }
}
@media (max-width: 800px) {
    .wrap { width: min(100% - 32px, 1200px); }
    .hamburger { display: block; margin-left: auto; }
    .navlinks { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 20px; border-bottom: 1px solid var(--line); box-shadow: 0 15px 20px #0001; }
    .navlinks.open { display: grid; }
    .nav-actions { margin-left: 0; }
    .cover-layout, .story-cover { grid-template-columns: 1fr; }
    .cover-layout { padding-top: 18px; }
    .cover-photo { min-height: 410px; }
    .spotlight-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spotlight-card--large { grid-column: span 2; grid-row: auto; }
    .spotlight-card--large .spotlight-photo { aspect-ratio: 1.6; }
    .kitchen-note { grid-template-columns: 1fr; gap: 15px; padding: 35px; }
    .story-content { grid-template-columns: 1fr; padding-top: 45px; }
    .story-sidebar { display: none; }
    .footer-main { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .announcement { font-size: 9px; }
    .announcement .wrap { display: block; text-align: center; }
    .announcement a { display: none; }
    .nav { min-height: 70px; gap: 12px; }
    .logo { font-size: 20px; }
    .logo-symbol { font-size: 29px; }
    .nav-search-link { font-size: 0; padding: 8px 12px; }
    .nav-search-link:after { content: '⌕'; font-size: 23px; }
    .cover-intro { padding: 35px 25px; }
    .cover-intro h1 { font-size: 55px; letter-spacing: -2px; }
    .cover-photo { min-height: 360px; }
    .cover-photo-label strong { font-size: 24px; }
    .collection-inner { gap: 15px; }
    .collection-caption { width: 100%; }
    .home-section { padding: 55px 0 35px; }
    .section-heading h2 { font-size: 34px; }
    .section-heading > a { font-size: 11px; }
    .spotlight-grid, .card-grid { gap: 13px; }
    .spotlight-text h3, .card-name { font-size: 15px; }
    .spotlight-card--large h3 { font-size: 24px; }
    .story-cover-copy { padding: 35px 24px; }
    .story-cover-copy h1 { font-size: 43px; }
    .story-cover-photo { min-height: 320px; }
    .story-facts { gap: 16px; }
    .story-ingredients { grid-template-columns: 1fr; }
    .story-section-heading h2 { font-size: 35px; }
    .story-step { grid-template-columns: 37px 1fr; gap: 12px; }
    .story-step-number { font-size: 26px; }
    .footer-main { gap: 25px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { display: grid; gap: 5px; }
}
