@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-display.woff2") format("woff2");
  font-weight: 650 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-next.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Layout: one 70rem column. The hero splits text | demo above 56rem.
     Lists are ruled like a bank statement; the demo and pilot band are the only dark panels. */
  --paper: #f3f5f2;
  --surface: #ffffff;
  --ink: #14201b;
  --muted: #4a5852;
  --line: #d2dad4;
  --accent: #0a6b4d;
  --accent-strong: #08573f;
  --on-accent: #ffffff;
  --rule: rgba(20, 32, 27, 0.075);
  --panel: #13211b;
  --panel-ink: #e8f0eb;
  --panel-muted: #a3b7ad;
  --panel-line: rgba(232, 240, 235, 0.16);
  --panel-accent: #63cfa2;
  --panel-on-accent: #0b1a14;
  --flag: #ffae70;
  --ok: #86dbb3;
  --focus: #0a6b4d;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1613;
    --surface: #15201b;
    --ink: #e6eee8;
    --muted: #a9b8b0;
    --line: #2a3a33;
    --accent: #63cfa2;
    --accent-strong: #86dbb3;
    --on-accent: #0b1a14;
    --rule: rgba(230, 238, 232, 0.05);
    --panel: #19281f;
    --panel-line: rgba(232, 240, 235, 0.14);
    --focus: #86dbb3;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0e1613;
  --surface: #15201b;
  --ink: #e6eee8;
  --muted: #a9b8b0;
  --line: #2a3a33;
  --accent: #63cfa2;
  --accent-strong: #86dbb3;
  --on-accent: #0b1a14;
  --rule: rgba(230, 238, 232, 0.05);
  --panel: #19281f;
  --panel-line: rgba(232, 240, 235, 0.14);
  --focus: #86dbb3;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.35rem + 3.6vw, 3.75rem);
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 780;
}

h3 {
  font-size: 1.2rem;
  font-weight: 720;
  letter-spacing: 0;
}

p,
dd {
  margin: 0;
  max-width: 65ch;
}

