/* Shared light editorial tokens and surface treatments for every generated page. */
@font-face {
  font-family: "Lexend";
  src: url("/assets/fonts/lexend-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f8f9f5;
  --card: #eef1e8;
  --card-white: #fffefa;
  --ink: #273027;
  --ink-soft: #5c665a;
  --line: #d8dfd3;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(41, 54, 37, 0.09);
  --serif: "Iowan Old Style", "Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Lexend", "Segoe UI", sans-serif;
  --c-recipes: #536d3b;
  --c-restaurants: #9b493c;
  --c-techniques: #91621f;
  --c-ingredients: #466b59;
  --c-kitchen-gear: #496a86;
  --c-home: #36433c;
  --c-search: #735b73;
  --container: 1200px;
  --forest-deep: #f8f9f5;
  --forest-raised: #e9eee3;
  --forest-accent: #536d3b;
  --forest-focus: #405d30;
  --surface-shadow: 0 20px 46px -28px rgba(39, 49, 35, 0.32), inset 0 1px rgba(255, 255, 255, 0.88);
  /* Shared glass tokens keep the header and its navigation visually related. */
  --header-glass-border: rgba(66, 82, 58, 0.16);
  --header-glass-shadow: 0 12px 30px rgba(39, 49, 35, 0.08), inset 0 1px rgba(255, 255, 255, 0.72);
  --header-glass-fallback: #f5f6ef;
}

html {
  background: var(--bg);
  scroll-padding-top: 96px;
}

/* Dress native scrollbars in the site's palette while preserving native scrolling. */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--forest-raised);
}

/* Keep the thumb rounded and use the site's sage-to-terracotta palette. */
::-webkit-scrollbar-thumb {
  min-height: 64px;
  border: 2px solid transparent;
  border-radius: 999px;
  background-color: #718652;
  background-image: linear-gradient(180deg, #718652 0%, #a97850 56%, #b85c49 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-clip: padding-box;
  transition: filter 140ms ease;
}

::-webkit-scrollbar-thumb:hover {
  filter: brightness(0.9);
}

::-webkit-scrollbar-thumb:active {
  filter: brightness(0.82);
}

::-webkit-scrollbar-corner {
  background: var(--forest-raised);
}

/* Firefox supports color and thickness, but not artwork inside its native thumb. */
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-color: var(--forest-accent) var(--forest-raised);
    scrollbar-width: thin;
  }
}

body {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(75% 42% at 50% 0%, rgba(199, 213, 179, 0.18), transparent 78%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 350;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keep the ingredient palette on isolated layers so only the backdrop moves. */
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -12vh -8vw;
  pointer-events: none;
  background:
    /* Tomato warmth anchors the left side of the editorial canvas. */
    radial-gradient(36rem 30rem at 14% 22%, rgba(218, 77, 62, 0.34), transparent 72%),
    /* Onion purple gives the upper right a cool counterpoint. */
    radial-gradient(44rem 34rem at 82% 20%, rgba(139, 87, 163, 0.28), transparent 74%),
    /* Herb green keeps the food palette tied to the existing sage surfaces. */
    radial-gradient(48rem 38rem at 56% 84%, rgba(75, 140, 91, 0.31), transparent 76%),
    /* A small oil-yellow glow adds warmth without competing with article text. */
    radial-gradient(24rem 22rem at 92% 70%, rgba(224, 174, 70, 0.22), transparent 72%);
  opacity: 0.96;
  transform: translate3d(-12%, -8%, 0) scale(1.02);
  animation: editorial-glow-drift 18s ease-in-out infinite alternate;
}

/* The second layer moves out of phase to create a slow, fluid color drift. */
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -14vh -10vw;
  pointer-events: none;
  background:
    radial-gradient(30rem 25rem at 24% 76%, rgba(91, 152, 82, 0.25), transparent 73%),
    radial-gradient(34rem 28rem at 88% 46%, rgba(213, 83, 73, 0.23), transparent 74%),
    radial-gradient(36rem 28rem at 52% 34%, rgba(149, 102, 174, 0.17), transparent 76%);
  opacity: 0.72;
  transform: translate3d(10%, 7%, 0) scale(1.05);
  animation: editorial-glow-drift-secondary 21s ease-in-out infinite alternate-reverse;
}

