/* ==========================================================================
   CETA — design system
   Tokens → base → layout → chrome → entries → sections → article → pages
   ========================================================================== */

:root {
  /* colour */
  --ink: #242321;
  --ink-2: #47443F;
  --ink-3: #6B6862;
  --ivory: #FFFFFF;           /* page background */
  --paper: #F6F5F2;           /* quiet panels */
  --stone: #D6D3CD;
  --rule: #E7E5E1;
  --accent: #B30000;          /* CETA red, Latham & Watkins style */
  --accent-deep: #8C0000;
  --accent-tint: #FBEAEA;
  --white: #FFFFFF;

  /* type */
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --fs-label: 0.71875rem;   /* 11.5 */
  --fs-meta: 0.8125rem;     /* 13 */
  --fs-ui: 0.9375rem;       /* 15 */
  --fs-body: 1rem;          /* 16 */
  --fs-lead: 1.1875rem;     /* 19 */
  --fs-h4: 1.1875rem;
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.4375rem);
  --fs-h2: clamp(1.625rem, 1.4rem + 0.9vw, 2rem);
  --fs-h1: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --fs-display: clamp(2.5rem, 1.6rem + 3.4vw, 4.125rem);

  /* space & layout */
  --gutter: clamp(20px, 3.6vw, 64px);
  --content: 1760px;
  --section: clamp(56px, 4rem + 3vw, 104px);
  --radius: 2px;
  --header-h: 92px;
  --rail: 180px;
  --measure: 700px;
  --rail-gap: clamp(40px, 4vw, 72px);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: 160ms;
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

/* The page ground: a barely visible star-and-cross lattice from Uzbek tilework.
   Navigation bands (header, topic strip) stay plain white. */
body {
  margin: 0;
  background: var(--ivory) url("../ground.svg") 0 0 / 76px 76px fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

/* Safeguard: nothing may make the page scroll sideways. `clip` (unlike `hidden`)
   keeps the sticky header and position: sticky rails working. */
html, body { overflow-x: clip; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
kbd { font-family: var(--sans); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--ivory); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--ivory);
  font-size: var(--fs-ui);
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- layout */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
}
.narrow { width: min(100% - 2 * var(--gutter), 860px); }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 3rem + 1.5vw, 64px); }
.section--rule { border-top: 1px solid var(--rule); }
.section--paper { background: var(--paper); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 24vw, 400px);
  gap: clamp(40px, 5vw, 88px);
}
.split__aside { padding-top: 6px; }

.stack > * + * { border-top: 1px solid var(--rule); }

/* ---------------------------------------------------------------- type atoms */

.kicker {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker--light { color: rgba(255, 255, 255, 0.72); }

.label {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent);
  transition: color var(--fast);
}
.label:hover { color: var(--ink); }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 4px;
  font-size: var(--fs-meta);
  color: var(--ink-3);
  font-variant-numeric: lining-nums;
}
.meta > * + *::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin: 0 0.75em;
  vertical-align: -0.08em;
  background: var(--stone);
}
.meta a { color: var(--ink-2); }
.meta a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  --btn-h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: var(--fs-ui);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--fast), color var(--fast), border-color var(--fast);
}
.btn .icon { transition: transform 220ms var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--sm { --btn-h: 42px; padding: 0 20px; font-size: 0.875rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--accent); color: var(--ivory); }
.btn--primary:hover { background: var(--accent-deep); }

.btn--secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--secondary:hover { background: var(--ink); color: var(--ivory); }

.btn--ivory { background: var(--ivory); color: var(--accent); }
.btn--ivory:hover { background: var(--white); color: var(--accent-deep); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--stone);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: border-color var(--fast), color var(--fast), background-color var(--fast);
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ivory); }
.icon-btn[aria-pressed="true"] svg { fill: currentColor; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

/* Logo: "Ulugbek's Arc" mark + name in Bodoni Moda / Jost (Concept A) */
.wordmark {
  --mark: 54px;
  --name: 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--mark) * 0.24);
  flex-shrink: 0;
  color: var(--ink);
}
.wordmark__mark { width: var(--mark); height: var(--mark); flex-shrink: 0; margin-left: calc(var(--mark) * -0.12); }
.wordmark__text { display: grid; justify-items: start; }
.wordmark__the {
  font-family: "Jost", var(--sans);
  font-weight: 500;
  font-size: calc(var(--name) * 0.26);
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
  padding-left: 0.1em;
  margin-bottom: calc(var(--name) * 0.06);
}
.wordmark__name {
  font-family: "Bodoni Moda", var(--serif);
  font-weight: 600;
  font-size: var(--name);
  letter-spacing: 0.03em;
  line-height: 0.92;
}
.wordmark__rule { width: 100%; height: 1.5px; margin-top: 10px; background: currentColor; opacity: 0.7; }
.wordmark__tag {
  margin-top: 8px;
  font-family: "Jost", var(--sans);
  font-weight: 500;
  font-size: 0.59375rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.75;
}
.site-footer .wordmark { --mark: 80px; --name: 3.25rem; color: #FFFFFF; }
.site-footer .wordmark__the { color: #FFFFFF; }

.primary-nav { margin-left: auto; }
.primary-nav > ul { display: flex; align-items: center; gap: 4px; }

.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border: 0;
  background: none;
  font-size: var(--fs-ui);
  color: var(--ink);
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after,
.nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-link__chev { transition: transform 200ms var(--ease); }
.nav-link[aria-expanded="true"] .nav-link__chev { transform: rotate(180deg); }

.nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: -12px;              /* open leftwards so the panel never extends past the screen edge */
  width: 560px;
  padding: 12px;
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 160ms, transform 200ms var(--ease), visibility 0s 200ms;
}
.nav-panel--narrow { width: 340px; }
.nav-item.is-open .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 160ms, transform 200ms var(--ease);
}
.menu--topics { display: grid; grid-template-columns: 1fr 1fr; }
.menu__link {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  transition: background-color var(--fast);
}
.menu__link:hover { background: var(--paper); }
.menu__title { display: block; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.3; }
.menu__desc { display: block; margin-top: 2px; font-size: var(--fs-meta); color: var(--ink-3); line-height: 1.45; }
.menu__link:hover .menu__title { color: var(--accent); }

