:root {
  --bg-canvas: #f3f0fa;
  --bg-surface: #ffffff;
  --bg-surface-hover: #faf7fd;
  --bg-lilac-field: #e7dff3;
  --text-primary: #334155;
  --text-heading: #1e1828;
  --text-muted: #5c546b;
  --accent-primary: #703b86;
  --accent-secondary: #512863;
  --accent-tint: #efe7f7;
  --border-subtle: #dcd3ea;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 10px 28px -6px rgba(48, 25, 62, 0.12);
  --glow-accent: 0 0 20px -4px rgba(112, 59, 134, 0.25);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.72;
  overflow-wrap: anywhere;
  hyphens: auto;
}

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

a {
  color: var(--accent-primary);
  text-decoration: none;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-primary);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header Capsule (in document flow, never sticky/fixed) */
.site-header-wrap {
  padding: 1.25rem 1.25rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  box-shadow: var(--shadow-elevation);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-heading);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-desktop a {
  color: var(--text-primary);
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  padding: 0.2rem 0;
}

.nav-desktop a::after, .text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.28s var(--ease-kinetic);
}

.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after,
.text-link:hover::after {
  width: 100%;
}

.nav-desktop a[aria-current="page"] {
  color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: var(--accent-tint);
  color: var(--accent-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin-top: 0.65rem;
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-elevation);
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-drawer a {
  display: block;
  padding: 0.45rem 0;
  color: var(--text-heading);
  font-weight: 600;
  border-bottom: 1px solid var(--bg-canvas);
}

/* Containers */
.main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.reading-col {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* Hero & Dot Pattern */
.dot-field {
  background-color: var(--bg-lilac-field);
  background-image: radial-gradient(rgba(112, 59, 134, 0.16) 1.25px, transparent 1.25px);
  background-size: 18px 18px;
}

.hero-dispatch {
  border: 1px solid var(--border-subtle);
  padding: 3.5rem 2.25rem;
  margin-bottom: 3rem;
}

.hero-inner {
  max-width: 70ch;
  margin: 0 auto;
}

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

h1, h2, h3, h4 {
  color: var(--text-heading);
  line-height: 1.22;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  margin-bottom: 1.15rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.22rem;
  margin-bottom: 0.55rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.cta-primary {
  display: inline-block;
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--accent-secondary);
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic), background-color 0.25s ease;
}

.cta-primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.text-link {
  position: relative;
  display: inline-block;
  color: var(--accent-primary);
  font-weight: 700;
  padding-bottom: 2px;
}

/* Sections */
.dispatch-section {
  margin-bottom: 3.5rem;
}

.section-head {
  max-width: 70ch;
  margin: 0 auto 1.75rem;
}

.dispatch-index-band {
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--border-subtle);
  margin-bottom: 3.5rem;
}

/* Grid & Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.dispatch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-kinetic), box-shadow 0.35s var(--ease-kinetic);
}

.dispatch-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.card-media {
  position: relative;
  background: #23192d;
}

.card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  left: 1.1rem;
  bottom: -0.9rem;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 2px solid var(--bg-surface);
}

.card-badge--alt {
  background: #4e2a63;
}

.card-body {
  padding: 1.65rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.card-body p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.card-footer-link {
  margin-top: auto;
}

/* Editorial Pull Quote & Breakout Image */
.pull-quote {
  max-width: 70ch;
  margin: 2.25rem auto;
  padding: 1.25rem 1.75rem;
  background: var(--bg-surface);
  border-left: 4px solid var(--accent-primary);
  font-size: 1.18rem;
  color: var(--text-heading);
}

.pull-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.88rem;
  font-style: normal;
  color: var(--text-muted);
}

.breakout-figure {
  max-width: 960px;
  margin: 2.25rem auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.breakout-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.breakout-figure figcaption {
  padding: 0.8rem 1.15rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Annotated Itinerary & Source-Date Lines */
.source-line {
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.55rem 0;
  margin-bottom: 1.75rem;
}

.itinerary-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 70ch;
}

.itinerary-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.itinerary-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--bg-canvas);
}

.itinerary-time {
  font-weight: 700;
  color: var(--accent-primary);
}

/* Expandable Accessibility Notes & FAQ */
.note-details {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin: 1rem auto;
  max-width: 70ch;
}

.note-details summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
}

.note-details-body {
  padding: 0 1.25rem 1.15rem;
  border-top: 1px solid var(--bg-canvas);
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  margin: 1.75rem auto;
  max-width: 70ch;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: var(--accent-tint);
  color: var(--text-heading);
}

/* Contact Draft Tool */
.draft-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
  max-width: 70ch;
  margin: 1.5rem auto;
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-heading);
}

.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  color: var(--text-heading);
  font-family: inherit;
  font-size: 0.96rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.25rem;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: 0.8rem 1.35rem;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.94rem;
  cursor: pointer;
}

.draft-output {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  white-space: pre-wrap;
  font-size: 0.9rem;
}

.status-msg {
  font-size: 0.9rem;
  color: var(--accent-primary);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 2.75rem 1.25rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  font-size: 0.98rem;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.footer-col p {
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-kinetic), transform 0.65s var(--ease-kinetic);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .nav-desktop {
    gap: 0.9rem;
  }
}

@media (max-width: 767px) {
  .nav-desktop {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .site-header {
    padding: 0.55rem 1rem;
  }
  .hero-dispatch {
    padding: 2.25rem 1.25rem;
  }
  .itinerary-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 479px) {
  .brand-link {
    font-size: 0.94rem;
  }
  .main-wrap {
    padding: 1.25rem 0.9rem 3rem;
  }
}

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