/* ============================================================
   SIDEWALK — a journal of the everyday city
   Broadsheet design system
   ============================================================ */

@font-face {
  font-family: "Literata";
  src: url("assets/literata.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@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: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4eee2;
  --paper-soft: #ece4d4;
  --paper-bright: #fbf7ee;
  --ink: #191510;
  --ink-soft: #4e473c;
  --muted: #6d6456;
  --rule: rgba(25, 21, 16, 0.22);
  --rule-strong: rgba(25, 21, 16, 0.6);
  --accent: #b23a20;
  --accent-deep: #93301a;
  --accent-bright: #d9603f;
  --focus: #1c5c74;
  --header-h: 76px;
  --shell: 1320px;
  --gutter: 40px;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--header-h) + 96px);
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 8% -5%, rgba(255, 252, 244, 0.75), transparent 60%),
    radial-gradient(900px 700px at 100% 30%, rgba(196, 172, 136, 0.16), transparent 65%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

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

.site-footer :focus-visible {
  outline-color: var(--paper);
}

.shell {
  width: min(var(--shell), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.visually-hidden {
  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: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- shared marks ---------- */

.curb-mark {
  display: inline-block;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--ink) 0 50%, var(--accent) 50% 100%);
}

.curb-mark-large {
  width: 30px;
  height: 30px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.curb-stripe {
  height: 9px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background-image: repeating-linear-gradient(
    135deg,
    var(--ink) 0 1.5px,
    transparent 1.5px 11px
  );
  opacity: 0.85;
}

.curb-stripe-inverse {
  border-color: var(--paper);
  background-image: repeating-linear-gradient(
    135deg,
    var(--paper) 0 1.5px,
    transparent 1.5px 11px
  );
  opacity: 0.5;
}

/* ---------- buttons + links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}
.button-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.button-outline {
  background: transparent;
  color: var(--ink);
}
.button-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 3px;
  transition: border-color 160ms ease, color 160ms ease;
}
.text-link:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(244, 238, 226, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-word {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
}

.brand-dot {
  color: var(--accent);
}

.header-tagline {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 26px;
  border-left: 1px solid var(--rule);
  line-height: 1.4;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.header-nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
.header-nav a:hover {
  border-color: var(--ink);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 26px;
  border-left: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

.header-meta-dot {
  width: 3px;
  height: 3px;
  background: var(--accent);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.hero-copy {
  padding-top: 8px;
}

.hero-title {
  max-width: 13ch;
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(52px, 7.7vw, 110px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.hero-deck {
  max-width: 46ch;
  margin-top: 26px;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 32px;
}

.hero-stats {
  display: flex;
  gap: clamp(22px, 3vw, 46px);
  margin-top: clamp(34px, 4.4vw, 58px);
  padding-top: 16px;
  border-top: 1px solid var(--rule-strong);
  max-width: 520px;
}

.hero-stats div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.hero-stats dt {
  order: 2;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-stats dd {
  order: 1;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.hero-figure {
  margin-right: calc((min(var(--shell), 100vw - (var(--gutter) * 2)) - 100vw) / 2);
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.hero-image {
  position: relative;
  height: clamp(420px, 62vh, 660px);
  min-height: 0;
  overflow: hidden;
  background: var(--paper-soft);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(0.85) contrast(1.03) sepia(0.05);
}

.plate-index {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 16px 10px;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}

.plate-index-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 4px;
}

.plate-index-number {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.hero-figure figcaption,
.interlude-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 11px 0 0;
  border-top: 1px solid var(--rule-strong);
  margin-top: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-figure figcaption {
  padding-right: calc(
    (100vw - min(var(--shell), 100vw - (var(--gutter) * 2))) / 2
  );
}

.caption-lead {
  color: var(--ink-soft);
}

/* ---------- index ---------- */

.index-section {
  padding-top: clamp(40px, 5vw, 64px);
}

.index-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 48px;
  padding-bottom: clamp(26px, 3vw, 38px);
}

.index-title {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.035em;
  max-width: 18ch;
}

.index-intro {
  max-width: 36ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-bottom: 6px;
  border-left: 1px solid var(--rule);
  padding-left: 22px;
}

.controls-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  background: var(--paper);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule-strong);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 20px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label,
.field-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.field-search {
  flex: 1 1 280px;
  min-width: 220px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--paper-bright);
  border: 1px solid var(--rule-strong);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input-wrap:focus-within {
  border-color: var(--ink);
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.input-icon {
  position: absolute;
  left: 13px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 34px 0 39px;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.01em;
  appearance: none;
  -webkit-appearance: none;
}

.input-wrap input:focus {
  outline: none;
}

.input-wrap input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.input-wrap input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 15px;
  width: 15px;
  margin-right: 12px;
  background: linear-gradient(
      45deg,
      transparent 43%,
      var(--ink-soft) 43% 57%,
      transparent 57%
    ),
    linear-gradient(
      -45deg,
      transparent 43%,
      var(--ink-soft) 43% 57%,
      transparent 57%
    );
  cursor: pointer;
}

.field-select {
  flex: 0 0 196px;
}

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.select-wrap select {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 13px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--paper-bright);
  font-family: var(--sans);
  font-size: 15px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-wrap select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--ink);
}

