/* light tokens; the dark set follows the system setting unless data-theme on <html> says otherwise (theme.js) */
:root {
  --bg: #fff;
  --fg: #111;
  --muted: #666;
  --line: #e6e6e6;
  --card: #f6f6f6;
  --accent: #f90;
  --logo-invert: 0;
  --theme-icon: "☾";
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111;
    --fg: #eee;
    --muted: #9a9a9a;
    --line: #2a2a2a;
    --card: #1a1a1a;
    --logo-invert: 1;
    --theme-icon: "☀";
  }
}
:root[data-theme="dark"] {
  --bg: #111;
  --fg: #eee;
  --muted: #9a9a9a;
  --line: #2a2a2a;
  --card: #1a1a1a;
  --logo-invert: 1;
  --theme-icon: "☀";
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, .btn:focus-visible, #theme:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }

header { border-bottom: 1px solid var(--line); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding: 1.25rem 0; }
nav img { height: 1.6rem; width: auto; display: block; filter: invert(var(--logo-invert)); }
nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0 0 0 auto; padding: 0; list-style: none; white-space: nowrap; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--fg); }
#theme {
  background: none; border: 1px solid var(--line); border-radius: .5rem;
  color: var(--muted); font: inherit; line-height: 1.4; padding: .15rem .55rem; cursor: pointer;
}
#theme::before { content: var(--theme-icon); }
#theme:hover { color: var(--fg); border-color: var(--fg); }

h1, h2, h3 { hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 1rem; }
h2 { font-size: 1.75rem; letter-spacing: -0.01em; margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; max-width: 42rem; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 38rem; }

section { padding: 4rem 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.hero { padding: 6rem 0 5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  display: inline-block; padding: .75rem 1.25rem; border-radius: .5rem;
  text-decoration: none; font-weight: 600; border: 1px solid var(--fg);
}
.btn.primary { background: var(--fg); color: var(--bg); }
.btn:hover { border-color: var(--accent); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #111; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); }
.card { background: var(--card); border-radius: .75rem; padding: 1.75rem; }
.card p { color: var(--muted); }
.card a { font-weight: 600; text-decoration: none; }
.card a::after { content: " →" / ""; color: var(--accent); }

/* the privacy page: one column of text */
.prose { max-width: 42rem; padding-top: 3rem; padding-bottom: 4rem; }
.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2.5rem; }

address { font-style: normal; }
.register { margin-top: 1rem; color: var(--muted); font-size: .9rem; }
footer { padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; }
@media (max-width: 36rem) { nav ul { gap: .9rem; font-size: .95rem; } }
