/*
Theme Name: BuzzPoints Desk
Theme URI: https://buzzpoints.com/
Author: BuzzPoints
Description: A disciplined travel-rewards newsroom theme inspired by departure boards, field notebooks, and analyst ledgers.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: buzzpoints
*/

:root {
  --ink: #0b0d0d;
  --paper: #f4f0e7;
  --paper-bright: #fbf8f1;
  --mist: #d9e0d6;
  --line: #b9b7af;
  --signal: #e84a27;
  --blue: #1d5cff;
  --muted: #5e615e;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --rail: min(94vw, 1480px);
  --rule: 1px solid var(--ink);
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

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

body.menu-is-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--signal);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

::selection {
  color: var(--paper-bright);
  background: var(--blue);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

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

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--paper-bright);
  background: var(--blue);
  font: 700 0.85rem/1 var(--sans);
}

.site-main,
.site-footer,
.site-header__rail {
  width: var(--rail);
  margin-inline: auto;
}

.ruled-section {
  border-right: var(--rule);
  border-bottom: var(--rule);
  border-left: var(--rule);
}

.eyebrow {
  margin-bottom: 0.8rem;
  font: 700 0.72rem/1.2 var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border: 1px solid currentColor;
  font: 700 0.8rem/1 var(--mono);
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease;
}

.button--signal {
  color: #fff;
  border-color: var(--signal);
  background: var(--signal);
}

.button--signal:hover {
  color: var(--signal);
  background: transparent;
}

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

.button--paper:hover {
  color: var(--paper-bright);
  background: transparent;
}

.text-link {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  font: 700 0.82rem/1.2 var(--mono);
  text-decoration: none;
  text-transform: uppercase;
}

.text-link span {
  color: var(--signal);
  font-size: 1.25em;
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(0.25rem);
}

/* Header */
.site-header {
  position: relative;
  z-index: 50;
  color: var(--paper-bright);
  background: var(--ink);
  border-bottom: 1px solid var(--paper-bright);
}

.site-header__rail {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: stretch;
  min-height: 78px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand__mark {
  width: 42px;
  flex: 0 0 42px;
}

.brand__mark circle,
.brand__mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.brand__mark path {
  stroke-linecap: square;
}

.brand__word {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand__desk {
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.55);
  color: #bec2bd;
  font: 600 0.64rem/1.25 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.primary-nav {
  align-self: stretch;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.site-menu,
.footer-menu {
  display: flex;
  height: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-menu a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 0.9rem;
  font: 700 0.7rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-menu a:hover,
.site-menu .current-menu-item > a,
.site-menu .current_page_item > a {
  color: var(--ink);
  background: var(--paper-bright);
}

.header-dispatch {
  display: flex;
  align-items: center;
  padding: 0 1.2rem;
  color: #fff;
  background: var(--signal);
  font: 700 0.7rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-dispatch:hover {
  color: #fff;
  background: var(--blue);
}

.menu-toggle {
  display: none;
}

/* Shared section flag */
.section-flag {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: end;
  min-width: 0;
}

.section-flag__number {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 86px;
  color: var(--paper-bright);
  background: var(--ink);
  font: 700 1rem/1 var(--mono);
}

.section-flag > div {
  padding: 1.25rem 1.6rem 1.1rem;
  border-top: var(--rule);
}

.section-flag h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
}

/* Home intro */
.front-intro {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) minmax(280px, 0.42fr);
  min-height: 690px;
  color: var(--paper-bright);
  background: var(--ink);
}

.front-intro__index {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0.75rem 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.45);
}

.front-intro__index > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 700 0.8rem/1 var(--mono);
}

.front-intro__index small {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 700 0.63rem/1 var(--mono);
  letter-spacing: 0.13em;
}

.front-intro__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3.5rem, 7vw, 7rem) clamp(1.8rem, 5vw, 6rem);
}

.front-intro__copy .eyebrow {
  color: #ff7659;
}

