/* Knot's palette (app/Knot/KnotTheme.swift) in dark; a plain light version for light mode. */
:root {
  color-scheme: light dark;
  --ground: #ffffff;
  --text: #16141c;
  --secondary: #5e5a6b;
  --line: #e4e2ea;
  --accent: #6a55b0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #000000;
    --text: #f2f1f5;
    --secondary: #a6a3b0;
    --line: #2a2733;
    --accent: #a493d6;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main, header.site, footer.site {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 16px;
}

main { flex: 1; padding-bottom: 48px; }

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

header.site { padding-top: 24px; }
header.site .home { color: var(--text); font-weight: 600; text-decoration: none; }

h1 { font-size: 2rem; line-height: 1.2; margin: 32px 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; line-height: 1.3; margin: 36px 0 8px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 6px; }

.updated { color: var(--secondary); font-size: 0.9rem; margin-bottom: 28px; }

main.home { display: flex; flex-direction: column; justify-content: center; }
main.home h1 { font-size: 3rem; margin: 0 0 8px; }
main.home .lead { font-size: 1.3rem; margin-bottom: 4px; }
main.home p:not(.lead) { color: var(--secondary); }

footer.site {
  display: flex;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
footer.site a { color: var(--secondary); text-decoration: none; }
footer.site a:hover { color: var(--text); }
