:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --text: #1f2723;
  --muted: #65716b;
  --line: #dce4df;
  --green-dark: #214f45;
  --blue: #244b73;
  --gold: #a67316;
  --shadow: 0 18px 55px rgba(31, 39, 35, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  color: var(--green-dark);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

nav a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

main {
  padding-bottom: 64px;
}

.hero {
  max-width: 900px;
  padding: 72px 0 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-size: 1.45rem;
  line-height: 1.18;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-actions,
.card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--green-dark);
  color: white;
  font-weight: 750;
  text-decoration: none;
}

.button.secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--green-dark);
}

.summary-grid,
.section-grid,
.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

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

.metric-panel,
.panel,
.opportunity-card,
.list-surface {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-panel,
.panel,
.opportunity-card {
  padding: 28px;
}

.metric-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.metric-panel strong {
  display: block;
  margin: 4px 0 8px;
  color: var(--green-dark);
  font-size: 2rem;
  line-height: 1;
}

.metric-panel p,
.panel p,
.opportunity-card p {
  color: var(--muted);
}

.paper-section {
  margin: 52px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > a {
  color: var(--blue);
  font-weight: 750;
  white-space: nowrap;
}

.archive-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.archive-row:last-child {
  border-bottom: 0;
}

.archive-row span,
.archive-row strong,
.paper-date {
  font-weight: 750;
}

.archive-row span,
.paper-date {
  color: var(--blue);
}

.archive-row strong {
  color: var(--muted);
}

.opportunity-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.score-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e9efe9;
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.score-high {
  background: #dfeee6;
  color: var(--green-dark);
}

.score-mid {
  background: #f2e6c8;
  color: #6f4c12;
}

.link-list {
  padding-left: 20px;
}

.link-list li {
  margin: 14px 0;
}

.link-list span {
  display: block;
  color: var(--muted);
}

.site-footer {
  padding: 32px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
  }

  .summary-grid,
  .section-grid,
  .opportunity-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 64px;
  }

  .archive-row,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
