/* Colours: change these to restyle the whole site */
:root {
  --bg: #eef2f4;
  --ink: #17262e;
  --muted: #5a6b74;
  --accent: #1f6f8b;
  --line: #cdd8dd;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11191d;
    --ink: #e6eef1;
    --muted: #9bb0ba;
    --accent: #6cc0dc;
    --line: #2b3b43;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

h1, h2 {
  font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 1rem 0 0;
}

/* Photo */
.photo {
  margin: 2.5rem 0;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--line);
}

.photo figcaption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.about p { max-width: 38rem; }

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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