@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Chivo Mono";
  src: url("/fonts/chivo-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --linen-ground: #f5eedf;
  --linen-elevated: #fbf7ee;
  --linen-well: #eae0cc;
  --linen-rule: #d8ccb6;
  --asphalt-ink: #191613;
  --asphalt-muted: #52493f;
  --dusk-surface: #231e19;
  --dusk-panel: #2e2721;
  --dusk-rule: #443a31;
  --dusk-ink: #f7f0e4;
  --dusk-muted: #d1c4ae;
  --harveston-amber: #d98c24;
  --harveston-amber-deep: #a8620c;
  --terracotta-stamp: #b4432a;
  --terracotta-deep: #8f301b;
  --valley-pine: #1e4d3a;
  --valley-pine-deep: #15382a;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --font-mono: "Chivo Mono", ui-monospace, SFMono-Regular, monospace;

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-plate: 0 18px 42px rgba(25, 22, 19, 0.13);
  --shadow-plate-dark: 0 22px 48px rgba(0, 0, 0, 0.36);

  --max-width: 1320px;
  --gutter: clamp(18px, 3vw, 40px);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--linen-ground);
  color: var(--asphalt-ink);
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.62;
  background-color: var(--linen-ground);
  color: var(--asphalt-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  caret-color: var(--terracotta-stamp);
}

::selection {
  background-color: var(--terracotta-stamp);
  color: var(--linen-elevated);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--linen-well);
}

::-webkit-scrollbar-thumb {
  background: var(--linen-rule);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--asphalt-muted);
}

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

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

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

.dusk-band :focus-visible {
  outline-color: var(--harveston-amber);
}

.container {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- Masthead */
.masthead {
  border-bottom: 1px solid var(--linen-rule);
  background-color: var(--linen-ground);
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 64px;
  padding: 10px 0;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-left: auto;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
}

.nav-link {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--asphalt-muted);
  padding-block: 6px;
  transition: color 180ms var(--ease-out-quart);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--asphalt-ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: var(--valley-pine);
  color: var(--linen-elevated);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms var(--ease-out-quart), transform 180ms var(--ease-out-quart);
}

.nav-cta:hover {
  background-color: var(--valley-pine-deep);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------- Shared Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-wrap: balance;
  color: var(--asphalt-ink);
}

p {
  margin: 0 0 16px;
  max-width: 68ch;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------- Buttons & Action Stamp */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background-color: var(--valley-pine);
  color: var(--linen-elevated);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms var(--ease-out-quart), transform 180ms var(--ease-out-quart);
}

.btn-primary:hover {
  background-color: var(--valley-pine-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background-color: transparent;
  color: var(--asphalt-ink);
  border: 1px solid var(--linen-rule);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 180ms var(--ease-out-quart), background-color 180ms var(--ease-out-quart);
}

.btn-secondary:hover {
  border-color: var(--asphalt-ink);
  background-color: var(--linen-elevated);
}

/* ---------------------------------------------------- First Viewport: Folio */
.hero-folio {
  padding-top: clamp(18px, 2.4vh, 28px);
  padding-bottom: clamp(24px, 3vh, 36px);
}

.hero-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  align-items: end;
  gap: 18px 32px;
  margin-bottom: clamp(16px, 2.2vh, 24px);
}

.hero-headline h1 {
  font-size: clamp(2.35rem, 5.1vw, 4.65rem);
  margin: 0 0 8px;
}

.hero-lead {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.48;
  color: var(--asphalt-muted);
  margin: 0;
  max-width: 58ch;
}

.hero-stamp-rail {
  display: flex;
  align-items: center;
  gap: 16px;
}

.postmark-seal {
  width: 82px;
  height: 82px;
  flex-shrink: 0;
  color: var(--terracotta-stamp);
}

.hero-action-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.hero-action-note {
  font-size: 0.85rem;
  color: var(--asphalt-muted);
  margin: 0;
}

/* Postcard Matte Stage */
.postcard-stage {
  background-color: var(--linen-elevated);
  padding: 16px 16px 14px;
  border-radius: 6px;
  box-shadow: var(--shadow-plate);
}