/* Move only the glow layers so cards, text, and controls remain still. */
@keyframes editorial-glow-drift {
  from { transform: translate3d(-12%, -8%, 0) scale(1.02); }
  to { transform: translate3d(12%, 8%, 0) scale(1.10); }
}

@keyframes editorial-glow-drift-secondary {
  from { transform: translate3d(10%, 7%, 0) scale(1.05); }
  to { transform: translate3d(-10%, -7%, 0) scale(0.96); }
}

/* The fixed trail layer stays transparent to clicks and sits above page content. */
.food-trail-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.food-trail-emoji {
  position: absolute;
  display: block;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  font-size: var(--trail-size, 24px);
  line-height: 1;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(39, 49, 35, 0.16));
  transform-origin: center;
  animation: food-trail-float 820ms cubic-bezier(0.2, 0.7, 0.25, 1) forwards;
  will-change: transform, opacity;
}

/* Let each emoji lift and fade without affecting the document's layout. */
@keyframes food-trail-float {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--trail-angle)) scale(0.68); }
  16% { opacity: 0.94; transform: translate(-50%, -50%) rotate(var(--trail-angle)) scale(1); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 24px)) rotate(calc(var(--trail-angle) + 18deg)) scale(0.72); }
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}

::selection {
  background: #dce7cf;
  color: #273027;
}

a { text-decoration-color: rgba(83, 109, 59, 0.42); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }

.skip-link {
  border-color: var(--forest-focus);
  background: var(--card-white);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(39, 49, 35, 0.14);
}

.skip-link:focus-visible,
:focus-visible {
  outline: 2px solid var(--forest-focus);
  outline-offset: 3px;
}

.container { max-width: var(--container); }

/* The shared header is a floating capsule so ingredient color can breathe around it. */
.site-header {
  top: 14px;
  width: calc(100% - 64px);
  max-width: none;
  margin: 14px auto 0;
  border: 1px solid var(--header-glass-border);
  border-radius: 28px;
  border-bottom-color: var(--header-glass-border);
  background:
    linear-gradient(120deg, rgba(255, 254, 250, 0.68), rgba(232, 239, 225, 0.52)),
    rgba(255, 254, 250, 0.58);
  box-shadow: var(--header-glass-shadow);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
}

/* Give the wordmark a stronger first read while keeping the existing food mark. */
.header-inner {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  min-height: 80px;
  padding-top: 7px;
  padding-bottom: 7px;
  padding-right: 48px;
  padding-left: 48px;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  gap: 13px;
  padding: 4px 12px 4px 5px;
  border: 1px solid transparent;
  border-radius: 18px;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.brand:hover {
  border-color: rgba(83, 109, 59, 0.12);
  background: var(--card-white);
  box-shadow: 0 5px 16px rgba(39, 49, 35, 0.07);
  text-decoration: none;
}

.brand-icon {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(83, 109, 59, 0.12);
  border-radius: 15px;
  box-shadow: 0 2px 7px rgba(39, 49, 35, 0.08);
}

.brand-text { gap: 2px; }
.brand-name {
  color: var(--ink);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.brand-tagline {
  margin-top: 3px;
  color: #788174;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.4;
}

/* A soft sage rail groups destinations; the active page gets the strongest cue. */
.main-nav {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(83, 109, 59, 0.1);
  border-radius: 999px;
  background: rgba(238, 241, 232, 0.58);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.78), 0 2px 8px rgba(39, 49, 35, 0.04);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

/* Keep a destination's accent attached to its link in both generated navs. */
.nav-link--home { --nav-accent: var(--c-home); }
.nav-link--recipes { --nav-accent: var(--c-recipes); }
.nav-link--restaurants { --nav-accent: var(--c-restaurants); }
.nav-link--techniques { --nav-accent: var(--c-techniques); }
.nav-link--ingredients { --nav-accent: var(--c-ingredients); }
.nav-link--kitchen-gear { --nav-accent: var(--c-kitchen-gear); }
.nav-link--search { --nav-accent: var(--c-search); }

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 254, 250, 0.72);
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-link.active,
.nav-link.active:hover {
  color: var(--card-white);
  background: var(--nav-accent, var(--forest-accent));
  box-shadow: 0 3px 9px rgba(53, 74, 39, 0.2), inset 0 1px rgba(255, 255, 255, 0.17);
}

.brand:focus-visible,
.mobile-search:focus-visible,
.nav-link:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid rgba(83, 109, 59, 0.42);
  outline-offset: 3px;
}

