:root {
  --night: #071015;
  --wet: #0e1c22;
  --foam: #d7efe8;
  --tide: #2ab89a;
  --tide-dim: #1a7a68;
  --amber: #d4a017;
  --sand: #cbb89a;
  --mute: #7fa39a;
  --ink: #e8f4f0;
  --display: "Outfit", "Noto Sans SC", sans-serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 76px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--tide); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
.tide {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 6;
  opacity: 0.14;
  background-image: url("images/texture.webp");
  background-size: 420px auto;
  mix-blend-mode: soft-light;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 80; background: var(--tide); color: var(--night); padding: 8px; }
.shore {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 28px;
  background: rgba(7, 16, 21, 0.92);
  border-bottom: 2px solid var(--tide);
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mute);
  font-weight: 400;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--tide);
  color: var(--tide);
  padding: 6px 12px;
}
.shore-links { display: flex; gap: 16px; font-size: 14px; flex-wrap: wrap; }
.shore-links a { color: var(--mute); }
.shore-links a.is-active, .shore-links a:hover { color: var(--tide); }
.shore-links .live { background: var(--tide); color: var(--night); padding: 6px 12px; }
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 21, 0.2) 10%, rgba(7, 16, 21, 0.92) 88%);
}
.foam {
  position: relative;
  z-index: 2;
  padding: 48px 8vw 72px;
  max-width: 920px;
}
.kicker {
  font-family: var(--mono);
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--tide);
  margin: 0 0 12px;
}
h1, h2, h3 { font-family: var(--display); margin: 0 0 12px; line-height: 1.05; font-weight: 700; }
h1 { font-size: clamp(42px, 7vw, 88px); }
h1 em { font-style: normal; color: var(--amber); }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
.lead, .quiet { color: var(--mute); max-width: 48em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid currentColor; font-size: 14px; background: transparent; color: inherit; }
.btn.fill { background: var(--tide); color: var(--night); border-color: var(--tide); }
.btn.ghost { color: var(--foam); }
.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0; }
.three, .four { display: grid; gap: 14px; margin-top: 22px; }
.three { grid-template-columns: 1fr 1fr 1fr; }
.four { grid-template-columns: 1fr 1fr 1fr 1fr; }
.three article, .four article {
  background: var(--wet);
  padding: 18px;
  border-top: 3px solid var(--tide);
}
.three .warn { border-top-color: var(--amber); }
.three ul, .io ul, .bound { margin: 0; padding-left: 1.1em; }
.deep { background: #0a171c; }
.wave {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 28px 0 40px;
  counter-reset: wave;
}
.wave li {
  background: var(--wet);
  padding: 14px 12px 18px;
  font-size: 14px;
  border-bottom: 4px solid var(--tide);
}
.wave li::before {
  counter-increment: wave;
  content: counter(wave, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  color: var(--tide);
  font-size: 11px;
  margin-bottom: 8px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: center;
  margin: 36px 0;
}
.pair.flip { grid-template-columns: 1.1fr 1fr; }
.pair.flip > div { order: 2; }
.pair figure { margin: 0; }
.pair img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 2px 48px 2px 2px;
  border: 1px solid rgba(42, 184, 154, 0.25);
}
.pair figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }
.num { font-family: var(--mono); color: var(--amber); font-size: 12px; letter-spacing: 0.12em; }
.bench {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
  margin-top: 24px;
}
.rows {
  display: grid;
  gap: 8px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.8fr;
  gap: 8px;
  padding: 12px 14px;
  background: var(--wet);
  font-size: 14px;
  cursor: pointer;
  border-left: 4px solid transparent;
}
.row.is-on { border-left-color: var(--amber); background: #14262c; }
.row .kind-break { color: var(--amber); }
.row .kind-risk { color: #e07a4a; }
.row .kind-ok { color: var(--tide); }
.bench aside {
  background: var(--wet);
  padding: 20px;
  border: 1px dashed var(--tide);
}
#change-state { margin-top: 0; }
.io { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.io > div { background: var(--wet); padding: 16px; }
.bound { max-width: 46em; }
footer {
  padding: 24px 28px 48px;
  color: var(--mute);
  font-size: 13px;
  border-top: 1px solid rgba(42, 184, 154, 0.2);
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .shore { flex-wrap: wrap; }
  .shore-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #0a171c;
    padding: 12px;
  }
  .shore-links.open { display: flex; }
  .three, .four, .wave, .pair, .pair.flip, .bench, .io { grid-template-columns: 1fr; }
  .pair.flip > div { order: 0; }
  h1 { font-size: 40px; }
  .hero { min-height: 72vh; }
}
