@font-face {
  font-family: "DM Serif Display";
  src: url("assets/dm-serif.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

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

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

:root {
  --paper: #f3eee3;
  --paper-soft: #ebe3d5;
  --paper-bright: #faf6ed;
  --ink: #1c1a15;
  --ink-soft: #3a362d;
  --muted: #625b4d;
  --rule: #c8beab;
  --rule-dark: #8d8371;
  --accent: #c34429;
  --accent-dark: #96301c;
  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --pad: clamp(1.25rem, 4.4vw, 4.5rem);
  --max-width: 84rem;
  --shadow: 0 1.5rem 5rem rgba(24, 20, 14, 0.22);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 14% -8%, rgba(255, 255, 255, 0.62), transparent 31rem),
    radial-gradient(circle at 96% 32%, rgba(171, 151, 115, 0.08), transparent 25rem);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

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

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

img {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  touch-action: manipulation;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button,
select {
  -webkit-tap-highlight-color: rgba(195, 68, 41, 0.18);
}

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

.sr-only {
  position: absolute;
  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;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--paper-bright);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main > section,
.site-footer {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.site-header {
  border-top: 5px solid var(--ink);
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.62rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.utility-bar p {
  min-width: 0;
}

.utility-middle {
  margin-inline: auto;
}

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(1.35rem, 3.2vw, 2.6rem) clamp(1.15rem, 2.5vw, 2rem);
}

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

.wordmark {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.6rem, 1.6vw, 1.4rem);
}

.wordmark-star {
  flex: none;
  width: clamp(1.1rem, 2.2vw, 2rem);
  height: auto;
  margin-top: clamp(0.36rem, 1.1vw, 0.82rem);
  fill: var(--accent);
}

.wordmark h1 {
  margin-left: -0.04em;
  font-family: var(--display);
  font-size: clamp(3.7rem, 7.4vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.84;
}

.tagline {
  margin-top: clamp(0.7rem, 1.6vw, 1.1rem);
  font-family: var(--mono);
  font-size: clamp(0.62rem, 0.86vw, 0.78rem);
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.issue-note {
  flex: 0 1 15rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--rule-dark);
}

.micro-label,
.kicker {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.micro-label {
  color: var(--muted);
}

.issue-note > p:last-child {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.53;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.78rem;
  border-top: 1px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.nav-row nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3.5vw, 3.1rem);
}

.nav-row a {
  position: relative;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-row a::after {
  position: absolute;
  right: 0;
  bottom: -0.26rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  content: "";
  transition: transform 180ms ease;
}

.nav-row a:hover::after,
.nav-row a:focus-visible::after {
  transform: scaleX(1);
}

.nav-mark {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.opening {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.6fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  padding-top: clamp(2.8rem, 6vw, 5.6rem);
  padding-bottom: clamp(2.6rem, 5vw, 4.7rem);
  border-bottom: 1px solid var(--rule);
}

.opening .kicker,
.browse-heading .kicker {
  color: var(--accent-dark);
}

.opening h2 {
  margin-top: 0.75rem;
  margin-left: -0.045em;
  font-family: var(--display);
  font-size: clamp(3.75rem, 7.8vw, 7.6rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.82;
}

.opening h2 span {
  color: var(--accent);
}

.opening-aside {
  padding-bottom: 0.4rem;
}

.opening-dek {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.68;
}

.opening-note {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.3rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.rule-mark {
  flex: none;
  width: 1.9rem;
  height: 1px;
  background: var(--accent);
}

.browse {
  padding-top: clamp(2.2rem, 4.5vw, 4.1rem);
}

.browse-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 21rem);
  gap: 2rem;
  align-items: end;
  padding-bottom: 1.5rem;
}

.browse-heading h2 {
  margin-top: 0.55rem;
  font-family: var(--display);
  font-size: clamp(2.45rem, 4.2vw, 4.15rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.94;
}

.browse-dek {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.browse-tools {
  display: grid;
  grid-template-columns: minmax(14rem, 1.4fr) minmax(9rem, 0.58fr) auto;
  gap: 1.1rem;
  align-items: end;
  padding: 1.1rem;
  border: 1px solid var(--ink);
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.24), transparent 42%),
    var(--paper-soft);
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.44rem;
}

.field label {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.input-shell,
.select-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 3rem;
  border: 1px solid var(--rule-dark);
  background: var(--paper-bright);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.input-shell:focus-within,
.select-shell:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--accent);
}

.field-icon {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-left: 0.9rem;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.search-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 0.9rem 0 0.65rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
}

.search-field input::placeholder {
  color: #77705f;
  opacity: 1;
}

.search-field input::-webkit-search-cancel-button {
  cursor: pointer;
}

.select-shell select {
  width: 100%;
  height: 100%;
  padding: 0 2.45rem 0 0.85rem;
  border: 0;
  outline: 0;
  appearance: none;
  background-color: var(--paper-bright);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
}

.select-chevron {
  position: absolute;
  right: 0.9rem;
  width: 0.85rem;
  height: 0.85rem;
  fill: none;
  pointer-events: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.saved-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  height: 3rem;
  padding: 0 1rem;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.bookmark-icon {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

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

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

.saved-toggle[aria-pressed="true"] .bookmark-icon {
  fill: var(--accent);
  stroke: var(--accent);
}

.saved-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding-inline: 0.22rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.54rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 2.9rem;
  padding-block: 0.58rem 1rem;
}

.results-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reset-link {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.reset-link:hover {
  color: var(--ink);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.9rem, 3.3vw, 3.1rem) clamp(1.4rem, 2.5vw, 2.5rem);
  align-items: stretch;
}

.story-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  grid-column: span 4;
}

.story-card--lead {
  grid-column: span 8;
}

.story-card--second {
  grid-column: span 4;
}

.stories-grid--single .story-card {
  grid-column: 1 / -1;
}

.stories-grid--three .story-card,
.stories-grid--six .story-card {
  grid-column: span 4;
}

.stories-grid--three .card-media,
.stories-grid--six .card-media {
  aspect-ratio: 4 / 3;
}

.stories-grid--three .card-title,
.stories-grid--six .card-title {
  max-width: none;
  font-size: clamp(1.72rem, 2.4vw, 2.4rem);
  line-height: 1;
}

.stories-grid--three .story-card--lead .card-summary,
.stories-grid--six .story-card--lead .card-summary {
  font-size: 0.9rem;
}

.stories-grid--three .story-card--lead .card-media,
.stories-grid--six .story-card--lead .card-media,
.stories-grid--three .story-card--second .card-media,
.stories-grid--six .story-card--second .card-media {
  aspect-ratio: 4 / 3;
}

.stories-grid--three .story-card--lead .card-title,
.stories-grid--six .story-card--lead .card-title {
  max-width: none;
  font-size: clamp(1.72rem, 2.4vw, 2.4rem);
  line-height: 1;
}

.stories-grid--four .story-card:nth-child(3),
.stories-grid--four .story-card:nth-child(4) {
  grid-column: span 6;
}

.stories-grid--four .story-card:nth-child(3) .card-media,
.stories-grid--four .story-card:nth-child(4) .card-media {
  aspect-ratio: 16 / 9;
}

.stories-grid--four .story-card:nth-child(3) .card-title,
.stories-grid--four .story-card:nth-child(4) .card-title {
  max-width: 18ch;
  font-size: clamp(2.1rem, 3vw, 3rem);
}

.stories-grid--seven .story-card--lead {
  grid-column: 1 / -1;
}

.stories-grid--seven .story-card--lead .card-media {
  aspect-ratio: 16 / 7;
}

.stories-grid--seven .story-card--lead .card-title {
  max-width: 20ch;
}

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

.story-card--lead .card-media {
  aspect-ratio: 16 / 9;
}

.story-card--second .card-media {
  aspect-ratio: 1;
}

.stories-grid--single .card-media {
  aspect-ratio: 16 / 8.2;
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.01);
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.story-card:hover .card-media img {
  transform: scale(1.025);
}

.media-note {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.25rem 0.44rem;
  background: rgba(250, 246, 237, 0.92);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.saved-flag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.5rem;
  background: var(--accent);
  color: var(--paper-bright);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.saved-flag .bookmark-icon {
  width: 0.72rem;
  height: 0.72rem;
  fill: currentColor;
  stroke: currentColor;
}

.card-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding-top: 0.95rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.category-label {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--cat);
  font-weight: 400;
}

.category-label::before {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.meta-divider {
  width: 1px;
  height: 0.7rem;
  background: var(--rule);
}

[data-category="Culture"] {
  --cat: #913823;
}

[data-category="Food"] {
  --cat: #725b12;
}

[data-category="Movement"] {
  --cat: #2c6263;
}

[data-category="People"] {
  --cat: #694073;
}

[data-category="Places"] {
  --cat: #3f6142;
}

.card-title {
  margin-top: 0.52rem;
  font-family: var(--display);
  font-size: clamp(1.62rem, 2.2vw, 2.12rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  overflow-wrap: break-word;
  transition: color 180ms ease;
}

.story-card--lead .card-title {
  max-width: 14ch;
  margin-top: 0.68rem;
  font-size: clamp(2.35rem, 3.9vw, 3.9rem);
  letter-spacing: -0.038em;
  line-height: 0.96;
}

.stories-grid--single .card-title {
  max-width: 21ch;
}

.story-card:hover .card-title {
  color: var(--accent-dark);
}

.card-summary {
  display: -webkit-box;
  margin-top: 0.65rem;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.87rem;
  line-height: 1.53;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.story-card--lead .card-summary {
  max-width: 52ch;
  font-size: 0.98rem;
  line-height: 1.57;
}

.card-tail {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1.2rem;
}

.card-byline {
  min-width: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.045em;
  line-height: 1.45;
}

.card-byline span {
  display: block;
}

.card-byline .reading-time {
  margin-top: 0.15rem;
  color: #6d6557;
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.open-item {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0 0.32rem;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.open-item svg {
  width: 0.8rem;
  height: 0.8rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 180ms ease;
}

.open-item:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.open-item:hover svg {
  transform: translateX(0.18rem);
}

.empty-state {
  position: relative;
  max-width: 35rem;
  margin: clamp(1rem, 4vw, 3rem) auto clamp(2rem, 6vw, 5rem);
  padding: clamp(2.2rem, 5vw, 4.4rem);
  border: 1px solid var(--rule-dark);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 60%),
    var(--paper-soft);
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-illustration {
  width: 7.2rem;
  margin: 0 auto 1.35rem;
}

.empty-illustration svg {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.empty-sun {
  fill: var(--accent) !important;
  stroke: none !important;
}

.empty-state .kicker {
  color: var(--accent-dark);
}

.empty-state h3 {
  margin-top: 0.55rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.empty-state > p:not(.kicker) {
  max-width: 29rem;
  margin: 0.9rem auto 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.button-primary {
  margin-top: 1.4rem;
  padding: 0.78rem 1.15rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-bright);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

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

.site-footer {
  margin-top: clamp(4rem, 9vw, 8rem);
  padding-top: clamp(2.1rem, 4vw, 3.4rem);
  padding-bottom: 2rem;
  border-top: 5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

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

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid #4e493f;
}

.footer-wordmark {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.footer-tagline {
  margin-top: 0.55rem;
  color: #b9ae9c;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-edition {
  color: #b9ae9c;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-align: right;
  text-transform: uppercase;
}

.footer-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(9rem, 0.5fr);
  gap: 2rem;
  padding-block: 1.8rem;
}

.footer-body > p {
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.65;
}

.footer-note {
  color: #b9ae9c;
  font-family: var(--sans) !important;
  font-size: 0.77rem !important;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
}

.footer-links a {
  text-decoration-color: #746c5d;
}

.footer-links a:hover {
  color: #f4c1b6;
}

.footer-colophon {
  padding-top: 1.2rem;
  border-top: 1px solid #3a362f;
  color: #8f8575;
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Article detail */
.article-dialog {
  width: min(70rem, calc(100vw - 4.5rem));
  height: min(92dvh, 62.5rem);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #373229;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.article-dialog::backdrop {
  background: rgba(24, 21, 16, 0.74);
  backdrop-filter: blur(3px);
}

.article-dialog[open] {
  animation: dialog-arrive 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes dialog-arrive {
  from {
    opacity: 0;
    transform: translateY(0.9rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.detail-bar {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.65rem;
  padding: 0.72rem clamp(1rem, 2.6vw, 2.1rem);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-bright);
}

.detail-brand,
.detail-actions {
  display: flex;
  align-items: center;
}

.detail-brand {
  gap: 0.6rem;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-star {
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  fill: var(--accent);
}

.detail-bar-divider {
  color: var(--rule-dark);
}

.detail-bar-section {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-actions {
  flex: none;
  gap: 0.55rem;
}

.save-button,
.close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 0.8rem;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.save-button:hover,
.close-button:hover {
  background: var(--ink);
  color: var(--paper-bright);
}

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

.save-button[aria-pressed="true"] .bookmark-icon {
  fill: currentColor;
}

.close-button {
  border-color: var(--rule-dark);
}

.close-button svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.detail-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--rule-dark) var(--paper);
  scrollbar-width: thin;
}

.detail-article {
  width: min(100%, 64rem);
  margin-inline: auto;
  padding: clamp(2rem, 4.6vw, 3.8rem) clamp(1.4rem, 4vw, 3.3rem) 5rem;
}

.detail-header {
  max-width: 51rem;
}

.detail-kicker {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-header h2 {
  max-width: 21ch;
  margin-top: 0.7rem;
  font-family: var(--display);
  font-size: clamp(2.65rem, 5vw, 4.75rem);
  font-weight: 400;
  letter-spacing: -0.042em;
  line-height: 0.93;
  overflow-wrap: break-word;
}

.detail-summary {
  max-width: 43rem;
  margin-top: 1.15rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.62;
}

.detail-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.055em;
  line-height: 1.45;
  text-transform: uppercase;
}

.byline-dot {
  color: var(--rule-dark);
}

.detail-figure {
  margin-top: clamp(1.8rem, 3.5vw, 2.8rem);
}

.detail-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 35rem;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.01);
}

.detail-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.47rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.07em;
  line-height: 1.45;
  text-transform: uppercase;
}

.detail-figure figcaption span:first-child {
  color: var(--accent-dark);
}

.detail-content {
  display: grid;
  grid-template-columns: 8.7rem minmax(0, 42rem);
  gap: clamp(1.8rem, 4.5vw, 4.2rem);
  margin-top: clamp(2rem, 4vw, 3.3rem);
  align-items: start;
}

.detail-aside {
  position: sticky;
  top: 1.25rem;
  padding-top: 0.6rem;
  border-top: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
}

.aside-category {
  margin-top: 0.25rem;
  color: var(--accent-dark);
  font-size: 0.67rem;
}

.aside-second {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.detail-aside p:not(.micro-label):not(.aside-second) {
  color: var(--ink-soft);
}

.aside-note {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.53rem;
  line-height: 1.55;
}

.detail-body {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  line-height: 1.77;
  text-wrap: pretty;
}

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

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

.detail-body p:first-child {
  color: var(--ink-soft);
  font-size: 1.09em;
  line-height: 1.66;
}

.detail-body p:first-child::first-letter {
  float: left;
  margin-top: 0.075em;
  margin-right: 0.12em;
  margin-bottom: -0.11em;
  color: var(--accent);
  font-family: var(--display);
  font-size: 4.05em;
  line-height: 0.76;
}

@media (max-width: 68rem) {
  .stories-grid {
    gap: 2.6rem 1.8rem;
  }

  .story-card--lead {
    grid-column: span 12;
  }

  .story-card--lead .card-title {
    max-width: 20ch;
  }

  .story-card--second {
    grid-column: span 6;
  }

  .story-card--second .card-media {
    aspect-ratio: 4 / 3;
  }

  .story-card:not(.story-card--lead):not(.story-card--second) {
    grid-column: span 6;
  }

  .stories-grid--three .story-card,
  .stories-grid--four .story-card,
  .stories-grid--six .story-card,
  .stories-grid--seven .story-card {
    grid-column: span 6;
  }

  .stories-grid--three .story-card--lead,
  .stories-grid--seven .story-card--lead {
    grid-column: span 12;
  }

  .stories-grid--three .story-card--lead .card-media {
    aspect-ratio: 16 / 9;
  }

  .stories-grid--three .story-card--lead .card-title {
    max-width: 20ch;
    font-size: clamp(2.35rem, 3.9vw, 3.9rem);
    line-height: 0.96;
  }

  .detail-content {
    grid-template-columns: 7.5rem minmax(0, 40rem);
  }
}

@media (max-width: 54rem) {
  .issue-note {
    display: none;
  }

  .opening {
    grid-template-columns: minmax(0, 1.25fr) minmax(15rem, 0.75fr);
    gap: 2.2rem;
  }

  .browse-heading {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .browse-dek {
    max-width: 28rem;
  }

  .browse-tools {
    grid-template-columns: minmax(0, 1fr) minmax(9rem, 0.6fr);
  }

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

  .saved-toggle {
    justify-self: stretch;
  }

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

  .footer-links {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
  }
}

@media (max-width: 44rem) {
  :root {
    --pad: 1.2rem;
  }

  .site-header {
    border-top-width: 4px;
  }

  .utility-bar {
    font-size: 0.54rem;
    letter-spacing: 0.08em;
  }

  .utility-middle {
    display: none;
  }

  .masthead {
    padding-block: 1.25rem 1rem;
  }

  .wordmark {
    gap: 0.55rem;
  }

  .wordmark-star {
    width: 1rem;
    margin-top: 0.42rem;
  }

  .wordmark h1 {
    font-size: clamp(3.35rem, 13.5vw, 4.4rem);
    line-height: 0.79;
  }

  .wordmark h1 span {
    display: block;
  }

  .tagline {
    margin-top: 0.6rem;
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }

  .nav-row {
    padding-block: 0.68rem;
  }

  .nav-row nav {
    gap: 1.1rem;
  }

  .nav-row a {
    font-size: 0.58rem;
  }

  .nav-mark {
    font-size: 0.56rem;
  }

  .opening {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    padding-top: 2.7rem;
    padding-bottom: 2.4rem;
  }

  .opening h2 {
    margin-top: 0.55rem;
    font-size: clamp(3.2rem, 15vw, 4.6rem);
  }

  .opening-dek {
    max-width: 30rem;
    font-size: 0.97rem;
  }

  .opening-note {
    margin-top: 1rem;
  }

  .browse {
    padding-top: 2.1rem;
  }

  .browse-heading {
    padding-bottom: 1.1rem;
  }

  .browse-heading h2 {
    font-size: 2.55rem;
  }

  .browse-tools {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.9rem;
  }

  .search-field {
    grid-column: auto;
  }

  .saved-toggle {
    width: 100%;
  }

  .results-bar {
    align-items: flex-start;
    gap: 1rem;
    min-height: 3.4rem;
  }

  .results-count {
    max-width: 14rem;
    line-height: 1.55;
  }

  .stories-grid {
    grid-template-columns: 1fr;
    gap: 2.55rem;
  }

  .story-card,
  .story-card--lead,
  .story-card--second,
  .story-card:not(.story-card--lead):not(.story-card--second) {
    grid-column: 1 / -1;
  }

  .stories-grid--three .story-card,
  .stories-grid--four .story-card,
  .stories-grid--six .story-card,
  .stories-grid--seven .story-card {
    grid-column: 1 / -1;
  }

  .stories-grid--four .story-card:nth-child(3) .card-title,
  .stories-grid--four .story-card:nth-child(4) .card-title {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .stories-grid--three .story-card--lead .card-title,
  .stories-grid--six .story-card--lead .card-title,
  .stories-grid--seven .story-card--lead .card-title {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .stories-grid--three .story-card--lead .card-media,
  .stories-grid--six .story-card--lead .card-media,
  .stories-grid--seven .story-card--lead .card-media {
    aspect-ratio: 4 / 3;
  }

  .story-card--lead .card-media,
  .story-card--second .card-media,
  .stories-grid--single .card-media {
    aspect-ratio: 4 / 3;
  }

  .card-title,
  .story-card--lead .card-title {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 1;
  }

  .story-card--lead .card-summary {
    font-size: 0.9rem;
  }

  .card-tail {
    align-items: center;
    padding-top: 1rem;
  }

  .open-item {
    min-height: 2.75rem;
    padding-block: 0.75rem;
  }

  .footer-top {
    gap: 1rem;
  }

  .footer-body {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .footer-links {
    grid-column: auto;
    flex-direction: column;
  }

  .footer-edition {
    flex: none;
  }

  .article-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
  }

  .detail-bar {
    min-height: 3.4rem;
    padding:
      calc(0.62rem + env(safe-area-inset-top))
      calc(0.8rem + env(safe-area-inset-right))
      0.62rem
      calc(0.8rem + env(safe-area-inset-left));
  }

  .detail-brand {
    font-size: 0.54rem;
  }

  .detail-bar-section,
  .detail-bar-divider {
    display: none;
  }

  .save-button,
  .close-button {
    height: 2.5rem;
    padding-inline: 0.65rem;
  }

  .close-text {
    display: none;
  }

  .close-button {
    width: 2.5rem;
    padding: 0;
  }

  .detail-article {
    padding:
      1.75rem
      calc(1.2rem + env(safe-area-inset-right))
      calc(3.5rem + env(safe-area-inset-bottom))
      calc(1.2rem + env(safe-area-inset-left));
  }

  .detail-header h2 {
    font-size: clamp(2.25rem, 10.5vw, 3.15rem);
  }

  .detail-summary {
    font-size: 1rem;
  }

  .detail-figure {
    margin-top: 1.55rem;
  }

  .detail-figure img {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .detail-figure figcaption {
    flex-direction: column;
    gap: 0.15rem;
  }

  .detail-content {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    margin-top: 1.7rem;
  }

  .detail-aside {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.2rem 1rem;
    align-items: baseline;
    padding-top: 0.65rem;
  }

  .aside-category {
    margin-top: 0;
  }

  .aside-second {
    grid-column: 1;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
  }

  .aside-note {
    display: none;
  }

  .detail-body {
    font-size: 1.03rem;
    line-height: 1.72;
  }

  .detail-body p:first-child::first-letter {
    font-size: 3.7em;
  }
}

@media (max-width: 24rem) {
  .wordmark h1 {
    font-size: 3.15rem;
  }

  .opening h2 {
    font-size: 2.9rem;
  }

  .save-button {
    padding-inline: 0.5rem;
  }

  .save-button span {
    font-size: 0.52rem;
  }
}

@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;
  }

  .story-card:hover .card-media img,
  .open-item:hover svg {
    transform: none;
  }
}

#stories,
#about {
  scroll-margin-top: 1.5rem;
}
