:root {
  --page: #fbfaf7;
  --surface: #ffffff;
  --surface-warm: #f4efe8;
  --ink: #24211f;
  --muted: #746e68;
  --line: #d9d2ca;
  --accent: #9c4d2f;
  --accent-dark: #71351f;
  --blue-zone: #236fa1;
  --blue-zone-dark: #174d70;
  --blue-zone-soft: #edf7fc;
  --content-width: 1080px;
  --text-width: 760px;
  --radius: 4px;
  --shadow: 0 14px 34px rgba(57, 45, 35, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  color: var(--surface);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  background: var(--surface);
}

.header-inner {
  position: relative;
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 54px 0 34px;
  text-align: center;
}

.brand {
  display: inline-block;
}

.brand img {
  width: 330px;
  max-width: 72vw;
  height: auto;
}

.tagline {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  letter-spacing: .04em;
}

.site-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-nav ul {
  display: flex;
  width: min(calc(100% - 36px), var(--content-width));
  margin: 0 auto;
  padding: 0;
  list-style: none;
  justify-content: center;
}

.site-nav a {
  display: block;
  padding: 16px 11px 14px;
  border-bottom: 2px solid transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
}

.hero,
.section,
.page-heading,
.recipe-page,
.privacy-page {
  width: min(calc(100% - 40px), var(--content-width));
  margin-right: auto;
  margin-left: auto;
}

.hero {
  position: relative;
  margin-top: 42px;
  overflow: hidden;
  background: var(--ink);
}

.hero img {
  width: 100%;
  height: clamp(250px, 37vw, 440px);
  object-fit: cover;
  opacity: .8;
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 20, 15, .2), rgba(16, 20, 15, .55));
  content: "";
}

.hero-copy {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(28px, 8vw, 120px);
  color: #fff;
  text-align: center;
  transform: translateY(-50%);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 400;
}

.hero-copy p {
  margin: 8px 0 0;
  font-size: 16px;
}

.section {
  padding: 72px 0 10px;
}

.section:last-child {
  padding-bottom: 88px;
}

.section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.section-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.section-heading h2::before,
.section-heading h2::after {
  width: 28px;
  height: 1px;
  background: var(--line);
  content: "";
}

.section-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px 24px;
}

.recipe-card {
  min-width: 0;
}

.card-image-link {
  display: block;
  overflow: hidden;
  background: var(--surface-warm);
}

.card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .25s ease;
}

.card-image-link:hover .card-image {
  transform: scale(1.025);
}

.card-copy {
  padding-top: 13px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  margin-bottom: 5px;
}

