/* ============================================================
   PARKSIDE — IN THE NEWS
   Press index. Loads AFTER style.css and only on news.html, so it
   inherits every brand token, the nav/menu/footer and the shared
   .eyebrow / .disp / .lead / .reveal rhythm, and adds nothing but
   the card grid.
   ============================================================ */

/* ---------- intro band ----------
   Carries .sec--dark as well as .sec--deep: --deep supplies the darker
   forest-3 ground, --dark is what the nav's dark-section ScrollTrigger
   in main.js actually watches, so the header sits light over it before
   the first scroll. Extra top padding clears the fixed nav — this band
   opens the page where index.html has a full-height film. */
.newshero {
  padding-top: clamp(132px, 20vh, 230px);
  padding-bottom: clamp(64px, 10vh, 120px);
  overflow: hidden;
}
.newshero .disp { max-width: 14ch; }
.newshero .lead { max-width: 66ch; }

/* a soft leaf wash in the upper right, same gesture as .dapple elsewhere */
.newshero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(62% 54% at 88% -8%, rgba(122, 139, 120, .22), transparent 62%);
}


/* ---------- the grid ---------- */
.news { padding-top: clamp(56px, 9vh, 110px); }
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(20px, 2.6vw, 46px);
  row-gap: clamp(40px, 5.4vw, 78px);
}
@media (min-width: 1600px) { .news__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 980px)  { .news__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .news__grid { grid-template-columns: 1fr; } }

/* ---------- card ----------
   The whole card is the anchor — the headline is not a separate link, so
   there is one target per story and it is the full tile. Every story
   leaves the site, hence target=_blank + the outbound glyph. */
.ncard {
  display: flex; flex-direction: column;
  color: inherit;
}
.ncard:focus-visible { outline: 2px solid var(--gold); outline-offset: 8px; }

.ncard__fig {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--paper-2);
}
.ncard__fig img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1);
}
/* a whisper of forest in the lower edge so mixed-quality press images sit
   on one tone; it lifts on hover, which reads as the photo brightening */
.ncard__fig::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(3, 38, 23, .3), rgba(3, 38, 23, 0) 58%);
  opacity: .72; transition: opacity .6s ease;
}
.ncard:hover .ncard__fig img { transform: scale(1.055); }
.ncard:hover .ncard__fig::after { opacity: .28; }

/* meta rule: hairline at rest, drawn in champagne left-to-right on hover —
   the same gesture the nav links use */
.ncard__meta {
  position: relative;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(16px, 1.6vw, 22px);
  padding-top: clamp(13px, 1.3vw, 17px);
  border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.ncard__meta::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .75s cubic-bezier(.16, 1, .3, 1);
}
.ncard:hover .ncard__meta::before { transform: scaleX(1); }

.ncard__src  { color: var(--gold-ink); }
.ncard__meta time { color: var(--ink-soft); letter-spacing: .14em; }
.ncard__meta time::before { content: "·"; margin-right: 10px; opacity: .5; }

.ncard__title {
  font-family: var(--font-brand); font-weight: 400;
  font-size: clamp(20px, 1.6vw, 26px); line-height: 1.22; letter-spacing: -.004em;
  color: var(--ink);
  margin-top: clamp(9px, 1vw, 13px);
  transition: color .4s ease;
}
.ncard:hover .ncard__title { color: var(--gold-ink); }

/* pinned to the bottom of the tile so the row of prompts lines up across
   cards whose headlines run to different depths */
.ncard__go {
  margin-top: auto;
  padding-top: clamp(14px, 1.6vw, 20px);
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  /* quiet at rest, but stated in a COLOUR rather than an opacity — 11px caps
     faded to ~.6 alpha land around 3:1 on Oat Milk, under AA. --ink-soft is
     5.56 there, and hover moves it to the champagne ink at 5.56. */
  color: var(--ink-soft);
  transition: color .4s ease;
}
.ncard__go svg {
  width: 13px; height: 13px; flex: none;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}
.ncard:hover .ncard__go { color: var(--gold-ink); }
.ncard:hover .ncard__go svg { transform: translate(2px, -2px); }

/* ---------- closing line ---------- */
.news__note {
  margin-top: clamp(52px, 8vh, 96px);
  padding-top: clamp(26px, 3.4vh, 40px);
  border-top: 1px solid var(--line);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.news__note a { color: var(--gold-ink); border-bottom: 1px solid rgba(115, 93, 56, .35); }
.news__note a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ncard__fig img,
  .ncard__meta::before,
  .ncard__go svg { transition: none; }
  .ncard:hover .ncard__fig img { transform: none; }
}
