/* ==========================================================================
   Pavement — a journal of the everyday city
   ========================================================================== */

@font-face {
  font-family: "Literata";
  src: url("assets/literata.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("assets/work-sans.ttf") format("truetype");
  font-weight: 300 700;
  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 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f2eee5;
  --paper-raised: #faf7f0;
  --paper-deep: #e8e1d4;
  --ink: #181713;
  --ink-soft: #4d4a42;
  --ink-faint: #78736a;
  --rule: #cfc6b6;
  --rule-strong: #a99f8e;
  --accent: #c7471d;
  --accent-deep: #9e3413;
  --olive: #4f5b42;
  --cream: #f7f1e5;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --shell: 1300px;
  --gutter: clamp(20px, 4vw, 52px);
}

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

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

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

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

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

.shell {
  width: min(var(--shell), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  text-decoration: none;
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   Topline + masthead
   -------------------------------------------------------------------------- */

.topline {
  background: var(--ink);
  color: var(--cream);
  border-bottom: 1px solid var(--ink);
}

.topline__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
  padding-block: 7px;
}

.topline__statement {
  color: #bbb3a5;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.topline__saved {
  color: #d0c7b7;
  white-space: nowrap;
}

.masthead {
  border-bottom: 1px solid var(--rule-strong);
  background: var(--paper);
}

.masthead__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-block: 19px 17px;
}

.brand {
  display: inline-grid;
  grid-template-columns: auto;
  text-decoration: none;
  line-height: 1;
}

.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.1vw, 4.3rem);
  letter-spacing: -0.055em;
  line-height: 0.82;
}

.brand__dot {
  color: var(--accent);
}

.brand__sub {
  margin-top: 10px;
  padding-left: 2px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
  padding-bottom: 3px;
}

.primary-nav a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding-block: 4px;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  right: 0;
}

/* --------------------------------------------------------------------------
   Lede
   -------------------------------------------------------------------------- */

.lede {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: end;
  padding-block: clamp(44px, 6.4vw, 82px) clamp(40px, 5vw, 62px);
  border-bottom: 1px solid var(--rule-strong);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow__rule {
  width: 42px;
  height: 2px;
  background: var(--accent);
}

.lede__title {
  margin-top: 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 7.2vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.052em;
}

.lede__title em {
  font-weight: 400;
  color: var(--accent);
}

.lede__aside {
  padding-bottom: 8px;
}

.lede__blurb {
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 46ch;
}

.lede__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 34px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fact strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.fact span {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.lede__hint {
  margin-top: 26px;
  color: var(--accent-deep);
}

/* --------------------------------------------------------------------------
   Browse controls
   -------------------------------------------------------------------------- */

.browse {
  padding-block: clamp(38px, 5vw, 62px) clamp(60px, 8vw, 108px);
}

.browse__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.browse__heading {
  flex: 0 0 auto;
}

.browse__heading h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.browse__count {
  margin-top: 9px;
  color: var(--ink-faint);
  font-size: 0.6rem;
}

.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  flex: 1 1 auto;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > label,
.field__label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field--search {
  flex: 1 1 260px;
  max-width: 370px;
}

.field--select {
  flex: 0 0 176px;
}

.field--saved {
  flex: 0 0 auto;
}

.field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.field__icon {
  position: absolute;
  left: 13px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 1.7;
  stroke-linecap: round;
  pointer-events: none;
}

.field input,
.field select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--paper-raised);
  transition: border-color 150ms ease, background 150ms ease;
}

.field input {
  padding: 0 14px 0 39px;
  font-size: 0.86rem;
}

.field input::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}

.field select {
  appearance: none;
  padding: 0 38px 0 13px;
  font-size: 0.84rem;
  cursor: pointer;
}

.field__chevron {
  position: absolute;
  right: 12px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.field input:hover,
.field select:hover {
  border-color: var(--ink-soft);
}

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

.saved-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.saved-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.saved-toggle:hover {
  border-color: var(--ink);
}

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

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

.saved-toggle__count {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding-inline: 4px;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.58rem;
  line-height: 1;
}

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

/* --------------------------------------------------------------------------
   Story grid
   -------------------------------------------------------------------------- */

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 3.2vw, 46px) clamp(20px, 2.2vw, 30px);
}

.story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule-strong);
}

.story__media {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
  aspect-ratio: 16 / 10;
}

.story__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 500ms ease;
}

.story:hover .story__media img {
  transform: scale(1.025);
  filter: saturate(1.04);
}

.story__media-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 7px;
  background: rgba(24, 23, 19, 0.82);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
}

.story__media-saved {
  position: absolute;
  right: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story__media-saved svg {
  width: 10px;
  height: 10px;
  fill: var(--accent);
  stroke: var(--accent);
  stroke-width: 1.6;
}

.story__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 15px;
}

