:root {
  --bg: #fafaf9;
  --text: #1c1917;
  --muted: #57534e;
  --accent: #0f766e;
  --line: #e7e5e4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1917;
    --text: #f5f5f4;
    --muted: #a8a29e;
    --accent: #5eead4;
    --line: #292524;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 640px; margin: 0 auto; padding: 24px 20px 48px; }
a { color: var(--accent); }
ul { padding-left: 20px; }

/* Top navigation */
.site-nav { display: flex; gap: 20px; margin-bottom: 40px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* "Home" / "Projects" above the banner */
.page-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.intro { font-size: 2.2rem; font-weight: 700; line-height: 1.2; margin: 0 0 8px; }
.tagline { color: var(--muted); font-size: 1.15rem; margin: 0; }
h2 { font-size: 1.1rem; margin: 40px 0 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.links { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; padding: 0; }
footer { color: var(--muted); font-size: 0.9rem; margin-top: 56px; }

/* Banner image at the top of each page */
.banner { margin: 0 0 40px; }
.banner img {
  display: block;
  width: 100%;
  height: clamp(150px, 37vw, 221px);
  object-fit: cover;
  border-radius: 12px;
  background: #1e2a44;
}
.banner figcaption { margin-top: 6px; font-size: 0.75rem; color: var(--muted); }
.banner figcaption a { color: inherit; }

/* Pale Blue Dot: made from NASA's 2020 remaster (PIA23645, 5230x5175),
   rotated 80.8 degrees so the sunbeam is level and cropped to a 3:1 strip.
   pale-blue-dot-banner.jpg is 664x221 and the @2x file is the same crop at
   double resolution for sharp screens. Earth sits at 53.09% / 49.97%.
   object-fit: none shows the image at its natural size (never shrunk, so
   the dot can't vanish) and object-position keeps Earth in view at any
   width. */
.banner-earth img { object-fit: none; object-position: 53.09% 49.97%; }

/* Entries on the Projects page */
.project { padding-top: 4px; }
.project-kind {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.project-title { font-size: 1.3rem; line-height: 1.35; margin: 0 0 6px; padding: 0; border: 0; }
.project-title a { color: inherit; text-decoration: none; }
.project-title a:hover { text-decoration: underline; }
.project-meta { margin: 0 0 12px; font-size: 0.9rem; color: var(--muted); }
.project-meta strong { color: var(--text); }

/* Footer link and the Privacy page */
footer a { color: inherit; }
.updated { margin: 0; font-size: 0.9rem; color: var(--muted); }
