:root {
  color-scheme: dark;
  --navy: #032d42;
  --green: #63df4e;
  --green-hover: #52d43c;
  --panel: #103e50;
  --teal: #14697a;
  --surface: #f7faf9;
  --card: #0a384c;
  --border: rgba(185, 205, 212, 0.22);
  --text: #f7faf9;
  --muted: #b9cdd4;
  --ink-on-green: #032d42;
  --shadow: 0 18px 40px rgba(3, 45, 66, 0.35);
  --radius: 16px;
  --sans: "Manrope", "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --mono: "DM Mono", ui-monospace, "Cascadia Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  background:
    radial-gradient(900px 320px at 12% -60px, rgba(20, 105, 122, 0.45), transparent 70%),
    radial-gradient(700px 280px at 100% 0%, rgba(99, 223, 78, 0.12), transparent 55%),
    var(--navy);
}
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #ffffff; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
::selection { background: #c8f5bf; color: var(--navy); }

.wrap {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(3, 45, 66, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--teal) 48%, var(--green) 100%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a1a;
}
.wordmark {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.wordmark span { color: var(--green); }

nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
nav a[aria-current="page"],
nav a:hover { color: #fff; }

.x-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 0 2.5rem;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  color: #fff;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
.lede {
  max-width: 42ch;
  color: var(--muted);
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  color: var(--ink-on-green);
  background: var(--green);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: var(--ink-on-green);
}
.btn-ghost {
  color: #fff;
  background: transparent;
  border-color: var(--muted);
}
.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.portrait {
  display: grid;
  place-items: end center;
  min-height: 320px;
}
.portrait img {
  width: min(100%, 380px);
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.35));
}

.band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0.5rem 0 2.5rem;
  background: rgba(16, 62, 80, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat {
  padding: 1.4rem 1.3rem;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.stat span { color: var(--muted); font-size: 0.92rem; }

.section { padding: 1rem 0 3.5rem; }
.section-head { margin-bottom: 1.4rem; }
.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 1.2rem 1.25rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 223, 78, 0.45);
  color: inherit;
}
.chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.55rem;
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.card .meta {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.article {
  width: min(740px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}
.article .byline {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.article h1 { font-size: clamp(2rem, 5vw, 3rem); }
.article h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}
.article p { color: #e7f1f3; }
.article .lede { color: var(--muted); max-width: none; }
.article .sources {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.article .sources li { margin-bottom: 0.45rem; color: var(--muted); font-size: 0.92rem; }
.x-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.1rem;
  background: rgba(16, 62, 80, 0.75);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.site-footer {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--green); }

@media (max-width: 800px) {
  .hero, .band { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  nav { display: none; }
  .portrait { order: -1; min-height: 220px; }
  .portrait img { width: min(100%, 260px); }
}
