/* ---------------------------------------------------------
   THE COMMON — city journal
   Cool paper, municipal ink, cobalt and signal lime.
   --------------------------------------------------------- */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("assets/work-sans.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f2f1ec;
  --paper-bright: #fbfbf7;
  --paper-dim: #e7e6df;
  --ink: #121417;
  --ink-soft: #30343a;
  --muted: #5a5f67;
  --rule: #c8c7bf;
  --rule-dark: #9a9a92;
  --blue: #1b36f0;
  --blue-deep: #1429bd;
  --blue-text: #1730c9;
  --lime: #d9ff5b;
  --orange: #d9480f;

  --culture: #1b36f0;
  --food: #d9480f;
  --movement: #0b7a58;
  --people: #9b2c8f;
  --places: #8a5b00;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --page-pad: clamp(20px, 3.2vw, 48px);
  --max: 1380px;
  --ease: cubic-bezier(.2, .7, .25, 1);
}

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

html {
  background: var(--paper);
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection { background: var(--lime); color: var(--ink); }

img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, input, select { touch-action: manipulation; }
a { color: inherit; }

[hidden] { display: none !important; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

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

/* ---------------------------------------------------------
   Utility strip + masthead
   --------------------------------------------------------- */

.utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 36px;
  padding: 6px var(--page-pad);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.utility p { margin: 0; }
.utility-issue { display: flex; gap: 10px; color: #c9cbd1; }
.utility-issue span:first-child { color: var(--lime); }

.masthead {
  border-bottom: 2px solid var(--ink);
  padding: clamp(24px, 3.2vw, 46px) var(--page-pad) clamp(22px, 2.8vw, 38px);
}
.masthead-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.brand { min-width: 0; }
.brand-eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-eyebrow span { color: var(--blue); }

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(66px, 8.9vw, 124px);
  font-weight: 700;
  line-height: .78;
  letter-spacing: -.072em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark-dot {
  display: inline-block;
  width: .17em;
  height: .17em;
  margin-left: .055em;
  background: var(--blue);
  vertical-align: baseline;
}
.tagline {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink-soft);
}

.masthead-side {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 4px;
}
.city-mark {
  width: 218px;
  height: auto;
  color: var(--ink);
}
.masthead-note {
  margin: 0;
  max-width: 275px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Browse shell
   --------------------------------------------------------- */

.browse-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(34px, 4vw, 56px) var(--page-pad) 72px;
  display: grid;
  grid-template-columns: minmax(260px, 318px) minmax(0, 1fr);
  gap: clamp(36px, 4.8vw, 72px);
  align-items: start;
}

.rail {
  position: sticky;
  top: 24px;
  min-width: 0;
}
.kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker span { color: var(--blue); }

.rail-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(30px, 2.8vw, 38px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 700;
}
.rail-copy {
  margin: 0 0 28px;
  max-width: 280px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

.controls { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.search-wrap { position: relative; display: flex; align-items: center; }
.search-icon {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
#search {
  width: 100%;
  min-height: 48px;
  padding: 12px 50px 12px 40px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--paper-bright);
  font-family: var(--font-body);
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
}
#search::placeholder { color: #787c83; opacity: 1; }
#search:hover { background: #fff; }
#search:focus { background: #fff; }
#search::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute;
  right: 2px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
}
.search-clear svg { width: 16px; height: 16px; }
.search-clear:hover { background: var(--paper-dim); }

.select-wrap { position: relative; display: flex; }
#filter {
  width: 100%;
  min-height: 48px;
  padding: 10px 42px 10px 13px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--paper-bright);
  font-family: var(--font-body);
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
}
#filter:hover { background: #fff; }
#filter:focus { background: #fff; }
.select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.saved-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--paper-bright);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.saved-toggle:hover { background: var(--paper-dim); }
.saved-toggle[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--ink);
}
.saved-toggle .bookmark-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.saved-toggle[aria-pressed="true"] .bookmark-icon { fill: var(--ink); }
.saved-count {
  margin-left: auto;
  min-width: 25px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-bright);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
}
.saved-toggle[aria-pressed="true"] .saved-count { background: var(--ink); }

.result-count {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail-topics {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.rail-label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.topic-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.topic-swatch {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--swatch, var(--blue));
}
.topic-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}
.rail-footnote {
  margin: 26px 0 0;
  max-width: 280px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Index
   --------------------------------------------------------- */

.index { min-width: 0; }
.index-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--ink);
}
.index-head .kicker { margin-bottom: 12px; }
.index-head h2 {
  margin: 0;
  max-width: 620px;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.7vw, 52px);
  line-height: .95;
  letter-spacing: -.05em;
  font-weight: 700;
}
.index-dek {
  margin: 0 0 5px;
  max-width: 210px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  text-align: right;
}

.story-list { border-bottom: 2px solid var(--ink); }