.select-caret {
  position: absolute;
  right: 14px;
  width: 11px;
  height: 8px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  pointer-events: none;
}

.field-saved {
  flex: 0 0 auto;
}

.saved-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.saved-toggle:hover {
  border-color: var(--ink);
  background: var(--paper-soft);
}

.saved-glyph {
  width: 13px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.saved-toggle[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.saved-toggle[aria-pressed="true"] .saved-glyph {
  fill: var(--paper);
}

.saved-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  background: var(--paper-soft);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
}

.saved-toggle[aria-pressed="true"] .saved-count {
  background: var(--accent);
  color: var(--paper);
}

.result-count {
  flex: 0 0 auto;
  margin-left: auto;
  padding-bottom: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- story rows ---------- */

.list-region {
  padding-bottom: clamp(48px, 6vw, 84px);
}

.story-list {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--ink);
}

.story {
  position: relative;
  display: grid;
  grid-template-columns: 46px 82px minmax(0, 1fr) 190px 24px;
  gap: 22px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}

.story:first-child {
  border-top: 1px solid var(--ink);
}

.story::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background-color 160ms ease;
}

.story:hover::before,
.story:focus-within::before {
  background: var(--accent);
}

.story:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.story-number {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  align-self: start;
  padding-top: 8px;
}

.story-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border: 1px solid var(--rule-strong);
  background: var(--paper-soft);
  color: var(--ink);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.story-glyph svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story:hover .story-glyph,
.story:focus-within .story-glyph {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--paper);
}

.story-main {
  min-width: 0;
}

.story-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.story-category {
  color: var(--accent-deep);
}

.kicker-sep {
  width: 3px;
  height: 3px;
  background: var(--rule-strong);
}

.saved-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-deep);
}

.saved-flag::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.story-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.018em;
}

.story-link {
  color: inherit;
  text-decoration: none;
}

