:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1c1c1e;
  --muted: #6b6b70;
  --accent: #0a63c9;
  --on-accent: #ffffff;
  --rule: #e3e3e6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131315;
    --fg: #ececee;
    --muted: #9a9aa0;
    --accent: #6fa8ff;
    /* The dark accent is light, so button text goes dark to stay legible. */
    --on-accent: #0d1f38;
    --rule: #2c2c30;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 3rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 34rem;
  margin: 0 auto;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.15rem;
  margin: 2.25rem 0 0.5rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

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

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

li {
  margin-bottom: 0.4rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.08);
}

.button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.button-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.6rem;
}

.tagline {
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  word-break: break-all;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--muted);
}

footer nav a {
  margin-right: 1rem;
}

.updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}
