:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --ink: #28332e;
  --muted: #57635b;
  --line: #d5d7cb;
  --dark: #212d2a;
  --peach: #edb082;
  --accent: #92532f;
  --display: Georgia, 'Times New Roman', serif;
  --body: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #986236; outline-offset: 4px; }
img { display: block; max-width: 100%; object-fit: cover; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; }
p { margin: 0; }
.frame { width: min(100% - 6rem, 1248px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; top: .5rem; left: .5rem; padding: .5rem 1rem; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.page-header, .page-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.page-header { min-height: 80px; }
.wordmark { font: 700 1.45rem/1.15 var(--display); letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.page-header nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.8rem); }
.page-header nav a, .page-footer > a:last-child { font-size: .88rem; font-weight: 600; text-decoration: none; }
.page-header nav a:hover, .page-footer > a:last-child:hover { text-decoration: underline; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(440px, 43vw, 600px); overflow: hidden; background: var(--dark); color: #fffaf2; border-radius: 5px; }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-position: center 53%; }
.hero::after { content: ''; z-index: -1; background: linear-gradient(90deg, #15231fed 0%, #15231faa 35%, #15231f12 67%, transparent 100%); }
.hero-copy { max-width: 53%; padding: clamp(2rem, 6vw, 6rem); padding-right: 0; }
.hero-label { color: #fac6a4; margin-bottom: 1.12rem; font-size: .9rem; font-weight: 650; }
.hero h1 { font-size: clamp(3rem, 6.1vw, 6rem); line-height: .99; letter-spacing: -.065em; text-wrap: balance; }
.hero h1 + p { margin: 1.35rem 0 1.85rem; max-width: 30ch; color: #f5eee5; font-size: clamp(.94rem, 1.35vw, 1.1rem); }
.button { display: inline-flex; gap: 1.25rem; align-items: center; background: var(--peach); color: #242a24; padding: .74rem 1.07rem; border-radius: 3px; text-decoration: none; font-size: .88rem; font-weight: 700; }
.button:hover { background: #f4c19d; }
.hero .button:focus-visible { outline-color: white; }

.recipes { margin-block: clamp(3.4rem, 6vw, 5.8rem); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1.42rem; }
.section-heading h2, .calculator h2, .about h2 { font-size: clamp(2.35rem, 4.7vw, 4rem); letter-spacing: -.052em; }
.section-heading p { color: var(--muted); font-size: .94rem; }
.recipe-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 2rem); margin: 0; padding: 0; }
.recipe-card { min-width: 0; border-bottom: 1px solid var(--line); }
.recipe-card a { display: block; padding-bottom: 1.35rem; text-decoration: none; }
.card-photo { aspect-ratio: 3 / 2; background: #d8d2c4; border-radius: 3px; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; }
.card-photo.filter img { object-position: right 62%; }
.card-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between; margin: .86rem 0 .42rem; color: var(--muted); font-size: .81rem; }
.card-meta span:first-child { color: var(--accent); font-weight: 700; }
.recipe-card h3 { font-size: clamp(1.55rem, 2.88vw, 2.6rem); letter-spacing: -.04em; }
.recipe-card a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .17em; }
.recipe-card p { margin-top: .52rem; color: var(--muted); font-size: .94rem; max-width: 36ch; }

.calculator { background: #e5e9df; display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem 3rem; align-items: center; border-radius: 4px; padding: clamp(1.5rem, 4.8vw, 4.3rem); }
.calculator h2 { max-width: 13ch; }
.calculator-copy p { color: var(--muted); max-width: 39ch; margin-top: .76rem; }
.calculator-form { display: grid; grid-template-columns: 1.25fr .75fr; gap: .95rem; }
.calculator-form label { font-size: .83rem; font-weight: 650; min-width: 0; }
.calculator-form input, .calculator-form select { display: block; width: 100%; min-height: 2.75rem; margin-top: .3rem; border: 1px solid #aeb8a9; border-radius: 3px; background: #fafaf5; color: var(--ink); font: 1rem var(--body); padding: .52rem; }
.calculator-result, .calculator-form noscript { grid-column: 1 / -1; }
.calculator-result { display: flex; gap: .35rem .8rem; flex-wrap: wrap; align-items: baseline; padding-top: .5rem; border-top: 1px solid #c7cec0; color: var(--muted); }
.calculator-result output { color: var(--ink); font: 2.3rem/1.1 var(--display); }
.about { display: grid; grid-template-columns: 1fr 1.7fr; gap: 1rem 3rem; align-items: baseline; margin-block: clamp(3.6rem, 7vw, 6.2rem); }
.about p { max-width: 58ch; color: var(--muted); }
.page-footer { min-height: 105px; border-top: 1px solid var(--line); color: var(--muted); }
.page-footer p { font-size: .86rem; }

.article { margin-top: 1.3rem; }
.back-link { display: inline-block; margin-bottom: 1.25rem; color: var(--accent); font-weight: 650; }
.article-header { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem 4rem; }
.article-method { color: var(--accent); font-weight: 650; margin-bottom: .65rem; }
.article h1, .not-found h1 { font-size: clamp(3rem, 6vw, 6rem); letter-spacing: -.065em; }
.article h1 + p { color: var(--muted); margin-top: 1rem; max-width: 55ch; }
.article-image { width: 100%; height: auto; border-radius: 3px; aspect-ratio: 3 / 2; }
.ingredients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem 1rem; margin: 2.5rem 0; padding: 1.15rem 0; border-block: 1px solid var(--line); }
.ingredients dt { color: var(--muted); font-size: .86rem; }
.ingredients dd { margin: .15rem 0 0; font: clamp(1.15rem, 2.8vw, 2.2rem)/1.15 var(--display); }
.article-body, .related { max-width: 43rem; margin: 0 auto 3.7rem; }
.article-body h2, .related h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: -.045em; }
.steps { padding-inline-start: 1.55rem; }
.steps li { padding-inline-start: .35rem; margin-top: 1.45rem; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.steps h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.tip { background: #e5e9df; margin-top: 2rem; padding: 1.6rem; border-radius: 3px; }
.tip h2 { font-size: 1.55rem; margin-bottom: .45rem; }
.related ul { padding-left: 1.3rem; }
.related a { color: var(--accent); font-weight: 650; }
.not-found { padding-block: 3rem 5rem; }
.not-found p { margin-block: 1rem 1.4rem; }

@media (max-width: 850px) {
  .frame { width: calc(100% - 3rem); }
  .hero-copy { max-width: 63%; }
  .calculator { grid-template-columns: 1fr; }
  .calculator h2 { max-width: none; }
  .article-header { gap: 1.3rem; }
}
@media (max-width: 580px) {
  .frame { width: calc(100% - 2rem); }
  .page-header { flex-wrap: wrap; min-height: 0; padding-block: .95rem .85rem; gap: .6rem 1rem; }
  .page-header nav { gap: 1rem; }
  .page-header nav a { font-size: .81rem; }
  .hero { align-items: end; min-height: 520px; }
  .hero-image { object-position: 68% 50%; }
  .hero::after { background: linear-gradient(0deg, #15231ff5 0%, #15231fc6 40%, #15231f0e 83%); }
  .hero-copy { max-width: 100%; padding: 1.4rem; }
  .hero h1 { font-size: clamp(2.65rem, 10.6vw, 4rem); }
  .hero h1 + p { margin-block: .85rem 1.1rem; }
  .recipe-list { grid-template-columns: 1fr; gap: 1.5rem; }
  .recipe-card h3 { font-size: 2.05rem; }
  .about, .article-header { grid-template-columns: 1fr; }
  .page-footer { flex-wrap: wrap; justify-content: start; padding-block: 1.25rem; gap: .5rem 1rem; }
  .page-footer p { order: 3; flex-basis: 100%; }
}

[hidden] { display: none !important; }
.kitchen-hero .hero-copy { padding-bottom: clamp(3.6rem, 6vw, 6rem); }
.kitchen-hero .hero-image { object-position: center 53%; }
.kitchen-hero::after { background: linear-gradient(90deg, #1f221ced, #1f221c86 37%, transparent 70%); }
.hero-credit { position: absolute; right: 1rem; bottom: 1rem; font-size: .8rem; color: #fffaf2; background: #222820e8; padding: .35rem .63rem; border-radius: 3px; }
.kitchen-catalog { margin-block: clamp(3rem, 6vw, 6rem); }
.catalog-nav ul { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; list-style: none; padding: 0 0 .9rem; margin: 0 0 1.4rem; border-bottom: 1px solid var(--line); }
.catalog-nav a { color: var(--accent); font-size: .91rem; font-weight: 650; text-decoration-thickness: 1px; }
.catalog-filters { display: grid; grid-template-columns: 1.5fr 1fr; gap: .8rem 1.25rem; padding: 1.05rem 1.25rem; background: #e5e9df; border-radius: 4px; }
.catalog-filters label { font-size: .86rem; font-weight: 650; }
.catalog-filters input, .catalog-filters select { display: block; width: 100%; min-height: 2.75rem; margin-top: .32rem; padding: .5rem .7rem; border: 1px solid #aeb8a9; border-radius: 3px; background: #fafaf5; color: var(--ink); font: 1rem var(--body); }
.catalog-status, .catalog-empty { margin-top: .75rem; color: var(--muted); }
.catalog-group { margin-top: clamp(1.85rem, 4vw, 3.5rem); scroll-margin-top: 1rem; }
.catalog-group h3 { font-size: clamp(1.85rem, 3.2vw, 3rem); letter-spacing: -.034em; margin-bottom: .8rem; }
.catalog-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.65rem; margin: 0; padding: 0; }
.catalog-card { border-top: 1px solid var(--line); }
.catalog-card a { display: flex; flex-direction: column; height: 100%; padding: 1rem .24rem 1.2rem; text-decoration: none; }
.catalog-card a:hover h4 { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.catalog-card h4 { font: 400 clamp(1.3rem, 2.2vw, 1.75rem)/1.12 var(--display); letter-spacing: -.025em; margin: 0; }
.catalog-card p { margin: .43rem 0 .65rem; color: var(--muted); font-size: .91rem; max-width: 44ch; }
.cook-time { margin-top: auto; color: var(--accent); font-size: .81rem; font-weight: 650; }
.coffee-promo { display: grid; grid-template-columns: 1fr 1.25fr; background: var(--dark); color: var(--paper); border-radius: 4px; overflow: hidden; margin-bottom: clamp(3rem, 6vw, 5rem); }
.coffee-promo img { width: 100%; height: 100%; max-height: 22rem; object-position: 66% 50%; }
.coffee-promo div { padding: clamp(1.45rem, 4vw, 3.2rem); align-self: center; }
.coffee-promo h2 { font-size: clamp(2.1rem, 4vw, 3.7rem); letter-spacing: -.042em; }
.coffee-promo p { margin: .7rem 0 1.1rem; max-width: 45ch; }
.coffee-promo a:focus-visible { outline-color: white; }
.dish-page { max-width: 1050px; margin-block: 1.3rem 4rem; }
.dish-heading { padding-block: 1rem 1.5rem; }
.dish-heading h1 { max-width: 23ch; font-size: clamp(2.65rem, 6.1vw, 5.5rem); letter-spacing: -.047em; }
.dish-heading > p { max-width: 62ch; color: var(--muted); margin-top: .85rem; }
.dish-meta { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: 1.25rem 0 0; }
.dish-meta dt { color: var(--muted); font-size: .82rem; }
.dish-meta dd { margin: .12rem 0 0; font-weight: 650; }
.dish-photo { border-radius: 4px; width: 100%; height: auto; aspect-ratio: 2.35; object-position: center 58%; margin-bottom: 1.25rem; }
.dish-columns { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); gap: clamp(1.8rem, 4vw, 4rem); border-top: 1px solid var(--line); padding-top: 1.8rem; }
.dish-columns h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.042em; }
.dish-ingredients { background: #e5e9df; padding: 1.2rem clamp(1rem, 3vw, 2rem); align-self: start; border-radius: 4px; }
.dish-ingredients ul { list-style: none; padding: 0; margin-bottom: .2rem; }
.dish-ingredients li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .55rem 0; border-top: 1px solid #c8cec1; }
.dish-ingredients strong { font-size: .91rem; font-weight: 650; }
.dish-instructions .steps li { margin-top: .9rem; }
.dish-instructions .tip h2 { font-size: 1.55rem; }
.recipe-source { font-size: .9rem; color: var(--muted); margin-top: 1.35rem; }
.recipe-source a { color: var(--accent); }
.dish-page .related { max-width: none; margin: 2.5rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.dish-page .related ul { display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; list-style: none; padding-left: 0; }

@media (max-width: 850px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .kitchen-hero .hero-image { object-position: 68% 45%; }
  .kitchen-hero::after { background: linear-gradient(0deg, #1f221cf5, #1f221c9e 45%, transparent 85%); }
  .hero-credit { right: .7rem; bottom: .6rem; }
  .catalog-grid, .catalog-filters, .coffee-promo, .dish-columns { grid-template-columns: 1fr; }
  .coffee-promo img { aspect-ratio: 2.2; height: auto; }
  .dish-photo { aspect-ratio: 1.55; }
}