.front-intro h1 {
  max-width: 10ch;
  margin-bottom: 2rem;
  font-size: clamp(4rem, 8vw, 9.5rem);
  line-height: 0.82;
}

.dek {
  max-width: 670px;
  margin-bottom: 2rem;
  color: #d3d4cf;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  line-height: 1.32;
}

.front-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.desk-code {
  align-self: end;
  min-height: 440px;
  padding: 2rem;
  color: var(--ink);
  background: var(--mist);
  border-top: 1px solid var(--paper-bright);
  border-left: 1px solid var(--paper-bright);
}

.desk-code__label {
  display: inline-block;
  padding: 0.4rem 0.55rem;
  margin-bottom: 4rem;
  color: #fff;
  background: var(--blue);
  font: 700 0.72rem/1 var(--mono);
}

.desk-code ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.desk-code li {
  display: grid;
  grid-template-columns: 42px 1fr;
  padding: 1rem 0;
  border-top: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.desk-code li span {
  font: 700 0.68rem/1.4 var(--mono);
}

.desk-code__foot {
  margin-top: 3rem;
  font: 700 0.72rem/1.55 var(--mono);
  text-transform: uppercase;
}

/* Lead story */
.lead-desk {
  display: grid;
  grid-template-columns: minmax(260px, 0.28fr) 1fr;
}

.lead-desk > .section-flag {
  display: block;
  border-right: var(--rule);
}

.lead-desk .section-flag > div {
  padding: 1.6rem;
  border-top: 0;
}

.lead-story {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  min-height: 560px;
}

.lead-story__media {
  position: relative;
  display: block;
  min-height: 460px;
  overflow: hidden;
  color: inherit;
  background: var(--blue);
  border-right: var(--rule);
}

.lead-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.route-graphic {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--blue);
}

.route-graphic::before,
.route-graphic::after {
  position: absolute;
  left: 10%;
  content: "";
}

.route-graphic::before {
  top: 18%;
  width: 58%;
  aspect-ratio: 1;
  border: 2px solid var(--paper-bright);
  border-radius: 50%;
}

.route-graphic::after {
  right: -10%;
  bottom: 18%;
  height: 2px;
  background: var(--paper-bright);
  transform: rotate(-12deg);
  transform-origin: left center;
}

.route-graphic i,
.route-graphic b {
  position: absolute;
  display: block;
  width: 16px;
  height: 16px;
  border: 3px solid var(--paper-bright);
  border-radius: 50%;
  background: var(--signal);
}

.route-graphic i {
  top: 19%;
  left: 48%;
}

.route-graphic b {
  right: 12%;
  bottom: 26%;
}

.lead-story__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5.5rem);
  background: var(--paper-bright);
}

.story-coordinates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
  margin-bottom: 1.2rem;
  font: 700 0.68rem/1.25 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.story-coordinates a {
  color: var(--signal);
  text-decoration: none;
}

.lead-story h3 {
  max-width: 15ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2.6rem, 5vw, 5.6rem);
}

.lead-story h3 a {
  text-decoration: none;
}

.lead-story__excerpt {
  max-width: 56ch;
  margin-bottom: 2rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Signal log */
.signal-log {
  display: grid;
  grid-template-columns: minmax(260px, 0.28fr) 1fr;
}

.signal-log > .section-flag {
  display: block;
  color: var(--paper-bright);
  background: var(--signal);
  border-right: var(--rule);
}

.signal-log .section-flag__number {
  color: var(--ink);
  background: var(--paper-bright);
}

.signal-log .section-flag > div {
  padding: 1.6rem;
  border-top: 0;
}

.signal-log__body {
  min-width: 0;
}

.signal-log__key {
  display: grid;
  grid-template-columns: minmax(120px, 0.24fr) 1fr 100px;
  gap: 1rem;
  padding: 0.6rem 1.2rem;
  color: var(--paper-bright);
  background: var(--ink);
  font: 700 0.62rem/1.2 var(--mono);
  letter-spacing: 0.06em;
}

.signal-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.24fr) 1fr 100px;
  gap: 1.2rem;
  align-items: center;
  min-height: 152px;
  padding: 1.3rem 1.2rem;
  border-bottom: var(--rule);
  background: var(--paper-bright);
}

