/* ---------------------------------------------------------------
   Curb — a dark, high-contrast city journal
   --------------------------------------------------------------- */

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

:root {
  --ink: #0e0f12;
  --ink-raised: #14161b;
  --ink-deep: #0a0b0d;
  --paper: #f2efe7;
  --paper-dim: #e5e0d4;
  --text: #f2efe7;
  --muted: #a5a39a;
  --line: rgba(242, 239, 231, 0.16);
  --line-soft: rgba(242, 239, 231, 0.09);
  --acid: #d9f45c;
  --acid-deep: #b9d33f;
  --focus: #d9f45c;
  --sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --rail: 316px;
  --pad: clamp(20px, 4.2vw, 64px);
  --radius: 2px;
  color-scheme: dark;
}

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 82% -12%, rgba(217, 244, 92, 0.07), transparent 62%),
    var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-reading {
  overflow: hidden;
}

::selection {
  background: var(--acid);
  color: var(--ink);
}

:where(a, button, input, select, summary) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(217, 244, 92, 0.18);
}

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

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

button {
  cursor: pointer;
}

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

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

p {
  text-wrap: pretty;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------
   Shell + masthead rail
   --------------------------------------------------------------- */

.shell {
  min-height: 100vh;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 34px 28px 26px;
  background:
    linear-gradient(180deg, rgba(217, 244, 92, 0.045), transparent 34%),
    var(--ink-deep);
  border-right: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--acid);
  color: var(--ink);
  border-radius: var(--radius);
}

.brand__name {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.brand__tag {
  margin-top: 16px;
  max-width: 24ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.issue {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.issue span:nth-child(2) {
  color: var(--acid);
}

.controls {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__wrap {
  position: relative;
}

.field__icon {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  background-color: #191b20;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  appearance: none;
}

.field input {
  padding-left: 39px;
}

.field input::placeholder {
  color: #9b998f;
  opacity: 1;
}

.field select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='m1 1.5 5 5 5-5' stroke='%23a5a39a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.field input:hover,
.field select:hover {
  border-color: rgba(242, 239, 231, 0.34);
}

.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: transparent;
}

.field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  background:
    linear-gradient(45deg, transparent 44%, var(--muted) 44%, var(--muted) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--muted) 44%, var(--muted) 56%, transparent 56%);
  cursor: pointer;
}

.saved-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.saved-filter svg {
  flex: none;
}

.saved-filter:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.saved-filter__count {
  margin-left: auto;
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  background: rgba(242, 239, 231, 0.1);
  border-radius: 999px;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

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

.saved-filter[aria-pressed="true"] .saved-filter__count {
  background: rgba(14, 15, 18, 0.16);
  color: var(--ink);
}

.saved-filter[aria-pressed="true"]:hover {
  background: var(--acid-deep);
  border-color: var(--acid-deep);
  color: var(--ink);
}

.rail__bottom {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.rail__note {
  max-width: 30ch;
  color: #94928a;
  font-size: 12.5px;
  line-height: 1.55;
}

.rail__edition {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a897f;
}

/* ---------------------------------------------------------------
   Main column
   --------------------------------------------------------------- */

main {
  margin-left: var(--rail);
  padding: 0 var(--pad, 64px);
  max-width: 1500px;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(230px, 0.65fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
  padding: clamp(46px, 6vw, 88px) 0 clamp(34px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acid);
}

.masthead h1 > span {
  display: block;
}

.masthead h1 {
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(44px, 5.5vw, 86px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.052em;
  text-transform: uppercase;
}

.masthead h1 .dot {
  color: var(--acid);
}

.masthead__aside {
  padding-bottom: 6px;
}

.dek {
  max-width: 36ch;
  color: #c7c4ba;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
}

.masthead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead__meta span:first-child {
  color: var(--text);
}

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

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 26px;
}

.section-head h2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.section-head__note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a897f;
  text-align: right;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  border-bottom: 1px solid var(--line);
}

.story {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  padding: 27px 40px 30px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.story--right {
  padding-right: 0;
  padding-left: 40px;
  border-left: 1px solid var(--line);
}

.story__index {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #8a897f;
  font-variant-numeric: tabular-nums;
}

.story__body {
  min-width: 0;
}

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

.cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cat, var(--acid));
  flex: none;
}

.cat-name {
  color: var(--cat, var(--acid));
}

.story h3 {
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(21px, 1.85vw, 27px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

.story__link {
  display: inline;
  padding: 0;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  background-image: linear-gradient(var(--acid), var(--acid));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color 150ms ease, background-size 220ms ease;
}

.story__link::after {
  content: " ↗";
  font-family: var(--mono);
  font-size: 0.62em;
  color: var(--acid);
  white-space: nowrap;
}

.story__link:hover {
  color: var(--acid);
  background-size: 100% 2px;
}

.story__summary {
  margin-top: 10px;
  max-width: 48ch;
  color: #a9a79e;
  font-size: 14.5px;
  line-height: 1.55;
}

.story__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 15px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a897f;
}

.story__saved {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--acid);
}

.story__saved svg {
  flex: none;
}

/* Featured story ------------------------------------------------ */

.feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(217, 244, 92, 0.06), transparent 46%),
    var(--ink-raised);
}

