/* ---- Theme tokens ------------------------------------------------------ */
:root {
  --bg:        #fbfaf8;
  --fg:        #1a1a19;
  --muted:     #6b6a66;
  --rule:      #e2e0da;
  --accent:    #8a5a2b;
  --max:       34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:    #121211;
    --fg:    #e9e7e2;
    --muted: #98958d;
    --rule:  #2c2c2a;
    --accent:#d3a06a;
  }
}

/* ---- Base -------------------------------------------------------------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

@media (max-width: 480px) {
  main { padding-top: 3rem; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.role {
  margin: 0 0 1.6rem;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.role .org { color: var(--muted); }

.tagline {
  margin: 0 0 0.4rem;
  color: var(--fg);
}

.question {
  margin: 0;
  color: var(--accent);
  font-style: italic;
}

/* ---- About ------------------------------------------------------------- */
.about {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
}

.about p { margin: 0 0 1.1rem; }
.about p:last-child { margin-bottom: 0; }

/* ---- Links ------------------------------------------------------------- */
.links {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
}

.links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---- Footer ------------------------------------------------------------ */
footer {
  margin-top: 3.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

footer p { margin: 0; }
