@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,500;9..144,700&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #1b1b1f;
  --muted: #5a5a66;
  --paper: #f8f4ec;
  --paper-2: #efe8dd;
  --accent: #d96c3b;
  --accent-2: #276b7a;
  --accent-3: #8f3a2e;
  --dark: #15131a;
  --line: rgba(27, 27, 31, 0.14);
  --shadow: 0 24px 60px rgba(21, 19, 26, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #fdf9f2 0%, #f4eee4 55%, #efe4d7 100%);
  color: var(--ink);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(39, 107, 122, 0.12), rgba(217, 108, 59, 0.08));
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: -20% -10%;
  background: radial-gradient(circle at 20% 10%, rgba(217, 108, 59, 0.18), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(39, 107, 122, 0.18), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(143, 58, 46, 0.12), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(248, 244, 236, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Fraunces", serif;
}

.brand__title {
  font-size: 22px;
  letter-spacing: 0.5px;
}

.brand__subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--muted);
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav__links a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav__links a:hover,
.nav__links a.is-active {
  border-color: rgba(217, 108, 59, 0.4);
  background: rgba(217, 108, 59, 0.12);
}

.hero {
  padding: 64px 0 32px;
  position: relative;
}

.hero__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-2);
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(32px, 4vw, 56px);
  margin: 12px 0 16px;
  line-height: 1.05;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
}

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

.meta-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.65);
}

.section {
  padding: 32px 0;
}

.section h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(24px, 2.6vw, 34px);
  margin-bottom: 12px;
}

.section__lede {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 720px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat {
  padding: 18px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat__value {
  font-size: 22px;
  font-weight: 600;
}

.stat__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card__rank {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-2);
}

.card h3 {
  font-size: 18px;
  margin: 8px 0 6px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0;
}

.card__meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--dark);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

tr:last-child td {
  border-bottom: none;
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.figure {
  background: var(--paper);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.figure img,
.figure svg {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.figure figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.callout {
  padding: 20px;
  border-radius: 20px;
  background: var(--dark);
  color: #f6f1e8;
  box-shadow: var(--shadow);
}

.callout h3 {
  font-family: "Fraunces", serif;
  margin-top: 0;
}

.callout a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.note {
  background: rgba(39, 107, 122, 0.12);
  border-left: 4px solid var(--accent-2);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--dark);
}

.footer {
  margin-top: auto;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  background: rgba(248, 244, 236, 0.9);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.footer__title {
  font-family: "Fraunces", serif;
  font-size: 18px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.reveal {
  animation: rise 0.8s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .nav__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav__links {
    font-size: 12px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero p {
    font-size: 16px;
  }
}
