:root {
  --bg: #14110f;
  --bg-elevated: #1c1815;
  --bg-soft: #241f1a;
  --bg-card: #1a1613;
  --ink: #f3e7d3;
  --ink-deep: #fff6e8;
  --ink-muted: #cbb79a;
  --ink-faint: #9a8770;
  --line: rgba(243, 231, 211, 0.14);
  --line-strong: rgba(243, 231, 211, 0.28);
  --navy: #f3e7d3;
  --navy-soft: #e2d0b4;
  --chalk: #d97745;
  --chalk-deep: #b85a2f;
  --chalk-soft: rgba(217, 119, 69, 0.18);
  --yellow: #e8b84a;
  --yellow-hot: #f0c85c;
  --yellow-soft: rgba(232, 184, 74, 0.22);
  --coral: #e0896a;
  --mint: #7fafa0;
  --lavender: #b7a4d6;
  --cream: #14110f;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 22px 48px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", "DM Sans", Georgia, serif;
  --font-hand: "DM Sans", system-ui, sans-serif;
  --max: 1120px;
  --pad: clamp(1.15rem, 4vw, 2.15rem);
  --sketch-wobble: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 12%, rgba(217, 119, 69, 0.16), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(232, 184, 74, 0.1), transparent 28%),
    radial-gradient(circle at 70% 78%, rgba(127, 175, 160, 0.08), transparent 26%),
    linear-gradient(180deg, #171310 0%, #14110f 45%, #100e0c 100%);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Decorative layers */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.glow {
  pointer-events: none;
  position: fixed;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  top: 12vh;
  right: -8vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 69, 0.2), transparent 68%);
  filter: blur(8px);
  z-index: 0;
}

.doodle-layer {
  pointer-events: none;
  position: absolute;
  z-index: 0;
  color: var(--navy);
  opacity: 0.9;
}

.star {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--yellow-hot);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.star-lg {
  width: 1.55rem;
  height: 1.55rem;
}

.site-header,
.hero,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  backdrop-filter: blur(14px);
  background: rgba(20, 17, 15, 0.82);
  border-bottom: 2.5px solid var(--navy);
  box-shadow: 0 1px 0 rgba(243, 231, 211, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  transform: none;
}

.logo-mark {
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3));
}

.logo-text {
  position: relative;
}

.logo-text::after {
  content: "";
  position: absolute;
  left: -0.15em;
  right: -0.15em;
  bottom: 0.05em;
  height: 0.42em;
  background: var(--yellow);
  border-radius: 999px 999px 40% 60%;
  opacity: 0.55;
  z-index: -1;
  transform: none;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 0.85rem;
  flex-wrap: wrap;
}

.nav {
  display: flex;
  gap: 0.35rem 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy-soft);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 2.5px solid var(--navy);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.lang-btn {
  min-width: 2.5rem;
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy-soft);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--navy);
  background: var(--yellow-soft);
  border-color: var(--navy);
  transform: translateY(-1px);
}

.lang-btn.is-active {
  color: #fff;
  background: var(--chalk);
  border-color: var(--navy);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.lang-btn.is-active:hover,
.lang-btn.is-active:focus-visible {
  background: var(--chalk-deep);
  color: #fff;
}

.nav a {
  position: relative;
  padding: 0.4rem 0.85rem;
  border: 2.5px solid transparent;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--navy);
  background: var(--yellow-soft);
  border-color: var(--navy);
  transform: rotate(-1deg) translateY(-1px);
}

main {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad) 4rem;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: min(92svh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: clip;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse 80% 55% at 70% 35%, rgba(61, 111, 184, 0.1), transparent 60%),
    radial-gradient(ellipse 60% 45% at 20% 70%, rgba(245, 215, 110, 0.18), transparent 55%),
    linear-gradient(165deg, #fff8f0 0%, #ffeeda 48%, #fff4e6 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.04);
  filter: saturate(0.92) contrast(0.95);
  transition:
    opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-bg-img.is-loaded {
  opacity: 0.28;
  transform: scale(1);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 248, 240, 0.55) 0%,
      rgba(255, 248, 240, 0.42) 35%,
      rgba(255, 248, 240, 0.82) 72%,
      rgba(255, 248, 240, 0.98) 100%
    ),
    linear-gradient(
      110deg,
      rgba(255, 248, 240, 0.75) 0%,
      rgba(255, 248, 240, 0.2) 48%,
      rgba(255, 248, 240, 0.55) 100%
    );
}

