:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --text: #1d1c1a;
  --muted: #6b6860;
  --line: #e2dfd7;
  --accent: #b4521e;
  --accent-text: #ffffff;
  --danger: #a32222;
  --ok: #2d6a3e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --surface: #201f1d;
    --text: #ecebe7;
    --muted: #a09c93;
    --line: #36342f;
    --accent: #e08a4f;
    --accent-text: #1a1206;
    --danger: #ef8080;
    --ok: #7fc793;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 .6rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
p { margin: 0 0 .8rem; }

header, main, footer { max-width: 780px; margin: 0 auto; padding: 0 16px; }
header {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem;
  padding-top: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a.on { color: var(--text); }
nav a.on { text-decoration: underline; text-underline-offset: 5px; }
main { padding-top: 28px; padding-bottom: 48px; min-height: 60vh; }
footer {
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem;
  padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: .9rem;
}
footer a { color: var(--muted); }

.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.spread { justify-content: space-between; }
.spread > h1 { margin-bottom: 0; }
main > .row { margin-bottom: 1rem; }
.stack > * + * { margin-top: .8rem; }

.card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px; color: inherit; text-decoration: none;
}
a.card:hover { border-color: var(--accent); }
.card p:last-child { margin-bottom: 0; }
.tag {
  display: inline-block; font-size: .78rem; padding: 1px 8px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.tag.ok { color: var(--ok); border-color: currentColor; }
.tag.no { color: var(--danger); border-color: currentColor; }

dl { margin: 0; }
dt { font-size: .85rem; color: var(--muted); margin-top: .9rem; }
dd { margin: 0; }

form { display: grid; gap: .9rem; max-width: 560px; }
label { display: grid; gap: .25rem; font-size: .92rem; color: var(--muted); }
label.check { display: flex; gap: .5rem; align-items: flex-start; color: var(--text); }
label.check input { margin-top: .3rem; }
input, textarea, select, button { font: inherit; color: inherit; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=datetime-local], input[type=file], textarea, select {
  width: 100%; padding: 9px 11px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; color: var(--text);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
button, .btn {
  display: inline-block; padding: 8px 16px; border-radius: 8px; cursor: pointer;
  background: var(--accent); color: var(--accent-text); border: 1px solid var(--accent);
  text-decoration: none; font-weight: 600; justify-self: start;
}
button.ghost, .btn.ghost { background: transparent; color: var(--text); border-color: var(--line); font-weight: 400; }
button.danger { background: transparent; color: var(--danger); border-color: currentColor; font-weight: 400; }
button:disabled { opacity: .55; cursor: default; }
.error { color: var(--danger); margin: 0; }
.notice { border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; color: var(--muted); }

.rules h1 { margin-bottom: .3rem; }
.rules h2 { margin-top: 2.2rem; }
.rules li { margin-bottom: .3rem; }