.signal-row:last-child {
  border-bottom: 0;
}

.signal-row__stamp {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font: 700 0.7rem/1.25 var(--mono);
  text-transform: uppercase;
}

.signal-row__stamp a,
.signal-row__stamp b {
  color: var(--signal);
  text-decoration: none;
}

.signal-row__copy h3,
.signal-row--principle h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 2.2vw, 2.25rem);
  line-height: 1.04;
}

.signal-row__copy h3 a {
  text-decoration: none;
}

.signal-row__copy p,
.signal-row--principle p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  line-height: 1.4;
}

.signal-row__arrow {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  font: 700 0.67rem/1 var(--mono);
  text-decoration: none;
  text-transform: uppercase;
}

.signal-row__arrow b {
  color: var(--signal);
  font-family: var(--sans);
  font-size: 1.4rem;
}

.signal-row--principle .signal-row__arrow {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  justify-self: end;
  border: var(--rule);
  border-radius: 50%;
}

/* Coverage route */
.route-desk {
  display: grid;
  grid-template-columns: minmax(260px, 0.28fr) 1fr;
}

.route-desk > .section-flag {
  display: block;
  border-right: var(--rule);
}

.route-desk .section-flag > div {
  padding: 1.6rem;
  border-top: 0;
}

.route-desk__map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 460px;
  padding: 5.5rem 2.2rem 3rem;
  overflow: hidden;
  background: var(--mist);
}

.route-line {
  position: absolute;
  top: 84px;
  right: 9%;
  left: 9%;
  height: 2px;
  background: var(--ink);
}