.site-header__actions { display: flex; align-items: center; gap: 12px; }

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 0.875rem;
  transition: border-color var(--fast);
}
.search-trigger:hover { border-color: var(--ink); }
.search-trigger__hint { color: var(--ink-3); padding-right: 18px; }
.search-trigger kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px; height: 22px;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: var(--ink-3);
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  background: none;
  color: var(--ink);
  margin-right: -10px;
}

/* drawer (mobile navigation) */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--ivory);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer:not([hidden]) { animation: drawer-in 220ms var(--ease); }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-8px); } }
.drawer__inner { width: min(100% - 2 * var(--gutter), 640px); margin-inline: auto; padding-bottom: 40px; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.drawer__top .menu-toggle { display: grid; }
.drawer__search {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-3);
  font-size: var(--fs-ui);
  text-align: left;
}
.drawer__heading {
  margin-top: 32px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.drawer__list a { display: flex; align-items: center; gap: 14px; }
.drawer__list--topics li, .drawer__list--pages li { border-bottom: 1px solid var(--rule); }
.drawer__list--topics a, .drawer__list--pages a {
  min-height: 60px;
  font-family: var(--serif);
  font-size: 1.3125rem;
}
.drawer__list--formats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.drawer__list--formats a { min-height: 48px; font-size: var(--fs-ui); border-bottom: 1px solid var(--rule); }
.drawer__list--pages { margin-top: 24px; border-top: 1px solid var(--ink); }
.drawer .btn--block { margin-top: 32px; }

/* ---------------------------------------------------------------- search dialog */

.search-dialog {
  width: min(100% - 32px, 760px);
  max-height: min(80vh, 720px);
  margin: 10vh auto auto;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ivory);
  color: var(--ink);
  overflow: hidden;
}
.search-dialog[open] { display: flex; flex-direction: column; animation: dialog-in 200ms var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(-6px); } }
.search-dialog::backdrop { background: rgba(36, 35, 33, 0.56); }

.search-dialog__form {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px 0 24px;
  border-bottom: 1px solid var(--rule);
}
.search-dialog__icon { color: var(--accent); flex-shrink: 0; }
.search-dialog__input {
  flex: 1;
  min-width: 0;
  height: 76px;
  border: 0;
  background: none;
  font-family: var(--serif);
  font-size: 1.5rem;
  outline: none;
}
.search-dialog__input::placeholder { color: #A39D94; }
.search-dialog__input::-webkit-search-cancel-button { display: none; }
.search-dialog__close {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 0; background: none;
  color: var(--ink-3);
}
.search-dialog__close:hover { color: var(--ink); }
.search-dialog__results { overflow-y: auto; padding: 12px 0 16px; }

.result {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
  padding: 12px 24px;
  transition: background-color var(--fast);
}
.result.is-active, .result:hover { background: var(--paper); }
.result__thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); }
.result__thumb img { width: 100%; height: 100%; object-fit: cover; }
.result__title { display: block; margin: 2px 0 4px; font-family: var(--serif); font-size: 1.125rem; line-height: 1.3; }
.result mark { background: var(--accent-tint); color: inherit; padding: 0 1px; }
.results__heading {
  padding: 8px 24px 10px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.results__empty { padding: 8px 24px 4px; color: var(--ink-2); }
.results__suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 24px 8px; }

/* ---------------------------------------------------------------- plates */

.plate { position: relative; overflow: hidden; background: var(--stone); aspect-ratio: 16 / 10; }
.plate img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.entry__media:hover img, .entry:has(.entry__title a:hover) .plate img { transform: scale(1.025); }

/* ---------------------------------------------------------------- entries */

.entry__title {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.entry__title a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color var(--fast), background-size 300ms var(--ease);
}
.entry__title a:hover { color: var(--accent); background-size: 100% 1px; }
.entry__standfirst {
  font-family: var(--serif);
  color: var(--ink-2);
  line-height: 1.5;
}

