/* presistime.no: one stylesheet for every page. Aubergine palette (Presis spec §5). */
:root {
  color-scheme: light dark;
  --bg: #fafafd;
  --surface: #ffffff;
  --text: #15002c;
  --muted: #5b4a6e;
  --accent: #5b2d8c;
  --note-bg: #f0ebf7;
  --rule: #dcd4e8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15002c;
    --surface: #1f0a38;
    --text: #fafafd;
    --muted: #b8a3d2;
    --accent: #dcd4e8;
    --note-bg: #2c004a;
    --rule: #420068;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

main,
header,
footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  padding-top: 2rem;
}

.wordmark {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 1.5rem 0 1rem;
}

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

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

.note {
  background: var(--note-bg);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.muted {
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 15px;
}

footer nav a {
  margin-inline-end: 1rem;
}
