/* Outfit, the wordmark's face, served from here rather than Google's CDN
   (fontsource-variable 5.3.0, OFL — fonts/OFL.txt). */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* kahawai.net — deep-water dark, the web app's palette name for name
   (kahawai/web/src/theme.css). A colour that drifts here should drift there
   first. */
:root {
  --bg: #0b1416;
  --surface: #111d20;
  --line: #22383c;
  --hairline: #1a2c30;
  --hover: #16262a;
  --text: #d9e6e6;
  --prose: #cdd8da;
  --dim: #7d979a;
  --dimmer: #3d5559;
  --teal: #5fc8b7;
  --teal-dim: #2e5f58;
  --sand: #dcb877;
  --warn: #d98d7a;

  --font-mono: ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;
  --font-sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', var(--font-sans);

  --wrap: 1080px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: radial-gradient(120% 90% at 75% -10%, #12262b 0%, var(--bg) 55%) fixed;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0;
}

code,
pre,
kbd {
  font-family: var(--font-mono);
}

:not(pre) > code {
  font-size: 0.88em;
  padding: 1px 6px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--surface);
  color: var(--prose);
  white-space: nowrap;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 50;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--surface);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.top.scrolled {
  border-bottom-color: var(--hairline);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}
/* The lockup (logo/), as delivered: mark plus the Outfit wordmark in
   outlines, so it needs no font to render. */
.wordmark {
  display: flex;
}
.wordmark img {
  display: block;
  width: auto;
  height: 24px;
}
footer .wordmark img {
  height: 22px;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}
.top nav a {
  color: var(--dim);
}
.top nav a:hover {
  color: var(--text);
  text-decoration: none;
}
.top nav .gh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
}
.top nav .gh:hover {
  border-color: var(--dim);
}

@media (max-width: 760px) {
  .top nav a:not(.gh) {
    display: none;
  }
}

/* ---------- buttons, chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1px solid var(--teal);
  border-radius: 4px;
  background: var(--teal);
  color: #062a25;
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
}
.btn:hover {
  filter: brightness(1.08);
  text-decoration: none;
}
.btn.ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
  font-weight: 500;
}
.btn.ghost:hover {
  border-color: var(--dim);
  filter: none;
}

.chip {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 8px;
  background: var(--teal-dim);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  white-space: nowrap;
}
.chip.sand {
  background: color-mix(in srgb, var(--sand) 16%, transparent);
  color: var(--sand);
}

.eyebrow {
  color: var(--dim);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
}
.hero .swell {
  position: absolute;
  right: -120px;
  top: 10px;
  width: 720px;
  max-width: none;
  opacity: 0.55;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
}
.hero h1 img {
  display: block;
  width: auto;
  height: clamp(52px, 11vw, 83px);
  max-width: 100%;
}
.say {
  margin-top: 14px;
  color: var(--dim);
  font-size: 14px;
}
.say em {
  color: var(--sand);
  font-style: normal;
  font-family: var(--font-mono);
}
.lede {
  max-width: 620px;
  margin-top: 28px;
  color: var(--prose);
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.5;
}
.lede strong {
  color: var(--text);
  font-weight: 650;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--dim);
  font-size: 13px;
}

/* ---------- sections ---------- */

section.block {
  padding: 72px 0;
  border-top: 1px solid var(--hairline);
}
.head {
  max-width: 680px;
  margin-bottom: 36px;
}
.head h2 {
  margin-top: 10px;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: 0.01em;
}
.head p {
  margin-top: 14px;
  color: var(--prose);
}

.prose {
  max-width: 680px;
  color: var(--prose);
}
.prose p + p {
  margin-top: 16px;
}
.prose strong {
  color: var(--text);
  font-weight: 650;
}

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .two {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

/* ---------- topology ---------- */

.topo {
  display: grid;
  grid-template-columns: 1fr auto 1.1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.topo .col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.topo .label {
  color: var(--dim);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.node {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}
.node b {
  display: block;
  font-size: 14px;
  font-weight: 650;
}
.node span {
  display: block;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.4;
}
.node.hub {
  padding: 18px 14px;
  border-color: var(--teal-dim);
  background: color-mix(in srgb, var(--teal) 7%, var(--bg));
  text-align: center;
}
.node.hub b {
  font-size: 18px;
}
.node.mh b::before,
.node.tc b::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: 1px;
}
.node.mh b::before {
  background: var(--teal);
}
.node.tc b::before {
  background: var(--sand);
}
.link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
}
.link .arrow {
  color: var(--teal);
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1;
}
.link.in .arrow {
  color: var(--sand);
}
.aio {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--dim);
  font-size: 13px;
}
.aio strong {
  color: var(--text);
}
.v {
  display: none;
}
@media (max-width: 760px) {
  .topo {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }
  .link {
    flex-direction: row;
    justify-content: center;
  }
  .h {
    display: none;
  }
  .v {
    display: inline;
  }
}

/* ---------- playback ladder ---------- */

.ladder {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ladder li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.ladder .n {
  color: var(--dimmer);
  font-family: var(--font-mono);
  font-size: 13px;
}
.ladder b {
  display: block;
  font-size: 15px;
  font-weight: 650;
}
.ladder span {
  display: block;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.45;
}
.cost {
  height: 6px;
  border-radius: 3px;
  background: var(--hairline);
  overflow: hidden;
}
.cost i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--teal);
}
.ladder li:nth-child(3) .cost i {
  background: var(--sand);
}
.ladder li:nth-child(4) .cost i {
  background: var(--warn);
}
.ladder-note {
  margin-top: 14px;
  color: var(--dim);
  font-size: 14px;
}