/* lead */
.entry--lead {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.entry--lead .entry__title { margin: 14px 0 18px; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.12; letter-spacing: -0.012em; }
.entry--lead .entry__standfirst { font-size: var(--fs-lead); margin-bottom: 22px; }

/* columns */
.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--rule);
}
.columns { --col-gap: clamp(40px, 4.8vw, 72px); column-gap: var(--col-gap); }
.entry--column { position: relative; display: flex; flex-direction: column; }
.entry--column + .entry--column::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--col-gap) / -2);
  width: 1px;
  background: var(--rule);
}
.entry--column .entry__media { margin-bottom: 22px; }
.entry--column .entry__body { display: flex; flex-direction: column; flex: 1; }
.entry--column .entry__title { margin: 10px 0 12px; font-size: var(--fs-h3); }
.entry--column .entry__standfirst { font-size: 1.0625rem; margin-bottom: 20px; }
.entry--column .meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule); }

/* row */
.entry--row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: clamp(20px, 3vw, 40px);
  padding-block: 30px;
}
.stack > .entry--row:first-child { padding-top: 4px; }
.entry--row .entry__title { margin: 8px 0 10px; font-size: var(--fs-h3); }
.entry--row .entry__standfirst { font-size: 1.0625rem; margin-bottom: 14px; max-width: 46em; }
.entry--row .plate { aspect-ratio: 3 / 2; }

/* compact */
.entry--compact .entry__title { margin: 6px 0 8px; font-size: 1.125rem; }

/* index (archive) */
.entry--index {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 180px;
  gap: 24px;
  padding-block: 28px;
  border-top: 1px solid var(--rule);
}
.entry__date { font-size: var(--fs-meta); color: var(--ink-3); line-height: 1.2; }
.entry__date span { display: block; font-family: var(--serif); font-size: 2rem; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.entry--index .entry__title { margin: 6px 0 8px; font-size: var(--fs-h3); }
.entry--index .entry__standfirst { font-size: 1.0625rem; margin-bottom: 12px; }
.entry__topic { justify-self: end; font-size: var(--fs-meta); color: var(--ink-3); text-align: right; }
.entry__topic:hover { color: var(--accent); }

/* ---------------------------------------------------------------- section head */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 3vw, 40px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}
.section-head__title { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.01em; }
.section-head__sub { margin-top: 6px; color: var(--ink-3); font-size: var(--fs-ui); }
.section-head__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}
.section-head__more .icon { transition: transform 220ms var(--ease); }
.section-head__more:hover .icon { transform: translateX(3px); }

.aside-title {
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--fs-meta); color: var(--ink-3); }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; color: var(--stone); }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current] { color: var(--ink-2); }

/* ---------------------------------------------------------------- hero */

.hero { border-bottom: 1px solid var(--rule); }
.hero__grid {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [content-start] minmax(0, calc(var(--content) * 0.46))
    [mid] minmax(0, calc(var(--content) * 0.54))
    [content-end] minmax(var(--gutter), 1fr) [full-end];
  min-height: clamp(520px, calc(100vh - var(--header-h) - 150px), 680px);
}
.hero__copy {
  grid-column: content-start / mid;
  align-self: center;
  padding: clamp(48px, 6vw, 88px) clamp(24px, 4vw, 64px) clamp(48px, 6vw, 88px) 0;
}
.hero__title {
  margin: 20px 0 24px;
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 13.5ch;
}
.hero__lede { max-width: 33em; font-family: var(--serif); font-size: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__current {
  display: grid;
  gap: 4px;
  max-width: 34em;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.hero__current-label { font-size: var(--fs-meta); color: var(--ink-3); }
.hero__current-title { font-family: var(--serif); font-size: 1.125rem; line-height: 1.35; transition: color var(--fast); }
.hero__current:hover .hero__current-title { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.hero__art { grid-column: mid / full-end; position: relative; overflow: hidden; background: #E6DED2; }
.hero-plate { position: absolute; inset: 0; width: 100%; height: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .hero-plate__line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease) 0.25s forwards; }
  .hero-plate__tiles { opacity: 0; animation: tiles 1.4s ease 0.9s forwards; }
  .hero-plate__frame { opacity: 0; animation: tiles 0.9s ease 0.05s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes tiles { to { opacity: 1; } }

/* ---------------------------------------------------------------- topic strip */

.topic-strip { border-bottom: 1px solid var(--rule); background: var(--ivory); }
.topic-strip__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.topic-strip__list li + li { border-left: 1px solid var(--rule); }
.topic-strip__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px clamp(20px, 2.4vw, 40px) 28px;
}
.topic-strip__list li:first-child .topic-strip__link { padding-left: 0; }
.topic-strip__link::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}
.topic-strip__list li + li .topic-strip__link::before { left: 0; }
.topic-strip__link:hover::before,
.topic-strip__link[aria-current]::before { transform: scaleX(1); }
.topic-strip__name { font-family: var(--serif); font-size: 1.3125rem; line-height: 1.2; transition: color var(--fast); }
.topic-strip__desc { margin-top: 6px; font-size: 0.875rem; color: var(--ink-3); line-height: 1.45; }
.topic-strip__count { margin-top: 14px; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.topic-strip__link:hover .topic-strip__name,
.topic-strip__link[aria-current] .topic-strip__name { color: var(--accent); }

/* ---------------------------------------------------------------- ranked list */

.ranked__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  padding-block: 20px;
  border-bottom: 1px solid var(--rule);
}
.ranked__n {
  font-family: var(--serif);
  font-size: 1.875rem;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: lining-nums;
}
.ranked__title { margin-bottom: 6px; font-size: 1.0625rem; line-height: 1.3; }
.ranked__title a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- regulatory watch */

.watch { overflow-x: auto; }
.watch__table { width: 100%; border-collapse: collapse; }
.watch__table thead th {
  padding: 0 16px 12px 0;
  border-bottom: 1px solid var(--ink);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
}
.watch__table td, .watch__table tbody th {
  padding: 22px 24px 22px 0;
  border-bottom: 1px solid var(--stone);
  vertical-align: baseline;
  text-align: left;
}
.watch__date { white-space: nowrap; font-size: var(--fs-ui); font-variant-numeric: tabular-nums; width: 128px; }
.watch__instrument { font-family: var(--serif); font-size: 1.1875rem; font-weight: 400; line-height: 1.35; }
.watch__body { font-size: var(--fs-ui); color: var(--ink-2); }
.watch__link { text-align: right !important; padding-right: 0 !important; white-space: nowrap; }
.watch__link a { font-size: 0.875rem; font-weight: 500; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.watch__link a:hover { color: var(--ink); }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--accent); }
.status--in-force::before { background: var(--ink); border-color: var(--ink); }
.status--adopted::before { background: var(--accent); }
.status--draft::before { border-color: var(--ink-3); }

/* ---------------------------------------------------------------- voice */

.voice__grid { display: grid; grid-template-columns: 3fr 9fr; gap: clamp(24px, 4vw, 64px); }
.voice__label {
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  align-self: start;
}
.voice__quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-indent: -0.42em;
  max-width: 24ch;
}
.voice__quote p::before { content: "\201C"; color: var(--accent); }
.voice__quote p::after { content: "\201D"; color: var(--accent); }
.voice__caption { display: grid; gap: 6px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rule); max-width: 40em; }
.voice__caption > a { font-family: var(--serif); font-size: 1.1875rem; }
.voice__caption > a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- newsletter */

