@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  --void: #000000;
  --paper: #ecebe6;
  --mist: #b5b4ae;
  --graphite: #8c8c88;
  --wire: #2b2b29;
  --signal: #ffb000;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 3.2vw, 44px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--void);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
}

::selection {
  background: var(--signal);
  color: var(--void);
}

a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Masthead */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.wordmark__mark {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.masthead__mail {
  color: var(--graphite);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.masthead__mail:hover {
  color: var(--paper);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: var(--gutter);
  align-content: center;
  padding: 3vh 0 5vh;
}

.intro {
  grid-column: 1 / span 6;
  grid-row: 1;
  align-self: end;
}

.stack {
  grid-column: 7 / -1;
  grid-row: 1 / span 2;
  align-self: center;
  height: min(74vh, 700px);
  min-height: 460px;
  margin: 0;
}

.stack canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.layers {
  grid-column: 1 / span 6;
  grid-row: 2;
  align-self: start;
  margin-top: 52px;
}

h1 {
  max-width: 14ch;
  margin: 0 0 26px;
  font-size: clamp(2.5rem, 1.25rem + 3.6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  margin: 0;
  color: var(--mist);
  font-size: 1.125rem;
  line-height: 1.6;
}

.cta {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 20px 15px;
  border-radius: 2px;
  background: var(--paper);
  color: var(--void);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cta:hover {
  background: var(--signal);
}

/* Capability list mirrors the stack, top to bottom */

.layer-list {
  max-width: 34rem;
  margin: 0;
  border-top: 1px solid var(--wire);
}

.layer {
  display: grid;
  grid-template-columns: 14px 8.5rem 1fr;
  column-gap: 14px;
  align-items: baseline;
  padding: 12px 0 13px;
  border-bottom: 1px solid var(--wire);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.layer::before {
  content: "";
  align-self: center;
  width: 7px;
  height: 7px;
  background: var(--wire);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.layer--audit::before {
  width: 14px;
  height: 2px;
}

.layer:hover::before {
  background: var(--paper);
}

.layer[data-lit]::before,
.layer--audit:hover::before {
  background: var(--signal);
  box-shadow: 0 0 10px rgba(255, 176, 0, 0.55);
}

.layer dt {
  font-weight: 500;
}

.layer dd {
  margin: 0;
  color: var(--graphite);
}

/* Footer */

.colophon {
  padding: 22px 0 26px;
  color: var(--graphite);
  font-size: 0.8125rem;
}

/* 404 */

.missing {
  align-self: center;
  max-width: 34rem;
}

.missing p {
  margin: 0;
  color: var(--mist);
  font-size: 1.125rem;
  line-height: 1.6;
}

.missing a {
  color: var(--paper);
  text-underline-offset: 3px;
}

/* Narrow screens: text, then the stack, then the list */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 4vh;
  }

  .intro,
  .layers,
  .stack {
    grid-column: 1;
  }

  .intro {
    grid-row: 1;
  }

  .stack {
    grid-row: 2;
    height: 380px;
    min-height: 0;
    margin-top: 12px;
  }

  .layers {
    grid-row: 3;
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  .masthead__mail {
    font-size: 0.875rem;
  }

  .lede {
    font-size: 1.0625rem;
  }

  .stack {
    height: 320px;
  }

  .layer {
    grid-template-columns: 14px 1fr;
    row-gap: 2px;
  }

  .layer dd {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
