:root {
  --ink: #172128;
  --muted: #53616a;
  --paper: #f6f8f7;
  --surface: #ffffff;
  --line: #ccd8da;
  --atlas: #087f8c;
  --atlas-dark: #075d67;
  --safe: #e6f5f2;
  --warn: #fff5d9;
  --shadow: 0 22px 60px rgba(23, 33, 40, 0.08);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(8, 127, 140, 0.08), transparent 28rem),
    var(--paper);
  font-size: 1rem;
  line-height: 1.65;
}

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

a:hover {
  color: var(--atlas);
}

a:focus-visible {
  outline: 3px solid rgba(8, 127, 140, 0.35);
  outline-offset: 4px;
  border-radius: 0.2rem;
}

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 20;
  padding: 0.65rem 0.9rem;
  color: white;
  background: var(--ink);
  border-radius: 0.4rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid rgba(83, 97, 106, 0.2);
  background: rgba(246, 248, 247, 0.92);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  color: white;
  background: var(--atlas);
  border-radius: 50% 50% 42% 58% / 55% 42% 58% 45%;
  font-size: 0.74rem;
  font-weight: 850;
  transform: rotate(-7deg);
}

.brand-mark span {
  transform: rotate(7deg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.45rem 0.65rem;
  color: var(--muted);
  border-radius: 0.45rem;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--ink);
  background: var(--surface);
}

main {
  min-height: 65vh;
}

.hero {
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.2rem, 7vw, 5.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 0.6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--atlas-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 790;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.lede {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.status-stack {
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.status-line:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.status-line span:first-child {
  color: var(--muted);
  font-size: 0.86rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.2rem 0.65rem;
  color: var(--atlas-dark);
  background: var(--safe);
  border: 1px solid rgba(8, 127, 140, 0.25);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-top: 1px solid rgba(83, 97, 106, 0.18);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.section-heading p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.card,
.policy-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
}

.card p,
.policy-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.boundary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  background: var(--ink);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.boundary-step {
  position: relative;
  min-height: 13rem;
  padding: 1.5rem;
  color: #edf6f5;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.boundary-step:last-child {
  border-right: 0;
}

.boundary-step::after {
  position: absolute;
  top: 50%;
  right: -0.45rem;
  z-index: 2;
  width: 0.8rem;
  height: 0.8rem;
  content: "";
  background: var(--atlas);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.boundary-step:last-child::after {
  display: none;
}

.boundary-step small {
  display: block;
  margin-bottom: 1.5rem;
  color: #8dd9dc;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.boundary-step p {
  margin: 0;
  color: #c6d5d8;
  font-size: 0.92rem;
}

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

.safe-panel {
  background: var(--safe);
  border-color: rgba(8, 127, 140, 0.25);
}

.warn-panel {
  background: var(--warn);
  border-color: #e7d39b;
}

.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-bottom: 1px solid rgba(83, 97, 106, 0.16);
}

.clean-list li:last-child {
  border-bottom: 0;
}

.clean-list li::before {
  position: absolute;
  left: 0;
  color: var(--atlas);
  content: "✓";
  font-weight: 800;
}

.prose {
  width: min(72ch, 100%);
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.prose h1 {
  max-width: 15ch;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

.prose h2 {
  margin-top: 3rem;
  font-size: 1.6rem;
}

.prose h3 {
  margin-top: 2rem;
}

.prose p,
.prose li {
  color: #3f4b52;
}

.prose .effective {
  margin-bottom: 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.notice {
  margin: 2rem 0;
  padding: 1rem 1.2rem;
  background: var(--warn);
  border: 1px solid #e7d39b;
  border-left: 0.35rem solid #c68a16;
  border-radius: 0.5rem;
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.scope-list code {
  display: block;
  padding: 0.65rem 0.8rem;
  overflow-wrap: anywhere;
  background: #e9efef;
  border-radius: 0.4rem;
  font-size: 0.82rem;
}

.site-footer {
  padding: 2.5rem 0;
  color: var(--muted);
  background: #e9eeee;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-grid p {
  max-width: 44rem;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .header-inner,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  .site-nav,
  .footer-links {
    justify-content: flex-start;
  }

  .hero-grid,
  .section-heading,
  .split {
    grid-template-columns: 1fr;
  }

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

  .boundary {
    grid-template-columns: 1fr 1fr;
  }

  .boundary-step:nth-child(2) {
    border-right: 0;
  }

  .boundary-step:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 540px) {
  .wrap {
    width: min(100% - 1.25rem, 1120px);
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding-inline: 0.45rem;
    font-size: 0.78rem;
  }

  .boundary,
  .scope-list {
    grid-template-columns: 1fr;
  }

  .boundary-step,
  .boundary-step:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .boundary-step:last-child {
    border-bottom: 0;
  }

  .boundary-step::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