.postcard-aperture {
  position: relative;
  width: 100%;
  height: clamp(220px, 47vh, 435px);
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--dusk-surface);
}

.postcard-aperture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 74%;
  transition: opacity 240ms var(--ease-out-quart);
}

.postcard-caption-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 10px;
}

.postcard-coords {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  color: var(--terracotta-stamp);
  letter-spacing: 0.02em;
}

.postcard-caption {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--asphalt-ink);
  margin: 0;
  max-width: none;
}

/* 5-Card Vista Selector Strip */
.vista-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.vista-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  background-color: var(--linen-well);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  color: var(--asphalt-ink);
  transition: background-color 180ms var(--ease-out-quart), border-color 180ms var(--ease-out-quart);
}

.vista-tab:hover {
  background-color: var(--linen-elevated);
}

.vista-tab[aria-pressed="true"] {
  background-color: var(--linen-elevated);
  border-color: var(--terracotta-stamp);
}

.vista-thumb {
  width: 64px;
  height: 40px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.vista-tab-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vista-tab-name {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vista-tab-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--asphalt-muted);
  line-height: 1.1;
}

/* ----------------------------------------------------- Specification Ledger */
.spec-band {
  position: relative;
  border-top: 1px solid var(--linen-rule);
  border-bottom: 1px solid var(--linen-rule);
  background-color: var(--linen-elevated);
  padding: 20px 0;
}

.spec-band::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 1px;
  height: 16px;
  background-color: var(--terracotta-stamp);
  transform: translateX(-50%);
}

.spec-ledger {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.spec-cell {
  padding: 12px 18px;
  border-right: 1px solid var(--linen-rule);
}

.spec-cell:first-child {
  padding-left: 0;
}

.spec-cell:last-child {
  border-right: none;
  padding-right: 0;
}

.spec-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 2.5vw, 2.35rem);
  line-height: 0.98;
  color: var(--asphalt-ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.spec-label {
  display: block;
  font-size: 0.9rem;
  color: var(--asphalt-muted);
  line-height: 1.35;
}

/* ---------------------------------------------------- Dusk Compare Section */
.dusk-band {
  position: relative;
  background-color: var(--dusk-surface);
  color: var(--dusk-ink);
  padding: 68px 0;
}

.dusk-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 24px;
  background-color: var(--harveston-amber);
  transform: translateX(-50%);
}

.dusk-band h2,
.dusk-band h3 {
  color: var(--dusk-ink);
}

.dusk-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 24px;
}

.dusk-header h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  margin: 0 0 10px;
}

.dusk-sub {
  color: var(--dusk-muted);
  margin: 0;
  max-width: 60ch;
}

.dusk-readout {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--harveston-amber);
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.compare-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 886;
  max-height: 580px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-plate-dark);
  background-color: #14110e;
  --split: 52%;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}

.compare-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare-night {
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background-color: var(--harveston-amber);
  transform: translateX(-1px);
  pointer-events: none;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background-color: var(--harveston-amber);
  color: var(--asphalt-ink);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.42);
}

.compare-handle svg {
  width: 18px;
  height: 18px;
}

.compare-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 18px;
  padding: 14px 18px;
  background-color: var(--dusk-panel);
  border-radius: 6px;
}

.compare-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--dusk-rule);
  background-color: transparent;
  color: var(--dusk-ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out-quart), border-color 160ms var(--ease-out-quart), color 160ms var(--ease-out-quart);
}

.mode-btn:hover {
  border-color: var(--harveston-amber);
}

.mode-btn[aria-pressed="true"] {
  background-color: var(--harveston-amber);
  border-color: var(--harveston-amber);
  color: var(--asphalt-ink);
}

.compare-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 260px;
  max-width: 420px;
}

.compare-slider-label {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--dusk-muted);
  white-space: nowrap;
}

.compare-slider {
  width: 100%;
  accent-color: var(--harveston-amber);
  cursor: pointer;
}

/* --------------------------------------------------- Valley Gazetteer Spread */
.valley-band {
  position: relative;
  padding: 76px 0;
  border-bottom: 1px solid var(--linen-rule);
}

