:root {
  --flour: #fff8ec;
  --paper: #fffdf6;
  --oil: #e9b44c;
  --oil-soft: rgba(233, 180, 76, 0.24);
  --tomato: #bd341f;
  --chili: #dc4a28;
  --wine: #5f1418;
  --parsley: #61752f;
  --ink: #2b160f;
  --muted: #765747;
  --line: rgba(95, 20, 24, 0.18);
  --shadow: 0 24px 64px rgba(71, 27, 16, 0.16);
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(220, 74, 40, 0.18), transparent 15rem),
    radial-gradient(circle at 88% 12%, rgba(233, 180, 76, 0.32), transparent 18rem),
    linear-gradient(180deg, #fff1df 0%, var(--flour) 42%, #f4dfc6 100%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  border-radius: 48% 52% 44% 56%;
  pointer-events: none;
  content: "";
}

body::before {
  top: 7rem;
  right: -8rem;
  width: 21rem;
  height: 21rem;
  background: radial-gradient(circle, rgba(189, 52, 31, 0.2), rgba(189, 52, 31, 0.04) 58%, transparent 60%);
  transform: rotate(-18deg);
}

body::after {
  bottom: 8rem;
  left: -7rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(233, 180, 76, 0.26), rgba(233, 180, 76, 0.05) 62%, transparent 64%);
  transform: rotate(14deg);
}

body.lightbox-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.site-header,
main,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
}

.brand {
  color: var(--wine);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  gap: 18px;
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--tomato);
}

.print-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(95, 20, 24, 0.28);
  border-radius: 12px 10px 14px 10px;
  background: rgba(255, 239, 224, 0.72);
  color: var(--wine);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.print-icon:hover,
.print-icon:focus-visible {
  border-color: rgba(95, 20, 24, 0.5);
  background: rgba(233, 180, 76, 0.2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
}

h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  color: var(--wine);
  font-size: clamp(3.35rem, 15vw, 7.4rem);
  letter-spacing: -0.07em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  color: var(--wine);
  font-size: clamp(2rem, 7vw, 3.35rem);
  letter-spacing: -0.052em;
}

h3 {
  margin-bottom: 8px;
  color: var(--wine);
  font-size: 1.15rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--tomato);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.intro,
.subtitle {
  max-width: 36rem;
}

.intro {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(1.12rem, 3vw, 1.34rem);
}

.subtitle {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(1.1rem, 3vw, 1.32rem);
}

.personality-line {
  max-width: 34rem;
  margin-bottom: 16px;
  color: var(--tomato);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-style: italic;
  line-height: 1.35;
}

.breadcrumb {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.breadcrumb a {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.site-intro {
  padding: 30px 0 40px;
}

.section-block {
  padding: 26px 0;
}

.hero {
  padding: 24px 0 38px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 38rem;
}

.hero-copy::before {
  display: block;
  width: 5.5rem;
  height: 0.55rem;
  margin-bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tomato), var(--oil), var(--parsley));
  content: "";
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--wine);
  border-radius: 999px;
  background: var(--tomato);
  color: #fffaf2;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 6px 6px 0 rgba(95, 20, 24, 0.16);
}

.button:hover,
.button:focus-visible {
  background: var(--wine);
}

