:root {
  color-scheme: light;
  --paper: #fbf8f2;
  --cream: #f1e5d7;
  --white: #fffdf9;
  --ink: #32241e;
  --muted: #69564c;
  --accent: #93442e;
  --accent-dark: #73331f;
  --line: #e5d8ca;
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--body); }
body, main { min-width: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
button, input { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 10px 16px; background: var(--white); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 79px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.wordmark { width: fit-content; font: 400 2rem/1 var(--display); letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.wordmark em { color: var(--accent); font-weight: 400; }
.main-nav, .footer-inner nav { display: flex; align-items: center; gap: 32px; }
.main-nav a, .channel-link, .footer-inner nav a { font-size: .92rem; font-weight: 600; text-decoration: none; }
.main-nav a { position: relative; padding-block: 12px; }
.main-nav a[aria-current], .main-nav a:hover, .footer-inner nav a:hover { color: var(--accent); }
.main-nav a[aria-current]::after { position: absolute; inset: auto 0 6px; height: 1px; background: currentColor; content: ''; }
.channel-link { justify-self: end; padding: 7px 13px; border: 1px solid var(--line); border-radius: 4px; }
.channel-link:hover { color: var(--accent); border-color: var(--accent); }
.channel-link span { margin-left: .3em; }

.home-wrap { padding-block: 38px 78px; }
.hero { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); background: var(--cream); border-radius: 8px; }
.hero-intro { padding: clamp(30px, 5.1vw, 74px); padding-right: clamp(20px, 3.2vw, 46px); align-self: center; }
.eyebrow { margin-bottom: 18px; color: var(--accent); font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .17em; }
.hero h1 { font-size: clamp(2.75rem, 5.4vw, 5.15rem); line-height: .99; letter-spacing: -.074em; text-wrap: initial; }
.hero h1 em { display: block; color: var(--accent); font-weight: 400; letter-spacing: -.07em; }
.hero-lede { max-width: 24rem; margin-block: 23px 28px; color: var(--muted); font-size: 1.02rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 12px 17px;
  border-radius: 4px;
  color: #fffdf9;
  background: var(--accent);
  font-size: .93rem;
  font-weight: 650;
  text-decoration: none;
}
.button:hover { background: var(--accent-dark); }
.hero-portrait { position: relative; min-height: 435px; overflow: hidden; border-radius: 0 8px 8px 0; }
.hero-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% center; }

.recent { margin-top: 49px; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 19px; }
.section-header h2, .recipe-details h2 { font-size: clamp(1.7rem, 3.25vw, 2.8rem); line-height: 1.12; letter-spacing: -.054em; }
.text-link { width: fit-content; display: inline-flex; align-items: baseline; gap: .45em; color: var(--accent); font-size: .92rem; font-weight: 650; text-decoration: none; }
.text-link:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: .2em; }
.section-header .text-link { white-space: nowrap; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.recipe-card { min-width: 0; }
.card-link { display: flex; height: 100%; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; background: var(--white); text-decoration: none; }
.card-link:hover { border-color: var(--accent); }
.card-image { display: grid; aspect-ratio: 1.68; overflow: hidden; border-radius: 5px 5px 0 0; background: var(--cream); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease-out; }
.card-link:hover .card-image img { transform: scale(1.035); }
.card-copy { padding: 16px 17px 19px; }
.card-copy time, .recipe-header time { color: var(--muted); font-size: .83rem; }
.card-title { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin-top: 5px; }
.card-title h3 { font-size: clamp(1.15rem, 2vw, 1.49rem); line-height: 1.2; letter-spacing: -.028em; overflow-wrap: anywhere; text-wrap: initial; }
.card-title > span { color: var(--accent); line-height: 1.3; }
.no-cover { display: grid; min-height: 125px; place-items: center; padding: 18px; color: var(--muted); background: var(--cream); font-size: .92rem; }

.catalogue-wrap { padding-block: 47px 75px; }
.catalogue-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.catalogue-header h1, .error-page h1 { font-size: clamp(3.15rem, 6vw, 5.15rem); line-height: 1.02; letter-spacing: -.072em; }
.catalogue-header p, .error-page p { margin-top: 10px; color: var(--muted); }
.course-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.course-nav a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--accent); background: var(--white); font-size: .88rem; font-weight: 650; text-decoration: none; }
.course-nav a:hover { border-color: var(--accent); }
.course-module { scroll-margin-top: 24px; }
.course-module + .course-module { margin-top: 35px; padding-top: 26px; border-top: 1px solid var(--line); }
.search-form { width: min(100%, 350px); flex: 0 1 350px; }
.search-form label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 650; }
.search-input { position: relative; }
.search-input::before { position: absolute; top: 15px; left: 15px; width: 12px; height: 12px; border: 1.6px solid var(--accent); border-radius: 50%; content: ''; pointer-events: none; }
.search-input::after { position: absolute; top: 26px; left: 25px; width: 6px; height: 1.6px; background: var(--accent); transform: rotate(45deg); content: ''; pointer-events: none; }
.search-input input { width: 100%; min-height: 46px; padding: 8px 12px 8px 39px; border: 1px solid #cdb9a8; border-radius: 4px; color: var(--ink); background: var(--white); }
.search-input input::placeholder { color: var(--muted); opacity: 1; }
.search-status { margin-block: 20px 11px; color: var(--muted); }
.search-results { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.search-results a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font: 1.22rem/1.4 var(--display); text-decoration: none; }
.search-results a:hover { color: var(--accent); text-decoration: underline; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; max-width: 530px; margin: 39px auto 0; color: var(--muted); font-size: .89rem; text-align: center; }
.pagination a { width: fit-content; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--accent); background: var(--white); font-weight: 650; text-decoration: none; }
.pagination a:hover { border-color: var(--accent); }
.pagination a:last-child { justify-self: end; }