.valley-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 24px;
  background-color: var(--terracotta-stamp);
  transform: translateX(-50%);
}

.section-intro {
  margin-bottom: 34px;
}

.section-intro h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.15rem);
  margin: 0 0 10px;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--asphalt-muted);
  margin: 0;
  max-width: 62ch;
}

.valley-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.gazetteer {
  position: relative;
  padding-left: 24px;
}

.gazetteer::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 6px;
  width: 1px;
  background-color: var(--terracotta-stamp);
}

.gazetteer-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: 8px 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--linen-rule);
  align-items: baseline;
}

.gazetteer-row::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 24px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background-color: var(--linen-ground);
  border: 2px solid var(--terracotta-stamp);
}

.gazetteer-row:first-child {
  border-top: 1px solid var(--linen-rule);
}

.gazetteer-coord {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--terracotta-stamp);
}

.gazetteer-body h3 {
  font-size: 1.48rem;
  margin: 0 0 4px;
}

.gazetteer-body p {
  color: var(--asphalt-muted);
  font-size: 0.98rem;
  margin: 0;
}

.plate-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.plate-frame {
  background-color: var(--linen-elevated);
  padding: 12px 12px 14px;
  border-radius: 6px;
  box-shadow: var(--shadow-plate);
  margin: 0;
}

.plate-frame img {
  width: 100%;
  aspect-ratio: 1920 / 886;
  object-fit: cover;
  border-radius: 2px;
}

.plate-frame figcaption {
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  font-size: 0.88rem;
  color: var(--asphalt-muted);
}

.plate-title {
  font-weight: 700;
  color: var(--asphalt-ink);
}

/* --------------------------------------------------- Play & Storefront Band */
.dispatch-band {
  position: relative;
  padding: 76px 0;
}

.dispatch-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 24px;
  background-color: var(--terracotta-stamp);
  transform: translateX(-50%);
}

.dispatch-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.dispatch-summary h2 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  margin: 0 0 12px;
}

.dispatch-summary p {
  color: var(--asphalt-muted);
  margin-bottom: 18px;
}

.price-note-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.price-note-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--linen-rule);
  font-size: 0.94rem;
}

.price-note-list li:first-child {
  border-top: 1px solid var(--linen-rule);
}

.price-note-key {
  font-weight: 700;
  color: var(--asphalt-ink);
}

.price-note-val {
  color: var(--asphalt-muted);
  text-align: right;
}

.discipline-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}

.discipline-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--linen-rule);
}

.discipline-item:nth-child(-n+2) {
  border-top: 1px solid var(--linen-rule);
}

.discipline-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.discipline-icon {
  width: 18px;
  height: 18px;
  color: var(--terracotta-stamp);
  flex-shrink: 0;
}

.discipline-head h3 {
  font-size: 1.38rem;
  margin: 0;
}

.discipline-item p {
  font-size: 0.95rem;
  color: var(--asphalt-muted);
  margin: 0;
}

/* Closing Banner Band */
.closing-band {
  padding: 16px 0 76px;
}

.closing-folio {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(24px, 3.6vw, 48px);
  align-items: center;
  background-color: var(--linen-elevated);
  padding: 32px;
  border-radius: 6px;
  box-shadow: var(--shadow-plate);
}

.closing-plate img {
  width: 100%;
  aspect-ratio: 1920 / 886;
  object-fit: cover;
  border-radius: 3px;
}

.closing-copy h2 {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  margin: 0 0 10px;
}

.closing-copy p {
  color: var(--asphalt-muted);
  margin-bottom: 18px;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

/* ----------------------------------------------------- Read Pages (Support/Privacy) */
.read-shell {
  padding: 48px 0 84px;
}

.read-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--linen-rule);
  margin-bottom: 32px;
}

.read-header h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  margin: 0 0 10px;
}

.read-intro {
  font-size: 1.08rem;
  color: var(--asphalt-muted);
  margin: 0;
  max-width: 64ch;
}

.read-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.read-toc {
  position: sticky;
  top: 24px;
}

.read-toc a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--linen-rule);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--asphalt-muted);
  text-decoration: none;
}

