@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/space-grotesk.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Literata";
  src: url("./assets/literata.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/ibm-plex-mono.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #f2ede3;
  --surface: #fffaf0;
  --ink: #171916;
  --muted: #5e625a;
  --accent: #c83f27;
  --accent-ink: #fffaf0;
  --line: #242721;
  --display: "Space Grotesk", "Arial Narrow", sans-serif;
  --body: "Literata", Georgia, serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --container: min(100% - 48px, 1392px);
  --speed: 190ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}

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

button,
a,
input,
select {
  outline: 2px solid transparent;
  outline-offset: 3px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 13px/24px var(--mono);
  transform: translateY(-150%);
  transition: transform var(--speed) var(--ease);
}

.skip-link:focus {
  outline-color: var(--ink);
  transform: translateY(0);
}

.site-header,
.hero,
.browse,
.about,
.site-footer {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 3fr 6fr 3fr;
  align-items: stretch;
  min-height: 96px;
  border-inline: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--surface);
}

.wordmark {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 16px 24px;
  font: 700 20px/0.82 var(--display);
  letter-spacing: -0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark span:last-child::before {
  content: "/";
  margin-inline: 5px;
  color: var(--accent);
}

.edition {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-inline: 2px solid var(--line);
  font: 500 12px/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.edition span {
  margin-inline: 12px;
  color: var(--accent);
}

.primary-nav {
  display: flex;
  justify-content: flex-end;
  padding-inline: 8px;
  font: 600 13px/1 var(--display);
  text-transform: uppercase;
}

.primary-nav a {
  display: grid;
  min-height: 44px;
  padding: 12px 16px;
  place-items: center;
  text-decoration: none;
  transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(300px, 43vh) 128px;
  border-inline: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--surface);
}

.tile {
  min-width: 0;
}

.hero-title {
  grid-column: span 8;
  grid-row: span 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px;
  border-right: 2px solid var(--line);
  overflow: hidden;
}

.eyebrow,
.tile-index,
.count-label,
.count-caption,
.story-kicker,
.field > span:first-child,
.results-note,
.detail-toolbar,
.detail-folio,
.article-end,
.about-index,
.site-footer {
  font-family: var(--mono);
}

.eyebrow,
.tile-index,
.count-label,
.story-kicker,
.field > span:first-child {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0 20px;
  font: 700 clamp(76px, 10.2vw, 154px)/0.75 var(--display);
  letter-spacing: -0.065em;
  text-transform: uppercase;
  animation: title-settle 700ms var(--ease) both;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  margin-left: 0.78em;
  color: var(--accent);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 230px;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 13px/1 var(--display);
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.hero-cta span {
  font-size: 18px;
}

.hero-count {
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding: 24px;
  overflow: hidden;
  background: var(--ink);
  color: var(--surface);
  animation: count-reveal 620ms 90ms var(--ease) both;
}

.hero-count::after {
  position: absolute;
  right: 24px;
  bottom: 34px;
  width: 34%;
  height: 2px;
  background: var(--accent);
  content: "";
  transform-origin: left;
  animation: rule-draw 750ms 400ms var(--ease) both;
}

.hero-count strong {
  display: block;
  align-self: center;
  font: 700 clamp(160px, 22vw, 330px)/0.68 var(--display);
  letter-spacing: -0.1em;
  font-variant-numeric: tabular-nums;
  transform: translateX(-0.04em);
  transition: color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.count-caption {
  position: relative;
  z-index: 1;
  max-width: 30ch;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-note {
  grid-column: span 8;
  display: grid;
  grid-template-columns: 2fr 6fr;
  align-items: center;
  padding: 24px 32px;
  border-top: 2px solid var(--line);
  border-right: 2px solid var(--line);
}

.hero-note > p:last-child {
  max-width: 46ch;
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
}

.hero-status {
  grid-column: span 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  border-top: 2px solid var(--line);
  font: 500 12px/1.5 var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.browse {
  padding-block: 128px 96px;
}

.section-heading {
  display: grid;
  grid-template-columns: 8fr 4fr;
  align-items: end;
  gap: 24px;
  margin-bottom: 48px;
}

.section-heading h2,
.about h2 {
  max-width: 16ch;
  margin: 8px 0 0;
  font: 650 clamp(48px, 6.2vw, 92px)/0.95 var(--display);
  letter-spacing: -0.05em;
}

.results-note {
  justify-self: end;
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.results-note span {
  color: var(--accent);
  font-size: 20px;
  font-weight: 600;
}

.toolbar {
  display: grid;
  grid-template-columns: 6fr 3fr 3fr;
  border: 2px solid var(--line);
  background: var(--surface);
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.field + .field {
  border-left: 2px solid var(--line);
}

.input-shell,
.select-shell {
  position: relative;
  display: block;
}

input,
select,
.saved-toggle {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font: 500 16px/1.2 var(--display);
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

input {
  padding: 12px 48px 12px 14px;
}

input::placeholder {
  color: #6d7069;
  opacity: 1;
}

.search-mark {
  position: absolute;
  top: 50%;
  right: 16px;
  font: 700 24px/1 var(--display);
  transform: translateY(-50%);
  pointer-events: none;
}

select {
  appearance: none;
  padding: 12px 44px 12px 14px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.saved-toggle {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}

.saved-toggle > span:first-child {
  color: var(--accent);
  font-size: 22px;
}

.saved-count {
  display: grid;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  place-items: center;
  font: 600 11px/1 var(--mono);
}

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

.saved-toggle[aria-pressed="true"] > span:first-child {
  color: currentColor;
}

.story-list {
  border-inline: 2px solid var(--line);
  background: var(--surface);
}

.story-row {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 7fr 3fr;
  min-height: 240px;
  border-bottom: 2px solid var(--line);
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.story-number {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border-right: 2px solid var(--line);
  place-items: center;
}

.story-number span {
  position: relative;
  z-index: 1;
  font: 700 clamp(60px, 8vw, 118px)/1 var(--display);
  letter-spacing: -0.08em;
  font-variant-numeric: tabular-nums;
}

.story-number i,
.story-number i::before,
.story-number i::after {
  position: absolute;
  display: block;
  content: "";
}

.story-number i {
  width: 76%;
  height: 42%;
  border: 1px solid var(--line);
  transform: rotate(-7deg);
  transition: transform var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.story-number i::before {
  top: -70%;
  left: 50%;
  width: 1px;
  height: 240%;
  background: var(--line);
}

.story-number i::after {
  top: 50%;
  left: -25%;
  width: 150%;
  height: 1px;
  background: var(--line);
}

.story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px clamp(24px, 4vw, 64px);
}

.story-kicker {
  display: flex;
  gap: 12px;
  color: var(--accent);
}

.story-kicker span {
  color: var(--muted);
}

.story-copy h3 {
  margin: 10px 0 12px;
  font: 630 clamp(30px, 3.6vw, 54px)/1.02 var(--display);
  letter-spacing: -0.045em;
}

.story-copy h3 button {
  display: block;
  min-height: 44px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color var(--speed) var(--ease), transform var(--speed) var(--ease), text-decoration-color var(--speed) var(--ease);
}

.story-copy h3 button::after {
  position: absolute;
  inset: 0;
  content: "";
}

.story-summary {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.story-ledger {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 32px 24px;
  border-left: 2px solid var(--line);
  font: 500 13px/1.5 var(--mono);
}

.story-ledger p {
  margin: 0;
}

.story-ledger p span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-arrow {
  position: absolute;
  right: 20px;
  bottom: 14px;
  color: var(--accent);
  font: 500 26px/1 var(--display);
  transition: transform var(--speed) var(--ease);
}

.story-row-featured {
  min-height: 320px;
  background: #ede3d4;
}

.story-row-featured .story-number {
  background: var(--accent);
  color: var(--accent-ink);
}

.story-row-featured .story-number i,
.story-row-featured .story-number i::before,
.story-row-featured .story-number i::after {
  border-color: var(--accent-ink);
  background-color: transparent;
}

.story-row-featured .story-number i::before,
.story-row-featured .story-number i::after {
  background: var(--accent-ink);
}

.empty-state {
  display: grid;
  grid-template-columns: 4fr 8fr;
  min-height: 400px;
  border: 2px solid var(--line);
  border-top: 0;
  background: var(--surface);
}

.empty-state > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 48px;
  border-left: 2px solid var(--line);
}

.empty-mark {
  align-self: center;
  justify-self: center;
  margin: 0;
  color: var(--accent);
  font: 700 clamp(120px, 18vw, 260px)/1 var(--display);
  letter-spacing: -0.09em;
}

.empty-state h3 {
  max-width: 18ch;
  margin: 12px 0 8px;
  font: 650 clamp(34px, 4vw, 58px)/1 var(--display);
  letter-spacing: -0.04em;
}

.empty-state p:not(.eyebrow):not(.empty-mark) {
  max-width: 46ch;
  margin: 0 0 24px;
}

.empty-state button {
  min-height: 48px;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font: 600 13px/1 var(--display);
  text-transform: uppercase;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.about {
  display: grid;
  grid-template-columns: 2fr 5fr 5fr;
  min-height: 440px;
  border: 2px solid var(--line);
  background: var(--ink);
  color: var(--surface);
}

.about > * {
  margin: 0;
  padding: 64px 40px;
}

.about > * + * {
  border-left: 1px solid #77766f;
}

.about-index {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.about h2 {
  color: var(--surface);
}

.about > p:last-child {
  display: flex;
  align-items: flex-end;
  max-width: 40ch;
  font-size: 20px;
  line-height: 1.6;
}

.site-footer {
  display: grid;
  grid-template-columns: 4fr 5fr 3fr;
  align-items: center;
  min-height: 160px;
  border-inline: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--surface);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer > * {
  margin: 0;
  padding-inline: 24px;
}

.site-footer > * + * {
  display: flex;
  min-height: 100%;
  align-items: center;
  border-left: 2px solid var(--line);
}

.footer-mark {
  padding-block: 16px;
  font-size: 17px;
}

.site-footer > a:last-child {
  justify-content: flex-end;
  min-height: 44px;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.detail-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--surface);
  overflow-x: hidden;
}

.detail-dialog::backdrop {
  background: rgb(23 25 22 / 80%);
}

.detail-dialog[open] {
  animation: detail-in 260ms var(--ease) both;
}

.detail-sheet {
  min-height: 100%;
}

.detail-toolbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid #706f68;
  background: rgb(23 25 22 / 96%);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-toolbar p {
  margin: 0;
}

.close-detail,
.save-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  min-height: 48px;
  margin: 12px 24px;
  padding: 10px 14px;
  background: transparent;
  color: var(--surface);
  cursor: pointer;
  font: 600 12px/1 var(--display);
  text-transform: uppercase;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.save-item {
  justify-self: end;
  border: 1px solid #a5a49d;
}

.save-item > span:first-child {
  color: var(--accent);
  font-size: 20px;
}

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

.save-item[aria-pressed="true"] > span:first-child {
  color: currentColor;
}

.detail-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

.detail-folio {
  position: sticky;
  top: 72px;
  align-self: start;
  min-height: calc(100vh - 72px);
  padding: 48px 40px;
  border-right: 1px solid #706f68;
}

.detail-number {
  margin: 0 0 64px;
  color: var(--accent);
  font: 700 clamp(140px, 20vw, 290px)/0.7 var(--display);
  letter-spacing: -0.1em;
}

.detail-folio dl,
.detail-folio dd {
  margin: 0;
}

.detail-folio dl {
  border-top: 1px solid #706f68;
}

.detail-folio dl div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid #706f68;
}

.detail-folio dt {
  color: #b9b7ae;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-folio dd {
  font-size: 12px;
  text-align: right;
}

.detail-article {
  max-width: 880px;
  padding: 80px clamp(40px, 7vw, 104px) 128px;
}

.detail-article .eyebrow {
  color: var(--accent);
}

.detail-article h2 {
  max-width: 12ch;
  margin: 20px 0 32px;
  color: var(--surface);
  font: 650 clamp(56px, 7.4vw, 108px)/0.92 var(--display);
  letter-spacing: -0.055em;
}

.detail-deck {
  max-width: 48ch;
  margin: 0 0 80px;
  color: #d0cec4;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.5;
}

.detail-body {
  max-width: 64ch;
  color: #f3eee3;
  font-size: 18px;
  line-height: 1.78;
}

.detail-body p {
  margin: 0 0 1.7em;
}

.detail-body p:first-child::first-letter {
  float: left;
  margin: 0.09em 0.12em 0 0;
  color: var(--accent);
  font: 650 4.1em/0.75 var(--display);
}

.article-end {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 80px;
  padding-top: 20px;
  border-top: 1px solid #706f68;
  color: #c4c2b9;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-end span {
  color: var(--accent);
  font-size: 24px;
}

.noscript-note {
  position: fixed;
  z-index: 10;
  right: 24px;
  bottom: 24px;
  max-width: 420px;
  padding: 16px;
  border: 2px solid var(--line);
  background: var(--surface);
  font-size: 14px;
}

button:focus,
a:focus,
input:focus,
select:focus {
  outline-color: var(--accent);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.story-copy h3 button:focus-visible {
  outline-offset: 7px;
  color: var(--accent);
}

.story-row:focus-within {
  box-shadow: inset 0 0 0 3px var(--accent);
}

.detail-dialog button:focus,
.detail-dialog button:focus-visible {
  outline-color: #ff806a;
}

.primary-nav a:active,
.hero-cta:active,
.site-footer a:active,
.wordmark:active {
  transform: scale(0.97);
}

.saved-toggle:active,
.empty-state button:active,
.close-detail:active,
.save-item:active {
  transform: scale(0.97);
}

.story-copy h3 button:active {
  transform: translateX(3px) scale(0.99);
}

input:active,
select:active {
  border-color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .wordmark:hover {
    background: #e8dfd2;
  }

  .primary-nav a:hover {
    background: var(--ink);
    color: var(--surface);
  }

  .hero-cta:hover {
    background: var(--ink);
    color: var(--surface);
    transform: translateY(-2px);
  }

  input:hover,
  select:hover {
    border-color: var(--accent);
  }

  .saved-toggle:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
  }

  .story-row:hover {
    background: var(--ink);
    color: var(--surface);
  }

  .story-row:hover .story-summary,
  .story-row:hover .story-kicker span,
  .story-row:hover .story-ledger p span {
    color: #c9c7be;
  }

  .story-row:hover .story-number i {
    border-color: var(--surface);
    transform: rotate(7deg) scale(1.05);
  }

  .story-row:hover .story-number i::before,
  .story-row:hover .story-number i::after {
    background: var(--surface);
  }

  .story-row:hover .story-copy h3 button {
    color: var(--surface);
    transform: translateX(5px);
  }

  .story-row:hover .story-arrow {
    transform: translate(4px, -4px);
  }

  .empty-state button:hover {
    background: var(--ink);
    transform: translateY(-2px);
  }

  .about:hover .about-index {
    color: #ff806a;
  }

  .site-footer > a:last-child:hover {
    background: var(--ink);
    color: var(--surface);
  }

  .close-detail:hover {
    background: var(--surface);
    color: var(--ink);
  }

  .save-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
  }
}

@keyframes title-settle {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes count-reveal {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes rule-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

@keyframes detail-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  :root {
    --container: min(100% - 32px, 1392px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }

  .edition {
    display: none;
  }

  .primary-nav {
    border-left: 2px solid var(--line);
  }

  .hero {
    grid-template-rows: auto;
  }

  .hero-title,
  .hero-count,
  .hero-note,
  .hero-status {
    grid-column: span 12;
  }

  .hero-title {
    min-height: 520px;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .hero-count {
    min-height: 300px;
  }

  .hero-count strong {
    font-size: clamp(180px, 44vw, 310px);
  }

  .hero-note {
    border-right: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .results-note {
    justify-self: start;
  }

  .toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .field-search {
    grid-column: 1 / -1;
  }

  .field + .field {
    border-left: 0;
    border-top: 2px solid var(--line);
  }

  .saved-field {
    border-left: 2px solid var(--line) !important;
  }

  .story-row {
    grid-template-columns: 2fr 8fr;
  }

  .story-ledger {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 16px 24px;
    border-top: 2px solid var(--line);
    border-left: 0;
  }

  .story-arrow {
    bottom: 24px;
  }

  .about {
    grid-template-columns: 2fr 10fr;
  }

  .about > p:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid #77766f;
    border-left: 0;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer > p {
    display: none;
  }

  .detail-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .detail-toolbar p {
    display: none;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-folio {
    position: static;
    display: grid;
    grid-template-columns: 1fr 2fr;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #706f68;
  }

  .detail-number {
    margin: 0;
  }

  .detail-article {
    max-width: 760px;
  }
}

@media (max-width: 560px) {
  :root {
    --container: calc(100% - 40px);
  }

  body {
    font-size: 16px;
  }

  .site-header {
    grid-template-columns: 1fr;
  }

  .wordmark {
    justify-content: center;
    padding-inline: 20px;
  }

  .primary-nav {
    justify-content: stretch;
    border-top: 2px solid var(--line);
    border-left: 0;
    padding-inline: 0;
  }

  .primary-nav a {
    flex: 1;
  }

  .primary-nav a + a {
    border-left: 2px solid var(--line);
  }

  .hero-title {
    min-height: 430px;
    padding: 24px 20px;
  }

  .hero h1 {
    font-size: clamp(60px, 22.5vw, 88px);
    line-height: 0.8;
  }

  .hero h1 span:last-child {
    margin-left: 0.35em;
  }

  .hero-cta {
    width: 100%;
    min-width: 0;
  }

  .hero-count {
    min-height: 260px;
    padding: 20px;
  }

  .hero-count strong {
    align-self: flex-start;
    font-size: min(58vw, 220px);
  }

  .hero-note {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 20px;
  }

  .hero-note > p:last-child {
    font-size: 17px;
  }

  .hero-status {
    padding: 20px;
  }

  .browse {
    padding-block: 80px 64px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2 {
    font-size: clamp(44px, 14vw, 60px);
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .field-search,
  .field-filter,
  .saved-field {
    grid-column: auto;
  }

  .saved-field {
    border-left: 0 !important;
  }

  .story-row,
  .story-row-featured {
    grid-template-columns: 82px 1fr;
    min-height: 0;
  }

  .story-number span {
    font-size: 48px;
    transform: rotate(-90deg);
  }

  .story-number i {
    width: 120%;
    height: 25%;
  }

  .story-copy {
    min-width: 0;
    padding: 28px 20px 32px;
  }

  .story-copy h3 {
    font-size: clamp(28px, 8.8vw, 38px);
  }

  .story-summary {
    font-size: 15px;
  }

  .story-kicker {
    flex-direction: column;
    gap: 4px;
  }

  .story-ledger {
    grid-template-columns: 1fr 1fr;
    padding: 14px 20px;
  }

  .story-arrow {
    right: 12px;
    bottom: 18px;
  }

  .empty-state {
    grid-template-columns: 1fr;
  }

  .empty-state > div {
    padding: 32px 20px;
    border-top: 2px solid var(--line);
    border-left: 0;
  }

  .empty-mark {
    padding-block: 24px;
    font-size: 36vw;
  }

  .about {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .about > * {
    padding: 40px 24px;
  }

  .about > * + * {
    border-top: 1px solid #77766f;
    border-left: 0;
  }

  .about > p:last-child {
    grid-column: auto;
    font-size: 18px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer > a:last-child {
    justify-content: center;
    min-height: 72px;
    border-top: 2px solid var(--line);
    border-left: 0;
  }

  .footer-mark {
    min-height: 72px;
  }

  .detail-toolbar {
    min-height: 64px;
  }

  .close-detail,
  .save-item {
    min-width: 0;
    margin: 8px;
    padding: 9px 10px;
    font-size: 11px;
  }

  .close-detail span,
  .save-item > span:first-child {
    display: none;
  }

  .detail-grid {
    width: calc(100% - 24px);
  }

  .detail-folio {
    grid-template-columns: 1fr;
    padding: 32px 20px;
  }

  .detail-number {
    margin-bottom: 32px;
    font-size: 42vw;
  }

  .detail-article {
    padding: 64px 20px 96px;
  }

  .detail-article h2 {
    font-size: clamp(48px, 14.5vw, 68px);
  }

  .detail-deck {
    margin-bottom: 56px;
    font-size: 20px;
  }

  .detail-body {
    font-size: 17px;
    line-height: 1.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
