/* Maynard Focus — components. Depends on tokens.css and base.css.
   Direction (D-021): modern editorial. A compact header bar, single hairline
   rules, serif headlines over a sans UI. No large header illustration. */

.rule-thin { border: 0; border-top: var(--hair) solid var(--rule); margin: 0; }

/* ===================================================================
   Brand: mark + wordmark (the wordmark is live text of site.name)
   =================================================================== */
.brand {
  --brand-size: var(--step-mast);
  display: inline-flex;
  align-items: flex-end;
  gap: 0.22em;
  font-size: var(--brand-size);
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  max-width: 100%;
}
.brand__name { min-width: 0; }
.brand__mark { width: 1.08em; height: 1.08em; margin-bottom: -0.05em; }
.brand__name {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-wrap-style: balance;
}
a.brand:hover .brand__name { text-decoration: underline; text-decoration-thickness: 0.04em; text-underline-offset: 0.12em; }
/* Fixed sizes keyed to the mark's rendered height (mark = 1.08em). */
.brand--24  { --brand-size: 1.389rem; }
.brand--48  { --brand-size: 2.778rem; }
.brand--96  { --brand-size: 5.556rem; }
.brand--96 .brand__name { letter-spacing: -0.03em; }
/* At poster size the lockup stacks: the mark leads and the name sits beneath
   at a size that still fits a phone. */
.brand--240 { --brand-size: 13.889rem; flex-direction: column; align-items: flex-start; gap: 0.14em; }
.brand--240 .brand__name { font-size: clamp(2.5rem, 1.6rem + 3.8vw, 5rem); letter-spacing: -0.025em; }
.brand--24 .brand__name { font-variation-settings: "opsz" 24; letter-spacing: -0.005em; font-weight: 600; }

/* Header-bar size: the mark sits at ~26-30 px beside a 22-26 px name. */
.brand--head { --brand-size: clamp(1.375rem, 1.2714rem + 0.442vw, 1.625rem); align-items: center; gap: 0.3em; }
.brand--head .brand__mark { width: 1.45em; height: 1.45em; margin-block: -0.15em; }
.brand--head .brand__name { font-weight: 600; font-variation-settings: "opsz" 24; letter-spacing: -0.012em; line-height: 1.1; }

/* ===================================================================
   Site header: one bar plus a scrollable topic row. Sticky (owner request);
   pure CSS, so it works without JavaScript. --head-h is the measured
   height and feeds scroll-padding so anchors and focused links are never
   hidden underneath it (WCAG 2.4.11).
   =================================================================== */
:root { --head-h: 6.25rem; }
@media (min-width: 36em) { :root { --head-h: 7rem; } }
html { scroll-padding-top: calc(var(--head-h) + var(--s-4)); }

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: var(--hair) solid var(--rule);
}
/* Frosted bar where supported and wanted; solid paper otherwise. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (prefers-reduced-transparency: no-preference) {
    .site-head {
      background: color-mix(in oklab, var(--paper) 96%, transparent);
      -webkit-backdrop-filter: blur(14px) saturate(1.3);
      backdrop-filter: blur(14px) saturate(1.3);
    }
  }
}
/* Short screens (phones held sideways): don't pin, it would eat the page. */
@media (max-height: 32em) {
  .site-head { position: static; }
  html { scroll-padding-top: var(--s-4); }
}
.site-head__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-6);
  padding-block: var(--s-4);
}
.site-head__links {
  display: flex;
  gap: var(--s-5);
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
}
.site-head__links a { color: var(--ink); text-decoration: none; }
/* 44 px tall touch targets without moving anything: padding out, margin back in. */
.site-head__links a { display: inline-block; padding-block: 11px; margin-block: -11px; }
@media (max-width: 35.99em) { .site-head__links .wide-only { display: none; } .site-head__bar { flex-wrap: nowrap; padding-block: var(--s-3); } }
/* Keep the pinned bar one line tall on the smallest phones: the name never
   wraps, and only the last header link stays (the rest are in the footer). */