.newsletter-band {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--ivory);
}
.newsletter-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  padding-block: clamp(56px, 6vw, 88px);
}
.newsletter-band__title { margin: 12px 0 12px; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1.08; letter-spacing: -0.015em; }
.newsletter-band__copy > p:last-child { max-width: 30em; color: rgba(255, 255, 255, 0.82); font-size: var(--fs-ui); }

.newsletter-form__row { display: flex; }
.newsletter-form__input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: transparent;
  color: var(--ivory);
  font-size: var(--fs-ui);
  transition: border-color var(--fast);
}
.newsletter-form__input::placeholder { color: rgba(255, 255, 255, 0.62); }
.newsletter-form__input:focus { outline: none; border-color: var(--ivory); }
.newsletter-form__row .btn { --btn-h: 52px; border-radius: 0 var(--radius) var(--radius) 0; }
.newsletter-form__msg { min-height: 1.5em; margin-top: 12px; font-size: var(--fs-meta); color: rgba(255, 255, 255, 0.72); }
.newsletter-form [aria-invalid="true"] { border-color: #F2B8B5; }
.newsletter-form.is-done .newsletter-form__row { display: none; }
.newsletter-form.is-done .newsletter-form__msg { font-family: var(--serif); font-size: 1.1875rem; color: var(--ivory); margin-top: 0; }

.newsletter-form--light .newsletter-form__input { border-color: var(--stone); color: var(--ink); background: var(--white); }
.newsletter-form--light .newsletter-form__input::placeholder { color: var(--ink-3); }
.newsletter-form--light .newsletter-form__input:focus { border-color: var(--ink); }
.newsletter-form--light .newsletter-form__msg { color: var(--ink-3); }
.newsletter-form--light.is-done .newsletter-form__msg { color: var(--ink); }
.newsletter-form--light [aria-invalid="true"] { border-color: var(--accent); }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.78); font-size: 0.9375rem; }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
  gap: 40px;
  padding-block: 72px 56px;
}
.site-footer__brand p { max-width: 26em; margin-top: 16px; line-height: 1.6; }
.site-footer__heading {
  margin-bottom: 16px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.site-footer li + li { margin-top: 10px; }
.site-footer a:not(.wordmark):hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--fs-meta);
  color: rgba(255, 255, 255, 0.56);
}
.site-footer__base ul { display: flex; gap: 24px; }
.site-footer__base li + li { margin-top: 0; }

/* ---------------------------------------------------------------- page head */

.page-head { padding-block: 36px clamp(48px, 5vw, 72px); border-bottom: 1px solid var(--rule); }
.page-head--compact { padding-bottom: clamp(36px, 4vw, 56px); }
.page-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(32px, 5vw, 80px);
  align-items: end;
  margin-top: clamp(32px, 4vw, 56px);
}
.page-head__title { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.02em; }
.page-head__intro { max-width: 36em; font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); }
.page-head__intro--large { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.4; }
.page-head__count { margin-top: 14px; font-size: var(--fs-meta); color: var(--ink-3); }

/* ---------------------------------------------------------------- article */

.progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* Reading column is centred on the page; contents rail and margin notes take the sides. */
.article-layout {
  display: grid;
  grid-template-columns: minmax(var(--rail), 1fr) minmax(0, var(--measure)) minmax(0, 1fr);
  column-gap: var(--rail-gap);
  align-items: start;
}
.article-main { grid-column: 2; min-width: 0; }
.article-rail { grid-column: 1; justify-self: end; width: min(100%, 240px); position: sticky; top: calc(var(--header-h) + 32px); padding-top: 6px; }

.article { padding-bottom: var(--section); }
.article-head { padding-block: 32px 40px; }
.article-head__inner {
  max-width: 900px;
  margin-top: clamp(32px, 4vw, 56px);
  margin-left: max(calc(var(--rail) + var(--rail-gap)), calc((100% - var(--measure)) / 2));
}
.article-head__kicker { display: flex; align-items: center; font-size: var(--fs-meta); color: var(--ink-3); }
.article-head__kicker > span::before {
  content: ""; display: inline-block; width: 1px; height: 0.85em; margin: 0 12px; background: var(--stone); vertical-align: -0.08em;
}
.article-head__title { margin: 16px 0 20px; font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.018em; }
.article-head__standfirst { max-width: 36em; font-family: var(--serif); font-size: clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem); line-height: 1.45; color: var(--ink-2); }

.byline { display: flex; align-items: center; gap: 14px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); }
.byline__name { font-size: 0.9375rem; font-weight: 500; }
.byline__name a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.byline__date { font-size: var(--fs-meta); color: var(--ink-3); }
.article-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; position: relative; }
.article-actions__status {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  font-size: var(--fs-meta);
  color: var(--ink-2);
  white-space: nowrap;
}

.monogram {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--stone);
  font-family: var(--serif);
  color: var(--ink);
  letter-spacing: 0.04em;
}
.monogram--md { width: 44px; height: 44px; font-size: 0.9375rem; }
.monogram--lg { width: 64px; height: 64px; font-size: 1.375rem; }
.monogram--xl { width: 120px; height: 120px; font-size: 2.5rem; background: var(--accent); color: var(--ivory); }

.article-plate { margin-bottom: clamp(40px, 5vw, 72px); }
.plate--wide { aspect-ratio: 21 / 9; }

/* table of contents */
.toc__title {
  display: block;
  list-style: none;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.toc__title::-webkit-details-marker { display: none; }
.toc ol { margin-top: 8px; }
@media (min-width: 1041px) { .toc__title { pointer-events: none; } }
.toc a {
  display: block;
  padding: 8px 0 8px 14px;
  border-left: 1px solid var(--rule);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink-3);
  transition: color var(--fast), border-color var(--fast);
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); }

/* takeaways */
.takeaways {
  margin-bottom: 48px;
  padding: 28px 32px 30px;
  background: var(--paper);
  border-left: 3px solid var(--accent);
}
.takeaways__title { margin-bottom: 12px; font-size: 1.25rem; font-weight: 500; }
.takeaways li { position: relative; padding-left: 22px; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.55; color: var(--ink-2); }
.takeaways li + li { margin-top: 10px; }
.takeaways li::before, .prose ul > li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.66em;
  width: 6px; height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* prose */
