/* ============================================================
   FONTS — self-hosted variable fonts (latin subset)
   ============================================================ */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-variable.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-latin-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   CUSTOM PROPERTIES
   Brand palette: Deep Navy / Slate Blue / Sage Green / Stone /
   Off White / Charcoal. Theme tokens swap for dark mode below.
   ============================================================ */
:root {
  /* Brand palette (fixed) */
  --color-navy: #0f1f2d;
  --color-slate: #3b6ea5;
  --color-sage: #6b7f73;
  --color-sage-strong: #546659; /* darker sage — passes AA with white text */
  --color-stone: #e6e9eb;
  --color-offwhite: #f8f9fa;
  --color-charcoal: #1f2933;

  /* Theme tokens — light (default) */
  --color-primary: var(--color-navy);
  --color-secondary: var(--color-slate);
  --color-accent: var(--color-sage);
  --bg: var(--color-offwhite);
  --surface: #ffffff;
  --surface-alt: var(--color-stone);
  --text: var(--color-charcoal);
  --heading: var(--color-navy);
  --muted: #52606d;
  --link-accent: var(--color-slate);
  --border: rgba(15, 31, 45, 0.12);
  --btn-bg: var(--color-navy);
  --btn-text: #ffffff;
  --btn-hover-bg: var(--color-slate);
  --feature-bg: var(--color-navy);
  --shadow: 0 1px 2px rgba(15, 31, 45, 0.06), 0 8px 24px rgba(15, 31, 45, 0.06);
  --hero-panel: linear-gradient(160deg, #e6e9eb 0%, #c3d2e3 100%);
  color-scheme: light;

  /* Fonts */
  --font-heading: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container-max: 150rem; /* effectively fluid — rem so it scales with the root size below */
  --container-pad: clamp(1rem, 2.5vw, 4rem);
  --header-height: 4.5rem;
  --space-section: clamp(2.5rem, 6vw, 4.5rem);
  --radius: 1rem;
}

/* Dark theme — only when the visitor picks it with the header toggle (light is the default) */
:root[data-theme="dark"] {
  --bg: #0b141c;
  --surface: #12202c;
  --surface-alt: #1a2a38;
  --text: #d5dde4;
  --heading: #f8f9fa;
  --muted: #9aa8b5;
  --link-accent: #7fa8d4;
  --border: rgba(248, 249, 250, 0.14);
  --btn-bg: #f8f9fa;
  --btn-text: var(--color-navy);
  --btn-hover-bg: #7fa8d4;
  --feature-bg: #16293a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --hero-panel: linear-gradient(160deg, #1a2a38 0%, #27405a 100%);
  color-scheme: dark;
}

/* ============================================================
   RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Scale the whole layout up on large monitors so it keeps the proportions of the
   design (small side margins) instead of looking tiny in the middle of the screen */
@media (min-width: 1600px) {
  html {
    font-size: 112.5%;
  }
}

@media (min-width: 2000px) {
  html {
    font-size: 125%;
  }
}

@media (min-width: 2400px) {
  html {
    font-size: 150%;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

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

ul[role="list"] {
  list-style: none;
}

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

main {
  flex: 1;
}

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  transform: translateY(-200%);
}

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

.text-accent {
  color: var(--link-accent);
}

.section {
  padding-block: var(--space-section);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.section-sub {
  margin-top: 0.375rem;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--link-accent);
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  width: 100%; /* full width on mobile; auto from tablet up (see below) */
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn .icon {
  width: 1em;
  height: 1em;
}

.btn--primary {
  background-color: var(--btn-bg);
  color: var(--btn-text);
}

.btn--primary:hover {
  background-color: var(--btn-hover-bg);
  color: #ffffff;
}

:root[data-theme="dark"] .btn--primary:hover {
  color: var(--color-navy);
}

.btn--outline {
  border-color: var(--heading);
  color: var(--heading);
}

.btn--outline:hover {
  background-color: var(--heading);
  color: var(--bg);
}

.btn--sage {
  background-color: var(--color-sage-strong);
  color: #ffffff;
}

.btn--sage:hover {
  background-color: #647a6a;
}

.btn--light {
  background-color: var(--color-offwhite);
  color: var(--color-navy);
}

.btn--light:hover {
  background-color: #d4e1ef;
}

.btn--small {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .btn {
    width: auto;
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--heading);
  flex-shrink: 0;
}

.site-logo__mark {
  width: auto;
  height: 1.875rem;
}

/* Light logo by default; the dark-theme version swaps in with the toggle */
.site-logo__mark--dark {
  display: none;
}

:root[data-theme="dark"] .site-logo__mark--light {
  display: none;
}

:root[data-theme="dark"] .site-logo__mark--dark {
  display: block;
}

/* Menu colours follow the site theme: light by default, navy in dark mode */
.site-header {
  --nav-bg-color: var(--bg);
  --nav-glow: rgba(59, 110, 165, 0.16);
  --nav-text: var(--color-navy);
  --nav-line: rgba(15, 31, 45, 0.12);
  --nav-hover: rgba(15, 31, 45, 0.05);
  --nav-active-bg: rgba(59, 110, 165, 0.12);
  --nav-icon-bg: rgba(15, 31, 45, 0.06);
  --nav-icon: var(--color-slate);
  --nav-icon-active-bg: var(--color-slate);
  --nav-icon-active: #ffffff;
  --nav-arrow: rgba(15, 31, 45, 0.4);
  --nav-arrow-hover: var(--color-navy);
  --nav-tagline: var(--muted);
  --nav-ridge: var(--color-navy);
}

:root[data-theme="dark"] .site-header {
  --nav-bg-color: var(--color-navy);
  --nav-glow: rgba(59, 110, 165, 0.4);
  --nav-text: #ffffff;
  --nav-line: rgba(255, 255, 255, 0.1);
  --nav-hover: rgba(255, 255, 255, 0.07);
  --nav-active-bg: rgba(255, 255, 255, 0.1);
  --nav-icon-bg: rgba(255, 255, 255, 0.08);
  --nav-icon: #7fa8d4;
  --nav-arrow: rgba(255, 255, 255, 0.45);
  --nav-arrow-hover: #ffffff;
  --nav-tagline: rgba(255, 255, 255, 0.7);
  --nav-ridge: #ffffff;
}

/* Nav — mobile/tablet: full-screen panel that wipes open from the menu button */
.site-nav {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
  padding: 1.25rem var(--container-pad) 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: var(--nav-bg-color);
  background-image: radial-gradient(circle at 100% 0, var(--nav-glow), transparent 60%);
  visibility: hidden;
  clip-path: circle(0 at calc(100% - 2.75rem) 0);
  transition: clip-path 0.6s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s linear 0.6s;
}

.site-header.nav-open .site-nav {
  visibility: visible;
  clip-path: circle(150vmax at calc(100% - 2.75rem) 0);
  transition: clip-path 0.6s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s;
}

/* While the menu is open: header matches the panel, and the page behind can't scroll */
.site-header {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.nav-open {
  background-color: var(--nav-bg-color);
  border-bottom-color: var(--nav-line);
}

.site-header.nav-open .theme-toggle:hover {
  background-color: var(--nav-hover);
}

.nav-locked {
  overflow: hidden;
}

.nav-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
}

.nav-list li + li {
  border-top: 1px solid var(--nav-line);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-inline: -0.5rem;
  padding: 0.875rem 0.5rem;
  border-radius: 0.875rem;
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 5.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--nav-text);
  transition: background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:active {
  background-color: var(--nav-hover);
}

.nav-link__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--nav-icon-bg);
  color: var(--nav-icon);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link__icon .icon {
  width: 1.375rem;
  height: 1.375rem;
}

.nav-link__text {
  flex: 1;
}

.nav-link__arrow {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--nav-arrow);
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-link:hover .nav-link__arrow {
  transform: translateX(4px);
  color: var(--nav-arrow-hover);
}

/* Current page: lit-up row and a filled icon bubble */
.nav-link[aria-current="page"] {
  background-color: var(--nav-active-bg);
}

.nav-link[aria-current="page"] .nav-link__icon {
  background-color: var(--nav-icon-active-bg);
  color: var(--nav-icon-active);
}

.nav-footer {
  margin-top: auto;
  padding-top: 2rem;
}

.nav-tagline {
  padding-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--nav-tagline);
}

/* Full-bleed mountains along the bottom of the panel */
.nav-ridge {
  display: block;
  width: calc(100% + 2 * var(--container-pad));
  height: 5rem;
  margin-inline: calc(-1 * var(--container-pad));
  color: var(--nav-ridge);
}

@media (prefers-reduced-motion: no-preference) and (max-width: 1023px) {
  @keyframes nav-in {
    from {
      opacity: 0;
      transform: translateX(-1.5rem);
    }
  }

  /* Links slide in one after another once the panel has opened */
  .site-header.nav-open .nav-list li {
    animation: nav-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }

  .site-header.nav-open .nav-list li:nth-child(1) {
    animation-delay: 0.2s;
  }

  .site-header.nav-open .nav-list li:nth-child(2) {
    animation-delay: 0.27s;
  }

  .site-header.nav-open .nav-list li:nth-child(3) {
    animation-delay: 0.34s;
  }

  .site-header.nav-open .nav-list li:nth-child(4) {
    animation-delay: 0.41s;
  }

  .site-header.nav-open .nav-list li:nth-child(5) {
    animation-delay: 0.48s;
  }

  .site-header.nav-open .nav-list li:nth-child(6) {
    animation-delay: 0.55s;
  }

  .site-header.nav-open .nav-footer {
    animation: fade-in 0.6s ease 0.7s backwards;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Theme toggle */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--heading);
  transition: background-color 0.2s ease;
}

.theme-toggle:hover {
  background-color: var(--surface-alt);
}

.theme-toggle .icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Show the icon for the theme you would switch TO */
.theme-toggle .icon--sun {
  display: none;
}

.theme-toggle[data-mode="dark"] .icon--sun {
  display: block;
}

.theme-toggle[data-mode="dark"] .icon--moon {
  display: none;
}

/* Hamburger toggle button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  flex-shrink: 0;
  color: var(--heading);
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav — desktop and up: horizontal inline (six links need the width) */
@media (min-width: 1024px) {
  .site-nav,
  .site-header.nav-open .site-nav {
    position: static;
    display: block;
    height: auto;
    padding: 0;
    overflow: visible;
    background: none;
    visibility: visible;
    clip-path: none;
    transition: none;
  }

  .site-header.nav-open {
    background-color: var(--bg);
    border-bottom-color: var(--border);
  }

  .nav-list {
    flex-direction: row;
    gap: 1.75rem;
    width: auto;
    max-width: none;
    margin: 0;
  }

  .nav-list li + li {
    border-top: none;
  }

  .nav-link,
  .nav-link:hover,
  .nav-link[aria-current="page"] {
    display: block;
    margin: 0;
    padding: 0.5rem 0;
    border-radius: 0;
    background: none;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--heading);
  }

  .nav-link[aria-current="page"] {
    font-weight: 700;
  }

  .nav-link__icon,
  .nav-link__arrow,
  .nav-footer {
    display: none;
  }

  /* Underline marks the current page and hover state */
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.5rem;
    height: 2px;
    background-color: var(--heading);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }

  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .nav-toggle {
    display: none;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__content {
  padding-block: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--heading);
}

