/* Feed pages (EXL-FEED-DESIGN-012B). The corporate tokens and the base
   layout live in site-theme.css; this sheet styles the feed list, the
   publication pages and the home feed section with the same geometry as the
   inner pages (.inner-page-header / .inner-card). */

/* Noto Sans, self-hosted so the frozen publication pages (feed/<slug>.html,
   byte-frozen by the scope gate) pick the corporate typography up through
   feed.css alone — no template change and no republishing. The other public
   pages load the same family from Google Fonts (with 500/600 weights); there
   the later Google declarations take over, so the home page is unchanged.
   Files and the OFL license: assets/fonts/. */
@font-face {
  font-family: 'Noto Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/noto-sans-regular.ttf") format("truetype");
}
@font-face {
  font-family: 'Noto Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/noto-sans-bold.ttf") format("truetype");
}

/* Page background — the warm ivory of the inner pages, scoped to the feed
   pages (body class from the templates) so the home page keeps its own. */
body.page-feed { background: var(--brand-ivory); }
body.page-feed .site-shell { background: var(--brand-ivory); }

/* Containers — .inner-section geometry (max 1200, fluid inline padding). */
.feed-page, .publication-page {
  width: 100%; max-width: 1200px; margin-inline: auto;
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 48px) clamp(56px, 8vw, 96px);
}

/* Page heading — .inner-page-header metrics; the eyebrow repeats the home
   hero idiom (copper bar + spaced caps), the lead repeats .inner-page-lead. */
.feed-heading { margin: 0 0 clamp(32px, 4vw, 48px); }
.feed-heading > p:first-child {
  color: var(--brand-copper-text); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; border-left: 3px solid var(--brand-copper);
  padding-left: 12px; margin: 0 0 18px;
}
.feed-heading h1, .publication-page h1 {
  font-size: clamp(30px, 4.4vw, 56px); font-weight: 700; line-height: 1.15;
  letter-spacing: -.025em; margin: 0; text-wrap: balance;
}
.feed-heading > p:last-child {
  font-size: clamp(17px, 1.5vw, 20px); color: var(--brand-muted);
  max-width: 720px; margin: 12px 0 0; line-height: 1.65;
}

/* Feed cards — .inner-card geometry (white surface, warm border, 12px
   radius, 28px padding); hover follows the corporate link idiom. */
.feed-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.feed-card { padding: 28px; border: 1px solid var(--brand-warm-border); border-radius: 12px; background: var(--brand-white); }
.feed-card time, .publication-page time, .home-feed-grid time { font-size: .88rem; color: var(--brand-copper-text); }
.feed-card h2 { margin: .65rem 0; font-size: 1.5rem; }
.feed-card h2 a { color: var(--brand-navy); text-decoration: none; }
.feed-card h2 a:hover { color: var(--brand-link); text-decoration: underline; text-underline-offset: .22em; }
.feed-card p { margin: 0; color: var(--brand-muted); line-height: 1.7; }
.feed-empty { padding: 28px; border: 1px solid var(--brand-warm-border); border-radius: 12px; background: var(--brand-white); color: var(--brand-muted); }
.feed-cover { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; background: var(--brand-sand); margin: 0 0 16px; }

/* Publication page — the reading width (780px) is kept; breadcrumbs, date
   and title use the corporate header metrics. */
.publication-page nav { margin: 0; }
.publication-page nav a { color: var(--brand-link); font-weight: 600; text-decoration: none; }
.publication-page nav a:hover { color: var(--brand-navy); }
.publication-page article { max-width: 780px; margin: 0 auto; }
.publication-page time { display: block; margin: 28px 0 0; }
.publication-page h1 { margin: 8px 0 0; }
.publication-cover { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; background: var(--brand-sand); margin: 20px 0 28px; }
.publication-summary { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; color: var(--brand-muted); margin: 16px 0 32px; }
.publication-body { font-size: 1.06rem; line-height: 1.75; overflow-wrap: anywhere; }
.publication-body blockquote { margin: 28px 0; padding: 18px 22px; border-inline-start: 3px solid var(--brand-copper); background: var(--brand-sand); }
.publication-body cite { display: block; margin-top: 12px; color: var(--brand-muted); }
.publication-body figure { margin: 28px 0; }
.publication-body img, .publication-body video { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.publication-body img[hidden] { display: none !important; }
.publication-body video { width: 100%; background: var(--brand-midnight); }
.publication-body figcaption { margin-top: 8px; color: var(--brand-muted); }
.publication-body a { overflow-wrap: anywhere; }
.publication-code { position: relative; padding: 18px; border-radius: 12px; background: var(--brand-midnight); color: #edf7ff; overflow: auto; }
.publication-code figcaption { color: var(--brand-footer-muted); }
.publication-code button, .publication-animation button { margin: 8px 0; padding: 7px 12px; border: 1px solid currentColor; border-radius: 6px; background: transparent; color: inherit; }
.publication-code pre { margin: 10px 0 0; overflow: auto; white-space: pre; }
.publication-code code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

/* Home feed section — kept byte-for-byte as shipped by EXL-FEED-001/002;
   the split with .feed-card above preserves the shipped home geometry
   (24px padding, 14px radius) while the feed list uses the inner-card one. */
.home-feed { width: 100%; max-width: 1296px; margin-inline: auto; padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 72px); background: var(--brand-sand); border-block: 1px solid var(--brand-warm-border); }
.home-feed-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; }
.home-feed-header h2 { margin: 0; }
.home-feed-all { font-weight: 600; color: var(--brand-copper-text); }
.home-feed-all:hover { color: var(--brand-navy); }
.home-feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.home-feed-grid h3 { margin: .6rem 0; }
.home-feed-grid p { overflow-wrap: anywhere; }
.home-feed-grid article { padding: 24px; border: 1px solid var(--brand-warm-border); border-radius: 14px; background: var(--brand-white); }
.home-feed-grid h3 a { color: var(--brand-copper-text); }
.home-feed-grid h3 a:hover { color: var(--brand-navy); }

@media (max-width: 700px) {
  .feed-page, .publication-page { padding: 32px 16px 48px; }
  .feed-list, .home-feed-grid { grid-template-columns: minmax(0, 1fr); }
  .feed-card { padding: 20px; }
}