.route-line span {
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 3px solid var(--mist);
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.route-line span:nth-child(1) { left: 0; }
.route-line span:nth-child(2) { left: 25%; }
.route-line span:nth-child(3) { left: 50%; background: var(--signal); }
.route-line span:nth-child(4) { left: 75%; }
.route-line span:nth-child(5) { left: 100%; }

.route-stop {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.6rem 1.15rem;
  border-right: var(--rule);
  text-decoration: none;
}

.route-stop:last-child {
  border-right: 0;
}

.route-stop small {
  min-height: 3em;
  font: 700 0.64rem/1.35 var(--mono);
  letter-spacing: 0.04em;
}

.route-stop strong {
  margin: 2.7rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 3.7rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.route-stop span {
  color: var(--muted);
  font-family: var(--serif);
  line-height: 1.4;
}

.route-stop:hover {
  color: var(--paper-bright);
  background: var(--blue);
}

.route-stop:hover span {
  color: var(--paper-bright);
}

/* Dispatch */
.dispatch-cta {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 5rem);
  color: var(--paper-bright);
  background: var(--signal);
  border-right: var(--rule);
  border-bottom: var(--rule);
  border-left: var(--rule);
}

.dispatch-cta__stamp {
  display: grid;
  width: 130px;
  height: 130px;
  place-content: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font: 700 2rem/0.8 var(--mono);
  text-align: center;
  transform: rotate(-7deg);
}

.dispatch-cta__stamp span {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.dispatch-cta h2 {
  max-width: 15ch;
  margin-bottom: 0.8rem;
  font-size: clamp(2.4rem, 4.5vw, 5rem);
}

.dispatch-cta p:not(.eyebrow) {
  max-width: 62ch;
  color: #ffd9d0;
  font-family: var(--serif);
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  color: var(--paper-bright);
  background: var(--ink);
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr;
}

.site-footer__grid > div {
  min-height: 250px;
  padding: 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.site-footer__grid > div:last-child {
  border-right: 0;
}

.brand--footer {
  display: inline-flex;
  padding: 0;
  margin-bottom: 2rem;
}

.site-footer__brand p,
.site-footer__note p:last-child {
  max-width: 42ch;
  color: #b9bcb7;
  font-family: var(--serif);
}

.site-footer__nav .footer-menu {
  flex-direction: column;
  height: auto;
}

.footer-menu a {
  display: block;
  padding: 0.35rem 0;
  font: 700 0.82rem/1.3 var(--mono);
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer__base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  color: #9da19c;
  font: 700 0.62rem/1.3 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Archives */
.archive-head,
.page-head {
  padding: clamp(4rem, 9vw, 9rem) clamp(1.4rem, 8vw, 9rem);
  background: var(--paper-bright);
}

.archive-head h1,
.page-head h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: clamp(4rem, 9vw, 10rem);
  line-height: 0.82;
}

.archive-head > p:last-child,
.archive-head__description,
.page-dek {
  max-width: 720px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.42;
}

.archive-list {
  padding: 0 clamp(1.3rem, 5vw, 5rem);
}

.archive-story {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) 1fr;
  min-height: 320px;
  border-bottom: var(--rule);
}

.archive-story:last-of-type {
  border-bottom: 0;
}

.archive-story__media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: var(--blue);
  border-right: var(--rule);
}

.archive-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.route-graphic--small::before {
  top: 15%;
  width: 70%;
}

.archive-story__body {
  align-self: center;
  padding: clamp(1.5rem, 4vw, 4.5rem);
}

.archive-story h2 {
  max-width: 19ch;
  margin-bottom: 0.8rem;
  font-size: clamp(2.2rem, 4.5vw, 5rem);
}

.archive-story h2 a {
  text-decoration: none;
}

.archive-story__body > p {
  max-width: 62ch;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.08rem;
}

.navigation.pagination {
  padding: 2rem 0;
  border-top: var(--rule);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.page-numbers {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  padding: 0 0.5rem;
  border: var(--rule);
  font: 700 0.72rem/1 var(--mono);
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
  color: var(--paper-bright);
  background: var(--ink);
}

.empty-state {
  padding: clamp(3rem, 8vw, 8rem) 0;
}

.empty-state h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.empty-state .button {
  margin-top: 1.2rem;
}

/* Article */
.reading-progress {
  position: sticky;
  z-index: 49;
  top: 0;
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left center;
}

.article-head {
  display: grid;
  grid-template-columns: 86px 1fr;
  min-height: 560px;
  background: var(--paper-bright);
}

.article-head__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0.7rem;
  color: var(--paper-bright);
  background: var(--ink);
}

.article-head__rail span {
  font: 700 0.72rem/1 var(--mono);
}

.article-head__rail small {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 700 0.64rem/1 var(--mono);
  letter-spacing: 0.12em;
}

.article-head__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(3rem, 8vw, 8rem) clamp(1.5rem, 8vw, 9rem) clamp(3rem, 7vw, 7rem);
}

.article-head h1 {
  max-width: 14ch;
  margin-bottom: 1.6rem;
  font-size: clamp(3.7rem, 8vw, 9rem);
  line-height: 0.86;
}

.article-dek {
  max-width: 760px;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.45;
}

.article-dek p {
  margin: 0;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: baseline;
  font: 700 0.72rem/1.2 var(--mono);
  text-transform: uppercase;
}

.article-byline span,
.article-byline small {
  color: var(--muted);
}

.article-hero {
  margin: 0;
  border-right: var(--rule);
  border-bottom: var(--rule);
  border-left: var(--rule);
}

.article-hero img {
  width: 100%;
  max-height: 850px;
  object-fit: cover;
}

.article-hero figcaption {
  padding: 0.75rem 1rem;
  color: var(--muted);
  border-top: var(--rule);
  font: 0.72rem/1.45 var(--mono);
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) 1fr;
}

.article-aside {
  padding: 3rem 1.5rem;
  border-right: var(--rule);
  font: 700 0.72rem/1.55 var(--mono);
}

.article-aside .eyebrow:not(:first-child) {
  margin-top: 2.5rem;
}

.article-tags a {
  display: block;
  margin-bottom: 0.35rem;
}

