:root {
  color-scheme: light dark;
  --background: #edf2ea;
  --surface: #ffffff;
  --text: #19291f;
  --muted: #46574d;
  --line: #d9e3d9;
  --accent: #115d3d;
  --button: #115d3d;
  --button-hover: #0a472d;
  --button-text: #ffffff;
  --focus: #1461a1;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #10201a;
    --surface: #162921;
    --text: #eef5ed;
    --muted: #bacac0;
    --line: #3b5146;
    --accent: #a4e1bb;
    --button: #a4e1bb;
    --button-hover: #c4f2d2;
    --button-text: #11291c;
    --focus: #8bc3ff;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.55;
  padding: clamp(1rem, 7vw, 5rem) 1rem;
}
main {
  max-width: 35rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}
.brand {
  margin: 0 0 .75rem;
  color: var(--accent);
  font-weight: 700;
}
h1 {
  margin: 0 0 .85rem;
  font-size: clamp(1.85rem, 6vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.intro, .hint, footer { color: var(--muted); }
.intro { margin: 0 0 1.4rem; }
h2 { margin: 0; font-size: 1.13rem; }
ol { margin: .6rem 0 0; padding-inline-start: 1.4rem; }
li + li { margin-top: .45rem; }
a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  background: var(--button);
  color: var(--button-text);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: var(--button-hover); }
.hint { margin: .6rem 0 1.5rem; font-size: .92rem; }
section, footer { border-top: 1px solid var(--line); padding-top: 1.15rem; }
footer { margin-top: 1.25rem; font-size: .92rem; overflow-wrap: anywhere; }
footer p { margin: 0; }
@media (max-width: 29rem) {
  .button { display: flex; }
}
