:root {
  --paper: #f6f8f5;
  --surface: #ffffff;
  --surface-muted: #eaf1ed;
  --ink: #16211e;
  --muted: #58635e;
  --line: #d4ddd7;
  --teal: #176c65;
  --rust: #ae4d36;
  --blue: #335f99;
  --night: #102421;
  --shell: min(1120px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(212, 221, 215, 0.95);
  background: rgba(246, 248, 245, 0.94);
  backdrop-filter: blur(12px);
}

.wordmark {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1.35rem;
  font-size: 0.9rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--teal);
}

.hero {
  position: relative;
  display: grid;
  min-height: 660px;
  overflow: hidden;
  background: var(--night);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 72% center;
  opacity: 0.54;
}

.hero-shade {
  background: rgba(10, 33, 29, 0.67);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 112px 0 96px;
  color: #f7fbf8;
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .kicker {
  color: #b9d7cf;
}

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

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.1;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.2rem;
  font-size: clamp(3.1rem, 7vw, 6.7rem);
  font-weight: 720;
}

h2 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  font-weight: 700;
}

.hero-deck {
  max-width: 760px;
  margin-bottom: 1.15rem;
  font-size: 1.32rem;
  line-height: 1.55;
}

.research-disclosure {
  max-width: 700px;
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 3px solid #bfded5;
  color: #e4eeea;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: #eef8f4;
  color: #12342e;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffffff;
}

.button-secondary {
  border-color: rgba(238, 248, 244, 0.72);
  color: #eef8f4;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(238, 248, 244, 0.12);
}

.band {
  padding: 96px 0;
}

.band-muted {
  background: var(--surface-muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.25rem;
}

.section-heading > p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.project-grid,
.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card,
.route {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(20, 35, 31, 0.04);
}

.project-card-header,
.project-links {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.project-status,
.route span {
  margin: 0;
  color: var(--rust);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-source {
  color: var(--teal);
  font-size: 0.84rem;
}

.project-card h3,
.route strong {
  display: block;
  margin: 0.65rem 0 0.8rem;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.28;
}

.project-card p,
.route p {
  margin-bottom: 1rem;
}

.project-note {
  margin-top: auto !important;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-links {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 0.65rem;
  font-size: 0.9rem;
}

.project-links a,
.text-link {
  color: var(--teal);
  font-weight: 650;
  text-underline-offset: 0.18em;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 5rem;
}

.record-copy {
  max-width: 600px;
  font-size: 1.1rem;
}

.record-copy p {
  color: var(--muted);
}

.route {
  min-height: 205px;
  color: inherit;
  text-decoration: none;
}

.route:hover,
.route:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 14px 32px rgba(20, 35, 31, 0.09);
}

.route p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fbfcfa;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 96px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--teal);
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 32px, 1120px);
  }

  .site-header {
    min-height: 56px;
    padding: 0 16px;
  }

  .site-header nav {
    gap: 0.8rem;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 610px;
  }

  .hero-content {
    padding: 96px 0 72px;
  }

  .hero-image {
    object-position: 66% center;
  }

  .hero-shade {
    background: rgba(10, 33, 29, 0.76);
  }

  .hero-deck {
    font-size: 1.1rem;
  }

  .band {
    padding: 64px 0;
  }

  .project-grid,
  .route-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .split-layout {
    gap: 1.5rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem 0;
  }
}

/* Evidence strip -- figures published by the REE Assembly governance run.
   Lives in site.css, NOT public-shell-v1.css: the shell is a versioned
   compatibility surface and the design contract permits only backward-
   compatible changes there. This is a site-specific addition. */

.evidence-strip {
  margin-top: 1.25rem;
}

.evidence-strip-note {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.evidence-strip-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.evidence-strip-item {
  flex: 1 1 150px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.evidence-strip-value {
  display: block;
  color: var(--teal);
  font-size: 1.45rem;
  line-height: 1.1;
}

.evidence-strip-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.evidence-strip-sub {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .evidence-strip-item {
    flex: 1 1 128px;
    padding: 0.65rem 0.75rem;
  }

  .evidence-strip-value {
    font-size: 1.25rem;
  }
}

/* Light hero with the shared latent-field motif: same file, opacity and fade as the
   REE home hero (2026-10-01, visual continuity across the two sites). */
.hero {
  min-height: 560px;
  background: #f4f7f2;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  left: auto;
  right: 0;
  width: min(58vw, 680px);
  object-position: center;
  opacity: 0.9;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(246, 248, 245, 0.98) 0%, rgba(246, 248, 245, 0.92) 50%, rgba(246, 248, 245, 0.54) 100%);
}

.hero-content {
  color: var(--ink);
  padding: 96px 0 80px;
}

.hero .kicker {
  color: var(--rust);
}

.research-disclosure {
  border-left-color: var(--rust);
  color: var(--ink);
}

.button-primary {
  background: var(--teal);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #12524c;
}

.button-secondary {
  border-color: var(--teal);
  color: var(--teal);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--surface-muted);
}

.hero-deck,
.research-disclosure,
.section-heading > p,
.project-card p,
.route p {
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
}