.hero__title {
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero__lead {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Cutout portrait standing on a soft panel; the panel carries the diagonal edge */
.hero__media {
  position: relative;
  height: clamp(18rem, 80vw, 26rem);
  padding-top: 1.5rem; /* headroom above the cutout */
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-panel);
}

.hero__media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%; /* feet of the cutout sit on the bottom edge */
}

@media (min-width: 1024px) {
  .hero {
    /* Height grows with screen width so the portrait keeps a good size on wide screens */
    min-height: max(28rem, 34vw);
    display: flex;
    align-items: center;
  }

  .hero__content {
    max-width: 36rem;
  }

  .hero__title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
  }

  /* Panel sits on the right with a diagonal left edge, as in the design */
  .hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 46%;
    height: auto;
  }

  .hero__media::before {
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  }

  .hero__media img {
    object-position: 62% 100%;
  }
}

/* ---- 404 page: same hero, with a ghosted "404" standing behind the photo ---- */
.hero--404 .hero__media,
.hero--soon .hero__media {
  overflow: hidden;
}

.hero__code {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 8%;
  font-family: var(--font-heading);
  font-size: clamp(8rem, 52vw, 15rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--link-accent) 26%, transparent);
  user-select: none;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero--404 {
    min-height: max(30rem, 38vw);
  }

  .hero__code {
    font-size: clamp(9rem, 21vw, 24rem);
  }
}