.read-toc a:first-child {
  border-top: 1px solid var(--linen-rule);
}

.read-toc a:hover {
  color: var(--asphalt-ink);
}

.read-article {
  max-width: 72ch;
}

.read-section {
  padding: 28px 0;
  border-top: 1px solid var(--linen-rule);
}

.read-section:first-child {
  padding-top: 0;
  border-top: none;
}

.read-section h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  margin: 0 0 10px;
}

.read-section p,
.read-section li {
  color: var(--asphalt-muted);
  font-size: 1.02rem;
}

.read-section ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.read-section li {
  margin-bottom: 10px;
}

.read-section li strong {
  color: var(--asphalt-ink);
}

.contact-callout {
  background-color: var(--linen-elevated);
  padding: 18px 20px;
  border-radius: 6px;
  border: 1px solid var(--linen-rule);
  margin-top: 12px;
}

.contact-mail {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--valley-pine);
  text-decoration: underline;
}

.fact-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 6px;
}

.fact-table th,
.fact-table td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--linen-rule);
  text-align: left;
  font-size: 0.95rem;
}

.fact-table tr:first-child th,
.fact-table tr:first-child td {
  border-top: 1px solid var(--linen-rule);
}

.fact-table th {
  width: 40%;
  color: var(--asphalt-ink);
  font-weight: 700;
}

.fact-table td {
  color: var(--asphalt-muted);
  font-family: var(--font-body);
}

.fact-table td.fact-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--asphalt-ink);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background-color: var(--linen-well);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--asphalt-ink);
}

/* ------------------------------------------------------------------ Footer */
.site-footer {
  border-top: 1px solid var(--linen-rule);
  background-color: var(--linen-ground);
  padding: 32px 0 44px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 20px 36px;
  font-size: 0.9rem;
  color: var(--asphalt-muted);
}

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

.footer-brand {
  font-weight: 700;
  color: var(--asphalt-ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-weight: 600;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--asphalt-ink);
  text-decoration: underline;
}

/* --------------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .hero-header-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .vista-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .spec-cell {
    border-bottom: 1px solid var(--linen-rule);
    padding: 16px 14px;
  }

  .spec-cell:first-child {
    padding-left: 14px;
  }

  .spec-cell:nth-child(2n) {
    border-right: none;
  }

  .spec-cell:last-child {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: none;
  }

  .valley-spread,
  .dispatch-grid,
  .closing-folio,
  .read-grid {
    grid-template-columns: 1fr;
  }

  .read-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding-bottom: 8px;
  }

  .read-toc a {
    border-bottom: none;
    padding: 6px 0;
  }
}

@media (max-width: 680px) {
  .masthead-inner {
    gap: 8px 12px;
    padding: 8px 0 10px;
  }

  .masthead-actions {
    display: contents;
  }

  .brand-lockup {
    order: 1;
  }

  .nav-cta {
    order: 2;
    margin-left: auto;
    padding: 7px 13px;
    font-size: 0.84rem;
  }

  .nav-row {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 4px 12px;
    border-top: 1px solid var(--linen-rule);
    padding-top: 6px;
  }

  .nav-link {
    padding: 4px 0;
    font-size: 0.9rem;
  }

  .hero-folio {
    padding-top: 14px;
    padding-bottom: 20px;
  }

  .vista-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 2px 0 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .vista-tab {
    flex: 0 0 auto;
    padding: 6px 12px 6px 6px;
    scroll-snap-align: start;
  }

  .vista-tab-name {
    overflow: visible;
    text-overflow: clip;
  }

  .gazetteer {
    padding-left: 20px;
  }

  .gazetteer-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .gazetteer-row::before {
    left: -18px;
  }

  .discipline-table {
    grid-template-columns: 1fr;
  }

  .discipline-item:nth-child(2) {
    border-top: none;
  }

  .postcard-stage {
    padding: 12px 12px 12px;
  }

  .postcard-aperture {
    height: auto;
    aspect-ratio: 1920 / 886;
  }

  .closing-folio {
    padding: 20px;
  }

  .hero-stamp-rail {
    gap: 12px;
  }

  .postmark-seal {
    width: 68px;
    height: 68px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
