:root {
  color-scheme: light;
  --bg: #f3f6f5;
  --wash: #e4f2ee;
  --ink: #102824;
  --lede: #1c403a;
  --muted: #2c4e48;
  --accent: #085e57;
  --rule: #0e7c72;
  --line: #d3e0dc;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e1715;
    --wash: #16312c;
    --ink: #f3faf8;
    --lede: #d7ebe6;
    --muted: #c5ddd6;
    --accent: #7ee0cf;
    --rule: #3ecfb8;
    --line: #2a403c;
  }
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(70rem 32rem at -8% -20%, var(--wash), transparent 58%),
    var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(46rem, 100%);
  margin-inline: auto;
  padding-top: clamp(4rem, 14vh, 8.5rem);
  padding-bottom: clamp(2.5rem, 8vh, 4rem);
  padding-left: max(clamp(1.25rem, 5vw, 2.75rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.25rem, 5vw, 2.75rem), env(safe-area-inset-right));
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 1.35rem + 4.4vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

h1::before {
  content: "";
  display: block;
  width: 3.25rem;
  margin-bottom: 1.5rem;
  border-top: 0.25rem solid var(--rule);
}

main > p:not(.status) {
  margin: 1.5rem 0 0;
  max-width: 38rem;
  color: var(--lede);
  font-size: clamp(1.125rem, 1.04rem + 0.35vw, 1.3125rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.status {
  margin-top: 2.75rem;
  padding-left: 0.9rem;
  border-left: 0.2rem solid var(--rule);
  color: var(--accent);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

footer {
  width: min(46rem, 100%);
  margin-inline: auto;
  padding-bottom: max(clamp(1.5rem, 4vh, 2.75rem), env(safe-area-inset-bottom));
  padding-left: max(clamp(1.25rem, 5vw, 2.75rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.25rem, 5vw, 2.75rem), env(safe-area-inset-right));
}

footer p {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

::selection {
  background: #cfe8e3;
  color: #102824;
}

@media (prefers-color-scheme: dark) {
  ::selection {
    background: #1d4a44;
    color: #f3faf8;
  }
}

@media (forced-colors: active) {
  body {
    background: Canvas;
    color: CanvasText;
  }

  main > p,
  .status,
  footer p {
    color: CanvasText;
  }

  h1::before,
  .status,
  footer p {
    border-color: CanvasText;
  }
}