/* "Coming soon" pages reuse the 404 look; the word is shorter than "404" but wider, so it is sized to fit */
.hero--soon .hero__code {
  font-size: clamp(5rem, 31vw, 10rem);
  padding-bottom: 8%;
}

@media (min-width: 1024px) {
  .hero--soon .hero__code {
    font-size: clamp(6rem, 13.5vw, 17rem);
  }
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding-top: 1.5rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--link-accent);
}

.category-card .icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--link-accent);
}

.category-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
}

.category-card__text {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (min-width: 768px) {
  .categories {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* ============================================================
   FEATURED RECIPE + RECENT ARTICLES
   ============================================================ */
.latest {
  display: grid;
  gap: 2.5rem;
}

.feature-card {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--feature-bg);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.feature-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
}

.feature-card__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.feature-card__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #ffffff;
}

.feature-card__text {
  color: rgba(255, 255, 255, 0.88);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 1rem;
  font-size: 0.8125rem;
}

.meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.meta .icon {
  width: 1rem;
  height: 1rem;
}

.feature-card .meta {
  color: rgba(255, 255, 255, 0.9);
}

.feature-card .btn {
  margin-top: 0.5rem;
}

.article-list {
  display: grid;
  gap: 0;
}

.article-list > li {
  border-bottom: 1px solid var(--border);
}

.article-list > li:last-child {
  border-bottom: none;
}

.article-item {
  display: grid;
  grid-template-columns: 6.25rem 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: 1rem;
}

.article-list > li:first-child .article-item {
  padding-top: 0;
}

.article-item img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: 0.5rem;
}

