/* ==========================================================================
   EDIO — News. Full-bleed picture tiles in the manner of figure.ai/news, kept quiet and premium:
   the newest item large on the left with the next two stacked beside it, then "All articles" three across.
   Each tile: a picture (or a muted looping video), darkened at the foot, a small date and a large white headline.
   ========================================================================== */
:root { --ink-hi: #0E1A20; --rule: rgba(14, 26, 32, .1); }
html { background: #FFFFFF; }

.nf { padding-top: var(--header-h); }

/* ---------- a tile ---------- */
.tile { position: relative; display: block; overflow: hidden; background: #0B1418; color: #FFFFFF; isolation: isolate; }
.tile-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.001); transition: transform 1.6s cubic-bezier(.2, .7, .1, 1), filter .8s ease; filter: saturate(.82) brightness(.9); }
.tile::before { /* the darkening: even and light across the picture, deeper at the foot so the words always read */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(5, 12, 15, .82) 0%, rgba(5, 12, 15, .46) 36%, rgba(5, 12, 15, .2) 66%, rgba(5, 12, 15, .22) 100%);
  transition: background .6s ease;
}
.tile:hover .tile-media, .tile:focus-visible .tile-media { transform: scale(1.04); filter: saturate(.95) brightness(.96); }
.tile:hover::before { background: linear-gradient(0deg, rgba(5, 12, 15, .84) 0%, rgba(5, 12, 15, .44) 38%, rgba(5, 12, 15, .1) 70%, rgba(5, 12, 15, .14) 100%); }
.tile:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.tile-text { position: absolute; left: 0; right: 0; bottom: 0; display: grid; row-gap: 12px; padding: clamp(18px, 1.6vw, 26px) clamp(18px, 1.7vw, 28px) clamp(20px, 1.9vw, 32px); }
.tile-meta { display: flex; align-items: center; gap: 12px; font: 600 13px/1.2 var(--font-display); letter-spacing: 0; color: rgba(255, 255, 255, .86); }
.tile-out { font-weight: 500; color: rgba(255, 255, 255, .62); }
.tile-h { max-width: 22ch; font: 400 clamp(22px, 2.2vw, 36px)/1.1 var(--font-display); letter-spacing: -.02em; color: #FFFFFF; text-wrap: balance; }
/* a thin teal rule draws in under the headline on hover */
.tile-text::after { content: ""; position: absolute; left: clamp(18px, 1.7vw, 28px); bottom: 0; height: 2px; width: 64px; background: var(--cyan-2); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2, .7, .1, 1); }
.tile:hover .tile-text::after { transform: scaleX(1); }

/* ---------- the latest three: one large, two stacked ---------- */
.nf-top { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 560px; max-height: 900px; padding: 10px 10px 0; }
.tile--lead { grid-row: 1 / span 2; }
.tile--lead .tile-h { max-width: 18ch; font-size: clamp(30px, 3.2vw, 52px); }
.tile--lead .tile-text { padding: clamp(22px, 2.2vw, 36px); row-gap: 14px; }
.tile--lead .tile-text::after { left: clamp(22px, 2.2vw, 36px); }

/* ---------- all articles ---------- */
.nf-all { padding: clamp(48px, 5vw, 80px) 0 clamp(64px, 7vw, 112px); }
.nf-label { padding: 0 calc(10px + clamp(18px, 1.7vw, 28px)) 18px; font: 500 15px/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-hi); }
.nf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 10px; }
.tile--grid { aspect-ratio: 4 / 3; }
.js .tile.is-more { display: none; }
.nf-more {
  display: block; margin: 44px auto 0; padding: 15px 30px; border: 1px solid var(--ink-hi); background: transparent;
  font: 600 13px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-hi); cursor: pointer;
  transition: background .3s ease, color .3s ease;
}
.nf-more:hover { background: var(--ink-hi); color: #FFFFFF; }

/* tiles fade up as they arrive */
.js .tile[data-tile] { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .1, 1); }
.js .tile[data-tile].is-in { opacity: 1; transform: none; }

/* ---------- article pages (layout from about.css) ---------- */
.article-src { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--text-mute); }
.article-src a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.article-body h2 { margin-top: 14px; font: 500 clamp(22px, 2vw, 28px)/1.15 var(--font-display); letter-spacing: -.025em; color: var(--fg); }
/* the category and date above the headline, in the site's sans like the rest of the article */
.article .card-meta { font: 500 14px/1.2 var(--font-display); letter-spacing: 0; text-transform: none; }
/* news form: the summary under the headline, the place before the first line, quotes set apart, a note about EDIO */
.article-standfirst { margin-top: 20px; font: 400 clamp(19px, 1.6vw, 23px)/1.45 var(--font-display); letter-spacing: -.01em; color: var(--text-dim); text-wrap: pretty; }
.article-dateline { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--fg); }
.article-quote { margin: 12px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--cyan); }
.article-quote p { font: 500 clamp(21px, 1.9vw, 26px)/1.35 var(--font-display); letter-spacing: -.02em; color: var(--fg); }
.article-quote footer { margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--text-mute); }
.article-about { margin-top: 44px; padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); }
.article-about h2 { font: 500 14px/1.3 var(--font-display); letter-spacing: 0; color: var(--fg); }
.article-about p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--text-dim); }
.article-about + .article-src { border-top: 0; padding-top: 0; margin-top: 20px; }

@media (max-width: 1199px) {
  .nf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .nf-top { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; min-height: 0; max-height: none; gap: 10px; padding-top: 10px; }
  .tile--lead { grid-row: auto; aspect-ratio: 4 / 5; }
  .tile--side { aspect-ratio: 4 / 3; }
  .nf-grid { grid-template-columns: 1fr; }
  .tile-h { font-size: 24px; }
  .tile--lead .tile-h { font-size: 32px; }
  .nf-label { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile-media, .tile::before, .tile-text::after { transition: none; }
  .js .tile[data-tile] { opacity: 1; transform: none; transition: none; }
}