.prose { font-family: var(--serif); font-size: 1.25rem; line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2.1em;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.prose h2 + * { margin-top: 0.6em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.prose a:hover { color: var(--ink); }
.prose strong { font-weight: 600; }
.prose ul { padding: 0; list-style: none; }
.prose ul > li { position: relative; padding-left: 1.4em; }
.prose ul > li + li { margin-top: 0.55em; }
.is-article .prose > p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 -0.02em;
  font-size: 4.2em;
  line-height: 0.8;
  font-weight: 400;
  color: var(--accent);
}

.ref a {
  padding: 0 0.15em;
  font-family: var(--sans);
  font-size: 0.68em;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none !important;
}
.ref a:hover { background: var(--accent-tint); }
sup.ref { line-height: 0; }

.pullquote { margin-block: 2em !important; padding: 28px 0 0; border-top: 2px solid var(--ink); }
.pullquote p { font-style: italic; font-size: 1.75rem; line-height: 1.3; letter-spacing: -0.01em; }
.pullquote figcaption { margin-top: 14px; font-family: var(--sans); font-size: var(--fs-meta); color: var(--ink-3); }

.callout { padding: 24px 28px; border: 1px solid var(--stone); }
.callout__title {
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.callout p:last-child { font-size: 1.125rem; line-height: 1.55; }

.sidenote { display: none; }

.sources { margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--ink); }
.sources__title {
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sources ol { padding-left: 1.6em; font-size: 0.875rem; line-height: 1.6; color: var(--ink-2); }
.sources li { padding: 6px 8px 6px 4px; scroll-margin-top: calc(var(--header-h) + 40px); transition: background-color 400ms; }
.sources li::marker { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.sources li:target { background: var(--accent-tint); }
.sources__back { color: var(--accent); margin-left: 4px; }

.author-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  margin-top: 48px;
  padding-block: 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.author-card__name { font-family: var(--serif); font-size: 1.25rem; }
.author-card__name a:hover { color: var(--accent); }
.author-card__role { font-size: var(--fs-meta); color: var(--accent); font-weight: 500; margin-top: 2px; }
.author-card__bio { margin-top: 10px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.6; }

.disclaimer { margin-top: 24px; font-size: var(--fs-meta); color: var(--ink-3); }
.disclaimer a { text-decoration: underline; text-underline-offset: 3px; }
.disclaimer a:hover { color: var(--accent); }

@media (min-width: 1440px) {
  .sidenote {
    --note: clamp(200px, 15vw, 280px);
    display: block;
    float: right;
    clear: right;
    width: var(--note);
    margin: 0.35em calc(-1 * (var(--note) + var(--rail-gap))) 0 0;
    font-family: var(--sans);
    font-size: 0.78125rem;
    line-height: 1.5;
    color: var(--ink-3);
  }
  .sidenote li { display: grid; grid-template-columns: 18px 1fr; padding-top: 10px; border-top: 1px solid var(--rule); }
  .sidenote li + li { margin-top: 10px; }
  .sidenote__n { color: var(--accent); font-weight: 600; }
  .prose > .sidenote + p { margin-top: 1.1em; }
}

/* ---------------------------------------------------------------- topic & archive pages */

.aside-topics a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding-block: 16px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 1.125rem;
}
.aside-topics a:hover span:first-child { color: var(--accent); }
.aside-topics__count { font-family: var(--sans); font-size: var(--fs-meta); color: var(--ink-3); }
.aside-newsletter { margin-top: 48px; }
.aside-newsletter > p { margin: 14px 0 16px; color: var(--ink-2); font-size: var(--fs-ui); }
.aside-newsletter .newsletter-form__row { flex-direction: column; gap: 8px; }
.aside-newsletter .newsletter-form__input { border-right: 1px solid var(--stone); border-radius: var(--radius); }
.aside-newsletter .newsletter-form__row .btn { border-radius: var(--radius); }

.filters {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  padding-bottom: 24px;
  margin-bottom: 8px;
}
.filters__group { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1; }
.filters__count { grid-column: 2; grid-row: 1 / span 2; align-self: end; font-size: var(--fs-meta); color: var(--ink-3); }

.chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  background: transparent;
  font-size: 0.875rem;
  color: var(--ink-2);
  transition: border-color var(--fast), background-color var(--fast), color var(--fast);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

.month { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; border-top: 1px solid var(--ink); }
.month__title { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; padding-top: 28px; font-size: 1.375rem; }
.month__list { clip-path: inset(1px 0 0 0); }
.month[hidden] { display: none; }
.entry--index[hidden] { display: none; }

.empty { padding-block: 48px; text-align: center; color: var(--ink-2); }
.empty .btn { margin-top: 16px; }

/* ---------------------------------------------------------------- people */

.people { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); }
.person { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding-block: 36px; border-top: 1px solid var(--rule); }
.person:nth-child(-n + 2) { border-top-color: var(--ink); }
.person__name { font-size: 1.5rem; line-height: 1.2; }
.person__name a:hover { color: var(--accent); }
.person__role { margin-top: 4px; font-size: var(--fs-meta); color: var(--accent); font-weight: 500; }
.person__bio { margin-top: 14px; color: var(--ink-2); line-height: 1.6; }
.person__count { margin-top: 14px; font-size: var(--fs-meta); color: var(--ink-3); }

.profile { display: flex; align-items: center; gap: clamp(24px, 4vw, 48px); margin-top: clamp(32px, 4vw, 56px); }
.profile__role { margin: 10px 0 16px; font-size: var(--fs-ui); color: var(--accent); font-weight: 500; }

/* ---------------------------------------------------------------- about */

.about__section { scroll-margin-top: calc(var(--header-h) + 32px); }
.about__section + .about__section { margin-top: 2.6em; padding-top: 1.6em; border-top: 1px solid var(--rule); }
.about__section h2 { margin-top: 0; }

/* ---------------------------------------------------------------- subscribe */

.subscribe { padding-block: 36px var(--section); }
.subscribe__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); }
.subscribe__intro .page-head__title { margin: clamp(32px, 4vw, 56px) 0 20px; }
.subscribe__form { margin-top: clamp(32px, 4vw, 56px); }
.options { margin: 0 0 28px; padding: 0; border: 0; }
.subscribe__legend {
  width: 100%;
  padding-bottom: 12px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--ink);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 18px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  position: relative;
}
.option input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 2px 0 0 4px; }
.option__box {
  width: 20px; height: 20px;
  margin-top: 3px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  transition: background-color var(--fast), border-color var(--fast);
}
.option input:checked + .option__box {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10.5 3.2 3L15 6.5' fill='none' stroke='%23FBF6F1' stroke-width='1.6'/%3E%3C/svg%3E") center / 100% no-repeat;
  border-color: var(--accent);
}
.option input:focus-visible + .option__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.option__title { display: block; font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; }
.option__freq { display: block; margin-top: 2px; font-size: var(--fs-meta); font-weight: 500; color: var(--accent); }
.option__desc { display: block; margin-top: 6px; font-size: var(--fs-ui); color: var(--ink-2); }
.option:hover .option__box { border-color: var(--accent); }

