:root {
  --bg: #fbfaf7;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --text: #171411;
  --muted: #5b5650;
  --border: rgba(53, 43, 34, 0.12);
  --accent: #7b2f1f;
  --accent-soft: rgba(123, 47, 31, 0.06);
  --shadow: 0 18px 45px rgba(48, 32, 18, 0.05);
}

body.dark {
  --bg: #171513;
  --surface: rgba(33, 29, 26, 0.88);
  --surface-strong: #211d1a;
  --text: #f2ede6;
  --muted: #c0b7ae;
  --border: rgba(236, 224, 212, 0.13);
  --accent: #f0b08e;
  --accent-soft: rgba(240, 176, 142, 0.12);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(123, 47, 31, 0.04), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 24rem),
    var(--bg);
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

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

.page-shell {
  width: min(90vw, 1500px);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.page-main {
  min-width: 0;
}

.site-header,
.content,
.site-footer {
  width: 100%;
}

.site-header {
  padding-top: 0;
}

.site-sidebar {
  position: sticky;
  top: 1.5rem;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.2rem 1rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-name,
.site-nav a,
.theme-toggle,
.eyebrow,
.section-kicker,
.fact-label,
.date-label {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.02em;
}

.site-name {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.theme-toggle svg {
  width: 0.82rem;
  height: 0.82rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sun {
  display: none;
}

.icon-moon {
  display: inline-flex;
}

body.dark .icon-sun {
  display: inline-flex;
}

body.dark .icon-moon {
  display: none;
}

.hero {
  position: relative;
  display: block;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  text-align: center;
}

.hero-toggle {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2.1rem, 3.55vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: none;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.fact-label,
.date-label {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fact-value {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.content {
  padding: 1.5rem 0 0;
}

.facts-grid,
.people-grid {
  display: grid;
  gap: 1rem;
}

.facts-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.fact-card,
.content-section {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.fact-card {
  padding: 1.2rem;
}

.fact-detail {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.content-section {
  padding: 1.6rem;
  margin-bottom: 1rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 180px;
  align-items: center;
  margin-bottom: 1.2rem;
}

.section-kicker {
  grid-column: 1;
  justify-self: start;
  margin-bottom: 0;
}

.content-section h2 {
  grid-column: 2;
  text-align: center;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.prose p {
  margin: 0;
  max-width: none;
  font-size: 1.04rem;
}

.prose p + p {
  margin-top: 1rem;
}

.topic-list {
  margin: 0;
  padding-left: 1.2rem;
}

.topic-list li + li {
  margin-top: 0.7rem;
}

.topic-sublist {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
}

.topic-sublist li + li {
  margin-top: 0.45rem;
}

.inline-note {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.person-card,
.contact-callout {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-strong);
}

.person-card p,
.contact-callout p {
  margin: 0;
}

.contact-callout {
  margin-bottom: 1rem;
  text-align: center;
}

.contact-callout-label {
  margin-bottom: 0.45rem !important;
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.contact-callout-link {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-callout-text {
  color: var(--muted);
  font-size: 0.98rem;
}

.dates-list {
  border-top: 1px solid var(--border);
}

.date-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.date-value {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
}

.people-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.person-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.person-card p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

@media (max-width: 920px) {
  .page-shell,
  .hero,
  .facts-grid,
  .people-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    position: static;
  }

  .sidebar-inner {
    gap: 1rem;
  }

  .site-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero h1 {
    max-width: none;
  }

  .section-kicker,
  .content-section h2 {
    grid-column: auto;
    text-align: center;
    justify-self: center;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: calc(100% - 1.4rem);
    padding-top: 0.9rem;
    gap: 1rem;
  }

  .site-nav {
    gap: 0.75rem;
  }

  .hero,
  .content-section {
    padding: 1.2rem;
    border-radius: 20px;
  }

  .date-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}
