:root {
  color-scheme: light;
  --paper: #fcf7ed;
  --cream: #fffaf1;
  --ink: #34231f;
  --muted: #6b5148;
  --berry: #851e36;
  --line: #e4d2c5;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--berry); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #9e3849; outline-offset: 4px; }
figure, h1, h2, h3, p { margin: 0; }

.frame { max-width: 1180px; margin-inline: auto; width: calc(100% - 96px); }
.site-header, .site-footer { border-block: 1px solid var(--line); }
.site-header { border-top: 0; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 73px; }
.brand { font: bold 1.63rem/1 var(--serif); letter-spacing: -.055em; text-decoration: none; color: var(--ink); }
.brand span { color: var(--berry); }
nav { display: flex; gap: clamp(1rem, 4vw, 2.5rem); }
nav a { color: var(--ink); text-decoration: none; font-size: .93rem; }
nav a:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(2.5rem, 5vw, 4.6rem) 0; }
.hero-copy { padding-block: .7rem; }
.kicker { margin-bottom: .95rem; color: var(--berry); font-size: .77rem; font-weight: 700; letter-spacing: .14em; }
h1 { font: 400 clamp(2.65rem, 5.9vw, 5.15rem)/.98 var(--serif); letter-spacing: -.063em; }
h1 em { display: block; color: var(--berry); font-weight: 400; }
.intro { color: var(--muted); max-width: 33ch; margin: 1.5rem 0 1.55rem; }
.primary { display: inline-flex; align-items: center; min-height: 46px; padding: .62rem 1.2rem; border: 1px solid var(--berry); border-radius: 2px; color: white; background: var(--berry); font-weight: 650; text-decoration: none; }
.primary:hover { background: #611226; }
.hero-figure { position: relative; align-self: stretch; min-height: 315px; }
.hero-figure img { display: block; width: 100%; height: 100%; min-height: 315px; max-height: 455px; object-fit: cover; object-position: 52% 53%; }
.hero-figure figcaption { position: absolute; inset: auto 0 0 auto; padding: .55rem .9rem; background: var(--cream); color: var(--ink); font-size: .875rem; }

.catalog { padding: 2rem 0 3.5rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.4rem; }
h2 { font: 400 clamp(2rem, 4.2vw, 3.45rem)/1 var(--serif); letter-spacing: -.045em; }
.filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.filters button { min-height: 42px; padding: .38rem .8rem; border: 1px solid #ccb8ac; border-radius: 2px; background: transparent; color: var(--ink); font-size: .875rem; }
.filters button:hover { border-color: var(--berry); }
.filters button[aria-pressed='true'] { background: #f3dce1; border-color: #d5a4b2; color: #6b1730; }
.recipes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
.recipe { overflow: hidden; background: var(--cream); border: 1px solid var(--line); }
.recipe img { display: block; width: 100%; height: auto; aspect-ratio: 1.62; object-fit: cover; }
.recipe-body { padding: 1.15rem 1rem 1.25rem; }
.meta { font-size: .82rem; font-weight: 650; color: var(--berry); }
h3 { margin: .42rem 0 .58rem; font: 400 clamp(1.28rem, 2.35vw, 1.78rem)/1.11 var(--serif); letter-spacing: -.035em; }
.recipe-body > p:not(.meta) { min-height: 3.15em; color: var(--muted); }
.recipe details { border-top: 1px solid var(--line); margin-top: 1rem; padding: .85rem 0; }
summary { cursor: pointer; }
.recipe details summary { font-weight: 600; }
details[open] > summary { margin-bottom: .6rem; }
details ol { padding-inline-start: 1.3rem; }
details li + li { margin-top: .38rem; }
.watch { display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; font-weight: 650; }
.watch span { font-size: .7em; }

.site-footer { border-bottom: 0; background: #f6ecdf; }
.footer-inner { align-items: flex-start; padding-block: 1.4rem; font-size: .95rem; }
.footer-inner details { max-width: 550px; }
.footer-inner p + p { margin-top: .6rem; }

dialog { width: min(900px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 1.1rem; border: 1px solid var(--line); background: var(--cream); color: var(--ink); }
dialog::backdrop { background: #2d141ac7; }
.dialog-heading, .video-credit { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.dialog-heading h2 { font-size: clamp(1.3rem, 4vw, 2rem); }
.close { min-width: 42px; min-height: 42px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 1.4rem; }
.player { aspect-ratio: 16 / 9; background: #2f211e; margin: .9rem 0; }
.player iframe { width: 100%; height: 100%; border: 0; }
.video-credit { font-size: .88rem; flex-wrap: wrap; }
.credit-page { padding-block: 3rem; }
.credit-page ul { display: grid; gap: 1rem; padding-left: 1.3rem; }

@media (max-width: 940px) {
  .frame { width: calc(100% - 56px); }
  .recipes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .frame { width: calc(100% - 36px); }
  .hero { grid-template-columns: 1fr; padding-top: 1.6rem; gap: 1.2rem; }
  .hero-copy { padding-top: 0; }
  .hero-figure, .hero-figure img { min-height: 0; }
  .hero-figure img { height: auto; aspect-ratio: 1.35; }
  .intro { margin: 1rem 0 1.25rem; }
  .catalog-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 485px) {
  .header-inner { min-height: 61px; gap: .7rem; }
  nav { gap: .75rem; }
  nav a { font-size: .86rem; }
  .brand { font-size: 1.4rem; }
  .recipes { grid-template-columns: 1fr; }
  .recipe-body > p:not(.meta) { min-height: initial; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
