@layer reset, base, components, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure { margin: 0; }
  img { display: block; width: 100%; height: auto; }
  a { color: inherit; }
  button, input { font: inherit; }
  [hidden] { display: none !important; }
}
@layer base {
  :root { --paper: #f8f6f0; --ink: #292e28; --muted: #66685d; --accent: #773e32; --line: #c9c9ba; --soft: #eeeede; --serif: Georgia, 'Times New Roman', serif; --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
  html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
  body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.13; text-wrap: balance; }
  h1 { font-size: clamp(3rem, 5.5vw, 5.4rem); letter-spacing: -.055em; }
  h2 { font-size: clamp(2rem, 3.2vw, 3rem); letter-spacing: -.04em; }
  h3 { font-size: 1.75rem; letter-spacing: -.025em; }
  a { text-underline-offset: .25em; text-decoration-thickness: 1px; }
  a:hover { color: var(--accent); }
  a, button, input { -webkit-tap-highlight-color: transparent; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
  ::selection { color: var(--paper); background: var(--accent); }
  [id] { scroll-margin-top: 2rem; }
}
@layer components {
  .site-shell { max-width: 1360px; margin: auto; padding: 0 64px; }
  .skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .7rem 1rem; background: var(--paper); }
  .skip-link:focus { top: 1rem; }
  .site-header { min-height: 121px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--ink); }
  .wordmark { font-family: var(--serif); font-size: 2.8rem; line-height: 1.1; font-weight: 400; font-style: italic; letter-spacing: -.065em; text-decoration: none; white-space: nowrap; }
  .main-nav { display: flex; align-items: center; gap: 2.5rem; }
  .main-nav a { text-decoration: none; padding: .6rem 0; font-size: .9375rem; }
  .main-nav a[aria-current] { color: var(--accent); box-shadow: 0 1px var(--accent); }
  .eyebrow { font-size: .75rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; line-height: 1.5; }
  .foreword { display: grid; grid-template-columns: 1fr 1fr; gap: 7%; padding: 65px 0 67px; }
  .foreword-copy { padding-top: .35rem; }
  .foreword h1 { margin: 1.5rem 0 1.8rem; }
  .foreword h1 em { color: var(--accent); font-weight: 400; }
  .prose { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.7; }
  .prose p + p { margin-top: 1rem; }
  .foreword-text { max-width: 460px; }
  .foreword .text-link { display: inline-block; margin-top: 1.7rem; }
  .text-link { font-size: .9375rem; text-decoration: none; padding-bottom: .2rem; border-bottom: 1px solid; }
  .text-link span { display: inline-block; margin-left: .8rem; }
  .featured-link { text-decoration: none; display: block; }
  .featured-image { aspect-ratio: 1.17; overflow: hidden; background: var(--soft); }
  .photo-frame { overflow: hidden; background: var(--soft); }
  .photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-position, 50% 50%); transform: scale(var(--photo-zoom, 1)); transform-origin: var(--photo-position, 50% 50%); }
  .featured-caption { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); margin: 1.1rem 0 .55rem; font-size: .8125rem; }
  .featured-recipe h2 { font-size: clamp(1.8rem, 2.4vw, 2.3rem); letter-spacing: -.035em; }
  .sample-label { display: inline-block; color: var(--muted); font-size: .75rem; letter-spacing: .025em; margin-top: .65rem; }
  .home-recipes { padding: 2.5rem 0 3.4rem; border-top: 1px solid var(--line); }
  .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
  .section-heading h2 { margin-top: .55rem; }
  .section-heading > a { flex-shrink: 0; margin-bottom: .3rem; }
  .recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .recipe-card-link { display: block; text-decoration: none; }
  .card-image { aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
  .card-image img { height: 100%; object-fit: cover; transition: transform .35s; }
  .recipe-card-link:hover .card-image img { transform: scale(calc(var(--photo-zoom, 1) * 1.025)); }
  .card-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .75rem; letter-spacing: .035em; color: var(--muted); margin: 1rem 0 .6rem; }
  .recipe-card h2, .recipe-card h3 { font-size: 1.7rem; letter-spacing: -.025em; }
  .recipe-card p { margin-top: .65rem; font-size: .9375rem; color: var(--muted); line-height: 1.55; }
  .recipe-card--text { border-top: 1px solid var(--line); padding-top: .5rem; }
  .browse-strip { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); margin: 0 -2rem 4rem; }
  .browse-strip > a { display: block; text-decoration: none; padding: 1.8rem 2rem 2rem; }
  .browse-strip > a + a { border-left: 1px solid var(--line); }
  .browse-title { display: flex; justify-content: space-between; align-items: center; font-family: var(--serif); font-size: 2.2rem; letter-spacing: -.04em; margin-top: .35rem; }
  .browse-title span { font-family: var(--sans); font-size: 1.6rem; font-weight: 300; }
  .site-footer { border-top: 1px solid var(--ink); display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1.8rem 0 2.4rem; color: var(--muted); font-size: .8125rem; }
  .footer-wordmark { font-family: var(--serif); font-style: italic; letter-spacing: -.05em; font-size: 1.6rem; color: var(--ink); text-decoration: none; }
  .page-heading { padding: 3.5rem 0 2.5rem; }
  .page-heading h1 { margin: .8rem 0 1.2rem; }
  .page-heading > p:last-child { max-width: 620px; color: var(--muted); font-family: var(--serif); font-size: 1.25rem; }
  .collection-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--ink); padding: 1rem 0 1.5rem; color: var(--muted); font-size: .875rem; }
  .collection-page { padding-bottom: 4rem; }
  .taxonomy-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; margin: 0 0 4rem; }
  .taxonomy-link { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.3rem 0; border-top: 1px solid var(--line); text-decoration: none; }
  .taxonomy-link strong { font-family: var(--serif); font-size: 1.65rem; font-weight: 400; }
  .taxonomy-link span { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
  .breadcrumbs { display: flex; flex-wrap: wrap; gap: .7rem; color: var(--muted); font-size: .8125rem; padding-top: 1.75rem; }
  .breadcrumbs a { text-decoration: none; }
  .recipe-intro { display: grid; grid-template-columns: 1.08fr 1fr; gap: 6%; padding: 2.4rem 0 3rem; align-items: start; }
  .recipe-intro h1 { font-size: clamp(2.7rem, 4.5vw, 4.25rem); margin: .75rem 0 1.4rem; }
  .recipe-intro--text { grid-template-columns: 1fr; max-width: 760px; }
  .recipe-blurb { font-size: 1.125rem; }
  .recipe-hero { aspect-ratio: 1; object-fit: cover; margin-top: .4rem; }
  .recipe-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.7rem; }
  .button { display: inline-block; color: var(--paper); background: var(--accent); border: 1px solid var(--accent); padding: .7rem 1.15rem; text-decoration: none; font-size: .875rem; cursor: pointer; }
  .button:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
  .print-button { background: transparent; color: var(--ink); border-color: var(--line); }
  .recipe-facts { display: flex; flex-wrap: wrap; gap: 2.5rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 1.1rem 0; margin: 0; }
  .recipe-facts div { display: flex; gap: .6rem; align-items: baseline; }
  .recipe-facts dt { color: var(--muted); font-size: .8125rem; }
  .recipe-facts dd { margin: 0; font-size: .9375rem; }
  .recipe-body { display: grid; grid-template-columns: 1fr 1.7fr; gap: 7%; padding: 2.5rem 0 3rem; }
  .recipe-body h2 { font-size: 2.25rem; margin-bottom: 1.4rem; }
  .ingredient-group + .ingredient-group { margin-top: 1.7rem; }
  .ingredient-group h3 { font-family: var(--sans); font-size: .875rem; font-weight: 600; letter-spacing: 0; margin-bottom: .65rem; }
  .ingredients { list-style: none; padding: 0; margin: 0; }
  .ingredients li { border-bottom: 1px solid var(--line); }
  .ingredients label { display: flex; align-items: baseline; gap: .75rem; padding: .75rem 0; font-size: 1rem; cursor: pointer; }
  .ingredients input { flex-shrink: 0; margin: 0; width: 1rem; height: 1rem; accent-color: var(--accent); }
  .ingredients input:checked + span { text-decoration: line-through; color: var(--muted); }
  .method { list-style: none; counter-reset: step; padding: 0; margin: 0; }
  .method li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: .8rem; font-family: var(--serif); font-size: 1.1875rem; line-height: 1.7; }
  .method li + li { margin-top: 1.65rem; }
  .method li::before { content: counter(step, decimal-leading-zero); font-size: 1em; color: var(--accent); font-variant-numeric: tabular-nums; }
  .recipe-notes { padding: 1.75rem 2rem 2rem; background: var(--soft); margin: 0 -2rem 2.5rem; }
  .recipe-notes h2 { font-size: 1.9rem; margin-bottom: 1rem; }
  .recipe-notes ul { padding-left: 1.2rem; margin: 0; }
  .recipe-notes li { padding-left: .4rem; }
  .recipe-notes li + li { margin-top: .8rem; }
  .recipe-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding-bottom: 3.5rem; }
  .recipe-tags > span { font-size: .8125rem; margin-right: .5rem; color: var(--muted); }
  .tag { padding: .35rem .8rem; border: 1px solid var(--line); text-decoration: none; font-size: .8125rem; }
  .example-note { color: var(--muted); font-size: .8125rem; margin-top: 1rem; }
  .placeholder-note { color: var(--muted); font-size: .875rem; margin-top: 1.2rem; padding-left: 1rem; border-left: 2px solid var(--accent); }
  .empty-state { padding: 1.5rem 0 3rem; color: var(--muted); }
}
@layer responsive {
  @media (min-width: 1450px) { .site-shell { max-width: 1440px; } }
  @media (max-width: 1000px) { .site-shell { padding: 0 32px; } .foreword { gap: 5%; } .foreword h1 { font-size: 4rem; } .recipe-grid { gap: 1.5rem; } .recipe-card h2, .recipe-card h3 { font-size: 1.5rem; } .recipe-intro { gap: 4%; } }
  @media (max-width: 720px) {
    .site-shell { padding: 0 22px; }
    .site-header { padding: 1.4rem 0 1rem; min-height: auto; flex-direction: column; gap: 1.1rem; }
    .wordmark { font-size: 2.55rem; }
    .main-nav { width: 100%; justify-content: center; gap: 2rem; }
    .main-nav a { padding: .4rem 0; }
    .foreword { grid-template-columns: 1fr; gap: 2.6rem; padding: 2.3rem 0 2.7rem; }
    .foreword h1 { font-size: clamp(3rem, 10.5vw, 4.5rem); margin: 1.1rem 0 1.4rem; }
    .foreword-text { max-width: none; font-size: 1.125rem; }
    .featured-image { aspect-ratio: 4 / 3; }
    .featured-recipe h2 { font-size: 2rem; }
    .section-heading { align-items: start; flex-direction: column; gap: 1rem; }
    .recipe-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.2rem; }
    .recipe-card h2, .recipe-card h3 { font-size: 1.45rem; }
    .card-meta { gap: .3rem; flex-wrap: wrap; }
    .browse-strip { grid-template-columns: 1fr; margin-bottom: 2.5rem; }
    .browse-strip > a { padding: 1.5rem 2rem; }
    .browse-strip > a + a { border-left: 0; border-top: 1px solid var(--line); }
    .site-footer { align-items: baseline; gap: 1rem; }
    .taxonomy-grid { grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
    .taxonomy-link { flex-direction: column; gap: .3rem; }
    .recipe-intro { grid-template-columns: 1fr; gap: 2rem; padding: 1.8rem 0 2rem; }
    .recipe-intro h1 { font-size: 3rem; }
    .recipe-hero { aspect-ratio: 4 / 3; }
    .recipe-body { grid-template-columns: 1fr; gap: 2.4rem; }
    .recipe-notes { padding: 1.5rem 2rem; }
    .page-heading { padding-top: 2.2rem; }
  }
  @media (max-width: 420px) { .recipe-grid { grid-template-columns: 1fr; } .recipe-card h2, .recipe-card h3 { font-size: 1.75rem; } .main-nav { gap: 1.7rem; } .collection-meta { align-items: start; flex-direction: column; } }
  /* Compact phone layout: aim for all ingredients on one screen and the method on the next. */
  @media (max-width: 720px) {
    html { scroll-padding-top: .25rem; }
    [id] { scroll-margin-top: .25rem; }
    body { line-height: 1.45; }
    .site-shell { padding: 0 16px; }
    .site-header { padding: .75rem 0; gap: .2rem; }
    .wordmark { font-size: 1.85rem; }
    .main-nav { gap: 1.4rem; }
    .main-nav a { padding: .15rem 0; font-size: .875rem; }
    .foreword { gap: 1rem; padding: 1rem 0; }
    .foreword-copy { padding-top: 0; }
    .foreword h1 { font-size: 2.4rem; margin: .4rem 0 .75rem; }
    .foreword-text { font-size: 1rem; }
    .foreword .text-link { margin-top: 0; }
    .featured-caption { margin: .45rem 0 .2rem; }
    .featured-recipe h2 { font-size: 1.5rem; }
    .home-recipes { padding: 1.1rem 0 1.4rem; }
    .section-heading { margin-bottom: .8rem; gap: .35rem; }
    .section-heading h2 { font-size: 1.8rem; margin-top: .15rem; }
    .recipe-grid { gap: 1rem .75rem; }
    .card-meta { margin: .4rem 0 .15rem; }
    .recipe-card h2, .recipe-card h3 { font-size: 1.2rem; }
    .recipe-card p { margin-top: .2rem; font-size: .8125rem; line-height: 1.4; }
    .browse-strip { margin: 0 -16px 1rem; }
    .browse-strip > a { padding: .8rem 16px; }
    .browse-title { font-size: 1.6rem; margin-top: .1rem; }
    .site-footer { padding: 1rem 0; }
    .page-heading { padding: 1rem 0 .7rem; }
    .page-heading h1 { font-size: 2.2rem; margin: .3rem 0 .45rem; }
    .page-heading > p:last-child { font-size: 1rem; }
    .collection-meta { padding: .45rem 0 .7rem; }
    .collection-page { padding-bottom: 1.5rem; }
    .taxonomy-grid { margin-bottom: 1.5rem; }
    .taxonomy-link { padding: .55rem 0; }
    .taxonomy-link strong { font-size: 1.25rem; }
    .breadcrumbs { padding-top: .5rem; gap: .35rem; font-size: .75rem; }
    .recipe-intro { gap: .7rem; padding: .5rem 0 .8rem; }
    .recipe-intro h1 { font-size: 2rem; margin: .15rem 0 .35rem; letter-spacing: -.03em; }
    .recipe-blurb { font-size: 1rem; line-height: 1.45; }
    .recipe-actions { margin-top: .6rem; gap: .5rem; }
    .button { padding: .4rem .75rem; }
    .recipe-hero { aspect-ratio: 16 / 9; margin-top: 0; }
    .recipe-facts { gap: .1rem 1.1rem; padding: .4rem 0; }
    .recipe-facts dt, .recipe-facts dd { font-size: .8125rem; }
    .recipe-body { gap: .9rem; padding: .6rem 0 .9rem; }
    .recipe-body h2 { font-size: 1.35rem; margin-bottom: .2rem; }
    .ingredient-group + .ingredient-group { margin-top: .35rem; }
    .ingredient-group h3 { font-size: .6875rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 0; }
    .ingredients li { border-bottom: 0; }
    .ingredients label { align-items: flex-start; gap: .5rem; padding: 0; font-size: .9375rem; line-height: 1.3; }
    .ingredients input { margin-top: .15rem; }
    .method li { grid-template-columns: 1.4rem 1fr; gap: .35rem; font-family: var(--sans); font-size: .9375rem; line-height: 1.4; }
    .method li + li { margin-top: .4rem; }
    .recipe-notes { padding: .7rem 16px; margin: 0 -16px .9rem; }
    .recipe-notes h2 { font-size: 1.2rem; margin-bottom: .25rem; }
    .recipe-notes li { font-size: .9375rem; line-height: 1.4; }
    .recipe-notes li + li { margin-top: .25rem; }
    .recipe-tags { gap: .35rem; padding-bottom: 1.1rem; }
    .tag { padding: .2rem .55rem; }
  }
  @media (max-width: 420px) { .recipe-card h2, .recipe-card h3 { font-size: 1.35rem; } }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
}
@media print {
  @page { margin: 16mm; }
  body { background: white; color: black; font-size: 11pt; }
  .site-shell { max-width: none; padding: 0; }
  .site-header, .site-footer, .skip-link, .breadcrumbs, .recipe-actions, .recipe-hero, .recipe-tags, .recipe-blurb, .example-note, .sample-label { display: none !important; }
  .recipe-intro { display: block; padding: 0 0 1rem; }
  .recipe-intro h1 { font-size: 28pt; margin: .5rem 0; }
  .recipe-body { display: block; padding: 1.5rem 0; }
  .recipe-body > section + section { margin-top: 1.5rem; }
  .recipe-body h2 { font-size: 18pt; }
  .ingredients li { border: 0; }
  .ingredients label { padding: .15rem 0; font-size: 11pt; }
  .ingredients input { display: none; }
  .ingredients input:checked + span { text-decoration: none; color: black; }
  .method li { font-size: 11pt; break-inside: avoid; }
  .method li + li { margin-top: .8rem; }
  .recipe-notes { background: none; border-top: 1px solid #999; padding: 1rem 0 0; margin: 0 0 1rem; }
  .recipe-notes h2 { font-size: 18pt; }
  h2, h3 { break-after: avoid; }
  a { text-decoration: none; }
}
