/* "press": a dense editorial child theme on the Fluid base v2, for local
   news sites. A newspaper serif for heads and the lede, a Franklin Gothic
   for text, kickers and the UI; a smaller type scale, a tighter beat and a
   wider measure so more stories fit above the fold; red kickers and a heavy
   ink rule over each section, like a section front. Fonts:
   themes/fonts/press.css. Link after the base: fluid.min.css, then this
   file. */
@layer reset, tokens, base, layouts, components, themes, utilities;

@layer themes {
  :root {
    --font-heading: "Literata Variable", Literata, Charter, "Iowan Old Style", Georgia, serif;
    --font-body: "Libre Franklin Variable", "Franklin Gothic", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
    --accent: oklch(48% 0.19 27);           /* masthead red; white on it ≈ 7:1 */
    --neutral-tint: oklch(50% 0.006 85);    /* newsprint */
    --text-min: 1;                          /* 16 → 18px: a denser page */
    --text-max: 1.125;
    --type-ratio: 1.3;
    --weight-display: 700;
    --weight-heading: 700;
    --display-max: 4.5rem;                  /* 72px at most: a news head, not a magazine cover */
    --measure: 66ch;
    --container-content: 82rem;
    --space-section: clamp(3rem, 2.25rem + 3.333vi, 5.5rem);   /* 48 → 88: news runs close */
    --space-gutter: clamp(2.5rem, 1.6rem + 4vi, 5.5rem);       /* both sides: 20 → 44px a side */
    --toc-font: var(--font-body);
    --toc-dock-font: var(--font-body);
    --section-rule: 4px;                    /* a heavy ink rule over each section: a section front */
  }

  .display, .hero__headline, h1 {
    line-height: 1.04;
    letter-spacing: -0.015em;
    font-variation-settings: "opsz" 60;
  }
  h2 { letter-spacing: -0.01em; line-height: 1.12; }
  h3 { line-height: 1.2; }

  /* Kickers: the accent, bold Franklin capitals, tight. */
  .eyebrow { font-weight: calc(700 + var(--_dark-weight)); letter-spacing: 0.06em; }
  :is(h5, h6, thead th, .plate, cite, legend, dt, .toc__label, .stat__label) {
    color: var(--color-text);
    font-weight: calc(700 + var(--_dark-weight));
    letter-spacing: 0.06em;
  }
  :is(.nav__link, .nav__dropdown-link), :is(button, .button, .nav__cta) { font-weight: calc(600 + var(--_dark-weight)); }
  /* A news nav packs more links, so a dropdown near the end of the bar would
     open past the screen's edge: the last two items' menus open toward the start. */
  .nav__menu > li:nth-last-child(-n + 2) > .nav__dropdown-menu { inset-inline: auto 0; }
  .nav__brand {
    font-family: var(--font-heading);
    font-weight: calc(800 + var(--_dark-weight));
    font-variation-settings: "opsz" 60;
    letter-spacing: -0.02em;
  }

  .lede { font-weight: calc(400 + var(--_dark-weight)); }   /* the dek: roman, so a phone is not eight lines of italic */
  .meta, time { font-weight: calc(500 + var(--_dark-weight)); }

  blockquote {
    font: italic calc(500 + var(--_dark-weight)) var(--step-2) / 1.25 var(--font-heading);
    border-inline-start: 4px solid var(--accent);
  }
  .stat__value { font-weight: calc(800 + var(--_dark-weight)); }

  /* ---------- Layout signature (_docs/plans/2026-11-22-theme-differentiation.md) ----------
     The theme recomposes the default hero (one with no data-layout; an author's
     data-layout wins) and the bar; the markup stays the core's. */
  /* A light bar in the page's own colours, a hairline under it. */
  :root { --nav-bg: var(--color-background); --nav-ink: var(--color-text); }
  .nav:not([data-bg], [data-variant]) {
    color-scheme: inherit;
    --_dark-weight: inherit;
    border-block-end: 1px solid var(--color-border);
  }
  /* A masthead on a wide screen: the brand centred over a row of links. */
  @media (min-width: 64rem) {
    .nav:not([data-nav]) { flex-wrap: wrap; justify-content: center; row-gap: var(--space-2); }
    .nav:not([data-nav]) > .nav__brand { flex: 1 0 100%; justify-content: center; font-size: var(--step-2); }
    .nav:not([data-nav]) :is(.nav__menu, .nav__actions) { margin-inline: 0; }
  }
  /* The lead story: the photo two-thirds wide, the headline and lede in the column beside it. */
  @media (min-width: 60rem) {
    .hero:not([data-layout]):has(> .hero__plate) {
      display: grid;
      grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
      column-gap: var(--space-l);
      align-items: start;
    }
    .hero:not([data-layout]):has(> .hero__plate) > :not(.hero__plate) { grid-column: 2; }
    .hero:not([data-layout]):has(> .hero__plate) > .hero__plate { grid-column: 1; grid-row: 1 / span 5; margin: 0; }
    .hero:not([data-layout]):has(> .hero__plate) > .hero__plate figcaption { margin-inline: 0; }
    .hero:not([data-layout]):has(> .hero__plate) .hero__headline { font-size: clamp(2rem, 1rem + 2.4vi, 3.4rem); }
  }
}
