[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--basil); outline-offset: 4px; }
.recipes-intro { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3rem; padding: 3rem 0 2rem; }
.recipes-intro h1 { font-size: clamp(3.6rem, 7vw, 6.3rem); margin-bottom: .6rem; }
.recipes-intro-copy { max-width: 31rem; padding-top: 1.2rem; }
.recipes-intro-copy > p:first-child { font: 1.8rem/1.35 Georgia, serif; }
.recipes-intro-copy > p { color: var(--muted); }
.primary-recipes, .recipe-library { padding-top: 2.5rem; scroll-margin-top: 1rem; }
.primary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.primary-card { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.5rem); text-decoration: none; min-height: 295px; position: relative; }
.primary-card .eyebrow { margin: 0 0 1.25rem; color: inherit; }
.primary-card h3 { font-size: clamp(2rem, 3.5vw, 2.9rem); margin-bottom: .7rem; }
.primary-card p { margin: 0 0 1.7rem; }
.primary-card-link { margin-top: auto; padding-top: 1rem; border-top: 1px solid currentColor; font-weight: 650; display: flex; justify-content: space-between; }
.primary-dough { background: #eee6d6; color: var(--ink); }
.primary-sauce { background: var(--tomato); color: var(--paper); }
.primary-sauce:hover { color: white; background: #8e211a; }
.primary-card:hover h3 { text-decoration: underline; text-underline-offset: .12em; }
.recipe-library { padding-top: 4rem; }
.recipe-controls { padding-bottom: 1.5rem; }
.recipe-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.recipe-filters button, .recipe-empty button, .recipe-actions button { padding: .65rem 1rem; background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 3px; min-height: 44px; }
.recipe-filters button[aria-pressed="true"] { background: var(--basil); border-color: var(--basil); color: white; }
.recipe-filters button span { margin-left: .5rem; opacity: .8; font-size: .85rem; }
.recipe-filters button:hover, .recipe-actions button:hover, .recipe-empty button:hover { border-color: var(--basil); }
.recipe-search { max-width: 34rem; }
.recipe-search label { display: block; font-size: .9rem; margin-bottom: .4rem; font-weight: 600; }
.recipe-search input { width: 100%; padding: .8rem 1rem; border: 1px solid #8a8679; background: #fff; color: var(--ink); border-radius: 3px; }
#recipe-count { margin: .8rem 0 0; font-size: .9rem; color: var(--muted); }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.recipe-card { border: 1px solid var(--line); border-top: 4px solid #a58653; background: #fff; min-width: 0; }
.recipe-card.recipe-sauce { border-top-color: var(--tomato); }
.recipe-card.recipe-pizza { border-top-color: var(--basil); }
.recipe-card > a { display: flex; flex-direction: column; height: 100%; padding: 1.4rem; text-decoration: none; }
.recipe-card > a:hover { color: var(--ink); background: #faf8f1; }
.recipe-card > a:hover h3 { text-decoration: underline; }
.recipe-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-height: 1.7rem; margin-bottom: 1.2rem; }
.recipe-card-top .eyebrow { font-size: .72rem; }
.primary-tag { font-size: .72rem; background: #f6ecda; color: #685129; padding: .15rem .5rem; }
.recipe-card h3 { font-size: 1.65rem; }
.recipe-card p { margin: 0 0 1rem; color: var(--muted); font-size: .96rem; }
.recipe-card .recipe-card-time { margin-top: auto; padding-top: 1rem; font-size: .82rem; }
.recipe-card .read-story { margin-top: 0; padding-top: .9rem; border-top: 1px solid var(--line); }
.recipe-empty { padding: 2rem; background: #f2efe6; }
.recipe-library-note { margin-top: 2.5rem; padding: 1rem 0; max-width: 850px; color: var(--muted); font-size: .9rem; }
.recipe-page { padding: 1.5rem 0 0; }
.recipe-heading { max-width: 850px; }
.recipe-heading .eyebrow { margin: 1.3rem 0 0; }
.recipe-heading h1 { max-width: 22ch; }
.recipe-description { font: 1.35rem/1.6 Georgia, serif; max-width: 42rem; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 1rem 3rem; border-top: 1px solid var(--line); padding-top: 1.3rem; margin: 1.5rem 0 0; }
.recipe-facts dt { color: var(--basil); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.recipe-facts dd { margin: .35rem 0 0; }
.recipe-actions { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin: 1.7rem 0 2.3rem; font-size: .95rem; }
.recipe-actions > a { padding: .6rem 0; color: var(--tomato); }
.recipe-layout { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.recipe-ingredients { background: #f1ecdf; padding: 1.8rem; scroll-margin-top: 1rem; }
.recipe-layout h2, .recipe-related h2 { font-size: 2rem; line-height: 1.2; margin: 0 0 1.3rem; font-weight: 400; }
.recipe-ingredients h3 { font: 650 .83rem/1.5 system-ui, sans-serif; margin: 1.7rem 0 .7rem; color: var(--basil); }
.recipe-ingredients ul { list-style: none; padding: 0; margin: 0; }
.recipe-ingredients li { padding: .75rem 0; border-bottom: 1px solid #d7d0c1; }
.recipe-ingredients li:last-child { border-bottom: 0; }
.oven-note { border-left: 4px solid var(--tomato); background: #f7f3eb; padding: 1.2rem 1.5rem; margin-bottom: 2rem; }
.oven-note .eyebrow { margin: 0 0 .5rem; }
.oven-note h2 { font-size: 1.4rem; margin: 0; }
.oven-note p:last-child { margin: .75rem 0 0; font-size: .96rem; }
.recipe-method ol { list-style: none; counter-reset: recipe-step; padding: 0; margin: 0; }
.recipe-method li { counter-increment: recipe-step; position: relative; padding: 0 0 1.25rem 3.1rem; }
.recipe-method li::before { content: counter(recipe-step, decimal-leading-zero); position: absolute; left: 0; top: 0; font: 1.25rem/1.6 Georgia, serif; color: var(--tomato); }
.recipe-method li p { margin: 0; font-size: 1.08rem; line-height: 1.75; }
.recipe-notes { font-size: .95rem; color: var(--muted); }
.recipe-credit { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; color: var(--muted); font-size: .9rem; }
.recipe-credit p { margin: .5rem 0; }
.recipe-credit a { color: var(--tomato); }
.recipe-related { padding: 2.5rem 0 1rem; }
.recipe-related > div { display: flex; flex-wrap: wrap; gap: .8rem; }
.recipe-related a { padding: .8rem 1rem; border: 1px solid var(--line); text-decoration: none; }
.recipe-related a:hover { border-color: var(--tomato); }
@media (max-width: 800px) {
  .recipes-intro { gap: 1.5rem; }
  .recipes-intro-copy > p:first-child { font-size: 1.4rem; }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recipe-layout { grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr); gap: 1.5rem; }
  .recipe-ingredients { padding: 1.2rem; }
}
@media (max-width: 600px) {
  .recipes-intro, .primary-grid, .recipe-grid, .recipe-layout { grid-template-columns: 1fr; }
  .recipes-intro { gap: 0; padding: 1.5rem 0 0; }
  .recipes-intro h1 { font-size: 3.7rem; }
  .recipes-intro-copy { padding-top: 0; }
  .primary-card { min-height: 275px; }
  .recipe-library { padding-top: 3rem; }
  .recipe-card > a { padding: 1.3rem; }
  .recipe-facts { gap: 1.2rem; }
  .recipe-facts > div { width: 100%; }
  .recipe-heading h1 { font-size: 2.65rem; }
  .recipe-description { font-size: 1.2rem; }
  .recipe-ingredients { padding: 1.5rem; }
  .recipe-method li { padding-left: 2.5rem; }
}
@media print {
  .recipe-actions, .recipe-related, .recipe-controls, .recipe-library-note { display: none !important; }
  .recipe-page { padding: 0; }
  .recipe-heading h1 { font-size: 26pt; margin: .5rem 0; }
  .recipe-heading .eyebrow { margin: .5rem 0; }
  .recipe-description { font-size: 11pt; }
  .recipe-facts { padding-top: .5rem; margin: .5rem 0 1rem; }
  .recipe-layout { grid-template-columns: 1fr 1.7fr; gap: 1.3rem; font-size: 10pt; }
  .recipe-layout h2 { font-size: 16pt; margin-bottom: .6rem; }
  .recipe-ingredients { padding: .8rem; border: 1px solid #aaa; background: transparent; }
  .recipe-ingredients h3 { margin-top: .5rem; }
  .recipe-ingredients li { padding: .3rem 0; }
  .oven-note { padding: .5rem .8rem; margin-bottom: .8rem; background: transparent; }
  .oven-note p:last-child, .recipe-method li p, .recipe-notes, .recipe-credit { font-size: 10pt; }
  .recipe-method li { break-inside: avoid; padding-bottom: .6rem; padding-left: 2rem; }
  .recipe-credit { margin-top: .7rem; padding-top: .5rem; }
  .recipe-credit a::after { content: " (" attr(href) ")"; font-size: 8pt; overflow-wrap: anywhere; }
  footer { margin-top: 1rem; padding: .5rem 0; font-size: 9pt; }
}
