:root {
  color-scheme: light dark;
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --text: #242424;
  --secondary: #4F4F4B;
  --border: #D6D6CF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #202120;
    --surface: #2A2B29;
    --text: #EEEEE7;
    --secondary: #C6C7BF;
    --border: #55564F;
  }
}

html { font-size: 125%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.4rem;
  margin: 2.4rem 0 0.75rem;
}

p, li {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

.secondary, .muted { color: var(--secondary); }

.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem 0.25rem;
}

.box ul {
  margin: 0;
  padding-left: 1.25rem;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1.1rem;
  margin: 0.8rem 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  /* Keep the native disclosure marker; reach the 44px target with padding, not flex. */
  display: list-item;
  padding: 0.5rem 0;
}

details > p, details > ol {
  margin-top: 0.5rem;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--bg);
  padding: 0.5rem;
}

/* The skip link's target takes focus programmatically; it needs no outline of its own. */
main:focus {
  outline: none;
}
