:root {
  --pine: #0b1a18;
  --pine-deep: #06110f;
  --pine-soft: #0f2521;
  --panel: #102a25;
  --bone: #f1e8d7;
  --bone-dim: #d8cdb9;
  --ash: #93a8a1;
  --ash-dim: #6f847e;
  --solar: #ffb020;
  --solar-soft: #ffd27a;
  --mint: #86d3c0;
  --line: rgba(241, 232, 215, 0.14);
  --line-strong: rgba(241, 232, 215, 0.24);
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --page: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pine);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--solar);
  color: var(--pine-deep);
}

a {
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--solar);
  color: var(--pine-deep);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.atmosphere__glow {
  position: absolute;
  top: -28vw;
  right: -16vw;
  width: 78vw;
  height: 78vw;
  background: radial-gradient(circle at 50% 50%, rgba(255, 176, 32, 0.12), rgba(255, 176, 32, 0.03) 42%, transparent 68%);
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

/* ---------- navigation ---------- */

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  width: var(--page);
  margin: 0 auto;
  padding: 26px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--solar);
}

.brand__mark svg {
  width: 26px;
  height: 26px;
}

.brand__word {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand__word span {
  color: var(--solar);
}

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: 18px;
}

.nav__links a {
  color: var(--ash);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav__links a:hover {
  color: var(--bone);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.version {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ash-dim);
  letter-spacing: 0.02em;
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--bone);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, color 160ms ease;
}

.button:hover {
  border-color: var(--bone-dim);
  transform: translateY(-1px);
}

.button--quiet {
  min-height: 36px;
  padding: 0 14px;
  border-color: var(--line);
  background: rgba(241, 232, 215, 0.03);
  font-size: 12.5px;
}

.button--solar {
  border-color: var(--solar);
  background: var(--solar);
  color: var(--pine-deep);
  font-weight: 600;
}

.button--solar:hover {
  background: var(--solar-soft);
  border-color: var(--solar-soft);
}

.text-link {
  color: var(--bone-dim);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}

.text-link:hover {
  color: var(--solar);
  border-color: var(--solar);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: 24px;
  width: var(--page);
  margin: 0 auto;
  padding: 42px 0 70px;
  min-height: calc(100vh - 150px);
}

.hero__copy {
  max-width: 640px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  color: var(--ash);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.015em;
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(134, 211, 192, 0.1);
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(52px, 8.4vw, 104px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.028em;
  color: var(--bone);
}

.hero__title em {
  font-style: italic;
  color: var(--solar-soft);
}

.hero__lede {
  max-width: 52ch;
  margin: 28px 0 0;
  color: var(--ash);
  font-size: 16.5px;
  line-height: 1.62;
}

.install {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 42, 37, 0.9), rgba(9, 24, 21, 0.9));
  padding: 16px 18px 15px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.install__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.install__label {
  color: var(--ash-dim);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--ash);
  font-family: var(--mono);
  font-size: 10.5px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.copy:hover {
  color: var(--bone);
  border-color: var(--line-strong);
  background: rgba(241, 232, 215, 0.05);
}

.copy.is-copied {
  color: var(--mint);
  border-color: rgba(134, 211, 192, 0.4);
}

.install__command {
  display: block;
  overflow-x: auto;
  color: var(--bone);
  font-family: var(--mono);
  font-size: clamp(12.5px, 1.5vw, 14.5px);
  white-space: nowrap;
  scrollbar-width: none;
}

.install__command::-webkit-scrollbar {
  display: none;
}

.install__note {
  margin: 10px 0 0;
  color: var(--ash-dim);
  font-size: 12px;
}

.install__note code {
  color: var(--ash);
}

.hero__links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ---------- solar instrument ---------- */

.instrument {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
}

