/* Crosstown: editorial city magazine. Native CSS, no framework.
   Type: Space Grotesk (display + UI), Literata (reading text), IBM Plex Mono (metadata).
   Shape rule: everything is square-cornered (radius 0). One accent: signal vermilion. */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("assets/literata.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f2f3f0;
  --paper-2: #e4e6e1;
  --ink: #15171a;
  --ink-2: #4a4e55;
  --rule: #c5c8c2;
  --accent: #c4320f;
  --on-accent: #fbfbf9;
  --mark: rgb(196 50 15 / 0.16);
  --backdrop: rgb(21 23 26 / 0.5);
  --shadow: 0 0 0 1px rgb(21 23 26 / 0.06), -24px 0 60px rgb(21 23 26 / 0.16);

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-read: "Literata", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --gap: 32px;

  /* z-index scale: toolbar 10, skip link 20 (dialogs use the top layer) */
  --z-toolbar: 10;
  --z-skip: 20;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121416;
    --paper-2: #1e2124;
    --ink: #ecece7;
    --ink-2: #a6aaaf;
    --rule: #363a3f;
    --accent: #ff6a3d;
    --on-accent: #121416;
    --mark: rgb(255 106 61 / 0.24);
    --backdrop: rgb(0 0 0 / 0.62);
    --shadow: 0 0 0 1px rgb(255 255 255 / 0.06), -24px 0 60px rgb(0 0 0 / 0.5);
  }
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

: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: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: var(--z-skip);
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.wrap {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Masthead ---------- */

.masthead { padding-top: clamp(20px, 3vw, 36px); }

.masthead__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  font-size: clamp(2.6rem, 7.2vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
}
.wordmark__mark {
  width: 0.78em;
  height: 0.78em;
  flex: none;
  color: var(--ink);
}
.wordmark__fill { fill: var(--accent); }

.folio {
  margin-top: clamp(14px, 2vw, 22px);
  padding-block: 12px;
  border-top: 2px solid var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  flex-wrap: wrap;
}
.folio__desc {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 15px;
}
.folio__edition {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- Toolbar ---------- */

.toolbar-band {
  background: var(--paper);
  border-block: 1px solid var(--rule);
}
@media (min-width: 768px) {
  .toolbar-band {
    position: sticky;
    top: 0;
    z-index: var(--z-toolbar);
  }
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 16px;
  padding-block: 12px 14px;
  align-items: end;
}
.field--search { grid-column: 1 / -1; }

@media (min-width: 768px) {
  .toolbar {
    grid-template-columns: minmax(0, 420px) 220px auto;
    justify-content: start;
    gap: 20px;
  }
  .field--search { grid-column: auto; }
  .toolbar .toggle { justify-self: start; }
}

.field { display: grid; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.select select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ink-2);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder { color: var(--ink-2); opacity: 1; }
.field input:hover, .select select:hover { border-color: var(--ink); }
.field input:focus-visible, .select select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.field input::-webkit-search-cancel-button { cursor: pointer; }

.select { position: relative; }
.select select { padding-right: 40px; cursor: pointer; }
.select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select option { background: var(--paper); color: var(--ink); }

.toggle {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.12s var(--ease);
}
.toggle:hover { background: var(--paper-2); }
.toggle:active, .button:active { transform: translateY(1px); }
.toggle__count {
  min-width: 26px;
  height: 24px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  background: var(--paper-2);
  color: var(--ink);
}
.toggle[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.toggle[aria-pressed="true"] .toggle__count {
  background: var(--accent);
  color: var(--on-accent);
}

/* ---------- Status row ---------- */

.main { padding-bottom: clamp(56px, 8vw, 112px); }
.main:focus { outline: none; }
@media (min-width: 768px) {
  .main { scroll-margin-top: 100px; }
}

.status-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-height: 56px;
  padding-block: 18px 22px;
}
.status {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
}

.text-button {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.text-button:hover { color: var(--ink); }

/* ---------- Story list ---------- */

.stories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.story {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  align-content: start;
  gap: 16px;
  margin-bottom: 48px;
}

.story__media {
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 3 / 2;
}
.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.3s var(--ease);
}
.story:hover .story__media img { transform: scale(1.03); }

.story__text { display: grid; gap: 10px; align-content: start; }

.story__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
}
.story__topic { color: var(--accent); }
.story__saved {
  padding: 1px 7px;
  border: 1px solid currentColor;
  color: var(--ink);
}

.story__title {
  font-size: clamp(1.25rem, 1.6vw, 1.6rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.story__open {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.14em;
  transition: text-decoration-color 0.25s var(--ease);
}
/* The headline button stretches over the whole story so the image is clickable too. */
.story__open::after {
  content: "";
  position: absolute;
  inset: -8px;
}
.story:hover .story__open { text-decoration-color: var(--accent); }
.story__open:focus-visible { outline: none; text-decoration-color: var(--accent); }
.story__open:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }

.story__open mark {
  background: var(--mark);
  color: inherit;
  padding-inline: 1px;
}

.story__summary {
  font-family: var(--font-read);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
}

.story__byline {
  font-size: 14px;
  color: var(--ink-2);
}
.story__byline strong { color: var(--ink); font-weight: 600; }

/* Mobile defaults (< 768px): single column, compact rows after the opening stories. */
.story.is-compact,
.story.is-result {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 0;
  padding-block: 20px;
  border-top: 1px solid var(--rule);
}
.story.is-compact .story__media,
.story.is-result .story__media { aspect-ratio: 1 / 1; }
.story.is-compact .story__summary,
.story.is-result .story__summary { display: none; }
.story.is-compact .story__title,
.story.is-result .story__title { font-size: 1.125rem; }
.story.is-compact .story__byline,
.story.is-result .story__byline { font-size: 13px; }

.story.is-lead .story__title {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.story.is-lead .story__summary { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }
.story.is-lead .story__media { aspect-ratio: 4 / 3; }

@media (min-width: 768px) {
  .story.is-lead {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--gap);
    align-items: end;
    margin-bottom: 64px;
  }
  .story.is-lead .story__media { aspect-ratio: 3 / 2; }
  .story.is-lead .story__text { padding-bottom: 6px; gap: 16px; }

  .story.is-tall { grid-column: 1 / 7; }
  .story.is-wide { grid-column: 7 / 13; }
  .story.is-tall .story__media,
  .story.is-wide .story__media { aspect-ratio: 4 / 5; }

  .story.is-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--gap);
    align-items: start;
  }

  .story.is-compact { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .story.is-compact .story__media { aspect-ratio: 4 / 3; }
  .story.is-compact .story__summary { display: block; font-size: 16px; }

  .story.is-result {
    grid-column: span 6;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 20px;
    padding-block: 24px;
  }
  .story.is-result .story__media { aspect-ratio: 4 / 3; }
  .story.is-result .story__summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
  }
  .story.is-result .story__title { font-size: 1.3rem; }
}

