:root {
  --max: 1060px;
  --text: #17202a;
  --muted: #576574;
  --border: #dfe7ef;
  --bg: #f5f1e8;
  --card: #fffdf8;
  --accent: #0f6b5f;
  --accent-soft: #dff2ec;
  --shadow: 0 14px 30px rgba(23, 32, 42, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 107, 95, 0.12), transparent 28%),
    linear-gradient(180deg, #fbf8f1 0%, var(--bg) 100%);
  font: 16px/1.65 Georgia, "Times New Roman", serif;
}

.container {
  max-width: var(--max);
  padding: 0 20px;
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid rgba(223, 231, 239, 0.9);
  padding: 22px 0 18px;
  backdrop-filter: blur(6px);
}

.brand-title {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 4px;
  max-width: 760px;
}

.nav {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.92rem;
  background: rgba(255, 253, 248, 0.72);
}

.nav-link:hover {
  background: var(--accent-soft);
  border-color: rgba(15, 107, 95, 0.28);
}

.content {
  padding: 36px 0 52px;
}

h1, h2, h3 {
  line-height: 1.25;
  margin: 22px 0 12px;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  margin-top: 0;
}

h2 {
  font-size: 1.7rem;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 34px;
}

h3 { font-size: 1.15rem; }

p, li { font-size: 1.02rem; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover { color: #0a4d44; }

ul { padding-left: 18px; }

li { margin: 8px 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 26px;
  align-items: start;
}

.profile-page {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.profile-sidebar {
  position: sticky;
  top: 24px;
}

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

.content-block:first-child h2 {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.16rem;
}

.hero-card,
.info-card,
.callout {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-card,
.info-card,
.callout {
  padding: 18px;
}

.profile-photo {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  margin: 0 auto 18px;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--accent);
}

.button:hover {
  color: #fff;
  background: #0b584e;
}

.button-secondary {
  background: transparent;
  color: var(--accent);
}

.button-secondary:hover {
  color: #fff;
}

.stat-grid,
.card-grid {
  display: grid;
  gap: 14px;
}

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

.stat-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #f9f6ef);
}

.stat-card strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.section-nav a {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  text-decoration: none;
}

.content-block {
  margin-bottom: 18px;
}

.section-subtitle {
  margin-top: 0;
  color: var(--muted);
  max-width: 860px;
}

.contribution-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.contribution-item h3,
.callout h3 {
  margin-top: 0;
}

.engagement-table {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  margin-top: 16px;
}

.engagement-row {
  display: grid;
  grid-template-columns: 120px minmax(220px, 1.1fr) minmax(0, 1.4fr);
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.engagement-row:first-child {
  border-top: 0;
}

.engagement-head {
  font-weight: 700;
  background: var(--accent-soft);
}

.kv {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 10px 18px;
  margin: 16px 0 0;
}

.kv div:nth-child(odd) { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 28px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-line a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-line a:hover { border-bottom-color: var(--muted); }

@media (max-width: 820px) {
  .profile-page,
  .hero,
  .card-grid,
  .kv,
  .engagement-row {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }

  .content {
    padding-top: 28px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }
}