.card-kicker {
  margin: 0;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.blue-zone-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px 2px 3px;
  border: 1px solid rgba(35, 111, 161, .42);
  border-radius: 999px;
  color: var(--blue-zone-dark);
  background: var(--blue-zone-soft);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.blue-zone-monogram {
  display: grid;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: var(--blue-zone);
  font-size: 7px;
  letter-spacing: 0;
}

.card-title {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.35;
  text-transform: uppercase;
}

.card-title a {
  text-decoration: none;
}

.card-title a:hover {
  color: var(--accent-dark);
}

.card-excerpt {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section-search {
  margin-top: 42px;
  padding-top: 68px;
  border-top: 1px solid var(--line);
}

.search-panel {
  max-width: 720px;
  margin: 0 auto 22px;
  text-align: center;
}

.search-panel label {
  display: block;
  margin-bottom: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.search-field {
  position: relative;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 46px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--surface);
  font: 16px Arial, Helvetica, sans-serif;
}

.search-field span {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--muted);
  transform: translateY(-50%);
}

.result-count {
  min-height: 24px;
  margin: 8px 0 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 20px auto 38px;
}

.category-links a {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.category-links a:hover {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.category-links span {
  color: var(--muted);
}

.empty-results {
  margin: 42px 0;
  color: var(--muted);
  text-align: center;
}

.page-heading {
  padding: 70px 0 18px;
  text-align: center;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: -.025em;
}

.page-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.recipe-page {
  padding: 34px 0 80px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 46px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.recipe-heading {
  max-width: var(--text-width);
  margin: 0 auto 34px;
  text-align: center;
}

.recipe-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.recipe-labels .category-label {
  margin: 0;
}

.recipe-labels .blue-zone-badge {
  padding: 3px 9px 3px 4px;
  font-size: 10px;
}

.recipe-labels .blue-zone-monogram {
  width: 23px;
  height: 23px;
  font-size: 8px;
}

.category-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin-top: 0;
  line-height: 1.2;
}

.recipe-heading h1 {
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: -.025em;
}

.author-note {
  max-width: var(--text-width);
  margin: 0 auto 36px;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  background: var(--surface-warm);
  font-size: 18px;
  font-style: italic;
  line-height: 1.65;
}

.author-note p {
  margin: 0;
}

.recipe-hero {
  display: flex;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin: 0;
  justify-content: center;
  background: var(--surface-warm);
}

.recipe-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.recipe-actions {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0 28px;
}

.print-button {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  cursor: pointer;
}

.print-button:hover {
  color: var(--surface);
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.recipe-content {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(38px, 7vw, 88px);
  align-items: start;
  margin-top: 30px;
}

.ingredients {
  padding: 34px 34px 28px;
  border-top: 3px solid var(--accent);
  background: var(--surface-warm);
}

.ingredients h2,
.method h2,
.recipe-notes h2,
.process-section h2,
.privacy-content h2 {
  margin-bottom: 26px;
  font-size: 28px;
  font-weight: 400;
}

.ingredients ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ingredients li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.45;
}

.ingredients li:last-child {
  border-bottom: 0;
}

.ingredients .ingredient-group {
  padding-top: 20px;
  color: var(--accent-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: recipe-step;
}

.steps li {
  position: relative;
  min-height: 52px;
  margin-bottom: 24px;
  padding-left: 64px;
  counter-increment: recipe-step;
}

.steps li::before {
  position: absolute;
  top: -3px;
  left: 0;
  display: grid;
  width: 42px;
  height: 42px;
  color: var(--surface);
  border-radius: 50%;
  background: var(--accent);
  content: counter(recipe-step);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  place-items: center;
}

.recipe-notes {
  margin-top: 56px;
  padding: 34px 38px;
  border-left: 3px solid var(--accent);
  background: var(--surface-warm);
}

.recipe-notes h2 {
  margin-bottom: 24px;
}

.recipe-notes h3 {
  margin: 30px 0 12px;
  color: var(--accent-dark);
  font-size: 21px;
  font-weight: 600;
}

.recipe-notes p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.recipe-notes .note-lead {
  margin-top: 18px;
}

.process-section {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.process-section > h2 {
  text-align: center;
}

.process-gallery {
  display: grid;
  width: min(100%, 1000px);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.process-photo {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface-warm);
}

.process-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.recipe-footer {
  margin: 54px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.recipe-footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.recipe-footer span,
.recipe-footer a {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: .04em;
  text-decoration: none;
}

.recipe-footer a {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.privacy-page {
  padding-bottom: 88px;
}

.not-found-page {
  min-height: 52vh;
  padding-bottom: 100px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.not-found-actions a {
  min-width: 180px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}

.not-found-actions a:hover,
.not-found-actions .primary-link {
  color: var(--surface);
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.privacy-content {
  max-width: var(--text-width);
  margin: 30px auto 0;
  padding: 46px 54px;
  border-top: 3px solid var(--accent);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.privacy-content h2 {
  margin-top: 42px;
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content p {
  margin-bottom: 0;
}

.privacy-content a,
.site-footer a {
  color: var(--accent-dark);
}

.site-footer {
  padding: 44px 20px 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}

.footer-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.site-footer p {
  margin: 4px 0;
  font-size: 14px;
}

.site-footer .footer-brand {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 20px;
}

@media (max-width: 980px) {
  .site-nav a {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 9px;
  }
}

@media (max-width: 930px) {
  .header-inner {
    padding: 34px 0 24px;
  }

  .menu-toggle {
    display: inline-flex;
    position: absolute;
    right: 0;
    bottom: 20px;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--surface);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    cursor: pointer;
  }

  .menu-icon {
    display: grid;
    width: 18px;
    gap: 4px;
  }

  .menu-icon span {
    display: block;
    height: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    display: none;
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav ul {
    display: grid;
    width: min(calc(100% - 40px), var(--content-width));
    padding: 10px 0 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    padding: 12px 10px;
    border-bottom: 0;
    font-size: 12px;
    white-space: normal;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: var(--surface-warm);
  }

  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .hero,
  .section,
  .page-heading,
  .recipe-page,
  .privacy-page {
    width: min(calc(100% - 30px), var(--content-width));
  }

  .hero {
    margin-top: 28px;
  }

  .hero-copy {
    right: 24px;
    left: 24px;
  }

  .section {
    padding-top: 54px;
  }

  .recipe-page {
    padding-top: 24px;
  }

  .breadcrumbs {
    margin-bottom: 32px;
  }

  .recipe-heading {
    margin-bottom: 24px;
  }

  .recipe-content {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .ingredients {
    padding: 28px 24px 22px;
  }

  .process-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy-content {
    padding: 36px 30px;
  }
}

@media (max-width: 560px) {
  .recipe-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .card-image-link {
    margin-right: -15px;
    margin-left: -15px;
  }

  .process-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header-inner {
    width: min(calc(100% - 30px), var(--content-width));
    padding: 28px 0 72px;
  }

  .brand img {
    max-width: 86vw;
  }

  .menu-toggle {
    right: 50%;
    bottom: 18px;
    transform: translateX(50%);
  }

  .site-nav ul {
    width: calc(100% - 30px);
    grid-template-columns: 1fr;
  }

  .site-nav a {
    text-align: center;
  }

  .hero {
    width: 100%;
    margin-top: 0;
  }

  .hero img {
    height: 310px;
  }

  .recipe-hero {
    margin-right: -15px;
    margin-left: -15px;
  }

  .recipe-actions {
    justify-content: center;
  }

  .recipe-heading h1,
  .page-heading h1 {
    font-size: 38px;
  }

  .ingredients h2,
  .method h2,
  .recipe-notes h2,
  .process-section h2,
  .privacy-content h2 {
    font-size: 26px;
  }

  .steps li {
    padding-left: 52px;
  }

  .steps li::before {
    width: 36px;
    height: 36px;
  }

  .privacy-content {
    margin-right: -5px;
    margin-left: -5px;
    padding: 30px 22px;
  }

  .author-note {
    margin-bottom: 28px;
    padding: 16px 18px;
    font-size: 17px;
  }

  .recipe-notes {
    padding: 28px 22px;
  }
}

@media print {
  .skip-link,
  .menu-toggle,
  .site-nav,
  .breadcrumbs,
  .recipe-actions,
  .recipe-footer,
  .site-footer,
  .process-section {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .header-inner {
    padding: 12mm 0 6mm;
  }

  .brand img {
    width: 60mm;
  }

  .recipe-page {
    width: 100%;
    padding: 0;
  }

  .recipe-heading {
    margin-bottom: 8mm;
  }

  .recipe-heading h1 {
    font-size: 28pt;
  }

  .recipe-hero img {
    width: auto;
    height: auto;
    max-height: 90mm;
  }

  .recipe-hero {
    aspect-ratio: auto;
    overflow: visible;
  }

  .recipe-content {
    grid-template-columns: 65mm 1fr;
    gap: 12mm;
  }

  .ingredients {
    padding: 6mm;
    border: 1px solid #bbb;
    background: #fff;
  }

  .steps li {
    break-inside: avoid;
  }
}