.text-link {
  color: var(--wine);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration-color: var(--oil);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.hero-image,
.wide-photo,
.hero-image-placeholder {
  margin: 0;
  overflow: hidden;
  border: 10px solid rgba(255, 253, 246, 0.86);
  border-radius: 34px 28px 40px 24px;
  background: #e7c097;
  box-shadow: var(--shadow);
}

.hero-image {
  transform: rotate(0.8deg);
  min-width: 0;
}

.hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-image-placeholder,
.recipe-card-media-placeholder {
  display: grid;
  place-items: center;
  padding: 2rem;
  min-height: 260px;
  background:
    repeating-linear-gradient(135deg, rgba(95, 20, 24, 0.12), rgba(95, 20, 24, 0.12) 14px, rgba(233, 180, 76, 0.12) 14px, rgba(233, 180, 76, 0.12) 28px),
    linear-gradient(180deg, rgba(255, 248, 236, 0.94), rgba(255, 239, 224, 0.86));
  color: var(--wine);
  text-align: center;
}

.hero-image-placeholder span,
.recipe-card-media-placeholder span {
  max-width: 20ch;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto 24px;
}

.summary-card {
  position: relative;
  padding: 16px 16px 18px;
  border: 1px solid rgba(95, 20, 24, 0.24);
  border-radius: 18px 14px 20px 12px;
  background: rgba(255, 253, 246, 0.74);
  box-shadow: 5px 6px 0 rgba(233, 180, 76, 0.2);
}

.summary-card::after {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(189, 52, 31, 0.12);
  content: "";
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  margin-top: 4px;
  color: var(--wine);
  font-size: 1.35rem;
  line-height: 1.1;
}

.recipe-list {
  display: grid;
  gap: 18px;
}

.recipe-card-item {
  border: 1px solid var(--line);
  border-radius: 26px 18px 28px 18px;
  background: rgba(255, 253, 246, 0.82);
  box-shadow: 0 18px 40px rgba(71, 27, 16, 0.1);
  overflow: hidden;
}

.recipe-card-link {
  display: grid;
  text-decoration: none;
}

.recipe-card-media {
  background: #e7c097;
}

.recipe-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.recipe-card-body {
  padding: 18px;
}

.recipe-card-body h3 {
  margin-bottom: 8px;
}

.recipe-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.recipe-card {
  position: relative;
  margin-bottom: 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 34px 26px 38px 24px;
  background:
    radial-gradient(circle at 8% 8%, rgba(233, 180, 76, 0.18), transparent 11rem),
    linear-gradient(180deg, rgba(255, 253, 246, 0.9), rgba(255, 248, 236, 0.84));
  box-shadow: var(--shadow);
}

.recipe-card::before {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid rgba(189, 52, 31, 0.14);
  border-radius: 50% 45% 52% 48%;
  background: rgba(189, 52, 31, 0.08);
  content: "";
}

.story {
  display: grid;
  gap: 12px;
}

.story-copy p:last-child,
.notes p:last-child,
.site-footer p:last-child {
  margin-bottom: 0;
}

.recipe-note,
.heat-note {
  position: relative;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px dashed rgba(95, 20, 24, 0.34);
  border-radius: 18px 15px 22px 14px;
  background: linear-gradient(135deg, rgba(255, 247, 221, 0.94), rgba(255, 253, 246, 0.82));
  color: var(--wine);
  font-size: 0.98rem;
  font-style: italic;
  transform: rotate(-0.5deg);
}

.recipe-note::before,
.heat-note::before {
  position: absolute;
  top: -10px;
  left: 24px;
  width: 48px;
  height: 16px;
  border-radius: 2px;
  background: rgba(233, 180, 76, 0.36);
  content: "";
  transform: rotate(-4deg);
}

.heat-note {
  margin-top: 22px;
  border-style: solid;
  background: linear-gradient(135deg, rgba(220, 74, 40, 0.12), rgba(233, 180, 76, 0.2));
}

.wide-photo {
  border-width: 8px;
  border-radius: 24px 34px 22px 32px;
  transform: rotate(-0.45deg);
}

.wide-photo img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.recipe-grid {
  display: grid;
  gap: 18px;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.9), rgba(255, 253, 246, 0.96)),
    var(--paper);
}

.ingredients-panel {
  border-radius: 28px 18px 30px 18px;
}

.directions-panel {
  border-radius: 18px 30px 18px 28px;
}

.section-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-heading-row h2 {
  margin-bottom: 0;
}

.copy-button {
  min-height: 40px;
  padding: 0 14px;
  border: 2px solid var(--wine);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.92);
  color: var(--wine);
  cursor: pointer;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 rgba(233, 180, 76, 0.28);
}

.copy-button:hover,
.copy-button:focus-visible {
  background: var(--wine);
  color: #fffaf2;
}

.copy-button:disabled {
  border-color: rgba(95, 20, 24, 0.28);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
}

.copy-status {
  min-height: 1.25rem;
  margin: -8px 0 10px;
  color: var(--parsley);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

.ingredient-list,
.direction-list {
  margin: 0;
  padding: 0;
}

.ingredient-list {
  list-style: none;
}

.ingredient-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--line);
}

.ingredient-list li::before {
  position: absolute;
  top: 1.1rem;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--chili);
  box-shadow: 12px 4px 0 -3px var(--oil), 20px -2px 0 -5px var(--parsley);
  content: "";
}

.ingredient-list li:last-child,
.direction-list li:last-child {
  border-bottom: 0;
}

.direction-list {
  list-style: none;
  counter-reset: steps;
}

.direction-list li {
  position: relative;
  min-height: 52px;
  padding: 9px 0 18px 64px;
  border-bottom: 1px solid var(--line);
  counter-increment: steps;
}

.direction-list li::before {
  position: absolute;
  top: 3px;
  left: 0;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--wine);
  border-radius: 50% 45% 50% 44%;
  background: var(--tomato);
  color: #fffaf2;
  content: counter(steps);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.notes {
  display: grid;
  gap: 18px;
}

.notes-grid {
  display: grid;
  gap: 14px;
}

.notes-grid article {
  padding: 20px;
  border-left: 5px solid var(--parsley);
  border-radius: 16px 20px 14px 22px;
  background: rgba(97, 117, 47, 0.1);
}

.gallery {
  display: grid;
  gap: 14px;
}

.gallery a {
  display: block;
  overflow: hidden;
  border: 7px solid rgba(255, 253, 246, 0.82);
  border-radius: 24px 18px 28px 16px;
  background: #e7c097;
  cursor: zoom-in;
  box-shadow: 0 12px 28px rgba(89, 41, 20, 0.12);
}