.field { margin-bottom: 16px; }
.field__label { display: block; margin-bottom: 8px; font-size: 0.875rem; font-weight: 500; }
.field__input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--fast);
}
.field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field__input[aria-invalid="true"] { border-color: var(--accent); }
.subscribe__form .newsletter-form__msg { color: var(--ink-3); }
.subscribe__form .newsletter-form__msg a { text-decoration: underline; text-underline-offset: 3px; }
.subscribe__form.is-done .options, .subscribe__form.is-done .field, .subscribe__form.is-done .btn { display: none; }
.subscribe__form.is-done .newsletter-form__msg { font-family: var(--serif); font-size: 1.375rem; line-height: 1.4; color: var(--ink); padding-top: 24px; border-top: 1px solid var(--ink); }

/* ---------------------------------------------------------------- search page, 404 */

.search-page__form { display: flex; gap: 8px; margin-top: 28px; }
.search-page__input {
  flex: 1; min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--serif);
  font-size: 1.25rem;
}
.search-page__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.search-page__form .btn { --btn-h: 56px; }
.search-page__suggest { margin-top: 16px; }
.search-page__suggest[hidden] { display: none; }
.link-list a { display: block; padding-block: 14px; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 1.1875rem; }
.link-list a:hover { color: var(--accent); }
.not-found { padding-block: clamp(64px, 10vw, 140px); }
.not-found .page-head__intro { margin-top: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .primary-nav .nav-link { padding: 0 10px; }
  .nav-link::after { left: 10px; right: 10px; }
  .search-trigger__hint, .search-trigger kbd { display: none; }
  .search-trigger { padding: 0; width: 42px; justify-content: center; }
}

