/* DownDrill landing page. No framework, no script, nothing loaded from elsewhere. */

:root {
  color-scheme: light dark;

  --bg: #f6f3ec;
  --surface: #fffdf8;
  --sunk: #ece8dd;
  --ink: #16212b;
  --soft: #34424e;
  --muted: #5c6872;
  --rule: #d8d2c3;
  --line: rgb(22 33 43 / 5%);
  --accent: #0f4c5c;
  --accent-strong: #0a3843;
  --accent-soft: #dbe9ec;
  --on-accent: #ffffff;
  --header: rgb(246 243 236 / 88%);
  --shadow: rgb(22 33 43 / 22%);

  /* The same three outcomes the app shows, in the app's colours. */
  --good: #1a7f37;
  --good-bg: #e2f2e6;
  --bad: #b42318;
  --bad-bg: #fbe5e1;
  --warn: #8a6100;
  --warn-bg: #faefcd;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1317;
    --surface: #131c21;
    --sunk: #090f12;
    --ink: #e9ece9;
    --soft: #c6cdd0;
    --muted: #94a1a8;
    --rule: #25323a;
    --line: rgb(233 236 233 / 4%);
    --accent: #6fc6d6;
    --accent-strong: #93d8e5;
    --accent-soft: #10292f;
    --on-accent: #06222a;
    --header: rgb(12 19 23 / 86%);
    --shadow: rgb(0 0 0 / 55%);

    --good: #62d081;
    --good-bg: #10301b;
    --bad: #ff8d7d;
    --bad-bg: #3a1512;
    --warn: #e6c25a;
    --warn-bg: #30270b;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
table {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

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

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

code,
.mono {
  font-family: var(--mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.wrap {
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 6px;
}

.skip:focus {
  top: 0.75rem;
  color: var(--on-accent);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header);
  border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}

.site-header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  text-decoration: none;
}

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

.brand-mark {
  flex: none;
}

.mark-tile {
  fill: var(--accent);
}

.mark-glyph {
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: 1rem;
  flex: 1;
}

.site-nav a,
.site-signin {
  color: var(--soft);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-signin:hover {
  color: var(--ink);
  text-decoration: underline;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}

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

.button:active {
  transform: translateY(1px);
}

.button-small {
  padding: 0.5rem 0.9rem;
  font-size: 0.92rem;
}

.more {
  font-weight: 600;
  text-decoration: none;
}

.more::after {
  content: " \2193";
}

.more:hover {
  text-decoration: underline;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
}

/* The ruled lines of a log book, fading out towards the edges. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 2.5rem, var(--line) 2.5rem calc(2.5rem + 1px));
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 30% 20%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 90% at 30% 20%, #000 30%, transparent 78%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}

/* The headline is sized from the column it sits in, so each sentence keeps to one line. */
.hero-copy {
  container-type: inline-size;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font: 0.78rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px var(--good-bg);
}

h1 {
  font: 400 clamp(2.1rem, 4.4vw, 3.8rem)/1.04 var(--serif);
  font-size: clamp(2.1rem, 10.4cqi, 4.9rem);
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 .line {
  display: block;
}

h1 .line-accent {
  color: var(--accent);
  font-style: italic;
}

.lede {
  max-width: 34rem;
  margin-top: 1.6rem;
  color: var(--soft);
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

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

.kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-top: 2.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font: 0.78rem/1.4 var(--mono);
  letter-spacing: 0.04em;
}

/* The evidence sheet: a real drill's page, as a sheet on a stack of earlier ones. */

.sheet-stack {
  position: relative;
  isolation: isolate;
}

.sheet-stack::before,
.sheet-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
}

.sheet-stack::before {
  transform: translate(0.5rem, 0.55rem) rotate(1.1deg);
}

.sheet-stack::after {
  z-index: -2;
  transform: translate(1rem, 1.1rem) rotate(2.3deg);
  opacity: 0.7;
}

.sheet {
  padding: 1.35rem 1.45rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 50px -30px var(--shadow);
  font-size: 0.86rem;
  line-height: 1.45;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.sheet h2 {
  margin-top: 0.9rem;
  font: 700 1.35rem/1.2 var(--sans);
  letter-spacing: -0.01em;
}

.sheet-sub {
  color: var(--muted);
  font-size: 0.8rem;
}

.verdict {
  margin-top: 0.85rem;
  padding: 0.6rem 0.8rem;
  border-left: 4px solid var(--good);
  border-radius: 4px;
  background: var(--good-bg);
}

.verdict strong {
  display: block;
  color: var(--good);
  font-size: 1.02rem;
}

.verdict span {
  color: var(--soft);
  font-size: 0.8rem;
}

.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1rem;
  margin-top: 0.9rem;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  font-variant-numeric: tabular-nums;
}

.checks {
  margin-top: 0.9rem;
  border-top: 1px solid var(--rule);
}

.checks li {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--rule);
}

.checks small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.pill {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.pill-passed {
  background: var(--good-bg);
  color: var(--good);
}

.pill-failed {
  background: var(--bad-bg);
  color: var(--bad);
}

.pill-not-tested {
  background: var(--warn-bg);
  color: var(--warn);
}

.pill-plain {
  background: var(--sunk);
  color: var(--muted);
}

.sheet-foot {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.sheet-foot .mono {
  display: block;
  color: var(--soft);
  font-size: 0.7rem;
}

.sheet-caption {
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: no-preference) {
  .checks li {
    animation: check-in 0.5s both;
  }

  .checks li:nth-child(1) { animation-delay: 0.35s; }
  .checks li:nth-child(2) { animation-delay: 0.6s; }
  .checks li:nth-child(3) { animation-delay: 0.85s; }
  .checks li:nth-child(4) { animation-delay: 1.1s; }
  .checks li:nth-child(5) { animation-delay: 1.35s; }
  .checks li:nth-child(6) { animation-delay: 1.6s; }
  .checks li:nth-child(7) { animation-delay: 1.85s; }

  @keyframes check-in {
    from {
      opacity: 0;
      transform: translateY(0.35rem);
    }
  }
}

/* Sections: a label in the margin, the matter beside it. */

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--rule);
}

.section-sunk {
  background: var(--sunk);
}

.section-grid {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
}

.eyebrow {
  align-self: start;
  position: sticky;
  top: 5.5rem;
  color: var(--muted);
  font: 0.78rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-no {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--accent);
  font-size: 0.95rem;
}

.section h2 {
  max-width: 46rem;
  font: 400 clamp(1.9rem, 3.6vw, 2.85rem)/1.1 var(--serif);
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.section-lede {
  max-width: 43rem;
  margin-top: 1.2rem;
  color: var(--soft);
  font-size: 1.12rem;
}

.section-lede + .section-lede {
  margin-top: 0.9rem;
}

.note {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Recovery debt: a strip of weekly drills, and the gap since the last pass. */

.debt {
  margin-top: 2.6rem;
  padding: 1.6rem clamp(1rem, 3vw, 2rem) 1.4rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
}

.debt-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  row-gap: 0.7rem;
  text-align: center;
}

.debt-gap {
  grid-column: 4 / 8;
  grid-row: 1;
  margin-inline: 12.5%;
  padding-bottom: 0.4rem;
  border: 1px solid var(--bad);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  color: var(--bad);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  transform: translateY(0.35rem);
}

.debt-gap b {
  position: relative;
  top: -0.7rem;
  padding: 0 0.5rem;
  background: var(--surface);
  white-space: nowrap;
}

.debt-mark {
  position: relative;
  grid-row: 2;
  display: grid;
  place-items: center;
  height: 2rem;
}

/* The line the marks sit on. */
.debt-mark::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid var(--rule);
}

.debt-mark:first-of-type::before {
  left: 50%;
}

.debt-mark.is-now::before {
  right: 50%;
  border-top-style: dashed;
}

.debt-mark i {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  font: 700 0.85rem/1 var(--sans);
  font-style: normal;
}

.debt-mark.is-pass i {
  background: var(--good);
  color: var(--surface);
}

.debt-mark.is-fail i {
  background: var(--bad);
  color: var(--surface);
}

.debt-mark.is-now i {
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--ink);
  background: var(--surface);
}

.debt-label {
  grid-row: 3;
  color: var(--muted);
  font: 0.72rem/1.3 var(--mono);
}

.debt-caption {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
}

/* The demo's drills */

.drills {
  width: 100%;
  margin-top: 2.6rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.drills caption {
  padding-bottom: 0.8rem;
  color: var(--muted);
  font: 0.78rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.drills th,
.drills td {
  padding: 0.8rem 0.9rem 0.8rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.drills thead th {
  border-bottom-color: var(--ink);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.drills tbody th {
  font-weight: 600;
}

.drills tbody th small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.drills td:last-child {
  padding-right: 0;
  color: var(--soft);
}

.drills .failed td:last-child {
  color: var(--ink);
}

.drills td strong {
  display: block;
}

/* How a drill works */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 2.8rem;
  border-top: 1px solid var(--ink);
  counter-reset: step;
}

.steps li {
  padding: 1.3rem 1.2rem 0 0;
  counter-increment: step;
}

.steps li + li {
  padding-left: 1.2rem;
  border-left: 1px solid var(--rule);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--accent);
  font: 400 2.2rem/1 var(--serif);
}

.steps h3 {
  margin-top: 0.7rem;
  font-size: 1.05rem;
}

.steps p {
  margin-top: 0.4rem;
  color: var(--soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* Evidence */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: 2.6rem;
}

.points li + li {
  margin-top: 1.5rem;
}

.points h3 {
  font-size: 1.05rem;
}

.points p {
  margin-top: 0.3rem;
  color: var(--soft);
  font-size: 0.98rem;
}

.mail {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 24px 44px -32px var(--shadow);
  font-size: 0.88rem;
  overflow: hidden;
}

.mail-head {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--rule);
  background: var(--bad-bg);
}

.mail-head span {
  display: block;
  color: var(--bad);
  font: 0.7rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mail-head strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.98rem;
}

.mail-body {
  padding: 1.1rem 1.2rem 1.2rem;
}

.mail-body p + p {
  margin-top: 0.8rem;
}

.mail-body b {
  color: var(--ink);
}

.mail-body .mono {
  display: block;
  margin-top: 0.3rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  background: var(--sunk);
  color: var(--soft);
  font-size: 0.76rem;
  line-height: 1.5;
}

.mail-body .mail-foot {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8rem;
}

.figure-caption {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* What it restores */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 2.6rem;
}

.card {
  padding: 1.5rem 1.5rem 1.4rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
}

.card-kind {
  color: var(--accent);
  font: 0.74rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card h3 {
  margin-top: 0.35rem;
  font: 400 1.5rem/1.2 var(--serif);
  letter-spacing: -0.01em;
}

.card p {
  margin-top: 0.6rem;
  color: var(--soft);
  font-size: 0.96rem;
}

.card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
}

.card li {
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.8rem;
}

/* What it can reach */

.reach {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2.6rem;
}

.reach li {
  padding-top: 1.1rem;
  border-top: 1px solid var(--ink);
}

.reach h3 {
  font-size: 1.05rem;
}

.reach p {
  margin-top: 0.35rem;
  color: var(--soft);
  font-size: 0.97rem;
}

/* Where it is going */

.stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2.6rem;
}

.stages li {
  padding: 1.1rem 1rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
}

.stages .is-built {
  border-color: var(--good);
}

.stage-no {
  color: var(--muted);
  font: 0.74rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stages h3 {
  margin-top: 0.25rem;
  font-size: 1.02rem;
}

.stages p {
  margin-top: 0.4rem;
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.stages .pill {
  margin-top: 0.8rem;
}

/* Questions */

.faq {
  max-width: 46rem;
  margin-top: 2.2rem;
  border-top: 1px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font: 400 1.4rem/1 var(--mono);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  padding: 0 2rem 1.2rem 0;
  color: var(--soft);
}

.faq details p + p {
  margin-top: -0.4rem;
}

/* Request access */

.access {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--accent);
  color: var(--on-accent);
}

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 29rem);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.access h2 {
  font: 400 clamp(2.2rem, 5vw, 3.6rem)/1.05 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.access-copy p {
  max-width: 30rem;
  margin-top: 1.2rem;
  font-size: 1.12rem;
  opacity: 0.9;
}

.access-copy .access-signin {
  font-size: 0.98rem;
}

.access-copy a {
  color: var(--on-accent);
}

.access-copy :focus-visible {
  outline-color: var(--on-accent);
}

.contact {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 50px -30px rgb(0 0 0 / 45%);
}

.contact label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}

.contact label span {
  margin-left: 0.3rem;
  color: var(--muted);
  font-size: 0.85em;
  font-weight: 400;
}

.contact input,
.contact textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.contact textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.contact input:focus-visible,
.contact textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact .button {
  justify-self: start;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.contact-note {
  color: var(--muted);
  font-size: 0.82rem;
}

/* A field people never see. A message that fills it is thrown away. */
.hp {
  position: absolute;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */

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

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

.footer-brand p {
  max-width: 22rem;
  margin-top: 0.7rem;
}

.footer-title {
  margin-bottom: 0.6rem;
  color: var(--ink);
  font-weight: 600;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
}

.footer-end p:first-child {
  max-width: 40rem;
}

/* A page with one thing to say: not found. */

.lone {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding-block: 4rem;
  text-align: center;
}

.lone h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.lone p {
  margin-top: 1rem;
  color: var(--soft);
}

.lone .actions {
  justify-content: center;
}

/* Narrower screens */

/* Five steps side by side need room; below that they are a list. */
@media (max-width: 70rem) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
  }

  .steps li,
  .steps li + li {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    column-gap: 0.6rem;
    padding: 1.1rem 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .steps li::before {
    grid-row: 1 / span 2;
  }

  .steps h3 {
    margin-top: 0.2rem;
  }

  .steps p {
    max-width: 40rem;
  }

  .stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 62rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sheet-stack {
    max-width: 34rem;
  }

  .section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .eyebrow {
    position: static;
  }

  .eyebrow-no {
    display: inline;
    margin-right: 0.6rem;
  }

  .stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .site-signin {
    margin-left: auto;
  }

  .split,
  .cards,
  .reach,
  .access-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* The table of drills becomes one block per drill. */
  .drills thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .drills,
  .drills caption,
  .drills tbody,
  .drills tr,
  .drills th,
  .drills td {
    display: block;
  }

  .drills tr {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .drills tbody tr:first-child {
    border-top: 1px solid var(--ink);
  }

  .drills th,
  .drills td {
    padding: 0.15rem 0;
    border: 0;
  }

  .drills td:nth-child(2) {
    margin: 0.35rem 0;
  }
}

@media (max-width: 30rem) {
  .site-header-row {
    gap: 0.9rem;
  }

  .sheet {
    padding: 1.1rem 1rem 0.9rem;
  }

  .checks li {
    grid-template-columns: 4.9rem 1fr;
    gap: 0.5rem;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .facts dd {
    margin-bottom: 0.3rem;
  }

  .stages {
    grid-template-columns: minmax(0, 1fr);
  }

  .debt-gap b {
    font-size: 0.74rem;
  }

  .debt-label {
    font-size: 0.62rem;
  }
}

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

  .button {
    transition: none;
  }
}
