/* WARD/EN marketing site: the terminal's own palette and enclosure, without the WebGPU compositor. */
:root {
  --background: #06110b;
  --panel: #09150e;
  --foreground: #9de7ae;
  --bright: #c3ffca;
  --pale: #c1e7c5;
  --dim: #6caa7b;
  --muted: #87a48e;
  --quiet: #70957a;
  --line: #2b5036;
  --line-soft: #294233;
  --line-strong: #395640;
  --amber: #eed39a;
  --amber-glow: #e4b96480;
  --cyan: #9fd8d3;
  --violet: #bfb4e6;
  --blue: #9fbde6;
  --red: #e9a3a3;
  --font: 'Courier New', Courier, monospace;
  --gutter: clamp(18px, 4vw, 56px);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  background: #020604;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  text-shadow: 0 0 6px rgba(157, 231, 174, 0.28);
}
/* The screen: scanlines and a vignette over everything, never blocking the pointer. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0px,
      rgba(0, 0, 0, 0) 2px,
      rgba(0, 0, 0, 0.16) 3px
    ),
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0) 55%,
      rgba(0, 0, 0, 0.55) 100%
    );
}
a {
  color: var(--bright);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
p {
  margin: 0 0 1em;
}
h1,
h2,
h3 {
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--pale);
  margin: 0;
}
code,
pre {
  font-family: var(--font);
}
.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--quiet);
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--line-soft);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}
.tag[data-next] {
  color: var(--amber);
  border-color: var(--line-strong);
}
/* Enclosure: the terminal's frame around the page. */
.enclosure-top,
.enclosure-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px var(--gutter);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3f6b4b;
  background: #020604;
}
.enclosure-top span:last-child::before {
  content: '● ';
  color: var(--dim);
}
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 17, 11, 0.94);
  backdrop-filter: blur(4px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--bright);
  font-size: 18px;
}
.brand h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.1;
}
.brand h1 span {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--dim);
}
.brand p {
  margin: 2px 0 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--quiet);
}
.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.masthead nav a {
  color: var(--muted);
}
.masthead nav a:hover {
  color: var(--bright);
  text-decoration: none;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--pale);
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.button:hover {
  text-decoration: none;
  border-color: var(--dim);
  color: var(--bright);
}
.button[data-next-action] {
  color: var(--amber);
  text-shadow: 0 0 6px var(--amber-glow);
}
.button[data-next-action]:hover {
  color: #ffe7b4;
}
.button.large {
  padding: 14px 24px;
  font-size: 15px;
}
main {
  display: grid;
  gap: 0;
}
section {
  padding: clamp(40px, 7vw, 96px) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section-head h2 {
  font-size: clamp(22px, 2.6vw, 32px);
}
.section-head .tag {
  align-self: center;
}
/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-top: clamp(40px, 6vw, 80px);
}
.hero h2 {
  margin: 14px 0 18px;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.hero p.lead {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--foreground);
  max-width: 54ch;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 18px;
}
.hero .fine {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--quiet);
}
.bezel {
  position: relative;
  padding: 10px;
  border: 1px solid var(--line);
  background: #030906;
  box-shadow:
    0 0 0 1px #07100b,
    0 0 40px rgba(0, 0, 0, 0.6) inset;
}
.bezel img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.05) contrast(1.02);
}
.bezel figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
}
/* Panels and grids */
.grid {
  display: grid;
  gap: 18px;
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.panel {
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}
.panel h3 {
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.panel p {
  color: var(--muted);
  font-size: 14px;
}
.panel p:last-child {
  margin-bottom: 0;
}
.panel .eyebrow {
  margin-bottom: 8px;
}
/* The language */
.language {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
/* The debugger deserves the width: the frame first, the features in three columns under it. */
.bench {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}
.bench > div > p {
  margin-top: 0;
  max-width: 78ch;
}
.bench .features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.bench .features li {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-content: start;
}
.source {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  background: #04100a;
  font-size: 13.5px;
  line-height: 1.55;
  overflow-x: auto;
  color: var(--pale);
  text-shadow: none;
}
.source .file {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--quiet);
}
.source .k {
  color: var(--amber);
}
.source .c {
  color: var(--dim);
  font-style: italic;
}
.source .s {
  color: var(--bright);
}
.source .f {
  color: var(--foreground);
}
.source .a {
  color: var(--blue);
}
.source .i {
  color: var(--cyan);
}
.source .e {
  color: var(--violet);
}
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.features li {
  display: grid;
  /* One label column for the whole list, so every description starts on the same line. */
  grid-template-columns: 17ch minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.features li strong {
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--pale);
  white-space: nowrap;
}
/* Stations */
.stations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.station {
  display: grid;
  gap: 12px;
}
.station .bezel {
  padding: 6px;
}
.station h3 {
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.station h3 span {
  color: var(--quiet);
  margin-right: 10px;
}
.station p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
/* Telemetry: the log excerpt */
.log {
  margin: 0;
  padding: 16px 20px;
  border: 1px solid var(--line-soft);
  background: #04100a;
  font-size: 13px;
  line-height: 1.7;
  color: var(--foreground);
  overflow-x: auto;
  text-shadow: none;
}
.log .t {
  color: var(--quiet);
  margin-right: 12px;
}
.log .id {
  display: inline-block;
  padding: 0 4px;
  margin-right: 10px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11px;
}
.log .err {
  color: var(--red);
}
.log .warn {
  color: var(--amber);
}
/* Training */
.course {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.course ol {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.course li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  font-size: 13px;
}
.course li span {
  color: var(--quiet);
  letter-spacing: 0.1em;
}
.course li strong {
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--pale);
}
.course li small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
/* Requirements and closing */
.requirements {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.closing {
  text-align: center;
  padding-bottom: clamp(60px, 8vw, 120px);
}
.closing h2 {
  font-size: clamp(24px, 3vw, 40px);
  margin-bottom: 16px;
}
.closing p {
  color: var(--muted);
  max-width: 60ch;
  margin-inline: auto;
}
footer {
  padding: 22px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
}
footer a {
  color: var(--muted);
}
@media (max-width: 960px) {
  .hero,
  .language,
  .requirements {
    grid-template-columns: minmax(0, 1fr);
  }
  .bench .features {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid.three,
  .course {
    grid-template-columns: minmax(0, 1fr);
  }
  .masthead {
    grid-template-columns: 1fr auto;
  }
  .masthead nav {
    display: none;
  }
}
@media (max-width: 700px) {
  .stations,
  .grid.two {
    grid-template-columns: minmax(0, 1fr);
  }
  body {
    font-size: 15px;
  }
  .masthead {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .masthead > .button {
    justify-self: start;
  }
  .enclosure-top span:nth-child(2),
  .enclosure-bottom span:nth-child(2) {
    display: none;
  }
  .hero .actions .button {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .bezel {
    animation: warm 1.6s ease-out both;
  }
  @keyframes warm {
    from {
      opacity: 0.2;
      filter: brightness(2.4) blur(1px);
    }
    to {
      opacity: 1;
      filter: none;
    }
  }
}
/* Language reference: a contents rail beside the sections on wide screens. */
.brand h1 a {
  color: inherit;
}
.brand h1 a:hover {
  text-decoration: none;
}
.reference-head {
  padding-bottom: clamp(28px, 4vw, 48px);
}
.reference-head h2 {
  margin: 14px 0 18px;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.1;
}
.reference-head .lead {
  font-size: clamp(16px, 1.3vw, 18px);
  max-width: 70ch;
}
.reference-head .fine {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--quiet);
  margin: 0;
}
.reference-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
}
.toc {
  position: sticky;
  top: 84px;
  padding: 26px 0;
  font-size: 13px;
}
.toc ol {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 3ch minmax(0, 1fr);
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--quiet);
  letter-spacing: 0.1em;
}
.toc a {
  color: var(--muted);
}
.toc a:hover {
  color: var(--bright);
  text-decoration: none;
}
.reference-content section {
  padding-inline: 0;
}
.reference-content section:last-child {
  border-bottom: 0;
}
.reference-content h3 {
  margin: 28px 0 10px;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pale);
}
.reference-content .intro {
  max-width: 78ch;
  margin-bottom: 8px;
}
.reference-content .note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--quiet);
}
.reference-content .source {
  font-size: 13px;
}
.ref-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.ref-columns .features li {
  grid-template-columns: 13ch minmax(0, 1fr);
}
.features.keys li {
  grid-template-columns: 15ch minmax(0, 1fr);
}
table.ref {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line-soft);
}
table.ref th,
table.ref td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
table.ref th {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--quiet);
  background: #04100a;
}
table.ref tr:last-child td {
  border-bottom: 0;
}
table.ref td:first-child {
  color: var(--pale);
  white-space: nowrap;
}
table.ref td:first-child code {
  white-space: normal;
}
table.ref code {
  color: var(--bright);
  text-shadow: none;
}
table.ref.limits td:nth-child(2) {
  color: var(--amber);
  white-space: nowrap;
}
.reference-content p code,
.reference-content li code {
  color: var(--bright);
}
@media (max-width: 960px) {
  .reference-body,
  .ref-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
    padding-bottom: 0;
  }
  table.ref td:first-child {
    white-space: normal;
  }
  /* A wide table scrolls inside its own box; the page never scrolls sideways. */
  table.ref {
    display: block;
    overflow-x: auto;
  }
}
/* The enclosure's sound switch: the same lettering as the labels around it, a light when it is on. */
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.sound-toggle::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--dim);
}
.sound-toggle[aria-pressed='true']::before {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 6px var(--amber-glow);
}
.sound-toggle:hover {
  color: var(--bright);
}