.brand--head .brand__name { white-space: nowrap; }
@media (max-width: 22.99em) { .site-head__links a:not(:last-child) { display: none; } }
.site-head__links a:hover { text-decoration: underline; text-underline-offset: 0.3em; }

.site-nav { border-top: var(--hair) solid var(--rule); }
.site-nav ul {
  display: flex;
  overflow-x: auto;
  gap: var(--s-6);
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  scrollbar-width: none;
}
/* On narrow screens, fade the right edge so it's clear the row scrolls. */
@media (max-width: 63.99em) {
  .site-nav ul { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); padding-right: var(--s-8); }
}
.site-nav a { color: var(--ink-muted); text-decoration: none; }
/* The padding lives on the links (not the scrolling list) so each is a 44 px target. */
.site-nav a { display: inline-block; padding-block: 13px; }
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brick);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.55em;
}

/* ===================================================================
   Front page: intro, latest updates, coming-up dates
   =================================================================== */
.front-intro { display: grid; gap: var(--s-3); padding-block: var(--s-10) var(--s-8); }
.front-intro h1 { font-size: var(--step-4); max-width: 16em; }
.front-intro p:not(.kicker) { max-width: 36em; color: var(--ink-muted); font-size: var(--step-1); line-height: 1.45; }

/* Rail heading: small sans caps on a strong rule. */
.rail-head {
  font-family: var(--sans);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-top: 2px solid var(--ink);
  padding-top: var(--s-3);
  margin-bottom: var(--s-1);
}

.feed { list-style: none; margin: 0; padding: 0; }
.feed__item {
  display: grid;
  gap: var(--s-2);
  padding-block: var(--s-6);
  border-bottom: var(--hair) solid var(--rule);
}
@media (min-width: 48em) {
  .feed__item { grid-template-columns: 7rem minmax(0, 1fr); column-gap: var(--s-6); }
  .feed__item > :not(.feed__when) { grid-column: 2; }
  .feed__when { grid-row: 1 / span 4; padding-top: 0.2em; }
  .feed__kind { display: block; }
}
.feed__kind::after { content: " "; }
.feed__when { font-family: var(--sans); font-size: var(--step--1); color: var(--ink-muted); font-variant-numeric: tabular-nums lining-nums; line-height: 1.4; }
.feed__tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-4); }
.feed__title { font-size: var(--step-2); font-weight: 600; line-height: 1.18; text-wrap-style: balance; }
.feed__title a { color: var(--ink); text-decoration: none; }
.feed__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.feed__summary { color: var(--ink-muted); max-width: 40em; }
.feed__action { font-family: var(--sans); font-size: var(--step--1); font-weight: 600; color: var(--brick); }
.feed__item--lead .feed__title { font-size: var(--step-4); font-weight: 500; letter-spacing: -0.012em; line-height: 1.08; }
.feed__item--lead .feed__summary { font-size: var(--step-1); line-height: 1.45; }

.upcoming { list-style: none; margin: 0; padding: 0; }
.upcoming li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  padding-block: var(--s-4);
  border-bottom: var(--hair) solid var(--rule);
}
.upcoming time { display: grid; justify-items: center; line-height: 1; padding-top: 0.15em; }
.upcoming__mon { font-family: var(--sans); font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brick); }
.upcoming__day { font-size: var(--step-3); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; margin-top: 2px; }
.upcoming__what { font-size: var(--step--1); line-height: 1.4; font-family: var(--sans); }
.upcoming__what a { color: var(--ink); font-weight: 600; text-decoration: none; }
.upcoming__what a:hover { text-decoration: underline; }
.upcoming__what span { display: block; color: var(--ink-muted); margin-top: 2px; }

/* ===================================================================
   Topic symbol + label, status glyph + label
   =================================================================== */
