/* ======================================================================
   CURB — a journal of everyday city life
   Civic field-journal: Oswald signage headlines, Literata reading serif,
   IBM Plex Mono metadata. Concrete paper, printer's ink, signal amber.
   ====================================================================== */

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

:root {
  /* palette */
  --paper: #e8e3d6;
  --paper-2: #efeae0;
  --paper-3: #ddd7c8;
  --ink: #16140f;
  --ink-2: #3c3930;
  --ink-3: #5c584c;
  --rule: #c7c1b2;
  --rule-2: #b6b0a0;
  --accent: #c8821e;
  --accent-2: #b37118;
  --accent-deep: #7c4d0c;
  --asphalt: #1c1a15;
  --asphalt-2: #2b2820;
  --asphalt-3: #43403a;

  /* type */
  --display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --read: "Literata", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* layout */
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --rule-w: 3px;
  --radius: 2px;
  --maxw: 1240px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--read);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, select, button { font-family: inherit; }
a { color: inherit; }

::selection { background: var(--accent); color: var(--ink); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 1px;
}

/* themed scrollbar */
* { scrollbar-color: var(--ink-3) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rule-2); border: 3px solid var(--paper); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* ======================================================================
   MASTHEAD
   ====================================================================== */
.masthead { position: relative; }

.masthead__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem var(--gutter);
  background: var(--asphalt);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.masthead__topbar > * { margin: 0; }
.topbar__lit { color: var(--paper-3); }
.topbar__issue { color: var(--paper-2); opacity: 0.85; }

.savedtoggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--asphalt-3);
  color: var(--paper-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.savedtoggle .icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.savedtoggle__count {
  font-variant-numeric: tabular-nums;
  padding-left: 0.4rem;
  border-left: 1px solid var(--asphalt-3);
  color: var(--paper-3);
}
.savedtoggle:hover { border-color: var(--accent); color: #fff; }
.savedtoggle[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--asphalt);
  font-weight: 700;
}
.savedtoggle[aria-pressed="true"] .savedtoggle__count {
  color: var(--asphalt);
  border-left-color: rgba(28,26,21,0.4);
}
.savedtoggle[aria-pressed="true"] .icon { fill: var(--asphalt); stroke: var(--asphalt); }

.masthead__brandrow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(1.2rem, 3vw, 2.2rem) var(--gutter) clamp(1rem, 2vw, 1.6rem);
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}

.wordmark {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.7rem;
  text-decoration: none;
  line-height: 0.9;
}
.wordmark__text {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.4rem, 8vw, 6rem);
  letter-spacing: -0.01em;
  line-height: 0.82;
  color: var(--ink);
  text-transform: uppercase;
}
.wordmark__bar {
  width: 0.5rem;
  height: clamp(3.4rem, 8vw, 6rem);
  background: var(--accent);
  display: inline-block;
}
.wordmark__tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 0.45rem;
  white-space: nowrap;
}

.controls {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding-bottom: 0.5rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field__label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field--search { min-width: 18rem; }
.field__input, .field__select {
  font-family: var(--read);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--rule-2);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field__input { padding-left: 2.1rem; }
.field--search { position: relative; }
.field__icon {
  position: absolute;
  left: 0.7rem;
  bottom: 0.72rem;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 2;
  pointer-events: none;
}
.field__input::placeholder { color: var(--ink-3); font-style: italic; }
.field__input:focus, .field__select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.field__select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }

.selectwrap { position: relative; }
.field__select { padding-right: 2.2rem; cursor: pointer; min-width: 9.5rem; }
.selectwrap__chev {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 2;
  pointer-events: none;
}

.masthead__rule {
  height: var(--rule-w);
  background: var(--ink);
  position: relative;
}
.masthead__rule::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: clamp(4rem, 22vw, 12rem);
  background: var(--accent);
}

.masthead__status {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
}
.status__count { margin: 0; }
.status__count strong { color: var(--ink); font-weight: 700; }
.status__active { margin: 0; color: var(--ink-3); }
.status__active:not(:empty)::before { content: "·  "; color: var(--rule-2); }
.status__clear {
  margin-left: auto;
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status__clear:hover { color: var(--ink); }

/* ======================================================================
   STORIES LIST
   ====================================================================== */
.stories {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.4rem, 3vw, 2.4rem) var(--gutter) 3rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2.2rem) clamp(1rem, 2vw, 1.8rem);
}

.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  border-top: 1px solid var(--ink);
  padding-top: 0.9rem;
}
.entry--cover {
  grid-column: span 12;
  flex-direction: row;
  gap: clamp(1.2rem, 3vw, 2.8rem);
  border-top: none;
  padding-top: 0;
}
.entry--wide { grid-column: span 12; }
.entry--a { grid-column: span 7; }
.entry--b { grid-column: span 5; }
.entry--c { grid-column: span 4; }
.entry--d { grid-column: span 8; }
.entry--compact { flex-direction: row; gap: 1rem; align-items: flex-start; }

