:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #181816;
  --muted: #67635c;
  --line: #d8d5cc;
  --accent: #a83f2f;
  --accent-2: #236f65;
  --accent-3: #315f9f;
  --contact-bg: #e8f0eb;
  --contact-text: #1d332f;
  --contact-muted: #50645e;
  --contact-line: #9fb9b0;
  --shadow: 0 20px 60px rgba(31, 30, 27, 0.08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171716;
  --surface: #222220;
  --text: #f3f0e8;
  --muted: #b9b2a4;
  --line: #3a3731;
  --accent: #e27662;
  --accent-2: #71b8a9;
  --accent-3: #8caee8;
  --contact-bg: #1d2b28;
  --contact-text: #eef5ef;
  --contact-muted: #b4c7bf;
  --contact-line: #6fa79a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(168, 63, 47, 0.07), transparent 440px),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent);
  text-underline-offset: 0.2em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 28px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.theme-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 28px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding: 86px 0;
  border-bottom: 1px solid var(--line);
}

.hero {
  grid-template-columns: minmax(430px, 0.9fr) minmax(360px, 0.7fr);
  grid-template-areas:
    "photo intro"
    "photo facts";
  align-items: center;
  min-height: auto;
  padding-top: 18px;
  padding-bottom: 48px;
}

.portrait {
  grid-area: photo;
  align-self: center;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.04);
}

.intro {
  grid-area: intro;
  align-self: end;
}

.eyebrow,
.label,
.paper-meta,
.section-kicker,
.writing-list span,
.timeline span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 500;
  line-height: 1.02;
}

h1 {
  max-width: 520px;
  margin-bottom: 14px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.25;
}

.role {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
}

.lede {
  max-width: 600px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.button.secondary {
  background: var(--surface);
}

.quick-info {
  grid-area: facts;
  align-self: start;
  display: grid;
  gap: 20px;
  padding: 24px;
  border-left: 3px solid var(--accent-2);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.quick-info div {
  display: grid;
  gap: 4px;
}

.quick-info strong {
  font-size: 14px;
  line-height: 1.45;
}

.compact {
  padding: 64px 0;
}

.section-kicker span {
  display: inline-block;
  padding-top: 8px;
  border-top: 3px solid var(--accent);
}

.section-copy > p,
.section-heading p,
.paper p {
  max-width: 760px;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 28px;
}

.paper {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.paper h3 {
  max-width: 820px;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.timeline div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.timeline p {
  margin-bottom: 0;
}

.writing-list {
  display: grid;
  gap: 12px;
  max-width: 780px;
}

.writing-list a {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
}

.writing-list a:hover {
  border-color: var(--accent-3);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  margin: 80px 0 44px;
  padding: 44px;
  border: 1px solid color-mix(in srgb, var(--contact-line) 70%, transparent);
  border-left: 4px solid var(--contact-line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--contact-line) 12%, transparent), transparent 44%),
    var(--contact-bg);
  color: var(--contact-text);
}

.contact-section .eyebrow {
  color: var(--contact-muted);
}

.contact-section h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.contact-links {
  display: grid;
  align-content: center;
  gap: 14px;
  font-weight: 700;
}

.contact-links span,
.contact-links a {
  color: var(--contact-text);
}

footer {
  display: flex;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 34px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .theme-button {
    justify-self: end;
  }

  .hero,
  .section-grid,
  .contact-section {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 28px;
  }

  .hero {
    min-height: auto;
  }

  .portrait,
  .intro,
  .quick-info {
    grid-area: auto;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  main {
    padding-top: 38px;
  }

  .section-grid {
    padding: 56px 0;
  }

  .nav-links {
    gap: 18px;
  }

  .lede {
    font-size: 16px;
  }

  .timeline div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-section {
    margin-top: 56px;
    padding: 28px;
  }

  footer {
    display: grid;
    gap: 10px;
  }
}
