/* Steven Booth — personal site
   Static, no build step. Safe to deploy to Cloudflare Pages as-is. */

:root {
  --paper: #f3efe6;
  --ink: #1b1815;
  --muted: #5e5850;
  --rule: #d4cdc0;
  --accent: #8a3a1c;
  --accent-hover: #6c2c14;
  --focus: #1b1815;
  --max: 40rem;
  --space: 1.25rem;
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141211;
    --ink: #ece8e0;
    --muted: #b3aba0;
    --rule: #3a3530;
    --accent: #e08a62;
    --accent-hover: #f0b397;
    --focus: #ece8e0;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.5rem 0 4.5rem;
}

h1, h2, .masthead p {
  font-family: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.35rem);
  line-height: 1.1;
  margin: 0 0 0.4rem;
  font-weight: 560;
}

h2 {
  font-size: 1.35rem;
  margin: 0 0 0.9rem;
  font-weight: 560;
}

.role {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0 0 0.35rem;
}

.place {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  letter-spacing: 0;
}

.masthead {
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

section { margin: 0 0 2.5rem; }
section:last-of-type { margin-bottom: 3rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--accent-hover); }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.built {
  list-style: none;
  margin: 0;
  padding: 0;
}
.built li {
  margin: 0 0 1.4rem;
  padding: 0 0 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.built li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.built h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0 0 0.35rem;
}
.sources {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.sources a { color: inherit; }
.sources a:hover { color: var(--accent); }

.essays {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.essays li { margin: 0 0 0.45rem; }

footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
footer p { margin: 0; }

@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .wrap { width: min(var(--max), calc(100% - 2rem)); padding-top: 2.5rem; }
}