.entry__media {
  position: relative;
  overflow: hidden;
  background: var(--paper-3);
  border-radius: var(--radius);
  flex: none;
}
.entry--cover .entry__media { width: 56%; aspect-ratio: 4 / 3; }
.entry--a .entry__media, .entry--b .entry__media, .entry--c .entry__media, .entry--d .entry__media {
  width: 100%; aspect-ratio: 3 / 2;
}
.entry--wide .entry__media { width: 150px; aspect-ratio: 1 / 1; flex: none; }
.entry__imgbtn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.entry__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
.entry__media:hover .entry__img,
.entry__imgbtn:focus-visible .entry__img { transform: scale(1.04); filter: saturate(1) contrast(1.04); }

.entry__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
}
.entry--cover .entry__body { justify-content: center; gap: 0.9rem; padding: 0.4rem 0; }
.entry--compact .entry__body { gap: 0.3rem; padding-top: 0; }

.chip {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-3);
  border: 1px solid var(--rule-2);
  padding: 0.2rem 0.5rem;
  line-height: 1.3;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover, .chip:focus-visible {
  background: var(--accent);
  color: var(--asphalt);
  border-color: var(--accent);
  outline: none;
}
.chip[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.entry__meta .chip { align-self: center; margin-right: 0.15rem; }

.entry__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink);
}
.entry--cover .entry__title { font-size: clamp(2.1rem, 5vw, 4rem); line-height: 0.98; letter-spacing: -0.012em; }
.entry--a .entry__title, .entry--d .entry__title { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.entry--b .entry__title { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.entry--c .entry__title { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.08; }
.entry--wide .entry__title { font-size: 1.35rem; line-height: 1.12; }

.entry__titlebtn {
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  display: inline;
  line-height: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.32s cubic-bezier(0.22,1,0.36,1), color 0.2s ease;
}
.entry__titlebtn:hover { color: var(--accent-deep); background-size: 100% 2px; }
.entry__titlebtn:focus-visible { color: var(--accent-deep); background-size: 100% 2px; outline-offset: 4px; }
.entry--cover .entry__titlebtn { background-size: 0% 3px; }
.entry--cover .entry__titlebtn:hover,
.entry--cover .entry__titlebtn:focus-visible { background-size: 100% 3px; }

.entry__summary {
  margin: 0;
  font-family: var(--read);
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.5;
  max-width: 60ch;
}
.entry--cover .entry__summary { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 52ch; }
.entry--wide .entry__summary { display: none; }

.entry__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.entry__meta .dot { color: var(--rule-2); }
.entry__meta .savedmark {
  color: var(--accent-deep);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.entry__meta .savedmark .icon { width: 11px; height: 11px; fill: var(--accent); stroke: var(--accent); stroke-width: 2; }

.entry--cover .entry__body .entry__cta { margin-top: 0.4rem; }

/* section label between lead and rest */
.stories__sep {
  grid-column: span 12;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.2rem 0 -0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.stories__sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ======================================================================
   EMPTY STATE
   ====================================================================== */
.empty { max-width: 640px; margin: 0 auto; padding: 3rem var(--gutter) 5rem; }
.empty__inner {
  border: 1.5px dashed var(--rule-2);
  background: var(--paper-2);
  padding: clamp(2rem, 5vw, 3.4rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.empty__mark { width: 48px; height: 48px; fill: none; stroke: var(--ink-3); stroke-width: 2; }
.empty__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
  letter-spacing: -0.01em;
}
.empty__body { margin: 0 0 0.6rem; color: var(--ink-2); max-width: 44ch; }

/* ======================================================================
   BUTTONS
   ====================================================================== */
.btn {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  padding: 0.65rem 1.1rem;
  transition: background 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--block { width: 100%; justify-content: center; }

/* ======================================================================
   COLOPHON
   ====================================================================== */
.colophon {
  background: var(--asphalt);
  color: var(--paper);
  margin-top: 3rem;
}
.colophon__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 3.6rem) var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 2.5rem 3rem;
}
.colophon__mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
  line-height: 1;
  color: var(--paper);
}
.colophon__mark::after { content: "."; color: var(--accent); }
.colophon__h {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.colophon__tag, .colophon__p {
  font-family: var(--read);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  color: var(--paper-3);
  max-width: 38ch;
}
.colophon__sign {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--asphalt-3);
  border-top: 1px solid var(--asphalt-3);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
}

/* ======================================================================
   DETAIL / READING VIEW
   ====================================================================== */
.detail {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(22, 20, 15, 0.74);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s ease, visibility 0.26s;
}
.detail[data-open="true"] {
  opacity: 1;
  visibility: visible;
}
.detail__sheet {
  width: 100%;
  max-width: 1040px;
  height: 100%;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transform: translateX(4%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.detail[data-open="true"] .detail__sheet { transform: translateX(0); }

.detail__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--gutter);
  background: var(--asphalt);
  color: var(--paper);
  flex: none;
}
.detail__close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 0.4rem 0.1rem;
  transition: color 0.15s ease;
}
.detail__close .icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.detail__close:hover { color: var(--accent); }

.saver {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--asphalt-3);
  color: var(--paper);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.saver .icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.saver:hover { border-color: var(--accent); color: var(--accent); }
.saver[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--asphalt);
  font-weight: 700;
}
.saver[aria-pressed="true"] .icon { fill: var(--asphalt); stroke: var(--asphalt); }

.detail__scroll {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.detail__media { position: relative; }
.detail__img {
  width: 100%;
  height: clamp(220px, 42vh, 420px);
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
}
.detail__cap {
  position: absolute;
  left: 0; bottom: 0;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-2);
  background: rgba(22,20,15,0.72);
  padding: 0.35rem 0.6rem;
}

.detail__article {
  max-width: 68ch;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.4rem) var(--gutter) 3rem;
}
.detail__cat {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--asphalt);
  background: var(--accent);
  padding: 0.24rem 0.55rem;
  margin-right: 0.35rem;
  line-height: 1.3;
}