/* ---------- why ---------- */

.why {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
}
.why aside {
  color: var(--dim);
  font-size: 14px;
}
.why aside .mark {
  display: block;
  width: 96px;
  height: auto;
  margin: -14px 0 4px -18px;
}
.why blockquote {
  margin: 24px 0 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--teal-dim);
  color: var(--text);
  font-size: 18px;
}
@media (max-width: 760px) {
  .why {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .why aside .mark {
    width: 64px;
    margin: -10px 0 2px -12px;
  }
}

/* ---------- features ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 14px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 160ms;
}
.card:hover {
  border-color: var(--teal-dim);
}
.card h3 {
  font-size: 17px;
}
.card p {
  color: var(--prose);
  font-size: 15px;
}
.card > .chip {
  align-self: flex-start;
}
.card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

/* ---------- comparison ---------- */

.compare {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.compare .row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--hairline);
}
.compare .row:first-child {
  border-top: 0;
}
.compare .row > div {
  padding: 14px 18px;
  font-size: 15px;
}
.compare .row > div:first-child {
  color: var(--text);
  font-weight: 650;
}
.compare .them {
  color: var(--dim);
}
.compare .us {
  color: var(--prose);
  border-left: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--teal) 4%, transparent);
}
.compare .row.th > div {
  padding-block: 10px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare .row.th .us {
  color: var(--teal);
}
.compare .k {
  display: none;
}
@media (max-width: 760px) {
  .compare .row {
    grid-template-columns: minmax(0, 1fr);
  }
  .compare .row.th {
    display: none;
  }
  .compare .row > div {
    padding: 4px 16px;
  }
  .compare .row > div:first-child {
    padding-top: 14px;
  }
  .compare .row > div:last-child {
    padding-bottom: 14px;
  }
  .compare .us {
    border-left: 0;
    background: none;
  }
  .compare .k {
    display: inline;
    margin-right: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
  }
  .compare .them .k {
    color: var(--dimmer);
  }
  .compare .us .k {
    color: var(--teal);
  }
}
.fair {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--dim);
  font-size: 14px;
}
.fair strong {
  color: var(--text);
}

/* ---------- get it ---------- */

.get {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 14px;
}
.get a.card {
  color: inherit;
}
.get a.card:hover {
  text-decoration: none;
}
.get .card .go {
  margin-top: auto;
  padding-top: 4px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 650;
}
.get .card code {
  white-space: normal;
  word-break: break-all;
}
.notice {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--sand) 35%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--sand) 6%, var(--surface));
  color: var(--prose);
  font-size: 14px;
}
.notice b {
  color: var(--sand);
  white-space: nowrap;
}

/* ---------- install ---------- */

.steps {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps > li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 18px;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--teal-dim);
  border-radius: 50%;
  background: var(--hover);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 14px;
}
.steps h3 {
  margin-top: 4px;
  font-size: 18px;
}
.steps p {
  margin-top: 8px;
  color: var(--prose);
  font-size: 15px;
}
.steps .small {
  color: var(--dim);
  font-size: 14px;
}
@media (max-width: 560px) {
  .steps > li {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

.alt-install {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.alt-install h3 {
  font-size: 18px;
}
.alt-install p {
  max-width: 680px;
  margin-top: 8px;
  color: var(--prose);
  font-size: 15px;
}

.code {
  position: relative;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #081012;
}
.code .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 0 6px 0 14px;
  border-bottom: 1px solid var(--hairline);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
}
.code pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  color: var(--prose);
  font-size: 13.5px;
  line-height: 1.6;
  tab-size: 2;
}
.code .c {
  color: var(--dimmer);
}
.code .s {
  color: var(--sand);
}
.code .k {
  color: var(--teal);
}
.copy {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--dim);
  font-family: var(--font-sans);
  font-size: 12px;
  cursor: pointer;
}
.copy:hover {
  border-color: var(--dim);
  color: var(--text);
}
.copy.done {
  border-color: var(--teal-dim);
  color: var(--teal);
}

.tabs {
  display: flex;
  gap: 2px;
}
.tabs button {
  padding: 8px 10px 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
}
.tabs button[aria-selected='true'] {
  border-bottom-color: var(--teal);
  color: var(--text);
}
.tabs button:hover {
  color: var(--text);
}
[role='tabpanel'][hidden] {
  display: none;
}

.accel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 10px;
  margin-top: 12px;
}
.accel div {
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 14px;
}
.accel b {
  display: block;
  font-weight: 650;
}
.accel code {
  white-space: normal;
}

.further {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 10px;
  margin-top: 40px;
}
.further a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
}
.further a span {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 400;
}
.further a:hover {
  border-color: var(--teal-dim);
  text-decoration: none;
}

/* ---------- footer ---------- */

footer {
  margin-top: 40px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--hairline);
  color: var(--dim);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
footer .links a {
  color: var(--dim);
}
footer .links a:hover {
  color: var(--text);
}
footer p + p {
  margin-top: 6px;
}

/* ---------- motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
.hero .wrap > * {
  animation: rise 240ms ease-out both;
}
.hero .wrap > :nth-child(2) {
  animation-delay: 40ms;
}
.hero .wrap > :nth-child(3) {
  animation-delay: 80ms;
}
.hero .wrap > :nth-child(4) {
  animation-delay: 120ms;
}
.hero .wrap > :nth-child(5) {
  animation-delay: 160ms;
}

@keyframes drift {
  50% {
    transform: translateX(-18px);
  }
}
.hero .swell .front {
  animation: drift 9s ease-in-out infinite;
}
.hero .swell .back {
  animation: drift 9s ease-in-out -4.5s infinite;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
