:root {
  --bg: #0c1110;
  --surface: #121a17;
  --surface-raised: #19241f;
  --text: #f2f5ef;
  --muted: #a8b4ab;
  --line: #2d3b34;
  --accent: #d4ff5f;
  --accent-ink: #182000;
  --warm: #ffca80;
  --max-width: 74rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgb(212 255 95 / 8%), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.25rem 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.72rem;
  letter-spacing: -0.03em;
}

nav {
  display: flex;
  gap: 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}

main,
footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.hero {
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(5rem, 9vw, 8rem);
}

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

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

h1 {
  max-width: 16ch;
  margin-bottom: 1.6rem;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  font-weight: 680;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

.hero-copy {
  max-width: 38rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.notice {
  max-width: 52rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--warm);
  border-radius: 0.35rem;
  background: rgb(255 202 128 / 5%);
  color: var(--muted);
}

.notice strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--muted);
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  max-width: 50rem;
  margin-bottom: 3rem;
}

.section-heading h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 4.1rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

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

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow li {
  min-height: 13rem;
  padding: 1.4rem;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.flow li:last-child {
  border-right: 0;
}

.step,
.contract-tag,
.artifact-status {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step {
  display: block;
  margin-bottom: 3.2rem;
  color: var(--accent);
  font-weight: 800;
}

.flow h3,
.contract-card h3,
.boundary-grid h3 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.flow p,
.contract-card p,
.boundary-grid li {
  color: var(--muted);
}

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

.contract-card {
  display: flex;
  min-height: 21rem;
  padding: 1.5rem;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
}

.accent-card {
  border-color: rgb(212 255 95 / 42%);
}

.contract-meta {
  display: flex;
  margin-bottom: 4rem;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.contract-tag {
  color: var(--accent);
  font-weight: 800;
}

.artifact-status {
  color: var(--muted);
}

.contract-card p {
  margin-bottom: 2rem;
}

.contract-card > a {
  margin-top: auto;
  font-weight: 700;
}

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

.boundary-grid article {
  padding: 1.5rem;
  border-top: 2px solid var(--accent);
  background: var(--surface);
}

.boundary-grid ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.boundary-grid li + li {
  margin-top: 0.65rem;
}

blockquote {
  max-width: 46rem;
  margin: 4rem 0 0 auto;
  padding: 0 0 0 1.5rem;
  border-left: 3px solid var(--warm);
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 520;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

footer {
  display: flex;
  padding: 2rem 0 3rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

@media (max-width: 52rem) {
  .flow,
  .contract-grid,
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .flow li {
    min-height: auto;
    border-right: 0;
  }

  .step {
    margin-bottom: 1.5rem;
  }

  .contract-card {
    min-height: 18rem;
  }
}

@media (max-width: 38rem) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    display: grid;
    gap: 0.3rem;
    text-align: right;
  }

  .wordmark > span:last-child {
    max-width: 7rem;
    line-height: 1.1;
  }

  footer {
    gap: 1rem;
    flex-direction: column;
  }
}

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

  .button {
    transition: none;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5ee;
    --surface: #e9ede4;
    --surface-raised: #f9faf4;
    --text: #162019;
    --muted: #58655b;
    --line: #ccd4c9;
    --accent: #537400;
    --accent-ink: #f7ffe5;
    --warm: #a85800;
  }

  body {
    background:
      radial-gradient(circle at 80% 0%, rgb(83 116 0 / 8%), transparent 30rem),
      var(--bg);
  }
}