.instrument__frame {
  --px: 0;
  --py: 0;
  position: relative;
  width: min(560px, 44vw);
  aspect-ratio: 1;
  color: var(--bone);
  transform: translate3d(calc(var(--px) * 10px), calc(var(--py) * 10px), 0);
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dial {
  width: 100%;
  height: 100%;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.dial text {
  fill: var(--ash-dim);
}

.dial__orbits {
  transform-origin: 300px 300px;
  animation: orbit 120s linear infinite;
}

.dial__nodes {
  transform-origin: 300px 300px;
  animation: orbit 90s linear infinite reverse;
}

.dial__ticks {
  stroke: var(--bone);
  stroke-width: 1.4;
  stroke-opacity: 0.4;
}

.node--solar {
  fill: var(--solar);
}

.node--mint {
  fill: var(--mint);
}

.node--bone {
  fill: var(--bone);
}

.node--ash {
  fill: var(--ash-dim);
}

.instrument__caption {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ash-dim);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ---------- principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: var(--page);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle {
  padding: 28px 30px 30px 0;
}

.principle + .principle {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.principle__label {
  margin: 0 0 8px;
  color: var(--solar-soft);
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -0.01em;
}

.principle__text {
  margin: 0;
  color: var(--ash);
  font-size: 13.5px;
  line-height: 1.62;
}

/* ---------- inside ---------- */

.inside {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 80px;
  width: var(--page);
  margin: 0 auto;
  padding: 112px 0;
}

.inside__heading {
  position: sticky;
  top: 40px;
  align-self: start;
}

.inside__heading h2,
.commands__intro h2,
.changelog__head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.inside__heading p {
  max-width: 34ch;
  margin: 22px 0 0;
  color: var(--ash);
  font-size: 14.5px;
}

.field-notes {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.field-notes li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.field-notes__key {
  padding-top: 4px;
  color: var(--solar);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.field-notes h3 {
  margin: 0 0 7px;
  font-family: var(--body);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.field-notes p {
  margin: 0;
  max-width: 56ch;
  color: var(--ash);
  font-size: 13.5px;
  line-height: 1.66;
}

.field-notes code {
  color: var(--bone-dim);
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(241, 232, 215, 0.06);
}

/* ---------- commands ---------- */

.commands {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: 64px;
  width: var(--page);
  margin: 0 auto;
  padding: 96px 0 108px;
  border-top: 1px solid var(--line);
}

.commands__intro p {
  max-width: 36ch;
  margin: 22px 0 0;
  color: var(--ash);
  font-size: 14.5px;
}

.commands__meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 26px;
  color: var(--ash-dim);
  font-family: var(--mono);
  font-size: 11px;
}

.console {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--pine-deep);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.console__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(241, 232, 215, 0.03);
}

.console__lights {
  display: inline-flex;
  gap: 5px;
}

.console__lights i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.console__lights i:first-child {
  background: rgba(255, 176, 32, 0.65);
}

.console__title {
  color: var(--ash-dim);
  font-family: var(--mono);
  font-size: 10.5px;
}

.console__body {
  display: flex;
  flex-direction: column;
}

.command {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid rgba(241, 232, 215, 0.07);
  background: transparent;
  color: var(--bone);
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease;
}

.command:hover {
  background: rgba(255, 176, 32, 0.05);
}

.command code {
  font-size: 12.5px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  color: var(--bone-dim);
}

.command code::-webkit-scrollbar {
  display: none;
}

.command__prompt {
  color: var(--solar);
}

.command__note {
  flex-shrink: 0;
  color: var(--ash-dim);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.console__foot {
  padding: 13px 18px;
  background: rgba(134, 211, 192, 0.04);
  color: var(--ash-dim);
  font-size: 11.5px;
}

/* ---------- changelog ---------- */

.changelog {
  width: var(--page);
  margin: 0 auto;
  padding: 92px 0 110px;
  border-top: 1px solid var(--line);
}

.changelog__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.release {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 26px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.release__spine {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.release__version {
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.release__date {
  color: var(--ash-dim);
  font-family: var(--mono);
  font-size: 10.5px;
}

.release__lede {
  margin: 0 0 22px;
  max-width: 62ch;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: var(--bone-dim);
}

.release__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 70ch;
}

.release__body li {
  position: relative;
  padding: 0 0 14px 20px;
  color: var(--ash);
  font-size: 13.5px;
  line-height: 1.66;
}

.release__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--solar);
}

.release__body strong {
  color: var(--bone);
  font-weight: 600;
}

.release__links {
  display: flex;
  gap: 26px;
  margin-top: 18px;
}

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

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  width: var(--page);
  margin: 0 auto;
  padding: 64px 0 44px;
  border-top: 1px solid var(--line);
}

.footer__word {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(52px, 8vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.footer__word em {
  color: var(--solar);
  font-style: italic;
}

.footer__by {
  margin: 14px 0 0;
  color: var(--ash-dim);
  font-size: 13px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 14px 26px;
  max-width: 320px;
}

.footer__links a {
  color: var(--ash);
  font-size: 13px;
  text-decoration: none;
  transition: color 150ms ease;
}

.footer__links a:hover {
  color: var(--solar);
}

.footer__copy {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ash-dim);
  font-size: 11.5px;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  transform: translate(-50%, 20px);
  padding: 10px 16px;
  border: 1px solid rgba(134, 211, 192, 0.35);
  border-radius: 999px;
  background: rgba(6, 17, 15, 0.94);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 11.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- focus ---------- */

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

/* ---------- entrance ---------- */

.hero__copy > * {
  animation: rise 780ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero__copy > :nth-child(2) {
  animation-delay: 80ms;
}

.hero__copy > :nth-child(3) {
  animation-delay: 160ms;
}

.hero__copy > :nth-child(4) {
  animation-delay: 240ms;
}

.hero__copy > :nth-child(5) {
  animation-delay: 320ms;
}

.instrument {
  animation: instrument-in 1100ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: 120ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes instrument-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    min-height: 0;
    padding-top: 30px;
  }

  .instrument {
    min-height: 440px;
  }

  .instrument__frame {
    width: min(470px, 46vw);
  }

  .inside {
    gap: 48px;
  }

  .commands {
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .nav__links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 54px;
  }

  .instrument {
    order: -1;
    min-height: 360px;
    place-items: center start;
  }

  .instrument__frame {
    width: min(420px, 74vw);
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle {
    padding: 22px 0 24px;
  }

  .principle + .principle {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .inside,
  .commands {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 72px 0;
  }

  .inside__heading {
    position: static;
  }

  .changelog {
    padding: 70px 0 84px;
  }

  .release {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .release__spine {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }

  .release__version {
    font-size: 32px;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer__links {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 560px) {
  :root {
    --page: calc(100vw - 32px);
  }

  .nav {
    padding: 18px 0;
    gap: 12px;
  }

  .nav__actions {
    gap: 8px;
  }

  .version {
    display: none;
  }

  .hero {
    padding-top: 14px;
  }

  .instrument {
    min-height: 300px;
  }

  .instrument__frame {
    width: min(330px, 88vw);
  }

  .hero__lede {
    font-size: 15.5px;
  }

  .field-notes li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .field-notes__key {
    padding-top: 0;
  }

  .command {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .command__note {
    padding-left: 14px;
  }

  .changelog__head {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .dial__orbits,
  .dial__nodes,
  .hero__copy > *,
  .instrument {
    animation: none;
  }

  .instrument__frame {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
