:root {
  color-scheme: light dark;
  --paper: #f2f5f6;
  --ink: #15263a;
  --muted: #4c5d6e;
  --rule: #c9d3da;
  --link: #0b4f86;
  --chosen: #0b5f4a;
  --chosen-tint: #dcefe8;
  --risk: #7f4c00;
  --risk-tint: #f8ebd5;
  --display: "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", "URW Palladio L", Georgia, serif;
  --body: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1b28;
    --ink: #e6ecf1;
    --muted: #a7b5c2;
    --rule: #2e3f50;
    --link: #8cc3f2;
    --chosen: #72d6b7;
    --chosen-tint: #12352e;
    --risk: #ebb567;
    --risk-tint: #392b14;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem; }

.site-header, .site-footer, main {
  width: min(100% - 2rem, 62rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 1.5rem;
}

.site-name { color: var(--ink); font-weight: 600; text-decoration: none; }
.site-header nav { display: flex; gap: 1.25rem; }

h1, h2 { font-family: var(--display); font-weight: 400; }

.hero { padding-block: clamp(2.5rem, 9vw, 6rem) clamp(2.5rem, 6vw, 4rem); }

.hero h1 {
  max-width: 19em;
  margin: 0 0 1.5rem;
  font-size: clamp(2.1rem, 5.6vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
}

.lede { max-width: 38em; margin: 0; font-size: 1.1875rem; }

h2 { margin: 0 0 0.75rem; font-size: 1.75rem; line-height: 1.25; }

.prose { max-width: 40rem; margin-bottom: 3.5rem; }
.prose p { margin: 0 0 1rem; }
.prose > :last-child { margin-bottom: 0; }

.page-head { padding-top: clamp(2rem, 6vw, 4rem); }
.page-head h1 { margin: 0 0 1rem; font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.15; }

.decision { margin-bottom: 4.5rem; }
.decision .prose { margin-bottom: 1.5rem; }

.record { margin: 0; border-top: 2px solid var(--ink); }

.record figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 1.5rem;
  padding-block: 0.75rem;
  color: var(--muted);
}

.record figcaption strong { color: var(--ink); font-weight: 600; }

.row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 0.25rem 1.5rem;
  padding: 1rem;
  border-top: 1px solid var(--rule);
  border-left: 4px solid transparent;
}

.row p { margin: 0; }
.state { font-weight: 600; }
.option { font-weight: 600; }

.rejected .state, .rejected .why, .fallback .state, .fallback .why { color: var(--muted); }
.rejected .option, .fallback .option { color: var(--muted); font-weight: 400; }
.rejected .option { text-decoration: line-through; text-decoration-thickness: 1px; }

.chosen { background: var(--chosen-tint); border-left-color: var(--chosen); border-top-color: transparent; }
.chosen .state { color: var(--chosen); }

.risk { background: var(--risk-tint); border-left-color: var(--risk); border-top-color: transparent; }
.risk .state { color: var(--risk); }

ul.plain { margin: 0 0 1rem; padding: 0; list-style: none; }
ul.plain li { padding-block: 0.3rem; border-top: 1px solid var(--rule); }
ul.plain li:last-child { border-bottom: 1px solid var(--rule); }

.status-wrap { margin-bottom: 3.5rem; }

.status { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.status th, .status td { padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.status th { font-weight: 600; }
.status td:first-child { font-weight: 600; width: 16rem; }
.status td:last-child { width: 6rem; }

.status-built { color: var(--chosen); font-weight: 600; }
.status-planned { color: var(--muted); }

.site-footer { padding-block: 1.5rem 3rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9375rem; }
.site-footer p { margin: 0; }

@media (max-width: 44rem) {
  .row { grid-template-columns: 1fr; }
  .status thead { position: absolute; left: -999px; }
  .status tr { display: block; padding-block: 0.75rem; border-bottom: 1px solid var(--rule); }
  .status td, .status td:first-child, .status td:last-child { display: block; width: auto; padding: 0; border: 0; }
}