.story-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.story-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.story-summary {
  max-width: 62ch;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.story-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

.story-side .story-author {
  color: var(--ink-soft);
  letter-spacing: 0.12em;
}

.story-arrow {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  transition: transform 180ms ease, stroke 160ms ease;
}

.story:hover .story-arrow,
.story:focus-within .story-arrow {
  transform: translateX(4px);
  stroke: var(--accent-deep);
}

/* feature story */

.story.is-feature {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: clamp(28px, 3.4vw, 42px) 0 clamp(32px, 3.6vw, 46px);
}

.story.is-feature .story-number {
  display: none;
}

.story.is-feature .story-glyph {
  display: none;
}

.story.is-feature .story-main {
  padding-top: 4px;
}

.story.is-feature .story-title {
  max-width: 18ch;
  font-size: clamp(32px, 3.3vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.story.is-feature .story-summary {
  max-width: 46ch;
  margin-top: 15px;
  font-size: 18px;
  line-height: 1.5;
}

.story.is-feature .story-side {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  text-align: left;
}

.story.is-feature .story-arrow {
  display: none;
}

.feature-plate {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
}

.feature-plate .feature-image {
  position: relative;
  overflow: hidden;
  background: var(--paper-soft);
  aspect-ratio: 4 / 3;
}

.feature-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.03) sepia(0.05);
  transition: transform 500ms ease;
}

.story.is-feature:hover .feature-plate img {
  transform: scale(1.02);
}

.feature-plate figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.feature-index {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 10px;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story.is-feature .read-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 4px;
  width: fit-content;
  transition: border-color 160ms ease, color 160ms ease;
}

.story.is-feature:hover .read-cue {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.read-cue svg {
  width: 15px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* empty state */

.empty-state {
  padding: clamp(52px, 7vw, 88px) 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  max-width: 640px;
}

.empty-state .eyebrow {
  margin-top: 22px;
}

.empty-state h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.empty-state p {
  max-width: 48ch;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 17px;
}

.empty-state .button {
  margin-top: 26px;
}

/* ---------- interlude ---------- */

.interlude {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.68fr);
  align-items: stretch;
  padding-inline: calc(
    (100vw - min(var(--shell), 100vw - (var(--gutter) * 2))) / 2
  );
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-soft);
}

.interlude-figure {
  margin: 0;
  margin-left: calc((min(var(--shell), 100vw - (var(--gutter) * 2)) - 100vw) / 2);
  display: flex;
  flex-direction: column;
  padding: 0;
}

.interlude-figure img {
  width: 100%;
  height: clamp(320px, 40vw, 540px);
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.85) contrast(1.03) sepia(0.05);
}

.interlude-figure figcaption {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 10px 22px;
  margin-top: -1px;
  background: var(--paper);
}

.interlude-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4.6vw, 64px) clamp(24px, 4vw, 56px);
  border-left: 1px solid var(--ink);
}

.pull-quote {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(27px, 2.7vw, 38px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.028em;
  max-width: 20ch;
}

.interlude-body {
  margin-top: 22px;
  max-width: 38ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

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

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 6vw, 96px);
  padding-top: clamp(52px, 6vw, 84px);
  padding-bottom: clamp(60px, 7vw, 100px);
}

.about-heading {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
}

.about-heading h2 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.035em;
  max-width: 11ch;
}

.about-body {
  max-width: 60ch;
  padding-top: 6px;
}

.about-body > p {
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.about-body .about-lede {
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 22px;
}

.content-note {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--accent);
  background: rgba(251, 247, 238, 0.65);
}

.content-note-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.content-note p:last-child {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

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

.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: 34px;
}

.footer-wordmark {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.footer-wordmark span {
  color: var(--accent-bright);
}

.footer-tagline {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-transform: uppercase;
  color: #b9ae9e;
}

.footer-nav {
  display: flex;
  gap: 48px;
  justify-content: flex-end;
  padding-top: 10px;
}

.footer-nav > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #978c7c;
  margin-bottom: 4px;
}

.footer-nav a,
.footer-nav p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: #ded5c6;
  text-decoration: none;
}

.footer-nav a {
  width: fit-content;
  border-bottom: 1px solid transparent;
}
.footer-nav a:hover {
  color: var(--paper);
  border-color: var(--accent-bright);
}

.footer-nav p {
  color: #b9ae9e;
  font-size: 13px;
}

.footer-legal {
  grid-column: 1 / -1;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 238, 226, 0.22);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  line-height: 1.6;
  text-transform: uppercase;
  color: #978c7c;
  max-width: 70ch;
}

/* ============================================================
   Detail view
   ============================================================ */

.detail {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 500px at 10% 0%, rgba(255, 252, 244, 0.8), transparent 60%),
    radial-gradient(800px 600px at 100% 40%, rgba(196, 172, 136, 0.15), transparent 65%);
}

.detail-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(244, 238, 226, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink);
}

.detail-bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 66px;
}

.brand-small .brand-word {
  font-size: 21px;
}

.detail-issue {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 20px;
  border-left: 1px solid var(--rule);
}

