/* Nourish Perspectives — menu page.
   Page-specific only. Tokens, nav, footer and the responsive layer come from
   the canonical Design-System styles.css, which this sits on top of. */
body { background: var(--paper); }

/* ===== HERO ===== */
.hero {
  /* Hero treatment (Design System 2026-09-02/03): banded eyebrow + half-strength pixel-anchored wash. Band fitted per page as --band. */
  --band: 0.2; /* fitted 2026-09-06 */
  --scrim: linear-gradient(to top,
      rgba(0,0,0,0.60) 0px, rgba(0,0,0,0.54) 250px, rgba(0,0,0,0.36) 360px,
      rgba(0,0,0,0.15) 470px, rgba(0,0,0,0.00) 580px);
  position: relative; min-height: 62vh;
  background:
    /* The scrim is anchored in pixels from the bottom rather than set as a
       percentage of the hero. The text block is a band of roughly constant
       height above the bottom edge at every viewport, while its position as
       a PERCENTAGE of the hero swings with window height — so a percentage
       gradient has to dim the whole photograph to protect type that is
       sitting in a moving target. Anchored from the bottom it covers the
       band, feathers out above it, and leaves the top of the picture alone.
       Both candidate photographs are bright backlit greens, which is what
       made this necessary here. */
    var(--scrim),
    var(--hero-img);
  background-size: cover; background-position: center;
  color: #fff; overflow: hidden;
}
.hero .inner {
  max-width: var(--max); margin: 0 auto;
  padding: 120px 32px 64px;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: inherit; position: relative;
}
.hero .crumb {
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #CFE8D4; margin-bottom: 20px; display: block;
  align-self: flex-start; width: fit-content; background: rgba(0,0,0, var(--band, .35)); padding: 7px 14px 8px; border-radius: 2px;
}
.hero .crumb a { color: inherit; text-decoration: none; opacity: 0.85; }

/* The separator rule (.sep) now lives in the canonical styles.css, where
   every section can inherit it. It is not repeated here. */

.hero h1 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(44px, 6.4vw, 86px); line-height: 1.0;
  color: #fff; margin: 0 0 22px; letter-spacing: -0.025em; max-width: 940px;
}
.hero .deck {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45;
  color: rgba(255,255,255,0.94); max-width: 760px; margin: 0;
}
.credit {
  font-family: var(--sans); font-weight: 500; font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted-text); display: block; margin-top: 10px;
}
.hero .credit {
  position: absolute; right: 0; bottom: 22px; margin: 0;
  color: rgba(255,255,255,0.85); text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
/* the A/B marker — delete this rule and its span once a photograph is chosen */
.prov {
  display: inline-block; align-self: flex-start; margin-bottom: 16px;
  font-family: var(--sans); font-weight: 600; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--soil); background: var(--honey); padding: 5px 10px;
}

/* ===== TOOLBAR ===== */
.bar { background: var(--cream); border-bottom: 1px solid var(--line);
       position: sticky; top: 0; z-index: 20; }
.bar .inner {
  max-width: var(--max); margin: 0 auto; padding: 13px 32px;
  display: flex; flex-direction: column;
}
.bar .row { display: flex; align-items: center; gap: 8px; }
.bar .filters { flex-wrap: wrap; }
.bar .filters button {
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.06em;
  padding: 10px 18px; min-height: 44px;
  border: 1px solid var(--line); background: transparent;
  border-radius: 999px; cursor: pointer; color: var(--soil);
}
.bar .filters button { padding: 9px 16px; }
.bar .filters button[aria-pressed="true"] {
  background: var(--lagoon-chip); color: #fff; border-color: var(--lagoon-chip);
}
.bar .filters button .n {
  font-weight: 400; opacity: 0.6; margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.bar .filters button[aria-pressed="true"] .n { opacity: 0.75; }
.empty {
  grid-column: 1 / -1; padding: 40px 0;
  font-family: var(--sans); font-size: 17px; color: var(--muted-text);
}

/* ===== GRID ===== */
.grid-wrap { max-width: var(--max); margin: 0 auto;
             padding: clamp(40px,6vw,72px) 32px clamp(56px,9vw,96px); }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.group-head {
  grid-column: 1 / -1; margin: 22px 0 -6px;
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--lagoon-text);
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.group-head:first-child { margin-top: 0; }
.p-card {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  background-color: var(--soil); background-size: cover; background-position: center;
  text-decoration: none; color: #fff; display: block;
  transition: transform 0.3s ease;
}
/* The card photograph is a real <img> so the browser can lazy-load it: as an inline
   background-image all 38 were fetched before the page settled — 5.76 MB for a screen showing two
   cards. It sits at z-index 0 because ::after (the scrim) is 1 and .tag/.body are 2. */
.p-card .card-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0; display: block;
}
.p-card:hover { transform: translateY(-2px); }
.p-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 72%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}
.p-card .tag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--sans); font-weight: 600; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: #fff;
  padding: 5px 10px; background: var(--lagoon-chip); z-index: 2;
}
.p-card .body { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; }
.p-card .who {
  font-family: var(--sans); font-weight: 600; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--honey); display: block; margin-bottom: 8px;
}
.p-card .title {
  font-family: var(--sans); font-weight: 600;
  font-size: 21px; line-height: 1.2; color: #fff; margin: 0;
  letter-spacing: -0.005em;
}
/* .foot-brand / .foot-logo / .foot-note now live with .site-footer in the
   canonical styles.css. They were only ever here, which is why the story
   pages — which do not load this file — rendered the footer logo at its
   natural size. Not repeated. */

@media (max-width: 1100px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1199px) {
  .bar .filters {
    /* the pills run wider than a phone, so they scroll sideways rather than
       stacking into four rows. width + min-width keep the row from sizing
       the flex column to its own content, which would push the page wide. */
    display: block; white-space: nowrap;
    width: 100%; min-width: 0; max-width: 100%;
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .bar .filters button + button { margin-left: 8px; }
  .bar .filters::-webkit-scrollbar { display: none; }
  .bar .filters button { white-space: nowrap; display: inline-block; }
  /* Edge fade (Kirk, 30 Oct 2026: the standard for every swipe row, as on the Videos theme pills and the
     lesson bar). The edge with more filters fades; both edges fade mid-swipe. .over is set by the
     filters-fade script only when the row is wider than the screen. */
  .bar .filters.over { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
                               mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
  .bar .filters.over.mid { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 56px), transparent);
                                   mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 56px), transparent); }
  .bar .filters.over.end { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px);
                                   mask-image: linear-gradient(to right, transparent, #000 40px); }
}
@media (max-width: 900px) {
  /* two rows of controls is too much to pin to the top of a phone */
  .bar { position: static; }
  .bar .inner { padding: 12px 24px 14px; }
}
@media (max-width: 700px) {
  .menu-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero .inner { padding: 100px 24px 52px; }
  /* the text stack is taller on a phone — the headline wraps to three or
     four lines — so the band the scrim has to cover reaches higher */
  .hero {
    --scrim: linear-gradient(to top,
      rgba(0,0,0,0.90) 0px,
      rgba(0,0,0,0.87) 400px,
      rgba(0,0,0,0.76) 500px,
      rgba(0,0,0,0.44) 590px,
      rgba(0,0,0,0.12) 680px,
      rgba(0,0,0,0.00) 750px);
  }
}