.hero-doodles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-doodles .doodle {
  position: absolute;
  color: var(--navy);
}

.hero-doodles .doodle-star-1 {
  top: 14%;
  left: 8%;
  width: 2rem;
  color: var(--yellow-hot);
  transform: rotate(-12deg);
}

.hero-doodles .doodle-star-2 {
  top: 22%;
  right: 14%;
  width: 1.4rem;
  color: var(--yellow-hot);
  transform: rotate(18deg);
}

.hero-doodles .doodle-star-3 {
  bottom: 28%;
  left: 18%;
  width: 1.15rem;
  color: var(--yellow-hot);
  transform: rotate(8deg);
  opacity: 0.85;
}

.hero-doodles .doodle-pot {
  top: 18%;
  right: 8%;
  width: min(18vw, 110px);
  opacity: 0.92;
  transform: rotate(8deg);
}

.hero-doodles .doodle-whisk {
  bottom: 18%;
  right: 16%;
  width: min(12vw, 72px);
  opacity: 0.85;
  transform: rotate(-18deg);
}

.hero-doodles .doodle-spoon {
  top: 38%;
  left: 5%;
  width: min(10vw, 58px);
  opacity: 0.75;
  transform: rotate(-32deg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding:
    clamp(5.5rem, 14vw, 8rem)
    var(--pad)
    clamp(2.8rem, 8vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 1 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin: 0 0 1.1rem;
  padding: 0.45rem 0.95rem 0.5rem;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: #fff;
  background: var(--chalk);
  border: 2.5px solid var(--navy);
  border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%;
  box-shadow: 3px 3px 0 rgba(26, 42, 74, 0.12);
  transform: rotate(-2deg);
  opacity: 0;
  transform: rotate(-2deg) translateY(12px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

.hero.is-visible .eyebrow {
  opacity: 1;
  transform: rotate(-2deg) translateY(0);
}

.hero h1,
.section-head h2,
.panel h2,
.modal-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
  color: var(--navy);
}

.hero h1 {
  font-size: clamp(2.8rem, 10vw, 5.8rem);
  font-weight: 650;
  max-width: 14ch;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(1.1em);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero h1 .line:nth-child(2) {
  transition-delay: 0.12s;
}

.hero.is-visible h1 .line {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 em {
  font-style: normal;
  position: relative;
  display: inline-block;
  color: var(--navy);
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.08em;
  height: 0.38em;
  z-index: -1;
  background: var(--yellow);
  border-radius: 40% 60% 55% 45% / 60% 40% 65% 40%;
  transform: skewX(-8deg) rotate(-1deg);
}

.lede,
.section-head p,
.panel > p {
  color: var(--ink-muted);
  max-width: 36rem;
  font-size: 1.08rem;
}

.lede {
  margin: 1.5rem 0 1.8rem;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.22s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.22s;
}

.hero.is-visible .lede {
  opacity: 1;
  transform: translateY(0);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.34s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.34s;
}

.hero.is-visible .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.05rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 2.5px solid var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 3px 3px 0 rgba(26, 42, 74, 0.14);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.btn.primary {
  background: var(--chalk);
  color: #fff;
  border-color: var(--navy);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  transform: translate(-1px, -2px) rotate(-0.5deg);
  box-shadow: 5px 6px 0 rgba(26, 42, 74, 0.16);
  background: var(--chalk-deep);
}

.btn.ghost {
  background: var(--bg-elevated);
  color: var(--navy);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: var(--yellow);
  transform: translate(-1px, -2px);
  box-shadow: 5px 6px 0 rgba(26, 42, 74, 0.14);
}

.section {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 0;
}

.section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
  position: relative;
}

.section-head h2,
.panel h2 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  display: inline-block;
  position: relative;
  width: fit-content;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: -0.15em;
  right: -0.15em;
  bottom: 0.05em;
  height: 0.45em;
  z-index: -1;
  background: var(--chalk);
  opacity: 0.22;
  border-radius: 40% 60% 50% 50% / 60% 40% 70% 40%;
  transform: skewX(-6deg) rotate(-1deg);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--chalk-deep);
  transform: rotate(-1deg);
}

/* Filters = chalky chips */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.filter {
  padding: 0.58rem 1rem;
  border-radius: var(--radius-pill);
  border: 2.5px solid var(--navy);
  color: var(--navy);
  background: var(--bg-elevated);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.filter:nth-child(2n) {
  border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
}

.filter:nth-child(3n) {
  border-radius: 45% 55% 48% 52% / 55% 45% 55% 45%;
}

.filter.is-active {
  color: #fff;
  background: var(--chalk);
  box-shadow: 3px 3px 0 rgba(26, 42, 74, 0.14);
  transform: rotate(-1deg);
}

.filter:hover,
.filter:focus-visible {
  background: var(--yellow);
  color: var(--navy);
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 3px 4px 0 rgba(26, 42, 74, 0.14);
}

.filter.is-active:hover,
.filter.is-active:focus-visible {
  background: var(--chalk-deep);
  color: #fff;
}

.recipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Recipe cards */
.recipe-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px 24px 30px 22px / 24px 28px 22px 30px;
  background: var(--bg-card);
  border: 2.5px solid var(--navy);
  box-shadow: var(--shadow);
  text-align: left;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
}

.recipe-card::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 0.95rem;
  height: 0.95rem;
  z-index: 2;
  background: var(--yellow-hot);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  filter: drop-shadow(1px 1px 0 rgba(26, 42, 74, 0.2));
  opacity: 0.95;
  pointer-events: none;
}

.recipe-card:nth-child(3n)::before {
  top: auto;
  bottom: auto;
  left: 0.9rem;
  right: auto;
  top: 0.7rem;
}

.recipe-card:hover.is-visible,
.recipe-card:focus-visible.is-visible {
  transform: translateY(-5px) rotate(-0.4deg);
  box-shadow: var(--shadow-hover);
}

.recipe-card .media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    linear-gradient(145deg, #ffe7c8, #fff4e4 45%, #e8f0ff);
  position: relative;
  border-bottom: 2.5px solid var(--navy);
}

.recipe-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.65s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.recipe-card .media img.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.recipe-card:hover.is-visible .media img.is-loaded {
  transform: scale(1.04);
}

.recipe-card .media .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.5rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 1.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(245, 215, 110, 0.35), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(61, 111, 184, 0.12), transparent 50%),
    linear-gradient(160deg, #fff0d8, #eaf1ff);
}