@media (min-width: 1024px) {
  .story.is-tall { grid-column: 1 / 6; }
  .story.is-wide { grid-column: 6 / 13; }
  .story.is-wide .story__media { aspect-ratio: 4 / 3; }
  .story.is-tall .story__title,
  .story.is-wide .story__title { font-size: 2rem; letter-spacing: -0.03em; }
  .story.is-tall, .story.is-wide { margin-bottom: 72px; }

  /* One feature story on the left, the remaining stories as a stacked index on the right. */
  .story.is-feature {
    grid-column: 1 / 7;
    grid-row: span 4;
    grid-template-columns: 1fr;
    align-content: start;
    margin-bottom: 0;
    padding-top: 28px;
    border-top: 2px solid var(--ink);
  }
  .story.is-feature .story__title { font-size: 1.85rem; letter-spacing: -0.025em; }
  .story.is-compact { grid-column: 7 / 13; grid-template-columns: 168px minmax(0, 1fr); }
  .story.is-feature + .story.is-compact {
    border-top: 2px solid var(--ink);
    padding-top: 28px;
  }
}

/* Entry: stories rise in sequence on first load to set the reading order. */
@media (prefers-reduced-motion: no-preference) {
  .stories.is-entering .story {
    animation: rise 0.7s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 60ms);
  }
  .stories.is-updating .story { animation: fade 0.28s ease-out both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Loading skeleton ---------- */

.skeleton {
  grid-column: span 6;
  display: grid;
  gap: 14px;
  margin-bottom: 48px;
}
.skeleton--lead { grid-column: 1 / -1; }
.skeleton span { display: block; background: var(--paper-2); }
.skeleton span:first-child { aspect-ratio: 3 / 2; }
.skeleton--lead span:first-child { aspect-ratio: 21 / 9; }
.skeleton span:last-child { height: 28px; width: 70%; }
@media (prefers-reduced-motion: no-preference) {
  .skeleton span { animation: pulse 1.4s ease-in-out infinite alternate; }
}
@keyframes pulse { to { opacity: 0.55; } }
@media (max-width: 767px) { .skeleton { grid-column: 1 / -1; } }

/* ---------- Empty and error states ---------- */

.empty, .load-error {
  max-width: 560px;
  padding: 40px 0 24px;
  border-top: 2px solid var(--ink);
  display: grid;
  gap: 12px;
  justify-items: start;
}
.empty[hidden], .load-error[hidden] { display: none; }
.empty__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.empty__text {
  font-family: var(--font-read);
  font-size: 17px;
  color: var(--ink-2);
  max-width: 48ch;
}
.empty .button, .load-error .button { margin-top: 8px; }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.12s var(--ease);
}
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

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