.recipe-wrap { max-width: 1020px; padding-block: 28px 80px; }
.recipe-header { max-width: 840px; margin: 28px auto 25px; text-align: center; }
.recipe-header h1 { margin-block: 8px 13px; font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1.07; letter-spacing: -.059em; overflow-wrap: anywhere; }
.recipe-cover { overflow: hidden; border-radius: 8px; background: var(--cream); }
.recipe-cover img { width: 100%; height: auto; max-height: 610px; object-fit: cover; }
.recipe-details { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 55px); margin-top: 40px; }
.recipe-details:has(> :only-child) { grid-template-columns: minmax(0, 680px); }
.recipe-details h2 { margin-bottom: 14px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.recipe-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.67; }
.recipe-video { align-self: start; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); scroll-margin-top: 24px; }
.recipe-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin-bottom: 11px; border: 0; border-radius: 4px; background: var(--cream); }
.error-page { padding-block: 70px; }
.error-page .button { margin-top: 22px; }

.site-footer { border-top: 1px solid var(--line); background: #f5ede2; }
.footer-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 22px; }
.footer-inner .wordmark { font-size: 1.75rem; }

@media (max-width: 1060px) {
  .wrap { width: calc(100% - 64px); }
  .hero-portrait { min-height: 390px; }
  .recipe-grid { gap: 18px; }
}

@media (max-width: 900px) {
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-intro { padding: 30px; }
  .hero-portrait { min-height: 355px; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 2px 12px; padding-top: 12px; }
  .wordmark { font-size: 1.57rem; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 0 14px; }
  .channel-link { grid-column: 2; grid-row: 1; padding: 5px 7px; }
  .home-wrap { padding-block: 19px 52px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-intro { padding: 28px 24px 30px; }
  .hero h1 { font-size: clamp(3rem, 9vw, 4.6rem); }
  .eyebrow { margin-bottom: 12px; }
  .hero-lede { margin-block: 17px 21px; }
  .hero-portrait { min-height: 0; aspect-ratio: 1.52; border-radius: 0 0 8px 8px; }
  .recent { margin-top: 34px; }
  .catalogue-wrap { padding-block: 29px 49px; }
  .catalogue-header { display: grid; align-items: initial; gap: 19px; margin-bottom: 21px; }
  .recipe-wrap { padding-block: 19px 51px; }
  .recipe-header { margin-block: 21px; }
  .recipe-cover img { max-height: none; }
  .recipe-details { grid-template-columns: minmax(0, 1fr); margin-top: 25px; }
  .footer-inner { min-height: 0; align-items: start; flex-direction: column; gap: 13px; }
  .footer-inner nav { flex-wrap: wrap; gap: 9px 19px; }
}

@media (max-width: 540px) {
  .recipe-grid { grid-template-columns: minmax(0, 1fr); }
  .main-nav a, .channel-link { font-size: .8rem; }
  .card-copy { padding: 13px 14px 15px; }
  .card-title h3 { font-size: 1.35rem; }
}

@media (max-width: 360px) {
  .wordmark { font-size: 1.32rem; }
  .main-nav { column-gap: 9px; }
  .channel-link span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .card-image img { transition: none; }
}


.recipe-text--markdown { white-space: normal; }
.recipe-text--markdown > * + * { margin-block-start: .8em; }
.recipe-text--markdown :is(h3,h4) { margin-block-start: 1.15em; line-height: 1.25; }
.recipe-text--markdown h3 { font-size: 1.3rem; }
.recipe-text--markdown h4 { font-size: 1.08rem; font-weight: 650; }
.recipe-text--markdown :is(ol,ul) { padding-inline-start: 1.7em; margin-block-end: 0; }
.recipe-text--markdown li + li { margin-block-start: .22em; }
.recipe-text--markdown li > p + p { margin-block-start: .55em; }
.recipe-text--markdown a { color: var(--accent-dark); text-underline-offset: .16em; }
.recipe-text--markdown strong { font-weight: 700; }
.recipe-text--markdown hr { border: 0; border-top: 1px solid var(--line); }

.christmas-section { padding: clamp(18px, 3vw, 36px); border: 1px solid #d6e0d3; border-radius: 8px; background: #eef2ea; }
.christmas-section h2 { color: #2e4939; }
.christmas-section .text-link { color: #365c48; }
.christmas-section .text-link:hover { color: #233d30; }
@media (max-width: 540px) {
  .christmas-section .section-header { align-items: flex-start; flex-direction: column; gap: .35rem; }
}
