:root {
  --paper: #f3ecdd;
  --paper-deep: #e8decb;
  --ink: #161411;
  --muted: #635b4f;
  --signal: #0d63c9;
  --rule: #1f1b17;
  --line: rgba(22, 20, 17, 0.18);
  --focus: #c6421c;
  --page-width: 72rem;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
}

.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, transparent 0, transparent calc(50% - 0.5px), var(--line) calc(50% - 0.5px), var(--line) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent 0, transparent 2.45rem, rgba(13, 99, 201, 0.1) 2.45rem, rgba(13, 99, 201, 0.1) 2.5rem);
  background-size: 100% 100%, 100% 2.5rem;
  opacity: 0.65;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  background: var(--signal);
  color: #fff;
  text-decoration: none;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header,
main,
.site-footer {
  width: min(calc(100% - 2rem), var(--page-width));
  margin: 0 auto;
}

.site-header {
  padding-top: 1rem;
}

.masthead,
.section-block,
.site-footer {
  border-top: 2px solid var(--rule);
}

.masthead {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 0 0.5rem;
}

.kicker,
.eyebrow,
dt,
.nav-list,
.figure-label,
.sheet-header p {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker,
.eyebrow,
dt,
.figure-label,
.sheet-header p {
  color: var(--muted);
}

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

.nav-list a {
  text-decoration: none;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  border-color: var(--signal);
}

.lede {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 2rem;
  padding: 1.35rem 0 2rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.1rem);
  max-width: 12ch;
  margin: 0.35rem 0 1rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  margin-top: 0.15rem;
}

h3 {
  font-size: 1.35rem;
}

p,
li,
dd {
  font-size: 1rem;
}

.lead {
  max-width: 42rem;
  font-size: 1.08rem;
}

.lede-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.3rem 0 1.4rem;
}

.action-link {
  display: inline-block;
  padding: 0.25rem 0;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--signal);
}

.action-link::after {
  content: " ->";
}

.action-link-quiet {
  border-bottom-color: var(--ink);
}

.fact-strip,
.sheet-metrics,
.status-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.25rem 0 0;
}

.fact-strip div,
.sheet-metrics div,
.status-notes div {
  border-top: 1px solid var(--rule);
  padding-top: 0.55rem;
}

dt {
  margin-bottom: 0.15rem;
}

dd {
  margin: 0;
}

.mini-result {
  margin: 0;
}

.result-sheet {
  border: 2px solid var(--rule);
  background: rgba(255, 255, 255, 0.28);
  padding: 1rem;
  transform: rotate(-1.1deg);
  box-shadow: 0.55rem 0.55rem 0 0 var(--paper-deep);
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.sheet-header p,
.sheet-header strong,
.sheet-note,
.mini-result text {
  margin: 0;
}

.sheet-header strong {
  font-size: 1rem;
}

.mini-result svg {
  width: 100%;
  height: auto;
  display: block;
  margin: 0.65rem 0 0.55rem;
}

.axis,
.divider {
  stroke: var(--ink);
  stroke-width: 1.4;
}

.divider {
  stroke-dasharray: 4 5;
}

.trend-line {
  fill: none;
  stroke: var(--signal);
  stroke-width: 3;
}

.point {
  fill: var(--signal);
}

.point.intervention {
  fill: var(--ink);
}

.point.excluded {
  opacity: 0.35;
  stroke: var(--ink);
  stroke-width: 1.5;
}

.sheet-note {
  max-width: 32ch;
  font-size: 0.95rem;
}

.section-block {
  padding: 1.2rem 0 1.8rem;
}

.section-rule {
  margin-bottom: 1rem;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.method-list li {
  border-left: 2px solid var(--rule);
  padding-left: 1rem;
  position: relative;
}

.method-list li::before {
  counter-increment: steps;
  content: "0" counter(steps);
  display: block;
  color: var(--signal);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.7rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 2rem;
}

.plain-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.plain-list li + li {
  margin-top: 0.4rem;
}

.margin-note {
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.output-grid article {
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
}

.status-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 1.4rem;
}

.site-footer {
  padding: 0.9rem 0 2rem;
}

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

  .result-sheet {
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .lede-copy,
  .mini-result,
  .section-block {
    animation: rise-in 520ms ease-out both;
  }

  .mini-result {
    animation-delay: 120ms;
  }

  .section-block:nth-of-type(2) {
    animation-delay: 160ms;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 56rem) {
  .lede,
  .two-column,
  .status-layout,
  .output-grid,
  .method-list,
  .fact-strip,
  .sheet-metrics,
  .status-notes {
    grid-template-columns: 1fr;
  }

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

  .nav-list {
    flex-wrap: wrap;
  }

  h1 {
    max-width: 100%;
  }

  .result-sheet {
    transform: none;
    box-shadow: 0.35rem 0.35rem 0 0 var(--paper-deep);
  }
}

@media (max-width: 34rem) {
  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 1rem), var(--page-width));
  }

  .page-grid {
    background-image: linear-gradient(
      to bottom,
      transparent 0,
      transparent 2.45rem,
      rgba(13, 99, 201, 0.1) 2.45rem,
      rgba(13, 99, 201, 0.1) 2.5rem
    );
  }
}
