:root {
  color-scheme: light dark;
  --paper: #faf8f3;
  --card: #ffffff;
  --ink: #2b2a27;
  --muted: #6d6a63;
  --line: rgba(43, 42, 39, .12);
  --accent: #4f56b8;
  font-family: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171614;
    --card: #23211e;
    --ink: #f1eee8;
    --muted: #a9a49b;
    --line: rgba(241, 238, 232, .14);
    --accent: #a3a8f5;
  }
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  padding: 32px 18px;
  display: grid;
  place-items: center;
  background: var(--paper);
}

.card {
  width: min(100%, 680px);
  padding: clamp(26px, 6vw, 52px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.home { text-align: center; }
.beads { display: flex; flex-direction: column; align-items: center; margin: 0 auto 22px; }
.beads span { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); opacity: .55; }
.beads span:last-child { opacity: 1; }
.beads i { width: 2px; height: 16px; background: var(--accent); opacity: .3; }

h1, h2, p { margin-top: 0; }
h1, h2 { font-family: "New York", Georgia, serif; font-weight: 600; }
h1 { margin-bottom: 16px; font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.05; }
h2 { margin: 30px 0 8px; font-size: 1.25rem; }
p, li { font-size: 1rem; line-height: 1.65; }
ul { padding-left: 1.3rem; }
li + li { margin-top: 8px; }
a { color: var(--accent); font-weight: 600; }

.eyebrow { margin-bottom: 8px; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--muted); }
.lede { font-size: 1.12rem; color: var(--muted); }
.updated, .fineprint { color: var(--muted); font-size: .92rem; }
.back { display: inline-block; margin-bottom: 28px; text-decoration: none; }

nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
}
.button.secondary { color: var(--accent); background: transparent; border: 1px solid var(--accent); }
.button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (prefers-color-scheme: dark) {
  .button:not(.secondary) { color: #171614; }
}

@media (max-width: 480px) {
  body { padding: 14px; align-items: start; }
  .card { padding: 26px 22px; border-radius: 20px; }
}
