:root {
  --paper: #f7f8f4;
  --white: #ffffff;
  --ink: #102f24;
  --muted: #52635b;
  --forest: #173b2d;
  --green: #26754b;
  --mint: #e6eee5;
  --border: #d3ded2;
  --thread: #765b76;
  --thread-pale: #eee8ee;
  --serif: "Crimson Pro", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --gutter: clamp(1.25rem, 4.2vw, 4.75rem);
  --max: 90rem;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}
a {
  color: inherit;
}
a:focus-visible {
  outline: 3px solid var(--thread);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--white);
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  min-height: 5.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.kernel-mark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px dashed var(--thread);
  font-family: var(--mono);
  font-size: 0.67rem;
}
nav {
  display: flex;
  gap: clamp(1rem, 2.6vw, 2.7rem);
}
nav a,
.owner-link {
  font-size: 0.76rem;
  font-weight: 650;
  text-decoration: none;
}
nav a:hover,
.owner-link:hover,
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}
.owner-link {
  justify-self: end;
}
main,
footer {
  max-width: var(--max);
  margin: 0 auto;
}
.hero {
  min-height: min(47rem, calc(100vh - 5.5rem));
  padding: clamp(4rem, 8vw, 8rem) var(--gutter);
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  overflow: hidden;
}
.eyebrow,
.section-number,
.footer-state,
.layer-type,
.console-head {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.eyebrow,
.section-number {
  color: var(--green);
  font-weight: 720;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  margin: 1.2rem 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(4rem, 7vw, 7.2rem);
  font-weight: 500;
  line-height: 0.84;
  letter-spacing: -0.052em;
}
.dek {
  max-width: 41rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.button {
  display: inline-block;
  padding: 0.8rem 1.1rem;
  background: var(--forest);
  border: 1px solid var(--forest);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 680;
  text-decoration: none;
}
.button:hover {
  background: var(--green);
  border-color: var(--green);
}
.text-link {
  font-size: 0.82rem;
  font-weight: 680;
  text-decoration: none;
}
.garment-system {
  position: relative;
  min-height: 34rem;
  background-color: var(--mint);
  background-image:
    linear-gradient(rgba(38, 117, 75, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 117, 75, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--border);
}
.garment-system svg {
  position: absolute;
  inset: 5% 8%;
  width: 84%;
  height: 84%;
}
.shirt {
  fill: rgba(255, 255, 255, 0.86);
  stroke: var(--forest);
  stroke-width: 2;
}
.seam {
  fill: none;
  stroke: var(--thread);
  stroke-width: 2;
  stroke-dasharray: 7 5;
}
.trace {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
}
.node {
  fill: var(--thread);
  stroke: var(--white);
  stroke-width: 3;
}
.layer-label {
  position: absolute;
  padding: 0.45rem 0.6rem;
  background: var(--paper);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.63rem;
}
.layer-label span {
  color: var(--green);
  margin-right: 0.4rem;
}
.label-one {
  top: 8%;
  left: 4%;
}
.label-two {
  top: 33%;
  right: 4%;
}
.label-three {
  top: 60%;
  left: 4%;
}
.label-four {
  bottom: 8%;
  right: 4%;
}
.rule-top {
  border-top: 1px solid var(--border);
}
.manifesto,
.prototype,
.network {
  padding: clamp(4rem, 7vw, 7rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(8rem, 0.34fr) minmax(0, 1fr);
  gap: 3rem;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.manifesto > div > p {
  max-width: 44rem;
  margin: 2rem 0 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
}
.layers,
.seam-map {
  padding: clamp(4rem, 7vw, 7rem) var(--gutter);
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(8rem, 0.34fr) minmax(0, 0.7fr) minmax(
      15rem,
      0.45fr
    );
  gap: 3rem;
  align-items: start;
}
.section-heading h2 {
  font-size: clamp(2.5rem, 4vw, 4.2rem);
}
.section-heading > p:last-child {
  color: var(--muted);
}
.layer-list {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}
.layer-list article {
  display: grid;
  grid-template-columns: 4rem 0.65fr 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.layer-index {
  font-family: var(--mono);
  color: var(--green);
  font-size: 0.7rem;
}
.layer-type {
  color: var(--thread);
}
.layer-list h3 {
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 550;
  line-height: 1;
}
.layer-list article > p {
  margin: 0;
  color: var(--muted);
}
.compact {
  grid-template-columns: minmax(8rem, 0.34fr) 1fr;
}
.seam-console {
  margin: 4rem 0 0 20%;
  background: var(--forest);
  color: var(--white);
  box-shadow: 1.5rem 1.5rem 0 var(--thread-pale);
}
.console-head {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  color: #a7d8b7;
}
.console-row {
  display: grid;
  grid-template-columns: 1fr auto 0.55fr 0.75fr;
  gap: 1.5rem;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  align-items: center;
}
.console-row code {
  color: #d9c8da;
  font-family: var(--mono);
  font-size: 0.78rem;
}
.console-row span {
  color: #a7d8b7;
}
.console-row strong {
  font-size: 0.82rem;
}
.console-row em {
  color: #cbd8d1;
  font-size: 0.74rem;
  font-style: normal;
}
.prototype {
  background: var(--thread-pale);
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 7vw, 8rem);
}
.prototype h2,
.network h2 {
  margin-top: 1rem;
}
.prototype-copy > p:last-child,
.network > div > p:last-child {
  color: var(--muted);
}
.prototype-grid {
  border-top: 1px solid rgba(118, 91, 118, 0.28);
}
.prototype-grid article {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(118, 91, 118, 0.28);
}
.state-dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.37rem;
  border-radius: 50%;
  background: var(--green);
}
.state-dot.research {
  background: var(--thread);
}
.state-dot.absent {
  background: var(--muted);
}
.prototype-grid h3 {
  margin: 0;
  font-size: 0.82rem;
}
.prototype-grid p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.network {
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 7vw, 8rem);
}
.network-links {
  border-top: 1px solid var(--border);
}
.network-links a {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 680;
  text-decoration: none;
}
.network-links a:hover {
  padding-left: 0.5rem;
  color: var(--green);
}
.network-links span {
  color: var(--muted);
  font-weight: 450;
  text-align: right;
}
footer {
  display: grid;
  grid-template-columns: 0.55fr 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--border);
}
footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}
.footer-state {
  text-align: right;
}
.not-found {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.3rem;
  padding: var(--gutter);
}
.not-found h1 {
  max-width: 58rem;
  margin: 0;
}
.not-found p {
  max-width: 36rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .garment-system {
    max-width: 40rem;
    min-height: 31rem;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .compact {
    grid-template-columns: 1fr;
  }
  .seam-console {
    margin-left: 0;
  }
  .prototype,
  .network {
    grid-template-columns: 1fr;
  }
  footer {
    grid-template-columns: 1fr;
  }
  .footer-state {
    text-align: left;
  }
}
@media (max-width: 520px) {
  .site-header {
    min-height: 4.5rem;
    gap: 0.75rem;
  }
  .owner-link {
    font-size: 0.68rem;
  }
  h1 {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }
  .hero {
    padding-top: 4rem;
  }
  .garment-system {
    min-height: 25rem;
  }
  .layer-label {
    font-size: 0.54rem;
  }
  .manifesto {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .layer-list article {
    grid-template-columns: 2rem 1fr;
    gap: 1rem;
  }
  .layer-list article > p {
    grid-column: 2;
  }
  .console-row {
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
  }
  .console-row strong,
  .console-row em {
    grid-column: 1;
  }
  .console-row em {
    grid-column: 2;
    grid-row: 2 / span 2;
  }
  .network-links a {
    display: block;
  }
  .network-links span {
    display: block;
    margin-top: 0.2rem;
    text-align: left;
  }
}
@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;
  }
}