.article-content,
.page-content {
  width: min(100%, 860px);
  padding: clamp(3rem, 7vw, 7rem) clamp(1.5rem, 7vw, 7rem);
  color: #252827;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.6vw, 1.3rem);
  line-height: 1.72;
}

.article-content > *:first-child,
.page-content > *:first-child {
  margin-top: 0;
}

.article-content h2,
.page-content h2 {
  margin: 2.7em 0 0.7em;
  color: var(--ink);
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.article-content h3,
.page-content h3 {
  margin: 2em 0 0.6em;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.article-content a,
.page-content a {
  color: #1647c7;
}

.article-content blockquote,
.page-content blockquote {
  padding: 1.5rem 0 1.5rem 2rem;
  margin: 2.5rem 0;
  border-left: 5px solid var(--signal);
  color: var(--ink);
  font-size: 1.45em;
  line-height: 1.3;
}

.article-content table,
.page-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.88em;
}

.article-content th,
.article-content td,
.page-content th,
.page-content td {
  padding: 0.8rem;
  border: var(--rule);
  text-align: left;
}

.article-content th,
.page-content th {
  color: var(--paper-bright);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.8em;
  text-transform: uppercase;
}

.article-content .wp-block-pullquote {
  border-top: var(--rule);
  border-bottom: var(--rule);
}

.article-foot {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 3rem;
  padding: clamp(2rem, 5vw, 5rem);
  background: var(--mist);
}

.article-foot h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  padding: 1rem;
  border: var(--rule);
  text-decoration: none;
}

.post-navigation span {
  font: 700 0.63rem/1 var(--mono);
  text-transform: uppercase;
}

.post-navigation b {
  font-family: var(--serif);
  line-height: 1.15;
}

.comments-area {
  padding: clamp(2rem, 6vw, 6rem);
}

.comment-list {
  padding: 0;
  list-style: none;
}

/* Page layouts */
.page-content {
  margin-inline: auto;
}

.page-head--about {
  color: var(--paper-bright);
  background: var(--blue);
}

.page-head--about .eyebrow,
.page-head--about .page-dek {
  color: var(--paper-bright);
}

.page-head--start {
  background: var(--mist);
}

.manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 8rem);
  padding: clamp(3rem, 8vw, 8rem);
  background: var(--paper-bright);
}

.manifesto__lead h2 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 5vw, 5.7rem);
}

.manifesto__body {
  align-self: end;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.standards {
  padding: clamp(3rem, 7vw, 7rem);
  background: var(--mist);
}

.standards > h2,
.learning-route__head h2 {
  margin-bottom: 2.5rem;
  font-size: clamp(2.7rem, 5vw, 5.5rem);
}

.standards ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  margin: 0;
  border-top: var(--rule);
  list-style: none;
}

.standards li {
  padding: 1.5rem 1.2rem;
  border-right: var(--rule);
}

.standards li:last-child {
  border-right: 0;
}

.standards li > span,
.learning-route li > span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 3rem;
  place-items: center;
  color: var(--paper-bright);
  border-radius: 50%;
  background: var(--ink);
  font: 700 0.68rem/1 var(--mono);
}

.standards h3 {
  margin-bottom: 0.7rem;
  font-size: 1.7rem;
}

.standards p {
  color: var(--muted);
  font-family: var(--serif);
}

.learning-route {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: clamp(2rem, 7vw, 8rem);
  padding: clamp(3rem, 7vw, 7rem);
  background: var(--paper-bright);
}

.learning-route ol {
  padding: 0;
  margin: 0;
  border-top: var(--rule);
  list-style: none;
}

.learning-route li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: var(--rule);
}

.learning-route li > span {
  margin: 0;
}

.learning-route h3 {
  margin-bottom: 0.4rem;
  font-size: 1.8rem;
}

.learning-route p {
  color: var(--muted);
  font-family: var(--serif);
}

.next-route {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 5rem);
  color: var(--paper-bright);
  background: var(--ink);
  border-right: var(--rule);
  border-bottom: var(--rule);
  border-left: var(--rule);
}