.article-item__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.article-item:hover .article-item__title {
  color: var(--link-accent);
}

.article-item .meta {
  margin-top: 0.375rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .feature-card {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card__body {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .latest {
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  .feature-card {
    height: 100%;
  }
}

/* ============================================================
   TRAVEL & EXPERIENCES BAND
   ============================================================ */
.band {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: calc(var(--radius) * 1.25);
  background-color: var(--surface-alt);
}

.band__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.band__title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.band__title .icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--link-accent);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.media-card {
  display: block;
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.media-card:hover {
  transform: translateY(-3px);
}

.media-card img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.media-card__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
}

.media-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
}

.media-card__text {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.media-card .icon {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.25rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   ABOUT + PROFESSIONAL WORK
   ============================================================ */
.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.about__photo {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%; /* keep the face centred in the circle */
}

.about__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.about__text {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.work__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.work-list {
  border-top: 1px solid var(--border);
}

.work-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.125rem;
  border-bottom: 1px solid var(--border);
}

.work-link__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
}

.work-link__desc {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}

.work-link .icon {
  color: var(--heading);
  transition: transform 0.2s ease;
}

.work-link:hover .icon {
  transform: translate(2px, -2px);
}

@media (min-width: 768px) {
  .about {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2rem;
  }

  .about__photo {
    width: 10.5rem;
    height: 10.5rem;
  }
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
  }

  .about {
    padding-right: 3rem;
  }

  .work {
    padding-left: 3rem;
    border-left: 1px solid var(--border);
  }
}

/* ============================================================
   FOOTER (mountain ridge, About + Professional Work, copyright bar)
   ============================================================ */
.site-footer {
  margin-top: var(--space-section);
  color: #ffffff;
}

/* Mountain silhouette that rises out of the navy band */
.footer-ridge {
  display: block;
  width: 100%;
  height: clamp(2.5rem, 7vw, 5.5rem);
  color: var(--color-navy);
}

.footer-body {
  background-color: var(--color-navy);
}

/* About + Professional Work live in the navy band, so recolour them for a dark surface */
.footer-profile {
  padding-block: 0.5rem 3rem;
}

.site-footer .about__title,
.site-footer .work__title,
.site-footer .work-link__name {
  color: #ffffff;
}

.site-footer .about__text {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer .work-link__desc {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer .work-list {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.site-footer .work-link {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.site-footer .work-link .icon {
  color: #ffffff;
}

.site-footer .work {
  border-left-color: rgba(255, 255, 255, 0.18);
}

.site-footer .about__photo {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-nav a {
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav a:hover {
  opacity: 0.75;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================================
   FORM STATUS (from Section 14 of CLAUDE.md)
   ============================================================ */
.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.form-status.success {
  color: #22c55e;
}

.form-status.error {
  color: #ef4444;
}

/* ============================================================
   RECIPE PAGE
   ============================================================ */
.recipe {
  padding-block: 1.25rem var(--space-section);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
}

.breadcrumb a:hover {
  color: var(--link-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb [aria-current="page"] {
  color: var(--heading);
  font-weight: 600;
}

/* Header text + photo: stacked on mobile, side by side on desktop */
.recipe-top {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.recipe-title {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.recipe-intro {
  margin-top: 1rem;
  font-size: 1.125rem;
}

.recipe-meta {
  margin-top: 1.25rem;
  gap: 0.5rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.recipe-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2; /* matches the photo, so nothing is cropped */
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.recipe-body {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.recipe-ingredients {
  align-self: start;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
  box-shadow: var(--shadow);
}

.ingredient-list {
  margin-top: 1rem;
}

.ingredient-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.ingredient-list li:last-child {
  border-bottom: none;
}

.ingredient-list li::before {
  content: "";
  position: absolute;
  top: 1.0625rem;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--color-sage);
}

.steps {
  list-style: none;
  display: grid;
  gap: 2rem;
  margin-top: 1.25rem;
  counter-reset: step;
}

.steps > li {
  position: relative;
  padding-left: 3.5rem;
  counter-increment: step;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  top: -0.125rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--font-heading);
  font-weight: 700;
}

.steps__title {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.steps p + p {
  margin-top: 0.5rem;
}

@media (min-width: 1024px) {
  .recipe-top {
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
    align-items: center;
  }

  .recipe-body {
    grid-template-columns: minmax(18rem, 26rem) 1fr;
    gap: 4rem;
  }

  /* Keep the ingredients in view while following the method */
  .recipe-ingredients {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}

/* Ingredient sub-headings (e.g. "For the chicken") and steps without titles */
.ingredient-group {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.unit-switch + .ingredient-group,
.recipe-ingredients .section-title + .ingredient-group {
  margin-top: 1.25rem;
}

.ingredient-group + .ingredient-list {
  margin-top: 0.5rem;
}

.steps--plain > li {
  padding-top: 0.4rem; /* centres the first line of text against the number badge */
  min-height: 2.5rem;
}

.method-text {
  margin-top: 1rem;
  max-width: 44rem;
}

.method-text p + p {
  margin-top: 0.75rem;
}

/* Family story on a recipe (e.g. why a dish has its name) */
.recipe-story {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--link-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background-color: var(--surface);
  box-shadow: var(--shadow);
}

.recipe-story__title {
  margin-bottom: 0.5rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
}

.recipe-story p + p {
  margin-top: 0.75rem;
}

/* ---- Metric / imperial switch ---- */
.unit-switch {
  display: inline-flex;
  margin-top: 0.875rem;
  padding: 0.1875rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: var(--surface-alt);
}

.unit-switch[hidden] {
  display: none;
}

.unit-switch__btn {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--heading);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.unit-switch__btn[aria-pressed="true"] {
  background-color: var(--btn-bg);
  color: var(--btn-text);
}

/* ---- Tappable ingredients inside the method ---- */
.method-hint {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.ingredient-amount {
  font-weight: 700;
  color: var(--heading);
}

.ingredient-ref {
  padding: 0.05em 0.2em;
  margin-inline: -0.1em; /* keeps commas and full stops tight against the word */
  border-radius: 0.3rem;
  border-bottom: 2px solid var(--link-accent);
  background-color: color-mix(in srgb, var(--link-accent) 14%, transparent);
  color: var(--heading);
  font-weight: 600;
  line-height: inherit;
  transition: background-color 0.15s ease;
}

.ingredient-ref:hover,
.ingredient-ref[aria-expanded="true"] {
  background-color: color-mix(in srgb, var(--link-accent) 30%, transparent);
}

/* Matching line in the ingredient list lights up while its popup is open */
.ingredient-list li {
  transition: background-color 0.2s ease;
}

.ingredient-list li.is-active {
  margin-inline: -0.5rem;
  padding-inline: 2rem 0.5rem;
  border-radius: 0.5rem;
  background-color: color-mix(in srgb, var(--link-accent) 16%, transparent);
}

.ingredient-list li.is-active::before {
  left: 0.5rem;
}

.ingredient-popover {
  position: absolute;
  z-index: 90; /* below the sticky header (100) */
  max-width: min(18rem, calc(100vw - 1rem));
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.625rem;
  background-color: var(--feature-bg);
  color: #ffffff;
  font-size: 0.9375rem;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ingredient-popover[hidden] {
  display: none;
}

.ingredient-popover strong {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
}

/* Little arrow pointing at the tapped word; --caret-x is set by script.js */
.ingredient-popover::before {
  content: "";
  position: absolute;
  top: -0.3125rem;
  left: var(--caret-x, 50%);
  width: 0.5625rem;
  height: 0.5625rem;
  margin-left: -0.28125rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  background-color: var(--feature-bg);
  transform: rotate(45deg);
}

.ingredient-popover.is-above::before {
  top: auto;
  bottom: -0.3125rem;
  transform: rotate(225deg);
}

@media (prefers-reduced-motion: no-preference) {
  .ingredient-popover:not([hidden]) {
    animation: pop-in 0.15s ease-out;
  }

  @keyframes pop-in {
    from {
      opacity: 0;
      transform: translateY(0.25rem);
    }
  }
}

/* ============================================================
   RECIPE ARCHIVE (/recipes/)
   ============================================================ */
.page-banner {
  position: relative;
  overflow: hidden;
  background-color: var(--color-navy);
  color: #ffffff;
}

.page-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

/* Keeps the text readable: dark wash on phones, left-to-right fade on desktop */
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 31, 45, 0.7), rgba(15, 31, 45, 0.88));
}

.page-banner__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(2rem, 5vw, 3.25rem);
}

.page-banner .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.page-banner__title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.page-banner__lead {
  max-width: 36rem;
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.92);
}

@media (min-width: 768px) {
  .page-banner__img {
    left: auto;
    width: 62%;
    object-position: 60% 50%;
  }

  .page-banner::after {
    background: linear-gradient(90deg, var(--color-navy) 0%, var(--color-navy) 38%, rgba(15, 31, 45, 0.55) 62%, rgba(15, 31, 45, 0) 100%);
  }
}

.archive {
  padding-block: 1.5rem var(--space-section);
}

.archive-toolbar {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.search {
  position: relative;
}

.search .icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search input,
.select select {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background-color: var(--surface);
  color: var(--text);
  font: inherit;
  box-shadow: var(--shadow);
}

.search input {
  padding-left: 2.875rem;
}

.search input::placeholder {
  color: var(--muted);
}

.select {
  position: relative;
}

.select select {
  padding-right: 2.5rem;
  appearance: none;
  color: var(--heading);
  font-weight: 600;
  cursor: pointer;
}

.select .icon {
  position: absolute;
  top: 50%;
  right: 0.875rem;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  color: var(--heading);
  pointer-events: none;
}

.archive-layout {
  display: grid;
  gap: 1.25rem;
}

/* Grid children may shrink below their content, otherwise the scrolling pills stretch the page */
.archive-layout > * {
  min-width: 0;
}

/* Category filters: scrolling pills on mobile, a sidebar on desktop */
.archive-nav ul {
  display: flex;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.archive-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: var(--surface);
  color: var(--heading);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.archive-filter .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--link-accent);
}

.archive-filter__count {
  font-weight: 500;
  color: var(--muted);
}

.archive-filter[aria-pressed="true"] {
  border-color: transparent;
  background-color: var(--btn-bg);
  color: var(--btn-text);
}

.archive-filter[aria-pressed="true"] .icon,
.archive-filter[aria-pressed="true"] .archive-filter__count {
  color: inherit;
}

.archive-count {
  margin-bottom: 1rem;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
}

.recipe-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
}

.recipe-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.recipe-card[hidden] {
  display: none;
}

.recipe-card:hover {
  transform: translateY(-3px);
  border-color: var(--link-accent);
}

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

.recipe-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem 1rem 0.875rem;
}

.recipe-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
}

/* The whole card is clickable through the title link */
.recipe-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.recipe-card__text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.625rem;
}

.recipe-card__save {
  position: relative; /* sits above the stretched title link */
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-right: -0.375rem;
  border-radius: 50%;
  color: var(--heading);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.recipe-card__save:hover {
  background-color: var(--surface-alt);
}

.recipe-card__save .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.recipe-card__save[aria-pressed="true"] {
  color: var(--link-accent);
}

.recipe-card__save[aria-pressed="true"] .icon {
  fill: currentColor;
}

.archive-empty {
  padding: 2rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.archive-empty[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .archive-toolbar {
    grid-template-columns: 1fr 14rem;
  }
}

@media (min-width: 1024px) {
  .archive-layout {
    grid-template-columns: 15.5rem 1fr;
    gap: 2rem;
    align-items: start;
  }

  .archive-nav {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--surface);
    box-shadow: var(--shadow);
  }

  .archive-nav ul {
    flex-direction: column;
    gap: 0.125rem;
    padding-bottom: 0;
    overflow: visible;
  }

  .archive-filter {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: none;
    border-radius: 0.625rem;
    background-color: transparent;
    font-size: 0.9375rem;
  }

  .archive-filter:hover {
    background-color: var(--surface-alt);
  }

  .archive-filter__count {
    margin-left: auto;
  }

  .archive-filter[aria-pressed="true"] {
    background-color: color-mix(in srgb, var(--link-accent) 16%, transparent);
    color: var(--heading);
  }

  .archive-filter[aria-pressed="true"] .icon {
    color: var(--link-accent);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Cards fade up on load, and again whenever a filter brings them back */
  .recipe-card {
    animation: fade-up 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }

  .recipe-card:nth-child(2) {
    animation-delay: 0.05s;
  }

  .recipe-card:nth-child(3) {
    animation-delay: 0.1s;
  }

  .recipe-card:nth-child(4) {
    animation-delay: 0.15s;
  }

  .recipe-card:nth-child(n + 5) {
    animation-delay: 0.2s;
  }

  .page-banner__inner > * {
    animation: fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }

  .page-banner__inner > :nth-child(2) {
    animation-delay: 0.1s;
  }

  .page-banner__inner > :nth-child(3) {
    animation-delay: 0.2s;
  }
}

/* ============================================================
   ANIMATIONS — page load + scroll reveal
   Only runs when the visitor hasn't asked for reduced motion.
   `backwards` fill-mode is deliberate: once an animation ends, normal styles
   (including :hover transforms) take over again.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(1.5rem);
    }
  }

  @keyframes fade-in {
    from {
      opacity: 0;
    }
  }

  /* Transform only (no opacity) so the hero image is never "invisible" while loading */
  @keyframes rise {
    from {
      transform: translateY(2.5rem);
    }
  }

  .site-header {
    animation: fade-in 0.5s ease backwards;
  }

  .eyebrow,
  .hero__title,
  .hero__lead,
  .hero__actions {
    animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }

  .eyebrow {
    animation-delay: 0.05s;
  }

  .hero__title {
    animation-delay: 0.15s;
  }

  .hero__lead {
    animation-delay: 0.3s;
  }

  .hero__actions {
    animation-delay: 0.45s;
  }

  .breadcrumb,
  .recipe-header > *,
  .recipe-image {
    animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }

  .recipe-header > :nth-child(2) {
    animation-delay: 0.1s;
  }

  .recipe-header > :nth-child(3) {
    animation-delay: 0.2s;
  }

  .recipe-header > :nth-child(4) {
    animation-delay: 0.3s;
  }

  .recipe-image {
    animation-delay: 0.4s;
  }

  .hero__media::before {
    animation: fade-in 1s ease 0.1s backwards;
  }

  .hero__media img {
    animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s backwards;
  }

  .category-card {
    animation: fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }

  .category-card:nth-child(1) {
    animation-delay: 0.55s;
  }

  .category-card:nth-child(2) {
    animation-delay: 0.65s;
  }

  .category-card:nth-child(3) {
    animation-delay: 0.75s;
  }

  .category-card:nth-child(4) {
    animation-delay: 0.85s;
  }

  /* Scroll reveal — script.js adds .reveal-ready, so nothing is hidden without JS */
  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .latest > [data-reveal]:nth-child(2) {
    transition-delay: 0.15s;
  }
}

/* ============================================================
   FOCUS STYLES — do not remove
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--link-accent);
  outline-offset: 3px;
}

.site-footer :focus-visible {
  outline-color: #ffffff;
}