.story {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 10px 26px 0;
  border-bottom: 1px solid var(--rule);
  transition: background .18s var(--ease), box-shadow .18s var(--ease);
}
.story:last-child { border-bottom: 0; }
.story:hover { background: rgba(251, 251, 247, .62); box-shadow: inset 4px 0 0 var(--blue); }
.story:focus-within { background: rgba(251, 251, 247, .8); box-shadow: inset 4px 0 0 var(--blue); }

.story-index {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 21px;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.story:hover .story-index,
.story:focus-within .story-index { color: var(--blue); }

.story-content { min-width: 0; }
.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}
.category-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--swatch, var(--blue));
}

.story-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(23px, 2.15vw, 31px);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.open-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}
.open-item .open-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--blue);
  transition: transform .18s var(--ease);
}
.open-item .open-arrow svg { width: 17px; height: 17px; display: block; }
.open-item:hover { color: var(--blue-text); }
.open-item:hover .open-arrow { transform: translate(3px, -3px); }
.open-item:focus-visible { outline-offset: 5px; }

.story-saved {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: var(--lime);
  color: var(--ink);
  font-size: 9.5px;
  letter-spacing: .07em;
}
.story-saved svg { width: 11px; height: 11px; fill: var(--ink); }

.story-summary {
  margin: 9px 0 0;
  max-width: 61ch;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.story-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .03em;
  color: var(--muted);
}
.story-foot .byline-name { color: var(--ink-soft); }

/* Empty state */
.empty-state {
  padding: 70px 12px 76px;
  text-align: left;
  max-width: 560px;
}
.empty-num {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 72px;
  line-height: .8;
  letter-spacing: -.07em;
  color: var(--rule-dark);
}
.empty-state h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.empty-state p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 44ch;
}
.empty-state button,
.article-return {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.empty-state button:hover,
.article-return:hover { background: var(--blue); border-color: var(--blue); }
.saved-toggle:active,
.close-detail:active,
.save-item:active,
.empty-state button:active,
.article-return:active { transform: translateY(1px); }
.article-return svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--page-pad) 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer p { margin: 0; }

/* ---------------------------------------------------------
   Detail / article page
   --------------------------------------------------------- */

.detail {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
}

.article-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 9px var(--page-pad);
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}
.close-detail,
.save-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid transparent;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.close-detail { justify-self: start; }
.close-detail svg { width: 17px; height: 17px; }
.close-detail:hover { border-color: var(--ink); }
.save-item { justify-self: end; border-color: var(--ink); }
.save-item:hover { background: var(--paper-bright); }
.save-item .bookmark-icon { width: 17px; height: 17px; }
.save-item[aria-pressed="true"] { background: var(--lime); border-color: var(--ink); }
.save-item[aria-pressed="true"] .bookmark-icon { fill: var(--ink); }
.close-short { display: none; }

.article-bar-mark {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .13em;
  color: var(--muted);
  white-space: nowrap;
}
.article-bar-mark span { color: var(--blue); }

.article-head {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: var(--paper);
}
.article-head-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(44px, 5.5vw, 82px) var(--page-pad) clamp(42px, 5vw, 70px);
}
.article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #dfe3ff;
}
.article-category { color: var(--lime); }
.article-head h1 {
  margin: 0;
  max-width: 920px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 76px);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.article-standfirst {
  margin: 24px 0 0;
  max-width: 640px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.75vw, 23px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: #eef0ff;
}
.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(242, 241, 236, .4);
  max-width: 640px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .05em;
  color: #dfe3ff;
}
.article-byline strong { color: var(--paper); font-weight: 400; }
.article-grid-mark {
  position: absolute;
  right: -30px;
  bottom: -60px;
  width: 360px;
  height: 360px;
  color: rgba(242, 241, 236, .22);
  z-index: 1;
}

.article-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--page-pad) 80px;
}

.article-figure { margin: 0; padding: clamp(28px, 3.5vw, 46px) 0 0; }
.figure-frame {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 7;
}
.figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}
.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  mix-blend-mode: color;
  opacity: .58;
  pointer-events: none;
}
.article-figure figcaption {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--muted);
}

.article-columns {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(190px, 1fr);
  gap: clamp(36px, 6vw, 88px);
  padding-top: clamp(34px, 4vw, 54px);
  align-items: start;
}

.article-body {
  font-size: clamp(17px, 1.55vw, 18.5px);
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 66ch;
}
.article-body p { margin: 0 0 1.28em; }
.article-body p:first-child {
  color: var(--ink);
  font-size: 1.1em;
  line-height: 1.62;
}
.article-body p:first-child::first-letter {
  float: left;
  margin: .055em .11em 0 0;
  font-family: var(--font-display);
  font-size: 3.55em;
  line-height: .78;
  font-weight: 700;
  color: var(--blue);
}

