:root {
  color-scheme: light dark;
  --text: light-dark(#1c1c1a, #ecebe6);
  --muted: light-dark(#63625c, #a3a199);
  --bg: light-dark(#fbfaf7, #171716);
  --line: light-dark(#d9d6cc, #3a3936);
  --link: light-dark(#14508c, #8fbdf0);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0 auto;
  padding: 2rem 1.25rem;
  max-width: 44rem;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.55 system-ui, sans-serif;
}

h1 { margin: 0 0 1rem; font-size: 1.5rem; }
h1 a { color: inherit; text-decoration: none; }

form { display: flex; gap: 0.5rem; }

input, button {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
}
input { flex: 1; min-width: 0; }
button { cursor: pointer; }
button[type="submit"] { background: var(--text); color: var(--bg); border-color: var(--text); }

ol { margin: 0; padding: 0; list-style: none; }
li { margin: 1.5rem 0; overflow-wrap: anywhere; }
li cite { display: block; color: var(--muted); font-size: 0.85rem; font-style: normal; }
li a { color: var(--link); font-size: 1.15rem; text-decoration: none; }
li a:hover { text-decoration: underline; }
li a:visited { color: light-dark(#6b3f86, #c6a4dd); }
li p { margin: 0.2rem 0 0; }

footer {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
footer a { color: inherit; }