.close-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.close-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.close-btn svg {
  width: 15px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.detail-article {
  padding-top: clamp(30px, 4vw, 52px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.detail-header {
  max-width: 1040px;
}

.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-kicker .story-category {
  color: var(--accent-deep);
}

.detail-title {
  margin-top: 18px;
  max-width: 19ch;
  font-family: var(--serif);
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.038em;
}

.detail-deck {
  max-width: 58ch;
  margin-top: 20px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
}

.detail-meta-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-top: 30px;
  padding: 15px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.detail-byline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-byline strong {
  color: var(--ink);
  font-weight: 400;
}

.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.save-btn:hover {
  background: var(--paper-soft);
}

.save-btn[aria-pressed="true"] {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--paper);
}

.save-btn svg {
  width: 13px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.save-btn[aria-pressed="true"] svg {
  fill: currentColor;
}

.detail-plate {
  margin-top: clamp(26px, 3.4vw, 40px);
}

.detail-plate .detail-image {
  height: clamp(240px, 44vw, 500px);
  overflow: hidden;
  background: var(--paper-soft);
}

.detail-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.03) sepia(0.05);
}

.detail-plate figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  margin-top: -1px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-body {
  max-width: 1040px;
  margin-top: clamp(30px, 4vw, 46px);
  color: #2b261f;
  font-size: clamp(17.5px, 1.35vw, 19.5px);
  line-height: 1.68;
}

.detail-body p {
  margin-bottom: 1.3em;
}

.detail-body p:last-child {
  margin-bottom: 0;
}

.detail-body p:first-child::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 4.1em;
  font-weight: 500;
  line-height: 0.78;
  padding: 0.06em 0.11em 0 0;
  color: var(--accent-deep);
}

