/* Zam's palette: its dark theme, and its light theme when the system asks for light. */
:root {
  --bg: #36393f;
  --bg-secondary: #2f3136;
  --text: #dcddde;
  --muted: #a4a7ae;
  --accent: #7289da;
  --divider: #41444e;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2f3f5;
    --bg-secondary: #ffffff;
    --text: #2e3338;
    --muted: #5c5e66;
    --accent: #5865f2;
    --divider: #d4d7dc;
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1rem 3rem;
}

header {
  text-align: center;
  margin-bottom: 2.5rem;
}

header img {
  display: block;
  margin: 0 auto 1rem;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin: 0;
}

.lede {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0.75rem 0 0;
}

h2 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

section {
  background: var(--bg-secondary);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

section p {
  margin: 0;
}

section p + p {
  margin-top: 0.75rem;
}

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

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 2rem 0;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--divider);
}

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

footer {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