.recipe-card .media .placeholder-icon {
  width: 3.2rem;
  height: 3.2rem;
  opacity: 0.85;
}

.recipe-card .body {
  padding: 1.1rem 1.15rem 1.3rem;
}

.recipe-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  border: 2px solid var(--navy);
  background: var(--mint);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  box-shadow: 1px 1px 0 rgba(26, 42, 74, 0.1);
}

.tag:nth-child(2) {
  background: var(--lavender);
}

.tag:nth-child(3) {
  background: var(--coral);
}

.tag:nth-child(4n) {
  background: var(--yellow);
}

.recipe-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.recipe-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.recipe-card .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.recipe-card .stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--navy);
}

/* Generic steps (if used) */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.steps li {
  padding: 1.25rem 1.2rem;
  border-radius: calc(var(--radius) - 4px);
  border: 2.5px solid var(--navy);
  background: var(--bg-elevated);
  box-shadow: 3px 3px 0 rgba(26, 42, 74, 0.08);
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--yellow);
  border: 2.5px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.steps p {
  margin: 0;
  color: var(--ink-muted);
}

.panel {
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: 28px 22px 30px 24px / 24px 30px 22px 28px;
  border: 2.5px solid var(--navy);
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(61, 111, 184, 0.12), transparent 60%),
    var(--bg-soft);
  box-shadow: var(--shadow);
}

.checklist {
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: var(--ink-muted);
}

.checklist li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.checklist li::before {
  content: "★";
  color: var(--chalk);
  font-weight: 700;
}

/* Footer */
.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1.6rem var(--pad) 2.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--ink-muted);
  font-size: 0.95rem;
  border-top: 2.5px solid var(--navy);
  font-family: var(--font-hand);
}

.site-footer span:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}

.empty-state {
  color: var(--ink-muted);
  padding: 1.5rem;
  border: 2.5px dashed var(--navy);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--font-hand);
  font-size: 1.15rem;
}