.site-footer {
  border-top: 2px solid var(--ink);
  padding-block: 40px 56px;
}
.site-footer__inner {
  display: grid;
  gap: 40px;
}
@media (min-width: 1024px) {
  .site-footer__inner { grid-template-columns: 7fr 5fr; gap: var(--gap); }
}
.topic-index__title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.topic-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.topic-link {
  width: 100%;
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.topic-link:hover { border-color: var(--ink); background: var(--paper-2); }
.topic-link__name { font-weight: 600; font-size: 17px; }
.topic-link__count { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }

.colophon {
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 52ch;
}
.colophon__mark {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* ---------- Reader dialog ---------- */

.reader {
  /* Right-hand reading sheet on desktop, full screen on mobile. */
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(820px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.reader::backdrop { background: var(--backdrop); }

@media (prefers-reduced-motion: no-preference) {
  .reader[open] { animation: sheet-in 0.5s var(--ease) both; }
  .reader[open]::backdrop { animation: fade 0.35s ease-out both; }
  .reader.is-swapping .reader__article { animation: fade 0.35s ease-out both; }
}
@keyframes sheet-in {
  from { transform: translateX(48px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.reader__bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.reader__close {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 10px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.reader__close:hover { border-color: var(--ink); }
.reader__close kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  padding: 1px 5px;
}
@media (hover: none), (max-width: 767px) { .reader__close kbd { display: none; } }

.save-button {
  min-height: 44px;
  min-width: 168px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.12s var(--ease);
}
.save-button:hover { background: var(--mark); }
.save-button:active { transform: scale(0.98); }
.save-button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

.reader__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .reader__progress {
    animation: progress linear both;
    animation-timeline: scroll(nearest block);
  }
}
@supports not (animation-timeline: scroll()) {
  .reader__progress { display: none; }
}
@keyframes progress { to { transform: scaleX(1); } }

.reader__article {
  padding: clamp(28px, 5vw, 56px) clamp(16px, 6vw, 72px) 72px;
}

.reader__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
}
.reader__kicker .story__topic { color: var(--accent); }

.reader__title {
  margin-top: 16px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.reader__title:focus { outline: none; }
.reader__title:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.reader__dek {
  margin-top: 18px;
  font-family: var(--font-read);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 40ch;
}

.reader__byline {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 15px;
  color: var(--ink-2);
}
.reader__byline strong { color: var(--ink); font-weight: 600; }

.reader__figure { margin: 28px 0 0; }
.reader__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--paper-2);
}
.reader__figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-2);
}

.reader__body {
  margin-top: 36px;
  font-family: var(--font-read);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.7;
  max-width: 62ch;
}
.reader__body p + p { margin-top: 1.1em; }
.reader__body p:first-child::first-letter {
  float: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.6em;
  line-height: 0.82;
  margin: 0.08em 0.1em 0 0;
  color: var(--accent);
}

.reader__end {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
  display: grid;
  gap: 24px;
}
.reader__end-note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
}
.next-story {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.next-story:hover { border-color: var(--ink); background: var(--paper-2); }
.next-story__label { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.next-story__title { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

@media (max-width: 767px) {
  .reader { width: 100vw; box-shadow: none; }
  .save-button { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .story:hover .story__media img { transform: none; }
  /* The reading-progress bar is tied to scroll position, not time, so keep it. */
  .reader__progress { animation-duration: auto !important; }
}
