:root {
  --bg: #fbfaf7;
  --fg: #1c1b19;
  --muted: #6b6862;
  --rule: #e4e0d7;
  --accent: #7a5c3e;
  --maxw: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --fg: #e9e6df;
    --muted: #a19d94;
    --rule: #2e2c28;
    --accent: #c9a97e;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem 4rem;
}

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

h1 {
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.1;
}

.role {
  margin: 0.35rem 0 1.1rem;
  color: var(--muted);
  font-size: 1.15rem;
  font-style: italic;
}

.role .mcn {
  font-style: normal;
  font-weight: 700;
  font-size: 1.35em;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.links {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.links a:hover { border-bottom-color: var(--accent); }

.links span {
  color: var(--rule);
  margin: 0 0.5rem;
}

/* Email shown as plain text (not a mailto link) to deter scrapers.
   Mobile: a quiet line under the header. Wide screens: a fixed top-right badge. */
.email-banner {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin: -1rem 0 2.25rem;
}

.email-banner .addr {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  color: var(--accent);
}

.email-banner .label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-right: 0.55rem;
  border-right: 1px solid var(--rule);
}

@media (min-width: 56rem) {
  .email-banner {
    position: fixed;
    top: 1.1rem;
    right: 1.4rem;
    margin: 0;
    z-index: 10;
  }
}

section { margin-bottom: 2.25rem; }

.positions {
  margin-bottom: 0.4rem;
}

.pos-role {
  font-weight: 600;
  color: var(--fg);
}

.pos-when {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-left: 0.35rem;
}

.hero {
  margin: 0 0 2.5rem;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem;
}

figcaption {
  margin-top: 0.7rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.lede p {
  font-size: 1.25rem;
  line-height: 1.6;
}

h2 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

p { margin: 0 0 1rem; }

ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

li { margin-bottom: 0.65rem; }

em { color: var(--fg); }

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

/* Inline citation links in the body text */
.lede a, section p a, section li a {
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  transition: border-color 0.15s ease;
}

.lede a:hover, section p a:hover, section li a:hover {
  border-bottom-color: var(--accent);
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

footer p { margin: 0; }