.topic {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.topic svg { width: 1.5rem; height: 1.5rem; color: var(--ink-muted); }
a.topic:hover { text-decoration: underline; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.status svg { width: 1em; height: 1em; color: var(--river); }
.status--paused svg, .status--cancelled svg, .status--unclear svg { color: var(--ink-muted); }

/* Action level: words first; brick only for a dated action. */
.action-level {
  font-family: var(--sans);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.action-level--act_by_date { color: var(--brick); }

/* ===================================================================
   Issue page
   =================================================================== */
.issue__head { display: grid; gap: var(--s-4); padding-block: var(--s-10) var(--s-8); }
.issue__head h1 { max-width: 18em; }
.issue__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  padding-top: var(--s-4);
  border-top: var(--hair) solid var(--rule);
}

.part + .part { margin-top: var(--s-10); }
.part__label {
  font-family: var(--sans);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: var(--s-2);
  margin-bottom: var(--s-4);
  border-bottom: var(--hair) solid var(--rule);
}

/* What you need to do: a quiet wash with a brick rule across the top. */
.action {
  background: var(--brick-wash);
  border-top: 2px solid var(--brick);
  padding: var(--s-5) var(--s-5) var(--s-6);
}
.action .part__label { color: var(--brick); border-bottom-color: color-mix(in srgb, var(--brick) 30%, transparent); }
.action__deadline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-1) var(--s-3);
  margin-bottom: var(--s-3);
}
.action__deadline-label { font-family: var(--sans); font-size: var(--step--1); font-weight: 600; color: var(--brick); }
.action__deadline time { font-size: var(--step-2); font-weight: 600; line-height: 1.1; }
.action__how { margin-top: var(--s-4); font-family: var(--sans); font-size: var(--step--1); }

/* Side column: definition list of facts. */
.facts { display: grid; gap: var(--s-4); }
.facts div { display: grid; gap: 2px; }
.facts dt { font-family: var(--sans); font-size: var(--step--2); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.facts dd { font-size: var(--step--1); line-height: 1.45; font-family: var(--sans); }

/* Sources: numbered, dated, with the short supporting excerpt. */
.sources { counter-reset: src; display: grid; gap: var(--s-5); padding: 0; list-style: none; }
.sources > li {
  counter-increment: src;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: var(--s-1) 0;
  font-size: var(--step--1);
  line-height: 1.45;
}
.sources > li::before {
  content: counter(src);
  font-family: var(--sans);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--brick);
  grid-row: span 3;
}
.sources > li:target { background: var(--paper-sunk); outline: var(--s-2) solid var(--paper-sunk); }
.sources__title { font-weight: 600; }
.sources__meta { font-family: var(--sans); font-size: var(--step--2); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.sources blockquote {
  margin: var(--s-1) 0 0;
  padding-left: var(--s-3);
  border-left: var(--hair) solid var(--rule-strong);
  font-style: italic;
  color: var(--ink-muted);
}

.last-verified { font-family: var(--sans); font-size: var(--step--2); color: var(--ink-muted); }

/* ===================================================================
   Timeline (an ordered list; the visuals are decoration on top of it)
   =================================================================== */
.timeline { margin: 0; }
.issue .timeline { margin-bottom: var(--s-12); }
.timeline__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-6); align-items: baseline; margin-bottom: var(--s-5); }
.timeline__legend { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); font-family: var(--sans); font-size: var(--step--2); color: var(--ink-muted); }
.timeline__legend span { display: inline-flex; align-items: center; gap: var(--s-2); }
.timeline__legend span::before { content: ""; width: 1.5rem; border-top: 2px solid var(--river); }
.timeline__legend .lg-expected::before { border-top-style: dashed; }

