/* ==========================================================================
   Food Stories: listing (home) + article (single)
   ========================================================================== */

/* Hero script accent
   -------------------------------------------------------------------------- */
.stories-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.stories-hero__script { font-size: clamp(32px, 2.2vw + 10px, 54px); transform: rotate(-4deg); margin: 0 4% 8px 0; text-align: right; }

/* Story meta (category marker, date line)
   -------------------------------------------------------------------------- */
.story-cat { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.story-cat::before { content: ""; width: 10px; height: 10px; background: var(--gold-500); }
.story-meta { font-size: 14px; letter-spacing: 0.02em; color: var(--gold-600); text-transform: uppercase; margin: 0 0 16px; display: flex; gap: 8px 18px; flex-wrap: wrap; }

/* Featured story
   -------------------------------------------------------------------------- */
.featured { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 88px); align-items: center; margin-bottom: clamp(56px, 6vw, 104px); }
.featured__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.featured__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.featured:hover .featured__media img { transform: scale(1.03); }
.featured h2 { font-family: var(--font-serif); font-weight: 800; font-size: clamp(28px, 1.6vw + 12px, 42px); line-height: 1.2; margin-bottom: 16px; }
.featured h2 a { text-decoration: none; }
.featured h2 a:hover { color: var(--gold-600); }
.featured .text-lg { max-width: 48ch; margin-bottom: 24px; }

/* Filter bar + grid
   -------------------------------------------------------------------------- */
.stories__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: clamp(28px, 3vw, 48px); border-top: 1px solid rgba(11, 26, 44, 0.14); margin-bottom: clamp(24px, 2.5vw, 40px); flex-wrap: wrap; }
.stories__title { font-family: var(--font-serif); font-weight: 800; font-size: clamp(24px, 1vw + 14px, 32px); }
.story-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(20px, 2vw, 36px); }

/* Story card (image variant + text-only news variant)
   -------------------------------------------------------------------------- */
.story-card article { height: 100%; display: flex; flex-direction: column; }
.story-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 20px; }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.story-card:hover .story-card__media img { transform: scale(1.04); }
.story-card h3 { font-family: var(--font-serif); font-weight: 800; font-size: clamp(21px, 0.6vw + 14px, 26px); line-height: 1.25; margin-bottom: 12px; color: var(--heading); }
.story-card h3 a { text-decoration: none; }
.story-card h3 a:hover { color: var(--gold-600); }
.story-card__excerpt { color: var(--muted); font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
.story-card .line-link { margin-top: auto; }
.story-card--text article { --heading: var(--white); --muted: var(--muted-on-navy); background: var(--navy-900); color: var(--text-on-navy); padding: clamp(24px, 2vw, 36px); }
.story-card__date { font-family: var(--font-serif); font-weight: 800; font-size: clamp(40px, 2.4vw + 14px, 64px); line-height: 1; color: var(--gold-500); margin: 8px 0 4px; }
.story-card__month { font-size: 15px; color: var(--muted-on-navy); margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid rgba(214, 167, 82, 0.4); }
.story-card--text h3 a:hover { color: var(--gold-500); }
.story-card--text .line-link { color: var(--gold-500); }

/* Dark grid (related stories, on navy) */
.band--navy .story-card h3 a:hover { color: var(--gold-500); }
.band--navy .story-meta,
.band--navy .story-card .line-link { color: var(--gold-500); }
.band--navy .story-card--text article { background: var(--navy-800); box-shadow: inset 0 0 0 1px rgba(214, 167, 82, 0.35); }

/* Shelf band (food tiles on navy)
   -------------------------------------------------------------------------- */
.shelf__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 96px); align-items: center; }
.shelf .h-section { margin-bottom: 18px; }
.shelf .text-lg { max-width: 44ch; margin-bottom: 28px; }
.shelf__items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 36px); }
.shelf .food-tile { gap: 16px; color: var(--white); }
.shelf .food-tile__label { font-size: clamp(15px, 0.4vw + 12px, 18px); }