.detail-end {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  max-width: 1040px;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-end .curb-mark {
  margin-right: 2px;
}

.detail-return {
  margin-left: auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  background: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 3px;
  transition: color 160ms ease, border-color 160ms ease;
}

.detail-return:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

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

@media (min-width: 901px) {
  .detail-body {
    columns: 2;
    column-gap: clamp(36px, 4vw, 58px);
  }
  .detail-body p:first-child {
    margin-top: 0;
  }
}

@media (max-width: 1180px) {
  .header-tagline {
    display: none;
  }
  .header-meta {
    padding-left: 18px;
  }
  .header-nav {
    gap: 18px;
  }
}

@media (max-width: 980px) {
  :root {
    --gutter: 28px;
    --header-h: 68px;
  }
  .interlude {
    padding-inline: 0;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 40px;
  }
  .hero-title {
    max-width: 15ch;
    font-size: clamp(52px, 9vw, 82px);
  }
  .hero-figure {
    margin-right: 0;
  }
  .hero-image {
    height: min(56vh, 500px);
  }
  .hero-figure figcaption {
    padding-right: 0;
  }
  .index-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .index-intro {
    border-left: 0;
    padding-left: 0;
    max-width: 52ch;
  }
  .story.is-feature {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  }
  .interlude {
    grid-template-columns: 1fr;
  }
  .interlude-figure {
    margin-left: 0;
  }
  .interlude-note {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
  .pull-quote {
    max-width: 28ch;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .about-heading {
    position: static;
  }
  .about-heading h2 {
    max-width: 20ch;
  }
  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
    --header-h: 60px;
  }
  body {
    font-size: 17px;
  }
  .header-inner {
    gap: 14px;
    min-height: var(--header-h);
  }
  .brand-word {
    font-size: 23px;
  }
  .brand {
    gap: 9px;
  }
  .header-nav {
    gap: 14px;
    margin-left: auto;
  }
  .header-nav a {
    font-size: 11px;
    letter-spacing: 0.07em;
  }
  .header-meta {
    display: none;
  }

  .hero-image {
    height: min(52vh, 430px);
  }
  .hero-figure {
    margin-inline: calc(var(--gutter) * -1);
  }
  .hero-figure figcaption {
    padding-inline: var(--gutter);
  }
  .hero-stats {
    gap: 18px;
    justify-content: space-between;
  }
  .hero-stats div {
    gap: 6px;
  }
  .hero-stats dd {
    font-size: 19px;
  }
  .hero-stats dt {
    font-size: 8.5px;
    letter-spacing: 0.09em;
  }

  .index-section {
    padding-top: 36px;
  }
  .index-title {
    font-size: clamp(32px, 8.4vw, 42px);
  }

  .controls {
    gap: 11px 12px;
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .field-search {
    flex: 1 1 100%;
    min-width: 0;
  }
  .field-select {
    flex: 1 1 130px;
  }
  .field-saved {
    flex: 0 0 auto;
  }
  .saved-toggle {
    padding: 0 11px;
    font-size: 13px;
  }
  .result-count {
    flex: 1 1 100%;
    margin-left: 0;
    padding-bottom: 0;
    text-align: right;
  }
  .input-wrap input {
    height: 42px;
  }
  .select-wrap select {
    height: 42px;
  }
  .saved-toggle {
    height: 42px;
  }

  .story {
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 14px;
    padding: 22px 0;
  }
  .story::before {
    left: -10px;
  }
  .story-glyph {
    display: none;
  }
  .story-number {
    padding-top: 4px;
    font-size: 10px;
  }
  .story-title {
    font-size: 22px;
  }
  .story-summary {
    font-size: 15px;
    margin-top: 7px;
  }
  .story-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin-top: 10px;
    font-size: 9px;
    text-align: left;
  }
  .story-arrow {
    width: 18px;
    height: 18px;
  }
  .story.is-feature {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 0 28px;
  }
  .story.is-feature .story-title {
    font-size: clamp(29px, 8vw, 36px);
  }
  .story.is-feature .story-summary {
    font-size: 16px;
  }
  .story.is-feature .story-side {
    margin-top: 14px;
  }
  .story.is-feature .story-arrow {
    display: none;
  }
  .feature-plate {
    order: 2;
  }
  .story.is-feature .story-main {
    order: 1;
  }
  .story.is-feature .read-cue {
    margin-top: 12px;
  }

  .empty-state {
    padding: 52px 0;
  }

  .interlude-figure img {
    height: min(48vh, 360px);
  }
  .interlude-figure figcaption {
    padding-inline: var(--gutter);
  }
  .interlude-note {
    padding: 32px var(--gutter) 38px;
  }
  .pull-quote {
    font-size: clamp(26px, 7vw, 32px);
  }

  .about {
    padding-top: 44px;
    padding-bottom: 56px;
  }
  .about-body > p {
    font-size: 16px;
  }
  .about-body .about-lede {
    font-size: 18.5px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 38px;
    padding-bottom: 26px;
  }
  .footer-nav {
    gap: 36px;
  }
  .footer-wordmark {
    font-size: clamp(44px, 14vw, 72px);
  }

  .detail-bar-inner {
    gap: 12px;
    min-height: 58px;
  }
  .detail-issue {
    display: none;
  }
  .brand-small .brand-word {
    font-size: 19px;
  }
  .close-btn {
    padding: 8px 11px;
    font-size: 12px;
  }
  .detail-article {
    padding-top: 28px;
  }
  .detail-title {
    max-width: 100%;
    font-size: clamp(33px, 9.4vw, 44px);
  }
  .detail-deck {
    font-size: 17.5px;
  }
  .detail-meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
  }
  .save-btn {
    width: 100%;
    justify-content: center;
  }
  .detail-plate .detail-image {
    height: min(42vh, 300px);
  }
  .detail-body {
    font-size: 17.5px;
    line-height: 1.66;
  }
  .detail-body p:first-child::first-letter {
    font-size: 3.7em;
  }
  .detail-end {
    font-size: 9px;
  }
  .detail-return {
    margin-left: 0;
    font-size: 9px;
  }
}

@media (max-width: 400px) {
  .header-nav a {
    padding: 6px 0;
  }
  .hero-title {
    font-size: 48px;
  }
  .hero-deck {
    font-size: 16.5px;
  }
  .button {
    padding: 13px 18px;
    font-size: 13px;
  }
  .field-select {
    flex: 1 1 118px;
  }
}

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