.next-route h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.5rem);
}

.newsletter-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 8rem);
  color: var(--paper-bright);
  background: var(--signal);
}

.newsletter-ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 240px;
  min-height: 330px;
  padding: 1.5rem;
  color: var(--ink);
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(-3deg);
}

.newsletter-ticket::after {
  position: absolute;
  right: -1px;
  bottom: 68px;
  left: -1px;
  border-top: 2px dashed var(--ink);
  content: "";
}

.newsletter-ticket b {
  font: 700 5rem/1 var(--serif);
  letter-spacing: -0.08em;
}

.newsletter-ticket span,
.newsletter-ticket small {
  font: 700 0.72rem/1.3 var(--mono);
  letter-spacing: 0.08em;
}

.newsletter-hero h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(4rem, 8vw, 9rem);
  line-height: 0.84;
}

.newsletter-hero .page-dek {
  color: #ffe2db;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
}

.newsletter-grid > div {
  padding: clamp(2.5rem, 6vw, 6rem);
}

.newsletter-grid > div:first-child {
  border-right: var(--rule);
}

.dispatch-list {
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.dispatch-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-top: var(--rule);
}

.dispatch-list li > span {
  font: 700 0.7rem/1.4 var(--mono);
}

.dispatch-list strong {
  font-family: var(--serif);
  font-size: 1.5rem;
}

.dispatch-list p {
  color: var(--muted);
  font-family: var(--serif);
}

.newsletter-signup {
  color: var(--paper-bright);
  background: var(--blue);
}

.newsletter-signup h2 {
  max-width: 13ch;
  font-size: clamp(2.4rem, 4vw, 4.7rem);
}

.newsletter-signup p:not(.eyebrow) {
  margin-bottom: 2rem;
  color: #dbe4ff;
  font-family: var(--serif);
}

/* Search + 404 */
.search-form {
  display: flex;
  width: min(100%, 700px);
  margin-top: 2rem;
}

.search-form input {
  min-width: 0;
  flex: 1;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: var(--rule);
  border-right: 0;
  border-radius: 0;
  background: var(--paper-bright);
}

.search-form button {
  min-height: 52px;
  padding: 0.8rem 1.2rem;
  color: var(--paper-bright);
  border: var(--rule);
  border-radius: 0;
  background: var(--ink);
  cursor: pointer;
  font: 700 0.72rem/1 var(--mono);
  text-transform: uppercase;
}

.error-route {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
  min-height: 700px;
  padding: clamp(3rem, 8vw, 8rem);
  background: var(--paper-bright);
}

.error-route__code {
  color: var(--signal);
  font: 700 clamp(7rem, 18vw, 18rem)/0.8 var(--serif);
  letter-spacing: -0.1em;
}

.error-route h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 7rem);
}

.error-route .text-link {
  margin-top: 2rem;
}