/* Article
   -------------------------------------------------------------------------- */
.story-hero__head { max-width: 980px; }
.story-hero__meta { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 15px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--gold-500); margin: 0; }
.story-hero__meta span::before { content: "·"; margin-right: 20px; }
.story-body { padding-top: 0; }
.story-cover { max-width: 1200px; margin: 0 auto; aspect-ratio: 21 / 9; overflow: hidden; transform: translateY(calc(-1 * clamp(28px, 3vw, 56px))); }
.story-cover img { width: 100%; height: 100%; object-fit: cover; }
.story-cover:empty { display: none; }

.prose { max-width: 740px; margin: clamp(24px, 3vw, 48px) auto 0; font-size: 18px; line-height: 1.75; }
.prose p { color: var(--muted-on-cream); }
.prose .lede { font-size: clamp(19px, 0.5vw + 15px, 22px); line-height: 1.6; color: var(--text-on-cream); }
.prose .lede::first-letter { font-family: var(--font-serif); font-weight: 800; float: left; font-size: 3.4em; line-height: 0.9; padding: 6px 12px 0 0; color: var(--gold-600); }
.prose h2 { font-family: var(--font-serif); font-weight: 800; font-size: clamp(26px, 1vw + 16px, 34px); line-height: 1.25; margin: 1.8em 0 0.7em; }
.prose .num-steps li { grid-template-columns: 60px 1fr; padding: 22px 0; border-top-color: rgba(214, 167, 82, 0.5); }
.prose .num-steps li::before { color: var(--gold-600); line-height: 1.2; }
.prose .num-steps h3 { font-weight: 700; font-size: 19px; }
.prose .num-steps p { font-size: inherit; line-height: inherit; }

.recipe-options { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0 0 8px; }
.recipe-card { background: var(--navy-900); color: var(--text-on-navy); padding: 28px; font-size: 16px; line-height: 1.6; }
.recipe-card h3 { font-family: var(--font-serif); font-weight: 800; font-size: 22px; color: var(--white); margin-bottom: 6px; }
.recipe-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-500); margin: 18px 0 8px; }
.recipe-card ul { margin: 0; padding: 0; list-style: none; }
.recipe-card li { padding: 6px 0; border-bottom: 1px solid rgba(244, 239, 230, 0.1); }
.prose .recipe-card p { color: var(--muted-on-navy); margin: 0; }
.prose .recipe-card .recipe-card__note { color: var(--gold-500); font-size: 15px; margin-bottom: 18px; }
@media (min-width: 1200px) {
  .recipe-options { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(1200px, calc(100vw - 2 * var(--gutter))); margin-left: 50%; transform: translateX(-50%); }
}

.story-cta { max-width: 740px; margin: clamp(40px, 4vw, 64px) auto 0; padding: clamp(24px, 2.4vw, 36px); background: var(--cream-50); box-shadow: inset 0 0 0 1px var(--line-gold-strong); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.story-cta:empty { display: none; }
.story-cta p { margin: 0; font-family: var(--font-serif); font-weight: 800; font-size: clamp(20px, 0.6vw + 14px, 24px); }

/* Tablet / mobile
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .stories-hero__grid { grid-template-columns: 1fr; }
  .stories-hero__script { text-align: left; margin: 0; }
  .featured, .shelf__grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf__items { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
  .story-cover { aspect-ratio: 16 / 10; }
  /* Readable gold on cream */
  .band--cream .story-meta, .prose .num-steps li::before { color: var(--gold-700); }
  /* Article meta: stack instead of orphaning the "·" separator at the start of a line */
  .story-hero__meta { flex-direction: column; gap: 4px; }
  .story-hero__meta span::before { display: none; }
  .recipe-card h4 { font-size: 14px; }
}
@media (max-width: 640px) {
  .story-grid { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .prose .num-steps li { grid-template-columns: 44px 1fr; }
}