.article-aside {
  position: sticky;
  top: 92px;
  padding-top: 8px;
  border-top: 2px solid var(--ink);
}
.article-aside dl { margin: 0; }
.article-aside dl > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.article-aside dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-aside dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink);
}
.aside-note {
  margin: 18px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}

.article-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(30px, 4vw, 50px);
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.article-end .kicker { margin: 0; }
.article-return { background: var(--ink); }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1120px) {
  .browse-shell { grid-template-columns: minmax(240px, 288px) minmax(0, 1fr); gap: 40px; }
  .masthead-side { flex-basis: 240px; }
  .city-mark { width: 180px; }
  .index-dek { display: none; }
  .article-columns { grid-template-columns: minmax(0, 1fr) 210px; gap: 44px; }
}

@media (max-width: 880px) {
  .masthead-inner { align-items: flex-start; flex-direction: column; gap: 24px; }
  .masthead-side {
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 100%;
  }
  .city-mark { width: 132px; flex: 0 0 auto; }
  .masthead-note { max-width: 320px; }
  .browse-shell { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .rail { position: static; }
  .rail-copy { max-width: 46ch; }
  .rail-topics,
  .rail-footnote { display: none; }
  .controls {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 14px 18px;
    align-items: end;
  }
  .field:first-child { grid-column: 1 / -1; }
  .saved-toggle { grid-column: 2; }
  .result-count { grid-column: 1 / -1; }
  .article-columns { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .article-aside { position: static; }
  .article-aside dl { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
  .article-grid-mark { width: 280px; height: 280px; right: -70px; }
}

@media (max-width: 640px) {
  .utility { min-height: 32px; font-size: 9px; letter-spacing: .06em; }
  .utility p:first-child { max-width: 130px; line-height: 1.35; }
  .utility-issue span:nth-child(2),
  .utility-issue span:nth-child(4),
  .utility-issue span:nth-child(5) { display: none; }

  .masthead { padding-top: 22px; padding-bottom: 24px; }
  .brand-eyebrow { margin-bottom: 11px; font-size: 9.5px; }
  .wordmark { font-size: clamp(56px, 16.5vw, 78px); letter-spacing: -.075em; }
  .tagline { margin-top: 15px; font-size: 15px; }
  .masthead-side { display: none; }

  .browse-shell { padding-top: 28px; padding-bottom: 52px; gap: 34px; }
  .rail-title { font-size: 32px; }
  .rail-copy { display: none; }
  .controls { display: flex; }
  .field:first-child { grid-column: auto; }
  .result-count { margin-top: 0; }
  .rail-topics { display: none; }
  .rail-footnote { display: none; }

  .index-head { padding-bottom: 16px; }
  .index-head h2 { font-size: 31px; line-height: .98; }
  .story { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 22px 4px 22px 0; }
  .story-index { font-size: 15px; padding-top: 3px; }
  .story-title { font-size: 23px; line-height: 1.08; }
  .open-item { gap: 8px; }
  .open-item .open-arrow { width: 20px; height: 20px; margin-top: 1px; }
  .open-item .open-arrow svg { width: 15px; height: 15px; }
  .story-summary { margin-top: 8px; font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .story-foot { margin-top: 10px; font-size: 9.5px; gap: 4px 12px; }
  .story:hover { box-shadow: inset 3px 0 0 var(--blue); }
  .story:focus-within { box-shadow: inset 3px 0 0 var(--blue); }

  .empty-state { padding: 50px 0 56px; }
  .empty-num { font-size: 60px; }

  .site-footer { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 20px; }

  .article-bar { grid-template-columns: 1fr auto; padding: 8px 14px; min-height: 58px; }
  .article-bar-mark { display: none; }
  .close-long { display: none; }
  .close-short { display: inline; }
  .close-detail, .save-item { padding: 8px 10px; }
  .article-head-inner { padding: 36px 20px 40px; }
  .article-head h1 { font-size: clamp(35px, 10.2vw, 46px); line-height: 1; }
  .article-standfirst { margin-top: 18px; font-size: 17.5px; }
  .article-byline { margin-top: 22px; padding-top: 14px; gap: 5px 18px; font-size: 9.5px; }
  .article-grid-mark { width: 210px; height: 210px; right: -88px; bottom: -48px; }

  .article-shell { padding-left: 20px; padding-right: 20px; padding-bottom: 56px; }
  .article-figure { padding-top: 24px; }
  .figure-frame { aspect-ratio: 4 / 3; }
  .article-columns { padding-top: 28px; gap: 34px; }
  .article-body { font-size: 17px; line-height: 1.68; }
  .article-aside dl { grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .article-end { flex-direction: column; align-items: flex-start; gap: 14px; }
  .article-return { width: 100%; justify-content: center; }
}

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

@media (forced-colors: active) {
  .category-tag::before,
  .topic-swatch,
  .wordmark-dot { background: CanvasText; }
  .figure-frame::after { display: none; }
}
