/* North Star site. One stylesheet, no scripts, no external requests. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1a1d24;
  --muted: #5b6270;
  --line: #e2e5ea;
  --accent: #1b3f8f;
  --panel: #f4f6fa;
  --todo-bg: #fff3c4;
  --todo-text: #5c4400;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1226;
    --text: #e8eaf0;
    --muted: #a3a9b8;
    --line: #2a3150;
    --accent: #9db8ff;
    --panel: #161c38;
    --todo-bg: #5c4400;
    --todo-text: #fff3c4;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.brand::before {
  content: '✦ ';
  color: #d9a520;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.9375rem;
}

main {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

footer {
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

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

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
}

h3 {
  font-size: 1.0625rem;
  margin: 1.5rem 0 0.25rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.375rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

.muted {
  color: var(--muted);
  font-size: 0.9375rem;
}

.links {
  list-style: none;
  padding: 0;
}

.links li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.links a {
  display: block;
  padding: 0.875rem 0;
  font-weight: 600;
  text-decoration: none;
}

.links span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9375rem;
}

.note {
  background: var(--panel);
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
}

.note > :last-child {
  margin-bottom: 0;
}

dt {
  font-weight: 600;
  margin-top: 0.875rem;
}

dd {
  margin: 0;
}

/* Open points: everything still to be filled in before the site goes live. */
.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  border-radius: 0.25rem;
  padding: 0.05em 0.3em;
}

p.todo {
  padding: 0.75rem 1rem;
}