.feature__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.feature__media img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.feature:hover .feature__media img {
  transform: scale(1.025);
}

.feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 15, 18, 0.55));
  pointer-events: none;
}

.feature__tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.feature__photo-note {
  position: absolute;
  right: 16px;
  bottom: 17px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 239, 231, 0.8);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

.feature__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(26px, 3vw, 46px);
  min-width: 0;
}

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

.feature h3 {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(29px, 2.7vw, 40px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.feature__summary {
  margin-top: 16px;
  max-width: 42ch;
  color: #b4b1a7;
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.62;
}

.feature__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #94928a;
}

/* Empty / loading ---------------------------------------------- */

.empty-state {
  margin: 8px 0 30px;
  padding: clamp(30px, 5vw, 64px);
  border: 1px dashed rgba(217, 244, 92, 0.45);
  background: rgba(217, 244, 92, 0.035);
}

.empty-state h3 {
  margin-top: 12px;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.empty-state p:not(.eyebrow) {
  margin-top: 10px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 15px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button--solid {
  margin-top: 22px;
  background: var(--acid);
  border: 1px solid var(--acid);
  color: var(--ink);
}

.button--solid:hover {
  background: var(--text);
  border-color: var(--text);
}

.loading,
.load-error {
  padding: 30px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.load-error {
  color: #ffb27a;
}

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

.footer {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 24px;
  align-items: start;
  padding: 34px 0 44px;
}

.footer__brand {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.footer__note,
.footer__credit {
  color: #929087;
  font-size: 12px;
  line-height: 1.55;
}

.footer__credit {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}

/* ---------------------------------------------------------------
   Reader dialog — light paper against the dark journal
   --------------------------------------------------------------- */

.reader {
  width: min(940px, calc(100vw - 48px));
  max-width: 940px;
  max-height: min(92dvh, 940px);
  margin: auto;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  overscroll-behavior: contain;
}

.reader::backdrop {
  background: rgba(6, 7, 9, 0.78);
  backdrop-filter: blur(3px);
}

.reader :focus-visible {
  outline-color: var(--ink);
}

.reader::backdrop,
.reader[open] {
  overscroll-behavior: contain;
}

.reader[open] {
  animation: reader-in 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.reader__bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(242, 239, 231, 0.94);
  border-bottom: 1px solid rgba(14, 15, 18, 0.16);
  backdrop-filter: blur(8px);
}

.reader__close,
.save-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(14, 15, 18, 0.26);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

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

.reader__wordmark {
  margin: 0 auto;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.save-item {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.save-item:hover {
  background: #2a2d33;
  border-color: #2a2d33;
}

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

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

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

.reader__scroll {
  max-height: calc(min(92dvh, 940px) - 65px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(14, 15, 18, 0.3) transparent;
}

.reader__article {
  padding: clamp(26px, 4.4vw, 58px) clamp(22px, 6vw, 84px) clamp(34px, 5vw, 60px);
}

.reader__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5b5a53;
}

.reader__kicker .cat-name {
  color: #2e2f22;
  background: rgba(217, 244, 92, 0.65);
  padding: 3px 7px;
}

.reader h2 {
  margin-top: 18px;
  max-width: 19ch;
  font-family: var(--display);
  font-size: clamp(33px, 4.7vw, 58px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.reader__summary {
  margin-top: 18px;
  max-width: 56ch;
  color: #46463f;
  font-family: var(--sans);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
}

.reader__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 24px;
  padding: 14px 0;
  border-top: 1px solid rgba(14, 15, 18, 0.18);
  border-bottom: 1px solid rgba(14, 15, 18, 0.18);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #55544d;
}

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

.reader__figure {
  margin-top: 26px;
}

.reader__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.85);
}

.reader__figure figcaption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c6b63;
}

.reader__body {
  margin-top: 30px;
  max-width: 64ch;
  font-family: var(--serif);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.72;
  color: #22231f;
}

.reader__body p + p {
  margin-top: 1.15em;
}

.reader__body > p:first-child::first-letter {
  float: left;
  margin: 0.07em 0.12em 0 0;
  font-family: var(--display);
  font-size: 3.5em;
  font-weight: 600;
  line-height: 0.78;
  color: var(--ink);
}

.reader__end {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(14, 15, 18, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.reader__end p {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6c6b63;
}

.reader__end .button {
  margin: 0;
}

.button--ghost {
  background: transparent;
  border: 1px solid rgba(14, 15, 18, 0.3);
  color: var(--ink);
}

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

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

@media (max-width: 1180px) {
  :root {
    --rail: 288px;
  }
  .masthead {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .masthead__aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
  }
  .masthead__meta {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
    justify-content: flex-end;
    max-width: 190px;
    text-align: right;
  }
  .feature {
    grid-template-columns: 1fr;
  }
  .feature__media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .feature__media img {
    min-height: 260px;
    max-height: 340px;
  }
  .footer {
    grid-template-columns: 80px minmax(0, 1fr);
  }
  .footer__credit {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 900px) {
  .rail {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px var(--pad) 24px;
    gap: 24px;
  }
  .rail__top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand tag"
      "issue issue";
    align-items: center;
    gap: 0 20px;
  }
  .brand {
    grid-area: brand;
  }
  .brand__name {
    font-size: 32px;
  }
  .brand__mark {
    width: 34px;
    height: 34px;
  }
  .brand__tag {
    grid-area: tag;
    margin-top: 0;
    justify-self: end;
    text-align: right;
    max-width: 30ch;
    font-size: 13.5px;
  }
  .issue {
    grid-area: issue;
    margin-top: 14px;
  }
  .controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .controls .field:first-child {
    grid-column: 1 / -1;
  }
  .saved-filter {
    align-self: end;
  }
  .rail__bottom {
    display: none;
  }
  main {
    margin-left: 0;
    padding: 0 var(--pad);
  }
  .story-grid {
    column-gap: 28px;
  }
  .story {
    padding-right: 28px;
  }
  .story--right {
    padding-left: 28px;
  }
}

@media (max-width: 680px) {
  :root {
    --pad: 20px;
  }
  .masthead {
    padding: 34px 0 26px;
    gap: 22px;
  }
  .masthead h1 {
    font-size: clamp(38px, 11.6vw, 64px);
  }
  .masthead h1 > span {
    display: inline;
  }
  .masthead__aside {
    display: block;
  }
  .masthead__meta {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
    max-width: none;
    justify-content: flex-start;
    text-align: left;
  }
  .section-head {
    padding: 18px 0 20px;
  }
  .story-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .story,
  .story--right {
    padding: 22px 0 24px;
    border-left: 0;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
  }
  .story h3 {
    font-size: 22px;
  }
  .story__summary {
    font-size: 14px;
  }
  .feature__media img {
    min-height: 210px;
    max-height: 240px;
  }
  .feature__content {
    padding: 24px 20px 26px;
  }
  .feature h3 {
    font-size: 30px;
  }
  .feature__summary {
    font-size: 15.5px;
  }
  .footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 28px;
  }
  .footer__credit {
    grid-column: auto;
  }
  .reader {
    width: 100vw;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
  .reader__scroll {
    max-height: calc(100dvh - 65px);
  }
  .reader__bar {
    gap: 8px;
    padding: 10px 12px;
  }
  .reader__close,
  .save-item {
    padding: 0 10px;
  }
  .reader__wordmark {
    display: none;
  }
  .save-item {
    margin-left: auto;
  }
  .reader__article {
    padding: 28px 20px 44px;
  }
  .reader h2 {
    max-width: none;
    font-size: clamp(30px, 9vw, 42px);
  }
  .reader__body {
    font-size: 17px;
    line-height: 1.7;
  }
  .reader__end {
    display: block;
  }
  .reader__end .button {
    margin-top: 14px;
  }
}

@media (max-width: 430px) {
  .controls {
    grid-template-columns: 1fr;
  }
  .controls .field:first-child {
    grid-column: auto;
  }
  .saved-filter {
    align-self: auto;
  }
  .brand__tag {
    max-width: 19ch;
    font-size: 12.5px;
  }
  .section-head__note {
    display: none;
  }
  .reader__close span {
    font-size: 10px;
  }
}

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

@media (forced-colors: active) {
  .brand__mark,
  .feature__tag,
  .saved-filter[aria-pressed="true"],
  .button--solid,
  .save-item[aria-pressed="true"] {
    border: 1px solid ButtonText;
  }
}
