:root {
  --sand: #efe2cc;
  --foam: #f5fbfa;
  --sea: #0f5d67;
  --deep-sea: #093a46;
  --forest: #29543f;
  --moss: #628c63;
  --clay: #b8704d;
  --ink: #142222;
  --muted: #4f6764;
  --panel: rgba(245, 251, 250, 0.9);
  --line: rgba(20, 34, 34, 0.11);
  --shadow: 0 22px 60px rgba(7, 40, 46, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(98, 140, 99, 0.24), transparent 28rem),
    radial-gradient(circle at top right, rgba(184, 112, 77, 0.18), transparent 24rem),
    linear-gradient(180deg, #f8f1e6 0%, #eef7f4 45%, #e6f1ee 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 22rem;
  height: 22rem;
  left: -6rem;
  bottom: -8rem;
  border-radius: 50%;
  background: rgba(15, 93, 103, 0.08);
  filter: blur(6px);
}

body::after {
  width: 28rem;
  height: 10rem;
  right: -8rem;
  top: 8rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(15, 93, 103, 0.08), rgba(41, 84, 63, 0.02));
  transform: rotate(-18deg);
}

a {
  color: var(--deep-sea);
  text-underline-offset: 0.16em;
}

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

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 78rem;
  margin: 0 auto;
  padding: 2rem 1.2rem 3rem;
}

.hero,
.panel {
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  background: var(--panel);
  backdrop-filter: blur(12px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr);
  gap: 1.5rem;
  border-radius: 1.8rem;
  padding: 1.8rem;
}

.lang-switch {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem 0.85rem;
}

.lang-switch-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--deep-sea);
}

.lang-btn.is-active {
  background: rgba(15, 93, 103, 0.14);
  color: var(--deep-sea);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
}

.lang-sep {
  color: var(--line);
  font-weight: 700;
}

.hero-copy h1,
.panel h2,
.matrix-card h3,
.info-card h3,
.research-card h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  line-height: 1.02;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
}

.lede,
.section-note,
.info-card p,
.research-card p,
.source-line,
.status-card p,
.hero-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.lede {
  margin-top: 1rem;
  max-width: 56ch;
  font-size: 1.02rem;
}

.hero-meta {
  display: grid;
  gap: 1rem;
}

.status-card,
.metric-card,
.info-card,
.matrix-card,
.research-card {
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.status-card {
  padding: 1rem 1rem 1.05rem;
}

.status-pill,
.tag,
.inline-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.status-pill {
  padding: 0.38rem 0.72rem;
  background: rgba(15, 93, 103, 0.12);
  color: var(--deep-sea);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-card p {
  margin-top: 0.8rem;
}

.metric-grid,
.institution-grid,
.matrix-grid,
.research-grid,
.source-columns {
  display: grid;
  gap: 1rem;
}

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

.metric-card {
  padding: 1rem 0.9rem;
  text-align: center;
}

.metric-value {
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 2rem;
  color: var(--forest);
}

.metric-label {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.panel {
  margin-top: 1.4rem;
  border-radius: 1.6rem;
  padding: 1.4rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: end;
  margin-bottom: 1.2rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--forest);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.section-note {
  max-width: 36ch;
  font-size: 0.95rem;
}

.inline-chip {
  padding: 0.16rem 0.5rem;
  background: rgba(41, 84, 63, 0.08);
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 700;
}

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

.info-card,
.research-card {
  padding: 1rem;
}

.info-card h3,
.research-card h3,
.matrix-card h3 {
  font-size: 1.28rem;
  letter-spacing: -0.025em;
}

.info-card p,
.research-card p {
  margin-top: 0.6rem;
}

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

.matrix-card {
  padding: 1rem;
}

.matrix-head {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.tag {
  width: fit-content;
  padding: 0.26rem 0.62rem;
  background: rgba(184, 112, 77, 0.12);
  color: #7d472b;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fact-list {
  margin: 0;
}

.fact-list div + div {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.fact-list dt {
  margin: 0;
  color: var(--deep-sea);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.source-line {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

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

.chip-row {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.8rem;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  background: rgba(98, 140, 99, 0.11);
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.source-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.source-list li + li {
  margin-top: 0.75rem;
}

@media (max-width: 960px) {
  .hero,
  .section-head,
  .institution-grid,
  .matrix-grid,
  .research-grid,
  .source-columns {
    grid-template-columns: 1fr;
  }

  .hero,
  .section-head {
    display: grid;
  }

  .section-head {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 1rem 0.8rem 2rem;
  }

  .hero,
  .panel {
    padding: 1rem;
    border-radius: 1.2rem;
  }

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

  .hero-copy h1 {
    max-width: 10ch;
  }
}
