:root {
  --ink: #243126;
  --muted: #667067;
  --cream: #f7f2e9;
  --paper: #fffdf8;
  --sage: #365f4a;
  --sage-dark: #244433;
  --coral: #d9785d;
  --gold: #d7a73e;
  --line: #ded8cc;
  --shadow: 0 18px 50px rgba(47, 55, 45, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; line-height: 1.6; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

h1, h2, h3 { margin: 0; font-family: "Fraunces", Georgia, serif; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(3rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.5rem; }
.eyebrow { margin: 0 0 12px; color: var(--coral); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.site-header { position: relative; z-index: 5; border-bottom: 1px solid rgba(36,49,38,.10); background: rgba(255,253,248,.94); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.1; }
.brand-mark { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 50% 50% 45% 55%; color: white; background: var(--sage); font-family: "Fraunces", serif; font-size: 1.35rem; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: "Fraunces", serif; font-size: 1.18rem; }
.brand small { color: var(--muted); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; }
nav { display: flex; gap: 28px; }
nav a { font-size: .92rem; font-weight: 600; text-decoration: none; }
nav a:hover { color: var(--coral); }

.hero { overflow: hidden; background: var(--cream); }
.hero-grid { min-height: 660px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 60px; }
.hero-copy { padding: 80px 0; }
.hero-copy h1 { max-width: 820px; }
.hero-lead { max-width: 650px; margin: 26px 0 34px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.search-form { display: flex; max-width: 610px; padding: 7px; border-radius: 16px; background: white; box-shadow: var(--shadow); }
.search-form input { min-width: 0; flex: 1; padding: 14px 16px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-form button, .login-form button { padding: 13px 24px; border: 0; border-radius: 11px; color: white; background: var(--sage); cursor: pointer; font-weight: 700; }
.search-form button:hover, .login-form button:hover { background: var(--sage-dark); }
.search-form.compact { margin-top: 30px; box-shadow: none; border: 1px solid var(--line); }

.hero-art { position: relative; min-height: 500px; }
.plate { position: absolute; top: 58px; left: 10px; width: 400px; height: 400px; border: 52px solid #ece2d4; border-radius: 50%; background: #fffaf1; box-shadow: 0 30px 70px rgba(65,53,36,.16), inset 0 0 0 2px white; }
.plate span { position: absolute; inset: 50px; border-radius: 44% 56% 48% 52%; background: radial-gradient(circle at 38% 30%, #f2c15c 0 10%, transparent 11%), radial-gradient(circle at 65% 62%, #d9775c 0 13%, transparent 14%), linear-gradient(135deg, #477d5f, #234d38); transform: rotate(-8deg); }
.leaf { position: absolute; width: 68px; height: 150px; border-radius: 100% 0 100% 0; background: #8da382; }
.leaf-one { top: 45px; right: 5px; transform: rotate(35deg); }
.leaf-two { bottom: 45px; left: -12px; transform: rotate(-55deg); background: #d79e4a; }
.dot { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--coral); }
.dot-one { top: 100px; left: -25px; }.dot-two { bottom: 90px; right: 40px; width: 12px; height: 12px; background: var(--gold); }

.section { padding-block: 92px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.text-link { color: var(--sage); font-weight: 700; text-decoration: none; }
.category-row { display: flex; flex-wrap: wrap; gap: 12px; }
.category-row a { display: flex; min-width: 170px; flex: 1; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: white; text-decoration: none; font-weight: 600; transition: .2s ease; }
.category-row a:hover { border-color: var(--sage); transform: translateY(-2px); }
.category-row span { color: var(--coral); }

.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.recipe-grid.two-column { grid-template-columns: repeat(2, 1fr); }
.recipe-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; transition: .25s ease; }
.recipe-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.recipe-card-link { height: 100%; display: flex; flex-direction: column; text-decoration: none; }
.recipe-card-image { aspect-ratio: 4 / 3; overflow: hidden; background: #e5ddcf; }
.recipe-card-image img { width: 100%; height: 100%; object-fit: cover; }
.placeholder { display: grid; place-items: center; background: linear-gradient(145deg, #e9dfcc, #cbd8c9); }
.placeholder span { color: rgba(36,49,38,.28); font-family: "Fraunces", serif; font-size: 6rem; }
.palette-2 { background: linear-gradient(145deg, #ead0c5, #efe3ce); }.palette-3 { background: linear-gradient(145deg, #ccd9d0, #efe2b9); }.palette-4 { background: linear-gradient(145deg, #d9cbbd, #d8dfc5); }
.recipe-card-body { flex: 1; padding: 24px; }
.recipe-card-body h3 { margin-bottom: 12px; }
.recipe-card-body > p:not(.eyebrow) { color: var(--muted); }
.card-meta { display: flex; gap: 12px; margin-top: 22px; color: var(--muted); font-size: .82rem; }
.card-meta span + span::before { content: "·"; margin-right: 12px; }
.empty-state { padding: 64px; border: 1px dashed var(--line); border-radius: 20px; text-align: center; background: var(--cream); }

.story-strip { padding: 85px 0; color: white; background: var(--sage); }
.story-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; align-items: center; }
.story-number { margin: 0; color: #e3b958; font-family: "Fraunces", serif; font-size: clamp(8rem, 18vw, 14rem); line-height: .8; text-align: center; }
.story-grid h2 { max-width: 650px; }.story-grid > div > p:last-child { max-width: 620px; color: #d6e0d8; font-size: 1.1rem; }

.page-head { padding-top: 90px; padding-bottom: 45px; }
.page-head h1 { max-width: 900px; font-size: clamp(2.8rem, 6vw, 5rem); }
.page-head > p:not(.eyebrow) { max-width: 700px; color: var(--muted); font-size: 1.15rem; }
.list-layout { display: grid; grid-template-columns: 190px 1fr; gap: 55px; padding-top: 25px; }
.filters { position: sticky; top: 20px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.filters p { margin: 0 0 10px; font-weight: 700; }
.filters a { padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.filters a.active, .filters a:hover { color: var(--sage-dark); background: var(--cream); font-weight: 600; }
.result-count { margin-top: 0; color: var(--muted); }

.recipe-hero { display: grid; grid-template-columns: 1fr .75fr; gap: 70px; align-items: center; padding-top: 70px; padding-bottom: 70px; }
.recipe-title-block h1 { margin-top: 22px; font-size: clamp(3rem, 7vw, 5.6rem); }
.back-link { color: var(--sage); font-weight: 700; text-decoration: none; }
.recipe-main-image { min-height: 430px; overflow: hidden; border-radius: 30% 8% 30% 8%; }
.recipe-main-image img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.recipe-facts div { display: grid; gap: 2px; }.recipe-facts span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }.recipe-facts strong { font-size: .95rem; }
.recipe-content { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; padding-bottom: 100px; }
.sticky-card { position: sticky; top: 28px; padding: 36px; border-radius: 20px; background: var(--cream); }
.sticky-card h2 { margin-bottom: 28px; }.sticky-card h3, .instructions > h3 { margin: 26px 0 12px; font-family: "DM Sans", sans-serif; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.sticky-card ul { padding: 0; margin: 0; list-style: none; }
.sticky-card li { padding: 9px 0; border-bottom: 1px solid rgba(36,49,38,.10); }
.instruction-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 34px; }
.print-button { padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.steps { padding: 0; margin: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 42px 1fr; gap: 18px; margin-bottom: 28px; }
.steps li > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: white; background: var(--coral); font-weight: 700; }
.steps p { margin: 5px 0 0; font-size: 1.07rem; }

.login-form { max-width: 480px; margin-top: 32px; }.login-form input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.site-footer { padding: 55px 0; border-top: 1px solid var(--line); background: var(--cream); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }.footer-inner p { margin: 4px 0 0; color: var(--muted); }.footer-inner a { color: var(--sage); font-weight: 700; }

@media (max-width: 900px) {
  .hero-grid, .recipe-hero, .recipe-content, .story-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }.hero-art { display: none; }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-main-image { min-height: 330px; order: -1; }
  .list-layout { grid-template-columns: 1fr; }.filters { position: static; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 72px; }.brand small { display: none; }nav { gap: 16px; }nav a { font-size: .82rem; }
  .hero-copy { padding: 70px 0; }h1 { font-size: 3.2rem; }
  .search-form button { padding-inline: 16px; }.recipe-grid, .recipe-grid.two-column { grid-template-columns: 1fr; }
  .section { padding-block: 70px; }.section-heading { align-items: start; flex-direction: column; }
  .story-grid { gap: 35px; }.story-number { text-align: left; }
  .recipe-hero { gap: 35px; padding-top: 30px; }.recipe-title-block h1 { font-size: 3.4rem; }
  .recipe-content { gap: 45px; }.sticky-card { position: static; padding: 26px; }.footer-inner { flex-direction: column; }
}

@media print {
  .site-header, .site-footer, .recipe-main-image, .print-button, .back-link { display: none !important; }
  .recipe-hero, .recipe-content { display: block; padding: 0; }.recipe-title-block h1 { font-size: 34pt; }.sticky-card { padding: 0; background: transparent; }.ingredients { margin: 24px 0; }
}

