:root {
  color-scheme: dark;
  --ink: #ecf8f2;
  --muted: #97b9ab;
  --dim: #66897b;
  --accent: #55f2b3;
  --accent-strong: #8fffd1;
  --surface: #0a211a;
  --surface-soft: #0d2a21;
  --line: #1e4d3d;
  --canvas: #03110d;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 12%, rgb(25 103 77 / 24%), transparent 34rem),
    linear-gradient(145deg, #020c09 0%, var(--canvas) 52%, #061c15 100%);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover {
  color: var(--accent-strong);
}

a:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 5px;
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(30 77 61 / 62%);
}

.wordmark {
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

main {
  flex: 1;
  padding: clamp(72px, 11vw, 148px) 0 80px;
}

.hero {
  width: min(850px, 100%);
}

.hero-compact {
  width: min(760px, 100%);
}

.eyebrow,
.card-label {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

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

h1 {
  max-width: 14ch;
  margin-bottom: 28px;
  font-size: clamp(3.5rem, 9vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: -0.068em;
}

.hero-compact h1 {
  max-width: 13ch;
  font-size: clamp(3.2rem, 7vw, 6rem);
}

.lede {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.source-card {
  margin-top: clamp(64px, 9vw, 112px);
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(280px, 1.3fr);
  gap: 42px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgb(13 42 33 / 94%), rgb(6 28 21 / 94%));
  box-shadow: 0 24px 80px rgb(0 0 0 / 24%);
}

.source-card h2,
.policy-grid h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
}

.source-card .card-label,
.policy-grid .card-label {
  margin-bottom: 12px;
  color: var(--dim);
}

.source-copy p,
.policy-grid p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.detail-link,
.back-link a {
  display: inline-block;
  margin-top: 10px;
  font-weight: 750;
}

.boundary {
  margin-top: 28px;
  padding: 18px 22px;
  display: flex;
  align-items: baseline;
  gap: 20px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}

.boundary span {
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.boundary p {
  margin-bottom: 0;
  line-height: 1.6;
}

.policy-grid {
  margin-top: clamp(62px, 9vw, 108px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.policy-grid article {
  min-height: 290px;
  padding: 34px 30px 30px 0;
}

.policy-grid article + article {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.back-link {
  margin-top: 42px;
}

.not-found {
  display: flex;
  min-height: 62vh;
  flex-direction: column;
  justify-content: center;
  padding-top: 20px;
}

.not-found h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
}

footer {
  padding: 28px 0 38px;
  border-top: 1px solid rgb(30 77 61 / 62%);
  color: var(--dim);
  font-size: 0.82rem;
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: 76px;
  }

  main {
    padding-top: 64px;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5.4rem);
  }

  .source-card,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .source-card {
    gap: 22px;
  }

  .policy-grid article,
  .policy-grid article + article {
    min-height: 0;
    padding: 30px 0;
    border-left: 0;
  }

  .policy-grid article + article {
    border-top: 1px solid var(--line);
  }

  .boundary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