.hidden {
  display: none !important;
}

/* Modal */
html.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
  height: 100%;
}

html.modal-open body {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.modal {
  width: min(920px, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100dvh - 3.5rem);
  margin: auto;
  padding: 0;
  border: 2.5px solid var(--navy);
  border-radius: 28px 24px 30px 26px / 26px 30px 24px 28px;
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: 8px 10px 0 rgba(26, 42, 74, 0.14);
  overflow: hidden;
  opacity: 1;
  transform: none;
}

.modal[open]:not(.is-closing) {
  animation: modal-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal.is-closing {
  animation: modal-out 0.2s cubic-bezier(0.4, 0, 1, 1) both;
}

.modal::backdrop {
  background: rgba(26, 42, 74, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 1;
}

.modal[open]:not(.is-closing)::backdrop {
  animation: modal-backdrop-in 0.28s ease both;
}

.modal.is-closing::backdrop {
  animation: modal-backdrop-out 0.2s ease both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.975) rotate(-0.5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes modal-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

@keyframes modal-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-backdrop-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.modal-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 3.5rem);
  min-height: 0;
  background: var(--bg-elevated);
}

.modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100dvh - 3.5rem);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.modal-card {
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 5;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  background: var(--yellow);
  border: 2.5px solid var(--navy);
  box-shadow: 3px 3px 0 rgba(26, 42, 74, 0.16);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--coral);
  transform: scale(1.05) rotate(4deg);
  box-shadow: 4px 4px 0 rgba(26, 42, 74, 0.18);
}

.modal-media {
  position: relative;
  aspect-ratio: 16 / 11;
  background:
    linear-gradient(145deg, #ffe7c8, #e8f0ff);
  border-bottom: 2.5px solid var(--navy);
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-badges {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.modal-body {
  padding: 1.35rem 1.25rem 1.8rem;
}

.modal-meta {
  margin: 0 0 0.45rem;
  color: var(--chalk-deep);
  font-family: var(--font-hand);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.modal-body h2 {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  margin-bottom: 0.7rem;
}

.modal-story {
  color: var(--ink-muted);
  margin: 0 0 1.4rem;
}

.modal-columns {
  display: grid;
  gap: 1.5rem;
}

.modal-columns h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  display: inline-block;
  padding: 0.35rem 0.85rem 0.4rem;
  background: var(--chalk);
  border: 2.5px solid var(--navy);
  border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  transform: rotate(-1deg);
}

.modal-columns ul,
.modal-columns ol {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
}

.modal-columns ul li {
  position: relative;
  padding: 0.45rem 0.35rem 0.45rem 1.75rem;
  border-bottom: 2px dashed rgba(26, 42, 74, 0.12);
}

.modal-columns ul li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.7rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 2.5px solid var(--navy);
  border-radius: 4px;
  background: var(--yellow-soft);
  transform: rotate(-4deg);
}

.modal-columns ol {
  counter-reset: doodle-step;
}

.modal-columns ol li {
  position: relative;
  counter-increment: doodle-step;
  padding: 0.55rem 0.25rem 0.55rem 2.6rem;
  margin-bottom: 0.35rem;
  color: var(--ink-muted);
}

.modal-columns ol li::before {
  content: counter(doodle-step);
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  border: 2.5px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.modal-columns li + li {
  margin-top: 0.15rem;
}

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

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

  .modal-columns {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .hero h1 {
    max-width: 12ch;
  }
}

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

  .recipe-card:nth-child(3n + 1) .media {
    aspect-ratio: 4 / 5.2;
  }

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

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

  .reveal,
  .reveal.is-visible,
  .recipe-card,
  .recipe-card .media img,
  .recipe-card .media img.is-loaded,
  .hero h1 .line,
  .hero.is-visible h1 .line,
  .lede,
  .hero.is-visible .lede,
  .hero-actions,
  .hero.is-visible .hero-actions,
  .eyebrow,
  .hero.is-visible .eyebrow,
  .hero-bg-img,
  .hero-bg-img.is-loaded,
  .btn,
  .modal-close {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .modal,
  .modal[open]:not(.is-closing),
  .modal.is-closing,
  .modal::backdrop,
  .modal[open]:not(.is-closing)::backdrop,
  .modal.is-closing::backdrop {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
