/* ==========================================================
   mikeclipson.com — main stylesheet
   Colors and fonts are defined once here as "variables"
   so you can restyle the whole site by changing a few lines.
   ========================================================== */

:root {
  --color-bg: #fbfaf8;
  --color-surface: #ffffff;
  --color-text: #1f2328;
  --color-muted: #5b636e;
  --color-accent: #1d5fa8;
  --color-border: #e3e1dc;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-width: 46rem;
}

/* Dark mode: used automatically when the visitor's device prefers it. */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #15171a;
    --color-surface: #1d2024;
    --color-text: #e8e6e3;
    --color-muted: #a3a9b1;
    --color-accent: #7ab3f0;
    --color-border: #2e3238;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
}

/* Centers content and keeps lines a comfortable length. */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Header & navigation ---------- */

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  text-decoration: none;
}

nav ul {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

nav a:hover,
nav a[aria-current="page"] {
  color: var(--color-text);
}

/* ---------- Main content ---------- */

.hero {
  padding: 4rem 0 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0 0 0.75rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin: 0;
}

main section {
  margin-bottom: 2.5rem;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  background: var(--color-accent);
  color: var(--color-bg);
  text-decoration: none;
  font-weight: 600;
}

.not-found {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.9rem;
  padding: 1.5rem 0;
}
