/* danielredding.com — one stylesheet for the whole site */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --accent: #0b6e4f;
  --rule: #e5e5e5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131417;
    --text: #e6e6e6;
    --muted: #9a9a9a;
    --accent: #4cc38a;
    --rule: #2a2c31;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  max-width: 42rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}

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

nav {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

nav a {
  margin-right: 1.25rem;
  color: var(--muted);
  text-decoration: none;
}

nav a.active,
nav a:hover {
  color: var(--accent);
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

ul.plain {
  list-style: none;
  padding-left: 0;
}

ul.plain li { margin-bottom: 0.5rem; }

/* Books page */
.book {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.book:last-child { border-bottom: none; }

.book .title { font-weight: 600; }

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

.book .rating {
  color: var(--accent);
  font-size: 0.9rem;
  margin-left: 0.4rem;
}

.book p {
  margin: 0.35rem 0 0;
  color: var(--text);
}

/* Blog */
.post-list time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-right: 0.75rem;
}

article time {
  color: var(--muted);
  display: block;
  margin-bottom: 1.5rem;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
