/* Notes & Things — one stylesheet, no dependencies. */

:root {
  color-scheme: light dark;
  --fg: #14161a;
  --bg: #ffffff;
  --muted: #6b7280;
  --line: #e5e7eb;
  --link: #1d4ed8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6e8eb;
    --bg: #101214;
    --muted: #9aa1ab;
    --line: #24282d;
    --link: #8ab4ff;
  }
}

* { box-sizing: border-box; }

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

body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
}

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

header h1 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.3rem;
}

header h1 a { color: inherit; text-decoration: none; }

.tagline { color: var(--muted); margin: 0 0 1rem; }

nav a {
  margin-right: 1.1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover { color: var(--fg); }

main { margin-top: 2.75rem; }

h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  margin: 2.5rem 0 0;
}

h2:first-child { margin-top: 0; }

h3 { margin: 1.75rem 0 0.25rem; font-size: 1.02rem; }

ul.posts, ul.things { list-style: none; padding: 0; margin: 1rem 0 0; }

ul.posts li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }

ul.posts li a { text-decoration: none; color: var(--fg); }
ul.posts li a:hover { color: var(--link); }

ul.things li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
ul.things li span { display: block; color: var(--muted); font-size: 0.9rem; }

time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

article h1 { margin: 0 0 0.2rem; font-size: 1.5rem; letter-spacing: -0.015em; }
article time { margin-bottom: 1.75rem; }
article p { margin: 1.1rem 0; }

.intro { color: var(--muted); margin-top: 1rem; }

.meta { color: var(--muted); font-size: 0.9rem; font-style: italic; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: color-mix(in srgb, var(--fg) 9%, transparent);
  padding: 0.1rem 0.32rem;
  border-radius: 4px;
}

footer {
  margin-top: 4.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

footer p { margin: 0; }
