:root {
  --navy: #182b35;
  --sea-glass: #dde9e6;
  --cream: #faf6ee;
  --copper: #c56b48;
  --ink: #182b35;
  --muted: #40545a;
  --space: clamp(1.25rem, 3vw, 2rem);
  --width: 72rem;
  --reading-width: 46rem;
  --body: 1.05rem;
}
* { box-sizing: border-box; }
html { color: var(--ink); background: var(--cream); font-family: system-ui, sans-serif; font-size: 100%; }
body { margin: 0; line-height: 1.65; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, input:focus-visible { outline: .2rem solid var(--copper); outline-offset: .2rem; }
[hidden] { display: none !important; }
.container { width: min(100% - 2 * var(--space), var(--width)); margin-inline: auto; }
.skip-link { position: absolute; top: -10rem; left: 1rem; background: var(--cream); padding: .5rem; z-index: 3; }
.skip-link:focus { top: 1rem; }
.site-header { --logo-height: 64px; background: var(--navy); color: var(--cream); }
.header-inner, .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.25rem; }
.brand { min-width: 0; }
.site-logo img { display: block; height: var(--logo-height); width: auto; }
.footer-name { font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700; text-decoration: none; }
/* The name's T starts at x=195.86015625 in the 164-unit-high logo. */
.site-byline { margin: 0 0 0 calc(var(--logo-height) * 195.86015625 / 164); font-size: .9rem; }
.site-byline a { font-weight: 700; }
.site-header nav a, .site-header .site-byline a { text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible,
.site-header .site-byline a:hover, .site-header .site-byline a:focus-visible { text-decoration: underline; }
nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
main { min-height: 55vh; padding-bottom: 5rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }
.eyebrow, .card-label { color: #85442d; font-size: .75rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.hero {
  background-color: var(--sea-glass);
  background-image:
    linear-gradient(to right, rgb(250 246 238 / 98%) 0%, rgb(250 246 238 / 96%) 44%,
      rgb(250 246 238 / 72%) 66%, rgb(250 246 238 / 8%) 100%),
    var(--hero-image, none);
  background-position: center, 64% center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0 calc(-1 * var(--space));
  padding: clamp(4rem, 10vw, 8rem) var(--space);
}
.hero h1 { margin-bottom: 1rem; }
.hero-subtitle { font-family: Georgia, serif; font-size: clamp(1.2rem, 3vw, 1.7rem); max-width: 35rem; }
.hero-author a { font-weight: 700; }
.hero-author a, .site-footer a { text-decoration: none; }
.hero-author a:hover, .hero-author a:focus-visible,
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; }
.button { display: inline-block; background: var(--navy); color: var(--cream); padding: .8rem 1.2rem; text-decoration: none; font-weight: 650; }
.section { margin-top: clamp(3rem, 7vw, 5rem); }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.page-heading, .recipe-heading { padding-top: clamp(3rem, 8vw, 6rem); }
.page-heading h1, .recipe-heading h1 { max-width: 18ch; }
.profile-portrait { display: block; width: auto; height: auto; max-width: 100%; max-height: min(65svh, 42rem); object-fit: contain; object-position: center; margin-block: 1.5rem; }
.intro { font-size: 1.2rem; }
.collection-grid, .recipe-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.collection-grid a { display: flex; justify-content: space-between; gap: 1rem; background: var(--sea-glass); padding: 1.3rem; text-decoration: none; font-weight: 700; }
.recipe-card { display: flex; flex-direction: column; min-height: 12rem; gap: .7rem; border: 1px solid #aebdb9; padding: 1.5rem; text-decoration: none; }
.recipe-card-image { display: block; width: calc(100% + 3rem); max-width: none; height: auto; max-height: 15rem; object-fit: cover; margin: -1.5rem -1.5rem .3rem; }
.recipe-card:hover, .collection-grid a:hover { outline: .15rem solid var(--copper); }
.card-title { font-family: Georgia, serif; font-size: 1.4rem; line-height: 1.25; font-weight: 700; }
.card-meta { color: var(--muted); margin-top: auto; }
.search-control { margin: 1.5rem 0; max-width: var(--reading-width); }
label { display: block; font-weight: 700; margin-bottom: .4rem; }
input { font: inherit; padding: .7rem; width: 100%; border: 1px solid var(--navy); background: white; }
.analytics-choice { max-width: var(--reading-width); margin-block: 1.5rem; }
.analytics-toggle-control { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.analytics-toggle-label { margin: 0; }
.analytics-switch {
  appearance: none;
  flex: 0 0 auto;
  width: 3.25rem;
  height: 1.8rem;
  padding: 0;
  border: 2px solid var(--navy);
  border-radius: 2rem;
  background: #aebdb9;
  cursor: pointer;
  transition: background-color .15s ease;
}
.analytics-switch::before {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  margin: .15rem;
  border-radius: 50%;
  background: white;
  content: "";
  transition: transform .15s ease;
}
.analytics-switch:checked { background: var(--copper); }
.analytics-switch:checked::before { transform: translateX(1.35rem); }
.analytics-switch:disabled { cursor: not-allowed; opacity: .7; }
.analytics-status { margin: .6rem 0 0; color: var(--muted); font-size: .95rem; }
.analytics-notice {
  position: fixed;
  z-index: 5;
  inset: auto 0 0;
  border-top: .2rem solid var(--copper);
  background: var(--sea-glass);
  color: var(--navy);
  box-shadow: 0 -.3rem 1rem rgb(24 43 53 / 12%);
}
.analytics-notice-inner {
  display: flex;
  width: min(100% - 2 * var(--space), var(--width));
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-inline: auto;
  padding-block: .8rem;
}
.analytics-notice p { margin: 0; font-size: .95rem; }
.analytics-notice button {
  flex: 0 0 auto;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--cream);
  padding: .45rem .8rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.analytics-notice button:focus-visible { outline: .2rem solid var(--copper); outline-offset: .2rem; }
.recipe-meta { font-weight: 650; }
.equipment-note { margin: .5rem 0 1rem; color: var(--muted); font-size: .95em; }
.recipe-image { max-width: 100%; height: auto; }
.recipe-body { max-width: var(--reading-width); font-size: var(--body); }
.recipe-body section { margin-top: 3rem; }
.recipe-feedback { margin-top: 2rem; }
.recipe-feedback a { text-decoration: none; }
.recipe-feedback a:hover, .recipe-feedback a:focus-visible { text-decoration: underline; }
.ingredient-list, .direction-list { padding-left: 1.6rem; }
.ingredient-list li, .direction-list li { padding-left: .4rem; margin-bottom: .85rem; }
.direction-list li::marker { color: #85442d; font-weight: 800; }
.kitchen-note { background: var(--sea-glass); padding: 1.5rem; border-left: .3rem solid var(--copper); }
.kitchen-note h2 { font-size: 1.7rem; }
.kitchen-note p:last-child { margin-bottom: 0; }
.site-footer { background: var(--navy); color: var(--cream); }
.footer-inner { align-items: start; padding-block: 2rem; }
.footer-inner p { margin-bottom: .4rem; }
.upstream-credit { font-size: .9rem; }
@media (min-width: 48rem) {
  .recipe-body { font-size: 1.15rem; }
}
@media (max-width: 639px) {
  .site-header { --logo-height: 44px; }
}
@media (max-width: 40rem) {
  .analytics-notice-inner { align-items: start; }
  .hero {
    background-image:
      linear-gradient(to right, rgb(250 246 238 / 98%) 0%, rgb(250 246 238 / 94%) 68%,
        rgb(250 246 238 / 82%) 100%),
      var(--hero-image, none);
    background-position: center, 68% center;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .skip-link, .search-control { display: none !important; }
  html, body { background: white; color: black; font-size: 11pt; }
  main { width: 100% !important; padding: 0 !important; }
  .hero { background: white !important; }
  .recipe-heading { padding: 0; }
  h1 { font-size: 24pt; }
  h2 { font-size: 16pt; }
  .recipe-body section { margin-top: 1.2rem; }
  .kitchen-note { background: none; border: 1px solid black; }
  .ingredient-list li, .direction-list li { margin-bottom: .3rem; }
  a { color: black; }
}