/* WordPress utilities */
.alignwide {
  width: min(1200px, calc(100vw - 2rem));
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.alignfull {
  width: 100vw;
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.wp-caption,
.gallery-caption {
  max-width: 100%;
}

.wp-caption-text {
  color: var(--muted);
  font: 0.72rem/1.45 var(--mono);
}

.sticky {
  position: relative;
}

.bypostauthor {
  border-color: var(--blue);
}

/* Tablet */
@media (max-width: 1120px) {
  .site-header__rail {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-left: 0;
  }

  .site-menu {
    justify-content: center;
    min-height: 46px;
  }

  .header-dispatch {
    grid-column: 2;
    grid-row: 1;
  }

  .front-intro {
    grid-template-columns: 70px 1fr;
  }

  .front-intro__index {
    grid-row: 1 / 3;
  }

  .desk-code {
    grid-column: 2;
    min-height: auto;
    border-left: 0;
  }

  .desk-code__label {
    margin-bottom: 1.5rem;
  }

  .lead-desk,
  .signal-log,
  .route-desk {
    grid-template-columns: 210px 1fr;
  }

  .lead-story {
    grid-template-columns: 1fr;
  }

  .lead-story__media {
    min-height: 340px;
    border-right: 0;
    border-bottom: var(--rule);
  }

  .route-desk__map {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .route-line {
    top: 8%;
    bottom: 8%;
    left: 36px;
    width: 2px;
    height: auto;
  }

  .route-line span {
    top: auto;
    left: 50% !important;
  }

  .route-line span:nth-child(1) { top: 0; }
  .route-line span:nth-child(2) { top: 25%; }
  .route-line span:nth-child(3) { top: 50%; }
  .route-line span:nth-child(4) { top: 75%; }
  .route-line span:nth-child(5) { top: 100%; }

  .route-stop {
    min-height: 150px;
    padding: 1.5rem 1.5rem 1.5rem 75px;
    border-right: 0;
    border-bottom: var(--rule);
  }

  .route-stop:last-child {
    border-bottom: 0;
  }

  .route-stop strong {
    margin: 0.8rem 0 0.4rem;
  }

  .standards ol {
    grid-template-columns: 1fr 1fr;
  }

  .standards li:nth-child(2) {
    border-right: 0;
  }

  .standards li:nth-child(-n+2) {
    border-bottom: var(--rule);
  }
}

/* Mobile */
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-main,
  .site-footer,
  .site-header__rail {
    width: 100%;
  }

  .site-header__rail {
    grid-template-columns: 1fr auto;
    min-height: 66px;
    border-right: 0;
    border-left: 0;
  }

  .brand {
    padding: 0.7rem 1rem;
  }

  .brand__mark {
    width: 36px;
    flex-basis: 36px;
  }

  .brand__word {
    font-size: 1.35rem;
  }

  .brand__desk,
  .header-dispatch {
    display: none;
  }

  .menu-toggle {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0 1rem;
    color: var(--paper-bright);
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    cursor: pointer;
    font: 700 0.68rem/1 var(--mono);
    text-transform: uppercase;
  }

  .menu-toggle__lines,
  .menu-toggle__lines::before,
  .menu-toggle__lines::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    content: "";
  }

  .menu-toggle__lines {
    position: relative;
  }

  .menu-toggle__lines::before {
    position: absolute;
    top: -6px;
  }

  .menu-toggle__lines::after {
    position: absolute;
    top: 6px;
  }

  .primary-nav {
    position: fixed;
    z-index: 45;
    inset: 66px 0 0;
    display: none;
    overflow-y: auto;
    color: var(--paper-bright);
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
  }

  .menu-is-open .primary-nav {
    display: block;
  }

  .site-menu {
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
  }

  .site-menu a {
    min-height: 72px;
    padding: 0 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    font-family: var(--serif);
    font-size: 1.8rem;
    text-transform: none;
  }

  .front-intro {
    grid-template-columns: 46px 1fr;
    min-height: auto;
  }

  .front-intro__index {
    grid-row: 1;
    padding: 1rem 0.4rem;
  }

  .front-intro__index > span {
    width: 34px;
    height: 34px;
    font-size: 0.62rem;
  }

  .front-intro__copy {
    padding: 3.5rem 1.2rem;
  }

  .front-intro h1 {
    font-size: clamp(3.8rem, 19vw, 6.4rem);
  }

  .front-intro__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .desk-code {
    grid-column: 1 / -1;
    padding: 1.5rem;
    border-left: 0;
  }

  .lead-desk,
  .signal-log,
  .route-desk {
    grid-template-columns: 1fr;
  }

  .lead-desk > .section-flag,
  .signal-log > .section-flag,
  .route-desk > .section-flag {
    display: grid;
    border-right: 0;
    border-bottom: var(--rule);
  }

  .section-flag {
    grid-template-columns: 58px 1fr;
  }

  .section-flag__number {
    min-height: 72px;
  }

  .section-flag > div,
  .lead-desk .section-flag > div,
  .signal-log .section-flag > div,
  .route-desk .section-flag > div {
    padding: 1rem 1.2rem;
  }

  .section-flag h2 {
    font-size: 2.2rem;
  }

  .lead-story {
    grid-template-columns: 1fr;
  }

  .lead-story__media {
    min-height: 300px;
  }

  .lead-story__body {
    padding: 2rem 1.25rem 2.5rem;
  }

  .lead-story h3 {
    font-size: 2.7rem;
  }

  .signal-log__key {
    display: none;
  }

  .signal-row {
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 1.5rem 1.2rem;
  }

  .signal-row__stamp {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .signal-row__copy h3,
  .signal-row--principle h3 {
    font-size: 1.65rem;
  }

  .signal-row__copy p,
  .signal-row--principle p {
    display: none;
  }

  .signal-row__arrow span {
    display: none;
  }

  .dispatch-cta {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem;
  }

  .dispatch-cta__stamp {
    width: 90px;
    height: 90px;
    font-size: 1.4rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid > div {
    min-height: auto;
    padding: 2rem 1.25rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }

  .site-footer__base {
    flex-direction: column;
    padding: 1rem 1.25rem;
  }

  .archive-head,
  .page-head {
    padding: 4rem 1.25rem;
  }

  .archive-head h1,
  .page-head h1 {
    font-size: clamp(3.7rem, 19vw, 6.5rem);
  }

  .archive-list {
    padding: 0 1.25rem;
  }

  .archive-story {
    grid-template-columns: 1fr;
    padding: 1.5rem 0;
  }

  .archive-story__media {
    min-height: 240px;
    border-right: 0;
    border-bottom: var(--rule);
  }

  .archive-story__body {
    padding: 1.5rem 0 0;
  }

  .archive-story h2 {
    font-size: 2.7rem;
  }

  .article-head {
    grid-template-columns: 46px 1fr;
  }

  .article-head__copy {
    padding: 3.5rem 1.2rem;
  }

  .article-head h1 {
    font-size: clamp(3.4rem, 16vw, 6rem);
  }

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

  .article-aside {
    padding: 1.5rem 1.2rem;
    border-right: 0;
    border-bottom: var(--rule);
  }

  .article-content,
  .page-content {
    padding: 3rem 1.25rem;
  }

  .article-content table,
  .page-content table {
    display: block;
    overflow-x: auto;
  }

  .article-foot {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .manifesto,
  .learning-route,
  .newsletter-hero,
  .newsletter-grid,
  .error-route {
    grid-template-columns: 1fr;
  }

  .manifesto,
  .learning-route,
  .newsletter-hero,
  .error-route {
    padding: 3rem 1.25rem;
  }

  .standards {
    padding: 3rem 1.25rem;
  }

  .standards ol {
    grid-template-columns: 1fr;
  }

  .standards li,
  .standards li:nth-child(2) {
    border-right: 0;
    border-bottom: var(--rule);
  }

  .standards li:last-child {
    border-bottom: 0;
  }

  .standards li > span {
    margin-bottom: 1.5rem;
  }

  .next-route {
    align-items: flex-start;
    flex-direction: column;
    padding: 2.5rem 1.25rem;
  }

  .newsletter-ticket {
    width: 190px;
    min-height: 260px;
  }

  .newsletter-grid > div {
    padding: 3rem 1.25rem;
  }

  .newsletter-grid > div:first-child {
    border-right: 0;
    border-bottom: var(--rule);
  }

  .search-form {
    flex-direction: column;
  }

  .search-form input {
    border-right: var(--rule);
    border-bottom: 0;
  }

  .error-route {
    min-height: 650px;
  }
}

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

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

@media print {
  .site-header,
  .site-footer,
  .reading-progress,
  .article-aside,
  .article-foot,
  .comments-area {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .site-main,
  .article-content {
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
  }

  .article-head {
    display: block;
    min-height: 0;
    padding: 0 0 2rem;
    border: 0;
  }

  .article-head__rail {
    display: none;
  }

  .article-head__copy {
    padding: 0;
  }

  a {
    color: #000 !important;
  }
}