.story__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-deep);
  font-weight: 500;
}

.category::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}

.story__meta-sep {
  width: 14px;
  height: 1px;
  background: var(--rule-strong);
}

.story__title {
  margin-top: 11px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.story__open {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 260ms ease, color 180ms ease;
}

.story__open:hover,
.story__open:focus-visible {
  color: var(--accent-deep);
  background-size: 100% 1px;
}

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

.story__summary {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.87rem;
  line-height: 1.55;
  max-width: 46ch;
}

.story__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.story__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.story__read svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  transition: transform 180ms ease;
}

.story__read:hover svg {
  transform: translateX(3px);
}

/* Featured lead card */

.story--feature {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 0;
  padding-top: 0;
  border-top: 0;
  background: var(--ink);
  color: var(--cream);
  min-height: 420px;
}

.story--feature .story__media {
  height: 100%;
  min-height: 340px;
  aspect-ratio: auto;
}

.story--feature .story__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 68%, rgba(24, 23, 19, 0.32));
  pointer-events: none;
}

.story--feature .story__media-label {
  background: var(--accent);
  color: var(--cream);
}

.story--feature .story__content {
  justify-content: center;
  padding: clamp(22px, 3vw, 40px);
}

.story--feature .story__meta {
  color: #b6ad9e;
}

.story--feature .category {
  color: #f3a17f;
}

.story--feature .story__title {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.02;
  margin-top: 14px;
}

.story--feature .story__open:hover,
.story--feature .story__open:focus-visible {
  color: #fff4e7;
}

.story--feature .story__summary {
  color: #c8c0b2;
  font-size: 0.91rem;
  line-height: 1.6;
  margin-top: 14px;
}

.story--feature .story__foot {
  color: #9c9487;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 241, 229, 0.18);
}

.story--feature .story__read {
  color: var(--cream);
}

.story-grid[data-count="1"] .story--feature {
  grid-column: span 3;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */

.empty-state {
  position: relative;
  padding: clamp(55px, 8vw, 95px) clamp(24px, 6vw, 70px);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  text-align: center;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), var(--rule) 50%, transparent calc(50% + 1px));
}

.empty-state__index {
  color: var(--accent-deep);
}

.empty-state h3 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.empty-state p {
  max-width: 48ch;
  margin: 13px auto 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 150ms ease, color 150ms ease;
}

.button--ink {
  background: var(--ink);
  color: var(--cream);
}

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

/* --------------------------------------------------------------------------
   Detail view
   -------------------------------------------------------------------------- */

.detail-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 20;
}

.detail-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border: 0;
  background: none;
  font-size: 0.82rem;
  font-weight: 500;
}

.back-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.back-button:hover svg {
  transform: translateX(-3px);
}

.detail-bar__issue {
  color: var(--ink-faint);
  font-size: 0.57rem;
}

#detail {
  padding-bottom: clamp(60px, 8vw, 110px);
}

.article {
  width: min(1120px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.article__header {
  max-width: 960px;
  margin: 0 auto;
  padding-block: clamp(48px, 6.5vw, 88px) clamp(30px, 4vw, 46px);
  text-align: center;
}

.article__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.article__eyebrow .category {
  color: var(--accent-deep);
}

.article__title {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5.5vw, 4.9rem);
  font-weight: 400;
  line-height: 0.99;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.article__title:focus {
  outline: none;
}

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

.article__dek {
  max-width: 690px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.04rem, 1.7vw, 1.3rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.article__byline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 27px;
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.article__byline strong {
  color: var(--ink);
  font-weight: 500;
}

.save-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.save-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.save-button:hover {
  border-color: var(--ink);
}

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

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

.article__figure {
  margin: 0;
}

.article__figure img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  aspect-ratio: 16 / 8;
}

.article__figure figcaption {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
}

.article__layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 690px);
  justify-content: center;
  gap: clamp(32px, 6vw, 82px);
  padding-top: clamp(40px, 5vw, 62px);
}

.article__rail {
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  align-self: start;
  position: sticky;
  top: 86px;
}

.rail-block {
  margin-bottom: 22px;
}

.rail-block dt,
.rail-block h2 {
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.rail-block dd,
.rail-block p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.rail-topic {
  color: var(--accent-deep);
  font-weight: 500;
}

.rail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.76rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
}

.rail-back:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.article__body {
  max-width: 690px;
  font-family: var(--serif);
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  line-height: 1.78;
  color: #28261f;
}

.article__body p + p {
  margin-top: 1.35em;
}

.article__body p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-size: 4.15em;
  line-height: 0.78;
  font-weight: 400;
  color: var(--accent);
}