time,
.incident-date {
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: min(70rem, 100% - 2.5rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  font-weight: 700;
}

.skip:focus {
  top: 1rem;
}

/* Header */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

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

.brand:hover {
  color: var(--ink);
}

.mark {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}

.nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

@media (max-width: 30rem) {
  .nav-optional {
    display: none;
  }
}

/* Hero */

.hero {
  padding-block: clamp(2.5rem, 6vw, 4.75rem) clamp(3rem, 7vw, 5.25rem);
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(to bottom, transparent 0 2.25rem, var(--rule) 2.25rem calc(2.25rem + 1px));
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

.hero-text {
  display: grid;
  gap: 1.2rem;
  justify-items: start;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lede {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
}

.tagline {
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
}

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

.button-secondary:hover {
  background: var(--surface);
  color: var(--ink);
}

/* Demo video */

.demo {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  border-radius: 0.9rem;
  background: var(--panel);
  box-shadow: 0 22px 44px -28px rgba(8, 36, 26, 0.55);
  container-type: inline-size;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-poster {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--panel-ink);
  text-decoration: none;
}

.video-poster:hover {
  color: var(--panel-ink);
}

.video-poster:focus-visible {
  outline-offset: -4px;
  border-radius: 0.9rem;
}

.poster-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3cqw;
  padding: 5.5cqw 6.5cqw;
}

.poster-label {
  color: var(--panel-muted);
  font-size: max(11px, 2.9cqw);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rows {
  display: grid;
  gap: 1.5cqw;
  font-family: var(--mono);
  font-size: max(10.5px, 3.1cqw);
}

.row {
  display: grid;
  grid-template-columns: 6.5ch 8ch 8ch 1fr;
  align-items: center;
  column-gap: 2.4cqw;
  padding-bottom: 1.5cqw;
  border-bottom: 1px solid var(--panel-line);
}

.payee {
  color: var(--panel-ink);
}

.date,
.amount {
  color: var(--panel-muted);
}

.chip {
  justify-self: start;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  font-family: var(--body);
  font-size: max(10px, 2.7cqw);
  font-weight: 700;
  white-space: nowrap;
}

.chip-flag {
  background: var(--flag);
  color: #2a1203;
}

.chip-ok {
  background: var(--ok);
  color: #06180f;
}

.poster-play {
  display: flex;
  align-items: center;
  gap: 3cqw;
}

.play-icon {
  position: relative;
  flex: none;
  width: max(40px, 10.5cqw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--panel-accent);
}

.play-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34%;
  height: 38%;
  translate: 9% 0;
  background: var(--panel-on-accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.play-text {
  font-family: var(--display);
  font-size: max(15px, 4.4cqw);
  font-weight: 780;
}

.play-time {
  margin-left: 0.35em;
  color: var(--panel-muted);
  font-family: var(--body);
  font-size: 0.8em;
  font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
  .play-icon {
    transition: scale 0.15s ease;
  }

  .video-poster:hover .play-icon {
    scale: 1.06;
  }
}

@container (max-width: 420px) {
  .amount {
    display: none;
  }

  .row {
    grid-template-columns: 6.5ch 8ch 1fr;
  }
}

.demo figcaption {
  display: grid;
  gap: 0.2rem;
  font-size: 0.98rem;
}

.caption-note {
  color: var(--muted);
}

/* Sections */

.section {
  padding-block: clamp(3rem, 7vw, 4.75rem);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--surface);
}

.section h2 {
  margin-bottom: 1.6rem;
}

.section-lede {
  margin-top: -0.6rem;
  margin-bottom: 1.8rem;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.25rem 0.9rem;
  align-content: start;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
}

.steps p,
.checks p,
.point p,
.incident-body p {
  color: var(--muted);
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.6rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding-top: 0.9rem;
  border-top: 2px solid var(--ink);
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2rem;
}

.point {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.point h3::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 4px;
  margin-bottom: 0.9rem;
  border-radius: 2px;
  background: var(--accent);
}

/* Outages */

.incidents {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.incidents li {
  display: grid;
  gap: 0.3rem 2rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 40rem) {
  .incidents li {
    grid-template-columns: 8.5rem 1fr;
  }
}

.incident-date {
  padding-top: 0.15rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
}

.incident-body {
  display: grid;
  gap: 0.35rem;
}

.incident-body h3 {
  font-size: 1.15rem;
}

.incident-body .source {
  font-size: 0.95rem;
}

.resilience {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 0.9rem;
  background: var(--surface);
}

.resilience ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.2rem;
}

/* Two-column text sections */

.split {
  display: grid;
  gap: 1rem 3rem;
}

.split h2 {
  margin-bottom: 0;
}

.split-text {
  display: grid;
  gap: 1rem;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 19rem 1fr;
  }
}

/* Story */

.story-head {
  display: grid;
  gap: 1.4rem;
  align-content: start;
}

.story-quote {
  margin: 0;
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
}

.story-quote p {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem);
  font-weight: 720;
  line-height: 1.25;
  text-wrap: balance;
}

.story .split-text p {
  max-width: 62ch;
}

.story-sign {
  color: var(--muted);
  font-weight: 700;
}

/* Questions */

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.6rem 2.5rem;
  margin: 0;
}

.faq-item {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  padding-top: 0.9rem;
  border-top: 2px solid var(--ink);
}

.faq dt {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 720;
  line-height: 1.25;
}

.faq dd {
  color: var(--muted);
}

/* Pilots and contact */

.pilots {
  background: var(--panel);
  color: var(--panel-ink);
}

.pilots a {
  color: var(--panel-ink);
  text-decoration-color: var(--panel-accent);
}

.pilots a:hover {
  color: var(--panel-accent);
}

.pilots-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 56rem) {
  .pilots-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

.pilots-text {
  display: grid;
  gap: 1rem;
}

.pilots-text h2 {
  margin-bottom: 0.2rem;
}

.contact {
  display: grid;
  gap: 0.45rem;
  padding: 1.5rem;
  border: 1px solid var(--panel-line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
}

.contact-label,
.contact-note {
  color: var(--panel-muted);
}

.contact-label {
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-email a {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem);
  font-weight: 780;
  overflow-wrap: anywhere;
}

.contact-note {
  font-size: 1rem;
}

/* Footer */

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 0.75rem;
}

/* Print: for officers who print the page for a meeting */

@media print {
  :root {
    --paper: #ffffff;
    --surface: #ffffff;
    --ink: #000000;
    --muted: #333333;
    --line: #bbbbbb;
    --accent: #0a6b4d;
    --panel: #ffffff;
    --panel-ink: #000000;
    --panel-muted: #333333;
    --panel-line: #bbbbbb;
    color-scheme: light;
  }

  body {
    font-size: 11pt;
  }

  .nav,
  .actions,
  .skip,
  .play-icon {
    display: none;
  }

  .hero {
    background-image: none;
  }

  .video {
    box-shadow: none;
  }

  .incident-body .source a::after,
  .demo figcaption a::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    overflow-wrap: anywhere;
  }

  .section,
  .incidents li {
    break-inside: avoid;
  }
}