.menu-toggle {
  width: 48px;
  height: 48px;
  padding: 10px;
  border-color: rgba(83, 109, 59, 0.15);
  border-radius: 15px;
  background: var(--card-white);
  box-shadow: 0 3px 10px rgba(39, 49, 35, 0.07);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

/* Mobile actions share sizing with the menu but remain independent links. */
.mobile-header-actions { display: none; align-items: center; gap: 8px; flex: 0 0 auto; }
.mobile-search { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(83, 109, 59, 0.15); border-radius: 15px; color: var(--ink); background: var(--card-white); text-decoration: none; }
.mobile-search:hover { background: #eef1e8; }
.mobile-search[aria-current="page"] { color: var(--card-white); background: var(--c-search); }

.menu-toggle:hover {
  border-color: rgba(83, 109, 59, 0.32);
  background: #eef1e8;
  box-shadow: 0 5px 14px rgba(39, 49, 35, 0.1);
}
.menu-toggle[aria-expanded="true"] {
  border-color: rgba(83, 109, 59, 0.3);
  background: #e9eee3;
}
.menu-bar { background: var(--ink); }
.mobile-nav {
  grid-template-rows: 0fr;
  border-top-color: transparent;
  background: rgba(255, 254, 250, 0.72);
  border-radius: 0 0 28px 28px;
  box-shadow: none;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    grid-template-rows 180ms cubic-bezier(0.77, 0, 0.175, 1),
    opacity 150ms cubic-bezier(0.77, 0, 0.175, 1),
    transform 180ms cubic-bezier(0.77, 0, 0.175, 1),
    border-top-color 180ms cubic-bezier(0.77, 0, 0.175, 1);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}
.mobile-nav.is-open {
  grid-template-rows: 1fr;
  border-top-color: rgba(83, 109, 59, 0.13);
  box-shadow: 0 15px 24px rgba(39, 49, 35, 0.07);
  opacity: 1;
  transform: translateY(0);
  transition:
    grid-template-rows 220ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 180ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 220ms cubic-bezier(0.23, 1, 0.32, 1),
    border-top-color 220ms cubic-bezier(0.23, 1, 0.32, 1);
}
.mobile-nav__inner {
  gap: 5px;
  padding: 14px max(24px, calc((100% - var(--container)) / 2 + 24px)) 20px;
}
.mobile-nav .nav-link {
  justify-content: flex-start;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
}

.mobile-nav .nav-link.active,
.mobile-nav .nav-link.active:hover {
  color: var(--card-white);
  background: var(--nav-accent, var(--forest-accent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Older browsers keep a quiet paper surface when backdrop filtering is unavailable. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header,
  .mobile-nav { background: var(--header-glass-fallback); }
  .main-nav { background: #eef1e8; }
}

/* Keep the floating shell comfortable at tablet and phone widths. */
@media (max-width: 980px) {
  .site-header {
    top: 10px;
    width: calc(100% - 32px);
    margin-top: 10px;
    border-radius: 24px;
  }
  .header-inner {
    padding-right: 28px;
    padding-left: 28px;
  }
  .mobile-nav { border-radius: 0 0 24px 24px; }
}

@media (max-width: 640px) {
  .site-header {
    top: 8px;
    width: calc(100% - 24px);
    margin-top: 8px;
    border-radius: 22px;
  }
  .header-inner {
    padding-right: 18px;
    padding-left: 18px;
  }
  .mobile-nav { border-radius: 0 0 22px 22px; }
}

/* Article cards mirror the reference's paper surface, inset image, and footer cue. */
.card {
  display: flex;
  min-width: 0;
  /* Clip wide watermark artwork horizontally while allowing the glow to bleed vertically. */
  overflow-x: clip;
  overflow-y: visible;
  border: 0;
  border-radius: 30px;
  background: transparent;
  box-shadow: none;
  perspective: 1100px;
}

.card-shell {
  --card-rx: 0deg;
  --card-ry: 0deg;
  --card-glow-x: 50%;
  --card-glow-y: 28%;
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  padding: 18px;
  border: 1px solid rgba(216, 223, 211, 0.92);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--surface-shadow);
  transform: rotateX(var(--card-rx)) rotateY(var(--card-ry));
  transform-style: preserve-3d;
  transition: transform 260ms cubic-bezier(0.22, 0.8, 0.2, 1), box-shadow 260ms ease, border-color 260ms ease;
}

.card-shell::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at var(--card-glow-x) var(--card-glow-y), rgba(255, 255, 255, 0.72), transparent 38%);
  content: "";
  opacity: 0.44;
  pointer-events: none;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.card-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: #707a6c;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}
.card-meta time { white-space: nowrap; }
.card-meta span:last-child { white-space: nowrap; }
.card-topline .badge {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-color: color-mix(in srgb, var(--cat) 38%, transparent);
  background: color-mix(in srgb, var(--cat) 7%, white);
  color: var(--cat);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
}
.card-topline .badge:hover { background: color-mix(in srgb, var(--cat) 13%, white); }

.card-copy {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  gap: 7px;
  padding: 13px 2px 16px;
}
.card-title {
  font-size: clamp(23px, 2.05vw, 31px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.99;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-media {
  position: relative;
  display: block;
  flex: 1 0 auto;
  min-height: 170px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(49, 61, 45, 0.16);
  border-radius: 22px;
  background: #e3e8dd;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  transform: translateZ(8px);
}
.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 420ms ease, transform 620ms cubic-bezier(0.22, 0.8, 0.2, 1);
}
.card-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(24, 33, 23, 0.12));
  content: "";
  pointer-events: none;
}
.card-orb {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(45, 58, 39, 0.16);
  border-radius: 50%;
  background: #f7f8f2;
  box-shadow: 0 7px 18px rgba(27, 37, 25, 0.16);
  color: #526b3b;
  transition: background-color 250ms ease, color 250ms ease, transform 320ms cubic-bezier(0.22, 0.8, 0.2, 1);
}
.card-orb-emoji {
  display: block;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 20px;
  line-height: 1;
}
.card-action {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 2px 1px;
  border-top: 1px solid rgba(49, 61, 45, 0.15);
  color: #536d3b;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
  pointer-events: none;
}
.card-action > span:last-child { font-size: 15px; line-height: 1; transition: transform 220ms ease; }

/* Show the card surface focus treatment for keyboard focus, not pointer clicks. */
.card:has(:focus-visible) .card-shell {
  border-color: rgba(83, 109, 59, 0.52);
  box-shadow: 0 20px 44px -28px rgba(39, 49, 35, 0.42), 0 0 0 2px rgba(83, 109, 59, 0.13), inset 0 1px rgba(255, 255, 255, 0.9);
}

/* The homepage lead card uses the same surface with a wider image column. */
.card-main .card-shell {
  display: grid;
  gap: 0 20px;
  grid-template-areas: "topline media" "copy media" "action media";
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.88fr);
  grid-template-rows: auto 1fr auto;
  padding: 20px;
}
.hero-grid > .card.card-main {
  display: flex;
  grid-template-columns: minmax(0, 1fr);
  grid-row: auto;
}
.card-main .card-topline { grid-area: topline; }
.card-main .card-copy { grid-area: copy; align-self: center; min-height: 0; padding: 22px 4px 18px 0; }
.card-main .card-title { font-size: clamp(32px, 3.4vw, 50px); }
.card-main .card-desc { font-size: 13px; -webkit-line-clamp: 3; }
.card-main .card-media { grid-area: media; height: 100%; min-height: 310px; aspect-ratio: auto; }
.card-main .card-action { grid-area: action; margin-top: 0; }

/* Other article surfaces retain their layouts while adopting the light palette. */
.card:has(:focus-visible),
.hero-brief:has(:focus-visible),
.kitchen-card:has(:focus-visible),
.dinner-result:has(:focus-visible),
.search-result:focus-visible { outline-color: var(--forest-focus); }
.hero-brief,
.kitchen-card--guide { border-bottom-color: var(--line); }
.hero-brief:hover,
.hero-brief:has(:focus-visible),
.kitchen-card--guide:hover,
.kitchen-card--guide:has(:focus-visible) {
  border-radius: 10px;
  background-color: rgba(238, 241, 232, 0.78);
  box-shadow: 0 10px 26px rgba(39, 49, 35, 0.08);
}
.hero-brief-meta,
.hero-sidebar-head > span,
.cat-count,
.article-meta,
.nav-label,
.search-result .sr-meta,
.footer-bottom p { color: #707a6c; }
.hero-sidebar {
  border-color: var(--line);
  background: rgba(238, 241, 232, 0.86);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.82);
}
.hero-sidebar-head { border-bottom-color: var(--line); }
.hero-sidebar-head h2 { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.hero-brief-title { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.hero-brief-desc { color: var(--ink-soft); }
.hero-brief-number { color: var(--c-recipes); }
.hero-brief-media { background: #e3e8dd; }

.section-kicker { color: #607747; font-size: 10px; letter-spacing: 0.14em; }
.section-title { color: var(--ink); font-size: clamp(29px, 3vw, 40px); font-weight: 400; letter-spacing: -0.035em; }
.section-more { color: #536d3b; }
.section-more:hover { color: #344c2b; }
.hero.container {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  overflow: visible;
  margin: 0;
  padding: 52px max(28px, calc((100vw - var(--container)) / 2)) 54px;
  /* Keep the site-wide moving atmosphere continuous behind the Hero. */
  background: transparent;
}

/* Extend the local glow beyond the Hero and feather its edges into the site background. */
.hero-glow {
  position: absolute;
  z-index: 0;
  inset: -30% 0;
  pointer-events: none;
  background:
    radial-gradient(34rem 30rem at 12% 22%, rgba(218, 77, 62, 0.29), transparent 72%),
    radial-gradient(42rem 34rem at 84% 20%, rgba(139, 87, 163, 0.25), transparent 74%),
    radial-gradient(46rem 36rem at 58% 86%, rgba(75, 140, 91, 0.30), transparent 76%),
    radial-gradient(24rem 22rem at 92% 70%, rgba(224, 174, 70, 0.19), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 14%, #000 34%, #000 66%, rgba(0, 0, 0, 0.18) 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 14%, #000 34%, #000 66%, rgba(0, 0, 0, 0.18) 86%, transparent 100%);
  opacity: 0.88;
  transform: translate3d(-9%, -6%, 0) scale(1.02);
  animation: hero-ingredient-drift 20s ease-in-out infinite alternate;
}

/* Move only the Hero's color layer so cards and text remain visually stable. */
@keyframes hero-ingredient-drift {
  from { transform: translate3d(-9%, -6%, 0) scale(1.02); }
  to { transform: translate3d(9%, 6%, 0) scale(1.10); }
}

.hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent calc(25% - 0.5px), rgba(84, 106, 68, 0.055) 25%, transparent calc(25% + 0.5px)),
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(84, 106, 68, 0.055) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(90deg, transparent calc(75% - 0.5px), rgba(84, 106, 68, 0.055) 75%, transparent calc(75% + 0.5px));
  content: "";
  pointer-events: none;
}
.hero::after {
  position: absolute;
  z-index: 0;
  bottom: -0.16em;
  left: max(28px, calc((100vw - var(--container)) / 2));
  color: rgba(48, 66, 40, 0.035);
  content: "THE DAILY SKILLET";
  font-size: clamp(48px, 10vw, 156px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.95;
  pointer-events: none;
  white-space: nowrap;
}
.hero > * { position: relative; z-index: 1; }
.hero > .hero-glow { z-index: 0; }
.hero .section-head { margin-bottom: 20px; }
.hero .section-title { font-size: clamp(30px, 4.1vw, 52px); }

.cat-card {
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), transparent 62%), var(--card);
  box-shadow: 0 16px 36px -28px rgba(39, 49, 35, 0.28), inset 0 1px rgba(255, 255, 255, 0.8);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.cat-card:hover {
  border-color: rgba(83, 109, 59, 0.3);
  box-shadow: 0 20px 40px -28px rgba(39, 49, 35, 0.35), inset 0 1px rgba(255, 255, 255, 0.86);
}
.cat-name { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.cat-desc { color: var(--ink-soft); }
.kitchen-card--feature,
.home-tool,
.dinner-result,
.article-nav a,
.contact-form {
  border-color: var(--line);
  background: var(--card);
  box-shadow: var(--surface-shadow);
}
.kitchen-media,
.dinner-result-image { background: #e3e8dd; }
.kitchen-title { font-family: var(--serif); font-weight: 400; }
.kitchen-desc,
.kitchen-meta { color: var(--ink-soft); }
.kitchen-cta { color: #536d3b; }
.kitchen-cta:hover { color: var(--cat); }
.home-tool-title { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 31px); font-weight: 400; }
.home-tool-intro { color: var(--ink-soft); }
/* Both home tools inherit the shared thin outline; the seasonal surface keeps its soft tint. */
.seasonal-tool { background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), transparent 62%), #edf0e7; }
.dinner-picker-label { color: var(--ink-soft); }
.dinner-time-trigger,
.dinner-time-menu,
.dinner-result {
  border-color: var(--line);
  background: var(--card-white);
  color: var(--ink);
}
.dinner-time-menu { box-shadow: 0 16px 34px rgba(39, 49, 35, 0.16); }
.dinner-time-trigger:hover,
.dinner-time-trigger[aria-expanded="true"] { border-color: var(--forest-accent); }
.dinner-time-trigger[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(83, 109, 59, 0.14); }
.dinner-time-option { color: var(--ink); }
.dinner-time-option[aria-selected="true"] { background: #e8eee0; color: #344c2b; }
.dinner-time-option:hover { background: #f0f3eb; }
.dinner-picker-button,
.button { background: #536d3b; color: #fffefa; font-weight: 600; }
.dinner-picker-button:hover,
.button:hover { background: #40592f; color: #fffefa; }
.dinner-result-copy { color: var(--ink); }
.dinner-result-title { font-family: var(--serif); font-weight: 400; }
.dinner-result-meta span:first-child { color: var(--c-recipes); }
.dinner-result-description,
.dinner-picker-status,
.market-item p,
.market-sources { color: var(--ink-soft); }
.market-item { border-top-color: var(--line); }
.market-sources a { color: #536d3b; }
.market-sources a:hover { color: #344c2b; }

.article-hero { padding-top: 34px; }
.breadcrumb,
.breadcrumb a { color: #586457; }
.breadcrumb a:hover { color: var(--ink); }
/* Make the article-page return link read as a compact, site-colored pill. */
.back-home {
  padding: 8px 16px;
  border: 1px solid rgba(83, 109, 59, 0.22);
  border-radius: 999px;
  background: #edf1e8;
  color: #536d3b;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.back-home:hover {
  border-color: rgba(83, 109, 59, 0.4);
  background: #dfe8d4;
  color: #344c2b;
}
.article-header { max-width: 820px; }
.article-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.article-cover { border-color: var(--line); box-shadow: 0 22px 48px rgba(39, 49, 35, 0.1); }
.prose {
  max-width: 68ch;
  color: #384238;
  font-size: 17px;
  font-weight: 350;
  line-height: 1.82;
}
.prose p { margin-bottom: 1.45em; }
.prose h2 {
  margin-top: 2.15em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(25px, 2.8vw, 32px);
  font-weight: 400;
  letter-spacing: -0.025em;
}
.prose h3 { color: #344c2b; font-family: var(--serif); font-size: 23px; font-weight: 400; }
.prose a { color: #496a35; }
.prose a:hover { color: #2f4828; }
.prose blockquote {
  border-left-color: var(--c-recipes);
  color: #4d594a;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
}
.article-nav a { transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
.article-nav a:hover { border-color: rgba(83, 109, 59, 0.34); }
.nav-title { font-family: var(--serif); font-size: 17px; font-weight: 400; }

.cat-hero { border-bottom-color: var(--line); }
.cat-hero h1 { font-family: var(--serif); font-size: clamp(36px, 4.6vw, 54px); font-weight: 400; letter-spacing: -0.04em; }
.cat-hero p { color: var(--ink-soft); }
.static-title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.04em; }
.static-title em { color: var(--c-restaurants); }
.contact-block { border-left-color: var(--block-accent, var(--c-recipes)); }
.contact-block h2 { font-family: var(--serif); font-weight: 400; }
.contact-block p,
.contact-intro,
.contact-note { color: var(--ink-soft); }
.contact-form input,
.contact-form textarea,
.search-box input {
  border-color: #cfd8ca;
  background: var(--card-white);
  color: var(--ink);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder,
.search-box input::placeholder { color: #737e70; opacity: 1; }
.contact-form input:focus,
.contact-form textarea:focus,
.search-box input:focus {
  border-color: var(--forest-accent);
  box-shadow: 0 0 0 3px rgba(83, 109, 59, 0.16);
}

.search-box input { font-family: var(--sans); }
.search-discovery-heading p { color: var(--ink-soft); }
.search-suggestion {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}
.search-suggestion:hover {
  border-color: rgba(83, 109, 59, 0.44);
  background: #e7eddf;
  color: #344c2b;
}
.search-topic-link { border-top-color: var(--line); }
.search-topic-title { font-family: var(--sans); font-weight: 500; }
.search-topic-description,
.search-result p { color: var(--ink-soft); }
.search-result { border-bottom-color: var(--line); }
.search-result h3 { font-family: var(--serif); font-weight: 400; }
.search-empty { color: var(--ink-soft); }

.site-footer {
  border-top-color: var(--line);
  background: #edf0e7;
}
.footer-name { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.footer-note,
.footer-legal a { color: var(--ink-soft); }
.footer-legal a:hover { color: var(--ink); }
.footer-bottom { border-top-color: var(--line); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card:hover { --viewport-reveal-hover-y: 0px; }
  .card:hover .card-shell {
    border-color: rgba(190, 208, 153, 0.98);
    box-shadow: 0 30px 60px -30px rgba(39, 49, 35, 0.4), 0 0 0 1px rgba(134, 162, 97, 0.16), inset 0 1px rgba(255, 255, 255, 0.9);
    transform: translateY(-7px) rotateX(var(--card-rx)) rotateY(var(--card-ry));
  }
  .card:hover .card-media img { filter: saturate(1.05) contrast(1.03); transform: scale(1.035); }
  .card:hover .card-orb { background: #344b2b; color: #e4edcf; transform: rotate(9deg) scale(1.06); }
  .card:hover .card-action > span:last-child { transform: translate(2px, -2px); }
}

@media (min-width: 981px) and (max-width: 1100px) {
  .header-inner {
    gap: 12px;
    padding-right: 24px;
    padding-left: 24px;
  }
  .brand { gap: 10px; padding-right: 5px; }
  .brand-icon { width: 44px; height: 44px; flex-basis: 44px; }
  .brand-name { font-size: 24px; }
  .brand-tagline { font-size: 8px; letter-spacing: 0.13em; }
  .main-nav { gap: 2px; padding: 4px; }
  .nav-link { min-height: 42px; padding: 8px 10px; font-size: 13px; }
}

@media (max-width: 980px) {
  .mobile-header-actions { display: flex; }
  .mobile-header-actions .menu-toggle { display: block; }
  .header-inner { min-height: 78px; }
  .main-nav { display: none; }
  .mobile-nav__inner { padding: 10px 28px 18px; }
  .hero.container { padding-top: 40px; padding-bottom: 42px; }
  .card-main .card-shell { display: flex; min-height: auto; }
  .hero-grid .card-main .card-copy { align-self: stretch; flex: none; min-height: 0; padding: 10px 2px 16px; }
  .hero-grid .card-main .card-media { flex: 0 0 auto; min-height: 0; aspect-ratio: 16 / 9; }
}

/* Fit the wordmark and both touch targets on narrow phones without clipping. */
@media (max-width: 480px) {
  .header-inner .brand { min-width: 0; gap: 6px; padding-right: 0; }
  .header-inner .brand-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .header-inner .brand-name { font-size: clamp(14px, 4vw, 19px); }
  .header-inner .brand-tagline { display: none; }
  .mobile-header-actions { gap: 4px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding-right: 22px; padding-left: 22px; }
  .header-inner { min-height: 72px; padding-top: 8px; padding-bottom: 8px; gap: 10px; }
  .brand { gap: 10px; padding-right: 7px; }
  .brand-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; }
  .brand-name { font-size: clamp(20px, 5.4vw, 23px); }
  .menu-toggle { width: 44px; height: 44px; flex: 0 0 44px; padding: 9px; }
  .mobile-nav__inner { padding-right: 22px; padding-left: 22px; }
  .hero.container { padding: 34px 22px; }
  .hero::before { opacity: 0.55; }
  .hero-glow { opacity: 0.58; }
  .hero::after { bottom: -0.08em; left: 18px; font-size: 14vw; }
  .hero .section-title { font-size: clamp(30px, 8vw, 40px); }
  .hero-sidebar { background: rgba(238, 241, 232, 0.94); }
  .section-title { font-size: 29px; }
  .card-shell { padding: 15px; border-radius: 25px; }
  .card-topline { gap: 7px; }
  .card-meta { gap: 5px; font-size: 8px; letter-spacing: 0.055em; }
  .card-topline .badge { padding: 4px 7px; font-size: 8px; letter-spacing: 0.07em; }
  .card-copy { min-height: 122px; padding: 11px 1px 14px; }
  .card-title { font-size: clamp(24px, 7vw, 29px); }
  .card-desc { font-size: 12px; line-height: 1.55; }
  .card-media { min-height: 0; aspect-ratio: 16 / 10; border-radius: 18px; }
  .card-orb { width: 40px; height: 40px; }
  .card-action { margin-top: 12px; padding-top: 10px; }
  .card-main .card-shell { padding: 15px; }
  .card-main .card-title { font-size: clamp(29px, 8vw, 38px); }
  .prose { font-size: 16px; line-height: 1.78; }
  .article-title { font-size: clamp(32px, 9vw, 44px); }
  .search-discovery { padding-right: 0; padding-left: 0; }
  .search-box input { min-height: 48px; }
  .footer-inner { gap: 24px; }
}

/* Keep the ingredient colors present on small screens without overpowering reading. */
@media (max-width: 760px) {
  body::before { opacity: 0.72; }
  body::after { opacity: 0.52; }
}

@media (prefers-reduced-motion: reduce) {
  /* Keep the ingredient palette visible but stop both moving layers. */
  body::before,
  body::after {
    animation: none;
    transform: none;
  }
  .hero-glow {
    animation: none;
    transform: none;
  }
  .food-trail-layer { display: none; }

  .card,
  .card-shell,
  .card-media img,
  .card-orb,
  .card-action > span:last-child,
  .cat-card,
  .nav-link,
  .hero-brief,
  .kitchen-card,
  .dinner-result,
  .search-result,
  .article-nav a { transition: none; }
  .brand,
  .menu-toggle { transition: none; }

  /* Preserve a brief fade while removing the menu's spatial movement. */
  .mobile-nav,
  .mobile-nav.is-open {
    grid-template-rows: 1fr;
    transform: none;
    transition: opacity 140ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  .card:hover { translate: none; }
  .card-shell,
  .card:hover .card-shell { transform: none; }
  .card:hover .card-media img,
  .card:focus-within .card-media img { filter: none; transform: none; }
  .card:hover .card-orb { transform: none; }
}
