:root {
  --ink: #1d4835;
  --mint: #7ecea5;
  --brand: #21856a;
  --paper: #f4f6f4;
  --card: #ffffff;
  --muted: #5a6b62;
  --line: #d5e0d8;
  --page: #12261c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: var(--ink);
}

a:hover {
  color: #163928;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip:focus {
  width: auto;
  height: auto;
  clip: auto;
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--card);
  padding: 8px 12px;
}

.wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 8px;
}

.top img {
  height: 28px;
  width: auto;
}

.top.landing {
  justify-content: flex-end;
}

.top.bar {
  background: var(--brand);
  padding: 16px 32px;
}

.top.bar a {
  color: #fff;
}

.top.bar a:hover {
  color: #e8f6ef;
}

.logo-light {
  filter: brightness(0) invert(1);
}

.brand {
  display: flex;
  align-items: center;
  line-height: 0;
}

nav {
  display: flex;
  gap: 18px;
  font-size: 0.92rem;
}

nav a {
  text-decoration: none;
  font-weight: 550;
  padding: 8px 2px;
}

nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0c1a14 url("/hero-poster.jpg") center / cover no-repeat;
}

.stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 28, 22, 0.28) 0%, rgba(8, 18, 14, 0.72) 100%),
    linear-gradient(90deg, rgba(10, 22, 18, 0.55) 0%, rgba(10, 22, 18, 0.18) 55%, rgba(10, 22, 18, 0.4) 100%);
}

body.home {
  background: #0c1a14;
  color: #fff;
}

body.home a {
  color: #fff;
}

body.home a:hover {
  color: var(--mint);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 8vw 72px;
  max-width: 38rem;
}

.hero .eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero p {
  margin: 0;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

.doc {
  flex: 1;
  width: min(760px, calc(100% - 40px));
  margin: 8px auto 48px;
}

.doc h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
}

.doc .updated {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 28px;
}

.doc h2 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
}

.doc p,
.doc li {
  color: #24382e;
}

.doc ol,
.doc ul {
  padding-left: 1.2rem;
}

.doc li {
  margin: 0.35rem 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 28px 28px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer .entity {
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 4px;
}

.site-footer p {
  margin: 0 0 4px;
}

.site-footer .links {
  margin-top: 10px;
}

.site-footer .links a {
  margin-right: 14px;
  font-weight: 550;
  text-decoration: none;
}

.site-footer.on-media {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
  padding: 22px 8vw 28px;
}

.site-footer.on-media .entity {
  color: #fff;
}

.site-footer.on-media a {
  color: #fff;
}

@media (max-width: 640px) {
  .top {
    padding: 18px 18px 4px;
  }

  .top.bar {
    padding: 14px 18px;
  }

  .hero {
    padding: 40px 22px 48px;
  }

  .site-footer {
    padding: 18px;
  }

  .site-footer.on-media {
    padding: 18px 22px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage video {
    display: none;
  }
}
