:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --ink: #252525;
  --muted: #595959;
  --accent: #b3261e;
  --line: #d9d9d9;
  --field-border: #858585;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body {
  max-width: 42rem;
  margin: 3rem auto;
  padding: 0 1.5rem;
  background: var(--paper);
  color: var(--ink);
  overflow-wrap: anywhere;
}
h1, h2 { color: var(--accent); font-weight: 600; line-height: 1.25; }
h1 { margin: 0 0 1.25rem; font-size: 1.75rem; letter-spacing: -.035em; }
h2 { margin: 2rem 0 1rem; font-size: 1.25rem; letter-spacing: -.015em; scroll-margin-top: 1.5rem; }
p, ul { margin: 0 0 1.25rem; }
ul { padding-left: 1.25rem; }
li + li { margin-top: .55rem; }
b, strong, label { font-weight: 600; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
small { color: var(--muted); font-size: .875rem; }
code { font-size: .9em; }
form { margin: 1.5rem 0 0; }
label { display: inline-block; margin-bottom: .35rem; }
input, textarea, button { font: inherit; }
input, textarea {
  width: 100%;
  min-height: 44px;
  padding: .6rem .75rem;
  border: 1px solid var(--field-border);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
}
textarea { display: block; resize: vertical; }
textarea + br { display: none; }
form small { display: block; margin-top: .5rem; }
button {
  min-height: 44px;
  padding: .55rem 1rem;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #b3261e;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: #912019; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

@media (max-width: 480px) {
  body { margin: 1.75rem auto; padding: 0 1.25rem; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #191919;
    --ink: #ededeb;
    --muted: #b9b9b5;
    --accent: #ff9488;
    --line: #454545;
    --field-border: #8b8b88;
  }
}
@media (forced-colors: active) {
  button { border-color: ButtonText; }
}