.article__end {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.article__end::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.article__footer {
  display: flex;
  justify-content: center;
  margin-top: clamp(48px, 6vw, 76px);
}

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

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-top: clamp(50px, 7vw, 86px);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.1fr;
  gap: clamp(32px, 6vw, 90px);
  padding-bottom: clamp(46px, 6vw, 70px);
}

.footer__logo {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.85;
  letter-spacing: -0.055em;
}

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

.footer__tagline {
  margin-top: 18px;
  color: #a9a193;
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer__top h2 {
  margin-bottom: 18px;
  color: #8f887b;
  font-weight: 400;
}

.footer__index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer__index button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream);
  font-size: 0.83rem;
  border-bottom: 1px solid transparent;
}

.footer__index button:hover,
.footer__index button:focus-visible {
  border-color: var(--accent);
  color: #ffd9c9;
}

.footer__note p {
  color: #a9a193;
  font-size: 0.77rem;
  line-height: 1.65;
  max-width: 45ch;
}

.footer__credit {
  margin-top: 16px;
  color: #9a9284 !important;
  font-size: 0.55rem !important;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  border-top: 1px solid #3b3832;
  color: #8f887b;
}

.footer__bottom a {
  text-decoration: none;
}

.footer__bottom a:hover {
  color: var(--cream);
}

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

@media (max-width: 1080px) {
  .browse__head {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .toolbar {
    justify-content: flex-start;
  }

  .field--search {
    max-width: none;
  }

  .story--feature {
    min-height: 0;
  }

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

  .footer__note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .lede {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .lede__title {
    font-size: clamp(3.2rem, 11vw, 5.2rem);
  }

  .lede__facts {
    margin-top: 22px;
  }

  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story--feature {
    grid-column: span 2;
  }

  .story-grid[data-count="1"] .story--feature {
    grid-column: span 2;
  }

  .article__layout {
    grid-template-columns: 1fr;
    max-width: 690px;
    margin-inline: auto;
  }

  .article__rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 24px;
    border-top: 1px solid var(--rule);
    padding-top: 16px;
  }

  .rail-block {
    margin: 0;
  }

  .rail-back {
    align-self: start;
  }

  .article__figure img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 20px;
  }

  .topline__statement {
    display: none;
  }

  .masthead__inner {
    align-items: flex-end;
    padding-block: 16px 14px;
  }

  .brand__name {
    font-size: clamp(2.4rem, 11vw, 3.3rem);
  }

  .brand__sub {
    font-size: 0.49rem;
    letter-spacing: 0.13em;
    margin-top: 8px;
  }

  .primary-nav {
    gap: 12px;
    padding-bottom: 2px;
  }

  .primary-nav a {
    font-size: 0.7rem;
  }

  .primary-nav a:first-child {
    display: none;
  }

  .lede {
    padding-block: 34px 40px;
  }

  .lede__title {
    margin-top: 17px;
  }

  .lede__blurb {
    font-size: 0.94rem;
  }

  .lede__hint {
    margin-top: 20px;
  }

  .browse {
    padding-top: 32px;
  }

  .toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

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

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

  .saved-toggle {
    width: 100%;
    justify-content: center;
  }

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

  .story-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .story--feature {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .story-grid[data-count="1"] .story--feature {
    grid-column: span 1;
  }

  .story--feature .story__media {
    min-height: 0;
    aspect-ratio: 16 / 11;
  }

  .story--feature .story__media::after {
    display: none;
  }

  .story--feature .story__content {
    padding: 24px 20px 26px;
  }

  .story--feature .story__title {
    font-size: 1.9rem;
  }

  .story__title {
    font-size: 1.5rem;
  }

  .article__header {
    padding-block: 36px 28px;
    text-align: left;
  }

  .article__eyebrow {
    justify-content: flex-start;
  }

  .article__title {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
    margin-top: 17px;
  }

  .article__dek {
    margin-inline: 0;
    font-size: 1.04rem;
  }

  .article__byline {
    justify-content: flex-start;
    gap: 10px 14px;
  }

  .save-button {
    flex-basis: 100%;
    width: max-content;
    margin-top: 4px;
  }

  .article__figure {
    width: calc(100% + (var(--gutter) * 2));
    margin-inline: calc(var(--gutter) * -1);
  }

  .article__figure img {
    aspect-ratio: 4 / 3;
  }

  .article__figure figcaption {
    padding-inline: var(--gutter);
    text-align: left;
  }

  .article__layout {
    padding-top: 30px;
  }

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

  .rail-back {
    grid-column: 1 / -1;
  }

  .article__body p:first-child::first-letter {
    font-size: 3.4em;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer__bottom {
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .footer__bottom span:nth-child(2) {
    display: none;
  }

  .detail-bar__issue {
    display: none;
  }
}

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

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