@media (max-width: 1040px) {
  :root { --header-h: 76px; }
  .primary-nav, .site-header__subscribe { display: none; }
  .site-header__actions { margin-left: auto; gap: 4px; }
  .search-trigger { border: 0; }
  .menu-toggle { display: grid; }
  .wordmark { --mark: 46px; --name: 1.875rem; }

  .split { grid-template-columns: 1fr; }
  .split__aside { padding-top: 0; }

  .article-layout { display: block; }
  .article-head__inner { margin-left: 0; max-width: 760px; }
  .article-rail { position: static; margin-bottom: 40px; }
  .article-rail:empty { display: none; }
  .article-main, .about .prose { max-width: 680px; }
  .toc { border-block: 1px solid var(--ink) var(--rule); }
  .toc__title {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0; border-bottom: 0; cursor: pointer;
  }
  .toc__title::after {
    content: ""; width: 8px; height: 8px; margin-right: 4px;
    border: solid var(--ink); border-width: 0 1.25px 1.25px 0;
    transform: translateY(-2px) rotate(45deg); transition: transform 200ms var(--ease);
  }
  .toc[open] .toc__title::after { transform: translateY(2px) rotate(-135deg); }
  .toc ol { margin: 0 0 16px; }

  .newsletter-band__inner { grid-template-columns: 1fr; gap: 28px; align-items: start; }
    .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: [full-start] var(--gutter) [content-start mid] minmax(0, 1fr) [content-end] var(--gutter) [full-end]; min-height: 0; }
  .hero__art { grid-column: full-start / full-end; grid-row: 1; height: clamp(240px, 62vw, 400px); }
  .hero__copy { grid-column: content-start / content-end; padding: 36px 0 48px; }
  .hero__title { max-width: 17ch; }

  .topic-strip__list { grid-template-columns: 1fr 1fr; }
  .topic-strip__list li:nth-child(3) { border-left: 0; }
  .topic-strip__list li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .topic-strip__list li:nth-child(odd) .topic-strip__link { padding-left: 0; }
  .topic-strip__link { padding-block: 24px; }

  .entry--lead { grid-template-columns: 1fr; }
  .entry--lead .entry__body { max-width: 640px; }

  .columns { grid-template-columns: 1fr; padding-top: 0; border-top: 0; margin-top: 40px; }
  .entry--column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 148px;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid var(--rule);
  }
  .entry--column + .entry--column::before { display: none; }
  .entry--column .entry__media { grid-column: 2; grid-row: 1; margin: 0; }
  .entry--column .entry__media .plate { aspect-ratio: 1; }
  .entry--column .entry__body { grid-column: 1; grid-row: 1; }
  .entry--column .meta { border-top: 0; padding-top: 0; }

  .voice__grid { grid-template-columns: 1fr; }
  .voice__label { justify-self: start; }

  .page-head__grid { grid-template-columns: 1fr; }
  .month { grid-template-columns: 1fr; gap: 0; }
  .month__title { position: static; padding-top: 24px; }
  .subscribe__grid { grid-template-columns: 1fr; gap: 0; }
  .people { grid-template-columns: 1fr; }
  .person:nth-child(2) { border-top-color: var(--rule); }

  /* regulatory watch becomes a stacked list */
  .watch__table, .watch__table tbody, .watch__table tr, .watch__table td, .watch__table tbody th { display: block; }
  .watch__table thead { display: none; }
  .watch__table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
    padding-block: 20px;
    border-bottom: 1px solid var(--stone);
  }
  .watch__table td, .watch__table tbody th { padding: 0; border: 0; width: auto; }
  .watch__date { grid-column: 1; font-size: var(--fs-meta); color: var(--ink-3); }
  .watch__table td:nth-child(4) { grid-column: 2; grid-row: 1; }
  .watch__instrument { grid-column: 1 / -1; }
  .watch__body { grid-column: 1; font-size: var(--fs-meta); }
  .watch__link { grid-column: 2; text-align: right; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .wordmark { --mark: 40px; --name: 1.625rem; }

  .hero__actions .btn { flex: 1 1 100%; }
  .hero__current { margin-top: 32px; }

  .topic-strip__list { grid-template-columns: 1fr; }
  .topic-strip__list li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .topic-strip__link { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 18px 0; }
  .topic-strip__desc { display: none; }
  .topic-strip__count { margin: 0; }

  .section-head__title { font-size: 1.625rem; }

  .entry--row { grid-template-columns: minmax(0, 1fr) 104px; gap: 16px; padding-block: 22px; }
  .entry--row .plate { aspect-ratio: 1; }
  .entry--row .entry__standfirst,
  .entry--column .entry__standfirst { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1rem; }
  .entry--column { grid-template-columns: minmax(0, 1fr) 104px; gap: 16px; }
  .entry--row .entry__title, .entry--column .entry__title, .entry--index .entry__title { font-size: 1.1875rem; }

  .entry--index { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding-block: 22px; }
  .entry__date span { font-size: 1.625rem; }
  .entry__topic { display: none; }
  .filters { grid-template-columns: 1fr; }
  .filters__group { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters__group::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .filters__count { grid-column: 1; grid-row: auto; }

  .article-head { padding-bottom: 28px; }
  .article-head__title { font-size: 2.125rem; line-height: 1.1; }
  .byline { flex-wrap: wrap; }
  .article-plate { width: 100%; }
  .plate--wide { aspect-ratio: 16 / 10; }
  .prose { font-size: 1.125rem; line-height: 1.68; }
  .prose h2 { font-size: 1.5rem; }
  .pullquote p { font-size: 1.4375rem; }
  .takeaways { padding: 22px 20px 24px; margin-inline: calc(var(--gutter) * -1); border-left-width: 3px; }
  .callout { padding: 20px; }
  .author-card { grid-template-columns: 48px 1fr; gap: 16px; }
  .author-card .monogram--lg { width: 48px; height: 48px; font-size: 1.0625rem; }

  .newsletter-form__row { flex-direction: column; gap: 8px; }
  .newsletter-form__input { border-right: 1px solid rgba(255, 255, 255, 0.55); border-radius: var(--radius); }
  .newsletter-form__row .btn { border-radius: var(--radius); }

  .site-footer__grid { grid-template-columns: 1fr 1fr; padding-block: 56px 40px; }
  .site-footer__grid > div:last-child { grid-column: 1 / -1; }

  .profile { flex-direction: column; align-items: flex-start; }
  .monogram--xl { width: 88px; height: 88px; font-size: 1.875rem; }
  .person { grid-template-columns: 48px 1fr; gap: 16px; }
  .person .monogram--lg { width: 48px; height: 48px; font-size: 1.0625rem; }

  .search-dialog { margin-top: 12px; max-height: calc(100vh - 24px); }
  .search-dialog__input { height: 64px; font-size: 1.25rem; }
  .search-dialog__form { padding-left: 18px; }
  .result { grid-template-columns: 64px 1fr; padding: 12px 18px; gap: 14px; }
  .results__heading, .results__empty, .results__suggest { padding-inline: 18px; }
  .search-page__form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .newsletter-band, .article-rail, .article-actions, .progress, .section--rule { display: none !important; }
  body { background: #fff; }
  .article-layout { display: block; }
  .prose { font-size: 11.5pt; }
}

/* Long-form text sits on clean white so the ground never competes with reading. */
.article-main, .subscribe__form, .search-dialog, .nav-panel { background-color: var(--ivory); }
.article-main { box-shadow: 0 0 0 clamp(16px, 2vw, 32px) var(--ivory); }

/* Fixed backgrounds repaint poorly on touch devices; scroll with the page there. */
@media (hover: none) {
  body { background-attachment: scroll; }
}

/* ---------------------------------------------------------------- launch state */

.format-list { margin: 0; border-top: 0; }
.format-list__item {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr);
  gap: 8px 32px;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
}
.format-list__item:first-child { padding-top: 4px; }
.format-list dt { font-family: var(--serif); font-size: 1.3125rem; line-height: 1.25; }
.format-list dd { margin: 0; color: var(--ink-2); line-height: 1.55; }
.aside-text { margin: 16px 0 20px; color: var(--ink-2); line-height: 1.6; }

.empty--start { padding: 40px 0; text-align: left; }
.empty--start p { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); margin-bottom: 4px; }

.newsletter-form .btn { margin-top: 2px; }
.newsletter-form__msg a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.option--static { grid-template-columns: 1fr auto; align-items: center; cursor: default; }

@media (max-width: 640px) {
  .format-list__item { grid-template-columns: 1fr; }
  .option--static { grid-template-columns: 1fr; }
  .option--static .btn { justify-self: start; }
}