.detail__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
  color: var(--ink);
}
.detail__byline {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 2.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.7rem;
}
.detail__byline .dot { color: var(--rule-2); }

.detail__body {
  font-family: var(--read);
  font-size: 1.2rem;
  line-height: 1.72;
  color: var(--ink);
}
.detail__body p { margin: 0 0 1.4rem; }
.detail__body p:first-child::first-letter {
  font-family: var(--display);
  font-weight: 600;
  font-size: 3.4rem;
  line-height: 0.82;
  float: left;
  margin: 0.18rem 0.5rem 0 0;
  color: var(--accent-deep);
}

.detail__foot {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: stretch;
}
.detail__sign {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
  text-align: center;
}

body.detail-open { overflow: hidden; }

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 960px) {
  .masthead__brandrow { flex-direction: column; align-items: stretch; gap: 1.3rem; }
  .controls { width: 100%; }
  .field--search { flex: 1; min-width: 0; }
  .field--filter { flex: 0 0 auto; }

  .stories { gap: 1.6rem 1.2rem; }
  .entry--cover { flex-direction: column; gap: 1.1rem; }
  .entry--cover .entry__media { width: 100%; aspect-ratio: 16 / 9; }
  .entry--cover .entry__body { padding: 0; }

  .entry--a, .entry--b, .entry--c, .entry--d { grid-column: span 6; }
  .entry--wide { grid-column: span 12; }
  .entry--wide .entry__media { width: 140px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .masthead__topbar { font-size: 0.62rem; gap: 0.6rem; padding: 0.45rem 0.8rem; }
  .topbar__lit { display: none; }
  .savedtoggle__label { display: none; }
  .savedtoggle { padding: 0.3rem 0.55rem; }
  .savedtoggle__count { padding-left: 0.25rem; }

  .wordmark__tag { display: none; }
  .wordmark__bar { width: 0.35rem; }

  .controls { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .field--search, .field--filter { width: 100%; }
  .field__select { width: 100%; }

  .masthead__status { font-size: 0.66rem; }
  .status__clear { margin-left: 0; }

  .stories { grid-template-columns: 1fr; padding: 1.4rem 0.9rem 2.4rem; }
  .entry--a, .entry--b, .entry--c, .entry--d, .entry--cover, .entry--wide { grid-column: span 1; }
  .entry--a .entry__media, .entry--b .entry__media, .entry--c .entry__media, .entry--d .entry__media { aspect-ratio: 16/9; }
  .entry--wide { flex-direction: column; }
  .entry--wide .entry__media { width: 100%; aspect-ratio: 16/9; }

  .entry__title { font-size: 1.5rem !important; line-height: 1.04; }
  .entry--cover .entry__title { font-size: clamp(1.9rem, 8vw, 2.6rem) !important; }
  .entry--c .entry__title { font-size: 1.35rem; }

  .colophon__grid { grid-template-columns: 1fr; gap: 2rem; }

  .detail__sheet { max-width: 100%; }
  .detail__close span { display: none; }
  .detail__article { padding: 1.8rem 1.1rem 2.4rem; }
  .detail__body { font-size: 1.08rem; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .detail__sheet { transform: none; }
  .entry__img { transition: none; }
}

/* hide noscript styling fallback */
.noscript { padding: 2rem var(--gutter); font-family: var(--mono); color: var(--ink-2); }
