:root {
  --navy: #102a43;
  --navy-deep: #091c2c;
  --red: #c83c3c;
  --mustard: #f2b51d;
  --sky: #92c8df;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --ink: #17212b;
  --muted: #65717c;
  --line: #e7dfd0;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(20, 35, 48, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; font-size: .83rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--navy); background: var(--mustard); }
.jump-link { color: var(--red); font-weight: 800; text-decoration: none; border-bottom: 2px solid transparent; }
.jump-link:hover { border-color: currentColor; }

.hero { overflow: hidden; position: relative; display: grid; grid-template-columns: .85fr 1.25fr; min-height: 620px; border-radius: 30px; background: var(--navy); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; left: 45%; top: -40px; width: 3px; height: 150px; background: var(--sky); transform: rotate(18deg); opacity: .55; }
.hero-copy { z-index: 1; align-self: center; padding: clamp(42px, 6vw, 80px); color: white; }
.eyebrow { margin: 0 0 10px; color: var(--red); font-size: .75rem; font-weight: 900; letter-spacing: .16em; line-height: 1.3; text-transform: uppercase; }
.hero .eyebrow { color: var(--sky); }
h1, h2 { margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; line-height: .98; }
h1 { color: white; font-size: clamp(3.2rem, 6.2vw, 6.6rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.15rem); letter-spacing: -.035em; }
.tagline { margin: 28px 0 13px; color: var(--mustard); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 850; line-height: 1.25; }
.intro { max-width: 37rem; margin: 0; color: #e5edf3; font-size: 1.02rem; }
.hero-image { min-height: 100%; margin: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }

.quick-facts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); width: min(940px, calc(100% - 48px)); margin: -38px auto 76px; padding: 26px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.quick-facts div { padding: 0 24px; border-right: 1px solid var(--line); }
.quick-facts div:last-child { border: 0; }
.quick-facts span, .quick-facts strong { display: block; }
.quick-facts span { margin-bottom: 4px; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.quick-facts strong { color: var(--navy); font-size: 1.02rem; }

.recipe-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; scroll-margin-top: 24px; }
.card { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 8px 26px rgba(20, 35, 48, .05); }
.section-heading { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 30px; }
.section-number { flex: 0 0 auto; margin: 3px 0 0; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.check-hint { margin: -16px 0 17px 42px; color: var(--muted); font-size: .84rem; }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { border-top: 1px solid var(--line); }
.checklist label { display: flex; align-items: flex-start; gap: 12px; padding: 13px 4px; cursor: pointer; }
.checklist input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--red); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.tip, .flavor-note { margin-top: 25px; padding: 18px 20px; border-radius: 14px; background: #fff2c9; font-size: .92rem; }
.tip strong, .flavor-note strong { display: block; color: var(--navy); }
.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; padding: 11px 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: white; background: var(--red); font-size: .8rem; font-weight: 900; }
.steps span { padding-top: 2px; }
.flavor-note { border-left: 4px solid var(--mustard); background: #f3f7fa; }

.wide-section { margin-top: 28px; padding: clamp(36px, 5vw, 60px); border-radius: var(--radius); }
.variations { color: #eef4f8; background: var(--navy); }
.light-heading h2 { color: white; }
.light-heading .eyebrow { color: var(--sky); }
.light-heading .section-number { color: var(--mustard); }
.variation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 36px; }
.variation-grid p { display: flex; gap: 12px; margin: 0; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.14); }
.variation-grid span { color: var(--mustard); font-weight: 900; }
.ketchup { margin: 28px 0 0; padding-top: 20px; border-top: 2px solid var(--red); color: #bfced9; font-style: italic; }

.notes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin: 28px 0 80px; }
.notes-grid article { padding: clamp(32px, 4vw, 52px); border-radius: var(--radius); background: #e8f2f6; }
.notes-grid article:last-child { background: #f7e8e5; }
.notes-grid h2 { margin-bottom: 24px; }
.notes-grid p:last-child { margin-bottom: 0; }

footer { display: grid; place-items: center; padding: 52px 20px 60px; border-top: 1px solid var(--line); text-align: center; }
.footer-star { color: var(--red); font-size: 1.6rem; }
footer p { margin: 8px 0 0; color: var(--navy); font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700; }
footer .footer-note { color: var(--muted); font-family: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { order: 2; padding: 40px; }
  .hero-image { order: 1; min-height: 410px; }
  .quick-facts { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
  .quick-facts div { padding: 15px 20px; }
  .quick-facts div:nth-child(2) { border-right: 0; }
  .quick-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .recipe-grid, .notes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 66px; }
  .brand span:last-child { display: none; }
  .hero { min-height: auto; border-radius: 20px; }
  .hero-image { min-height: 280px; }
  .hero-copy { padding: 32px 25px 38px; }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .intro { font-size: .96rem; }
  .quick-facts { width: calc(100% - 20px); margin-bottom: 48px; padding: 10px; }
  .quick-facts div { padding: 13px 10px; }
  .quick-facts strong { font-size: .88rem; }
  .card, .wide-section, .notes-grid article { padding: 28px 22px; }
  .section-heading { gap: 12px; }
  .check-hint { margin-left: 31px; }
  .variation-grid { grid-template-columns: 1fr; }
  .notes-grid { margin-bottom: 48px; }
}

@media print {
  body { background: white; }
  .site-header, .hero-image, footer { display: none; }
  main { width: 100%; }
  .hero { display: block; min-height: auto; box-shadow: none; }
  .hero-copy { padding: 24px; }
  .quick-facts { margin: 16px 0; box-shadow: none; }
  .card, .wide-section, .notes-grid article { break-inside: avoid; box-shadow: none; }
}
