:root {
  --bg: #f5f2ee;
  --bg-alt: #ebe4db;
  --surface: #ffffff;
  --ink: #101214;
  --muted: #525a61;
  --accent: #0b3c5d;
  --accent-2: #d98c2b;
  --line: #dcd3c7;
  --focus: #1a73e8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 18, 20, 0.08);
  --max: 1200px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 20% -10%, #fff8f0, transparent),
              linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: var(--surface);
  padding: var(--space-2) var(--space-3);
  border-radius: 8px;
  border: 2px solid var(--focus);
}
.skip-link:focus { left: var(--space-3); top: var(--space-3); z-index: 10; }

.container {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: 1rem;
}

.hero {
  padding: var(--space-7) 0 var(--space-6);
}

.brand {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.brand-logo {
  width: auto;
  height: auto;
  max-width: min(520px, 90vw);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

h1 {
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  margin: 0 0 var(--space-3);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
}

.hero-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.hero-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  display: grid;
  gap: var(--space-3);
}

.stat {
  display: grid;
  gap: 4px;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
}
.stat:last-child { border-bottom: none; }
.stat span { font-size: 1.6rem; font-weight: 700; color: var(--accent); }

.actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover { filter: brightness(1.05); text-decoration: none; }
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn.ghost:hover { background: rgba(11, 60, 93, 0.08); text-decoration: none; }

.quick-links { padding-bottom: var(--space-6); }

.main { padding-bottom: var(--space-7); }

.layout {
  display: grid;
  gap: var(--space-6);
}

.toc-box {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: var(--space-3);
  position: sticky;
  top: var(--space-3);
}
.toc-box summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box ul { list-style: none; padding: 0; margin: var(--space-2) 0 0; }
.toc-box li { margin-bottom: 8px; }

.section { padding: var(--space-5) 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: none; }

.section-header { margin-bottom: var(--space-4); }
.section-header h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 2.5vw, 2rem); }
.section-header p { margin: 0; color: var(--muted); }

.grid {
  display: grid;
  gap: var(--space-3);
}
.cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.card h3, .card h4 {
  margin: 0 0 8px;
}

.person-card {
  text-align: center;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-2);
  border: 3px solid #f2eee8;
}

.link-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.link-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 18, 20, 0.12); text-decoration: none; }

.list {
  padding-left: 1rem;
  margin: 0;
}
.list li { margin-bottom: 6px; }

.cols {
  columns: 2;
  column-gap: var(--space-5);
  padding-left: 1rem;
}
.cols li { break-inside: avoid; margin-bottom: 8px; }

.note {
  margin-top: var(--space-3);
  color: var(--muted);
}

.prose p { margin-top: 0; margin-bottom: 1rem; color: var(--muted); }

.stack { display: grid; gap: var(--space-2); }

.accordion {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.5rem 1rem;
}
.accordion summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.6rem 0;
}

.docs {
  padding-left: 1rem;
}
.docs li { margin-bottom: 8px; }

.footer {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #f9f7f3;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 2fr 1fr; }
  .layout { grid-template-columns: 260px 1fr; }
}

@media (max-width: 959px) {
  .toc-box { position: static; }
  .cols { columns: 1; }
}