.timeline__list {
  --dot: 0.75rem;
  --track: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.tl {
  position: relative;
  display: grid;
  gap: 2px;
  align-content: start;
  font-family: var(--sans);
  font-size: var(--step--1);
  line-height: 1.35;
}
.tl__date { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.tl__label { font-family: var(--serif); font-size: var(--step-0); line-height: 1.3; }
.tl__flag {
  justify-self: start;
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tl::before, .tl::after { content: ""; position: absolute; }
/* the dot */
.tl::after {
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--river);
  border: var(--track) solid var(--river);
}
/* expected: a hollow ring (a dashed 12px ring breaks up into arcs); the dashed track and the word carry the rest */
.tl--expected::after { background: var(--paper); }
.tl--expected .tl__date, .tl--expected .tl__label { color: var(--ink-muted); }
.tl--now::after { border-radius: 0; width: 3px; height: calc(var(--dot) * 2.5); background: var(--ink); border: 0; }
.tl--now { color: var(--ink); }
.tl--now .tl__label { font-style: italic; }

/* Vertical (default, mobile and print). */
.timeline__list { gap: var(--s-6); padding-left: var(--s-8); }
.tl::before { left: calc(var(--s-8) * -1 + var(--dot) / 2 - var(--track) / 2); top: 0.4rem; bottom: calc(var(--s-6) * -1 - 0.4rem); border-left: var(--track) solid var(--river); }
.tl:last-child::before { display: none; }
.tl--expected::before, .tl--now::before { border-left-style: dashed; }
.tl::after { left: calc(var(--s-8) * -1); top: 0.3rem; }
.tl--now::after { left: calc(var(--s-8) * -1 + var(--dot) / 2 - var(--track) / 2); top: -0.1rem; }
.tl--now { background: var(--river-wash); padding: var(--s-2) var(--s-3); margin-left: calc(var(--s-3) * -1); }
.tl--now::before { left: calc(var(--s-8) * -1 + var(--dot) / 2 - var(--track) / 2 + var(--s-3)); }
.tl--now::after { left: calc(var(--s-8) * -1 + var(--dot) / 2 - var(--track) / 2 + var(--s-3)); top: var(--s-2); }

/* Horizontal from 48em: one column per event, track along the top. */
@media screen and (min-width: 48em) {
  .timeline__list {
    padding-left: 0;
    padding-top: calc(var(--dot) + var(--s-4));
    grid-auto-flow: column;
    grid-auto-columns: minmax(9.5rem, 1fr);
    gap: 0 var(--s-5);
    overflow-x: auto;
  }
  .tl { padding-right: var(--s-2); }
  .tl::before {
    left: 0; right: calc(var(--s-5) * -1); bottom: auto;
    top: calc((var(--dot) + var(--s-4)) * -1 + var(--dot) / 2 - var(--track) / 2);
    border-left: 0;
    border-top: var(--track) solid var(--river);
  }
  .tl:last-child::before { display: block; right: 0; }
  .tl--expected::before, .tl--now::before { border-top-style: dashed; }
  .tl::after { left: 0; top: calc((var(--dot) + var(--s-4)) * -1); }
  .tl--now { margin-left: 0; padding: var(--s-2) var(--s-3); }
  .tl--now::before { left: 0; }
  .tl--now::after { left: var(--s-3); top: calc((var(--dot) + var(--s-4)) * -1 - var(--dot) / 2); height: calc(var(--dot) * 2 + var(--s-4)); }
}

/* The single reveal: the list wipes in once, left to right (top to bottom
   on narrow screens). Off under reduced motion and in print. */
@media screen and (prefers-reduced-motion: no-preference) {
  .timeline__list { animation: tl-reveal-v 900ms var(--ease) both; }
  @media (min-width: 48em) { .timeline__list { animation-name: tl-reveal-h; } }
}
@keyframes tl-reveal-h { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tl-reveal-v { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ===================================================================
   Empty state
   =================================================================== */
.empty { display: grid; gap: var(--s-4); justify-items: center; text-align: center; padding-block: var(--s-12); }
.empty svg { width: min(22rem, 100%); height: auto; color: var(--ink-muted); }
.empty h2 { font-size: var(--step-2); }
.empty p { max-width: 30em; color: var(--ink-muted); }

/* ===================================================================
   Footer
   =================================================================== */
.site-foot { margin-top: var(--s-16); padding-block: var(--s-6) var(--s-12); border-top: var(--hair) solid var(--rule); font-family: var(--sans); font-size: var(--step--1); color: var(--ink-muted); }
.site-foot a { color: inherit; }

.issue__title { font-size: var(--step-5); font-weight: 500; letter-spacing: -0.015em; line-height: 1.04; max-width: 18em; }