.gallery a:nth-child(2) {
  border-radius: 18px 26px 16px 24px;
}

.gallery a:nth-child(3) {
  border-radius: 28px 16px 24px 18px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery a:hover img,
.gallery a:focus-visible img {
  transform: scale(1.035);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 5vh 5vw;
  animation: lightbox-fade 160ms ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: zoom-out;
}

.lightbox-image {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border: 8px solid rgba(255, 248, 236, 0.9);
  border-radius: 16px;
  cursor: zoom-out;
  object-fit: contain;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
}

@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.site-footer {
  margin-top: 58px;
  padding: 30px 0 48px;
  border-top: 1px solid rgba(95, 20, 24, 0.14);
  color: #7f5f50;
  text-align: center;
}

.site-footer p {
  max-width: 38rem;
  margin: 0 auto;
}

.footer-note {
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.copyright {
  margin-top: 8px !important;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.012em;
  opacity: 0.78;
}

@media (min-width: 700px) {
  .site-header,
  main,
  .site-footer {
    width: min(var(--max), calc(100% - 56px));
  }

  .nav-links {
    display: flex;
  }

  .summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: -20px;
    margin-bottom: 34px;
  }

  .summary-card:nth-child(even) {
    transform: translateY(8px) rotate(0.35deg);
  }

  .summary-card:nth-child(odd) {
    transform: rotate(-0.25deg);
  }

  .recipe-card {
    padding: 34px;
  }

  .story,
  .notes {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .recipe-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }

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

  .gallery {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .gallery a:first-child {
    grid-row: span 2;
  }

  .gallery a:first-child img {
    height: 100%;
  }
}

@media (min-width: 960px) {
  .recipe-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 54px 0 64px;
  }

  .hero-inner {
    max-width: 1180px;
    margin-inline: auto;
    grid-template-columns: minmax(0, 0.88fr) minmax(360px, 500px);
    gap: clamp(28px, 4vw, 56px);
  }

  .hero-copy {
    max-width: 560px;
  }

  .hero h1 {
    font-size: clamp(4.5rem, 8vw, 7.25rem);
    line-height: 0.92;
  }
}

@media (min-width: 980px) {
  .recipe-card {
    padding: 46px;
  }

  .panel {
    padding: 34px;
  }

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

@media print {
  @page {
    margin: 0.6in;
  }

  *,
  *::before,
  *::after {
    background: transparent !important;
    box-shadow: none !important;
    color: #000 !important;
    text-shadow: none !important;
    transform: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    min-width: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11pt;
    line-height: 1.35;
  }

  .nav,
  .breadcrumb,
  .print-icon,
  .lightbox,
  .hero-image,
  .hero-image-placeholder,
  .hero-actions,
  .personality-line,
  .intro,
  .subtitle,
  .story,
  .wide-photo,
  #photos,
  .site-footer,
  .copy-button,
  .copy-status,
  .recipe-note,
  .heat-note,
  .eyebrow {
    display: none !important;
  }

  .site-header,
  main {
    width: 100%;
    margin: 0;
  }

  .hero {
    display: block;
    padding: 0 0 12pt;
  }

  .hero-copy::before,
  .recipe-card::before,
  .summary-card::after,
  .ingredient-list li::before,
  .direction-list li::before {
    display: none !important;
  }

  h1 {
    max-width: none;
    margin: 0 0 6pt;
    font-size: 26pt;
    letter-spacing: 0;
  }

  h2 {
    margin: 0 0 7pt;
    font-size: 17pt;
    letter-spacing: 0;
    break-after: avoid;
  }

  h3 {
    margin: 0 0 3pt;
    font-size: 12pt;
  }

  .summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6pt;
    margin: 0 0 12pt;
  }

  .summary-card,
  .recipe-card,
  .panel,
  .notes-grid article {
    border: 1px solid #000;
    border-radius: 0;
  }

  .summary-card {
    padding: 6pt;
  }

  .summary-card span {
    font-size: 7pt;
    letter-spacing: 0.04em;
  }

  .summary-card strong {
    margin-top: 2pt;
    font-size: 12pt;
  }

  .recipe-card {
    padding: 0;
    border: 0;
  }

  .section-block {
    padding: 10pt 0;
    break-inside: avoid;
  }

  .recipe-grid,
  .notes,
  .notes-grid,
  .recipe-list {
    display: block;
  }

  .panel,
  .recipe-card-item {
    margin-bottom: 10pt;
    padding: 10pt;
  }

  .section-heading-row {
    display: block;
    margin-bottom: 0;
  }

  .ingredient-list {
    list-style: disc;
    padding-left: 18pt;
  }

  .ingredient-list li,
  .direction-list li {
    border-bottom: 0;
    padding: 0 0 4pt;
  }

  .direction-list {
    list-style: decimal;
    padding-left: 18pt;
  }

  a {
    text-decoration: none;
  }
}
