/* ── Reset & Base ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0059b3;
  --border: #d2d2d7;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --mono: "SF Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --surface: #2c2c2e;
    --text: #f5f5f7;
    --text-muted: #98989d;
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --border: #48484a;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
  }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  /* center content without needing a container element */
  margin: 0 auto;
  max-width: 640px;
  padding: 2rem 1rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent-hover);
}

a:visited {
  color: var(--accent-hover);
}

/* ── Lists ───────────────────────────────────────────── */
ol,
ul {
  margin-left: 1.5rem;
  padding-left: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* ── Paragraphs ──────────────────────────────────────── */
p {
  margin-bottom: 1rem;
}

/* ── Layout ──────────────────────────────────────────── */
/* body now handles centering and max-width; the .container
   class is retained for other pages but isn't required for
   the simple index.html. */
.container {
  width: 100%;
  max-width: 640px;
}

/* optional header element styles (not used on index.html) */
header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}
