/* ==========================================================================
   Hermes Agent — a landing page you can drive from the keyboard.

   The scale is Nous's own: their site is drawn on a 2360px canvas and sized in
   `calc(N * var(--u))`, with a floor so it stays legible on a phone. The type
   roles, the +0.03em tracking on display caps, the 4px radius and the noise
   over the ground are theirs too. Every colour comes from the active skin
   (assets/js/skins.js), so a skin repaints the page whole.
   ========================================================================== */

:root {
  /* Overwritten by the active skin. These are `nous` — Nous's own tokens. */
  --bg: #0000f2;
  --fg: #f5f5f5;
  --accent: #edff45;
  --ok: #9dffbe;

  /* Derived. The mixes are set where the weakest skin still clears 4.5:1. */
  --bg-2: color-mix(in srgb, var(--bg), #000 26%);
  --surface: color-mix(in srgb, var(--bg), var(--fg) 10%);
  --hair: color-mix(in srgb, var(--bg), var(--fg) 22%);
  --edge: color-mix(in srgb, var(--bg), var(--fg) 42%);
  --strong: color-mix(in srgb, var(--fg), #fff 55%);
  --muted: color-mix(in srgb, var(--fg), var(--bg) 28%);

  --display: 'Bodoni Moda', 'Times New Roman', Times, serif;
  --mono: 'Courier Prime', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Nous's unit: one part in 2360 of the viewport, with a floor. */
  --u: max(calc(100vw / 2360), 0.58px);
  --t-eyebrow: clamp(0.66rem, calc(18 * var(--u)), 0.82rem);
  --t-body: clamp(0.8rem, calc(21 * var(--u)), 1rem);
  --t-nav: clamp(0.72rem, calc(26 * var(--u)), 1.05rem);
  --t-h2: clamp(1.7rem, calc(72 * var(--u)), 3.4rem);
  --t-h1: clamp(2.1rem, calc(132 * var(--u)), 5.5rem);

  --track: 0.03em;
  /* A little grain over the flat ground, the way Nous's own page carries it. */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  --wrap: 74rem;
  --text: 46rem;
  --radius: 4px;
  --section: clamp(4rem, 9vw, 8rem);
  --ease: 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

* {
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  background-image: var(--noise);
  background-size: 12.8rem 12.8rem;
  color: var(--fg);
  font-family: var(--mono);
  font-size: var(--t-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.45s ease,
    color 0.45s ease;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
b,
strong {
  color: var(--strong);
  font-weight: 700;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
code {
  font-family: inherit;
  color: var(--strong);
}
kbd {
  font: inherit;
  font-size: 0.8em;
  color: var(--strong);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 0.1em 0.45em;
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 50;
  background: var(--bg);
  padding: 0.6rem 1rem;
  border: 1px solid var(--accent);
}

/* ------------------------------------------------------------ typography -- */
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--strong);
  text-transform: uppercase;
  letter-spacing: var(--track);
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-size: var(--t-h2);
}
h3 {
  font-size: 0.72rem;
  font-family: var(--mono);
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lede {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
  line-height: 1.6;
  margin: 1.6rem auto 0;
  max-width: 42rem;
  text-wrap: pretty;
}
.dim {
  color: var(--muted);
}
.try {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap--text {
  max-width: var(--text);
  margin-inline: auto;
}

/* ---------------------------------------------------------------- notice -- */
.notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--hair);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.notice__link {
  color: var(--fg);
}
.notice__close {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.3rem;
}
.notice__close:hover {
  color: var(--strong);
}

/* ------------------------------------------------------------------- nav -- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--hair);
}
.nav__inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  height: 3.6rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav__mark {
  background: none;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  color: var(--fg);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition:
    color var(--ease),
    border-color var(--ease);
}
.nav__mark svg {
  width: 1rem;
  height: 1rem;
}
.nav__mark:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.nav__brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(0.95rem, calc(38 * var(--u)), 1.5rem);
  letter-spacing: var(--track);
  line-height: 1;
  text-transform: uppercase;
  color: var(--strong);
  display: grid;
}
.nav__brand:hover {
  text-decoration: none;
  color: var(--accent);
}
.nav__brand span {
  font-size: 0.72em;
  color: var(--muted);
}
.nav__links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-nav);
  letter-spacing: var(--track);
  text-transform: uppercase;
}
.nav__links a {
  color: var(--fg);
}
.nav__links a:hover {
  color: var(--accent);
  text-decoration: none;
}
.nav__cta {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-nav);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.55em 1.1em;
  border-radius: var(--radius);
  flex: none;
}
.nav__cta:hover {
  text-decoration: none;
  filter: brightness(0.92);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-nav);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--fg);
  background: none;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 0.45em 0.8em;
  cursor: pointer;
  flex: none;
  transition: border-color var(--ease);
}
.chip:hover {
  border-color: var(--accent);
  color: var(--strong);
}
.chip__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
}
@media (max-width: 60em) {
  .nav__links {
    display: none;
  }
  .chip {
    margin-left: auto;
  }
}
@media (max-width: 30em) {
  .nav__cta {
    display: none;
  }
}

/* --------------------------------------------------------------- buttons -- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.wrap--text .actions {
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: baseline;
  gap: 0.8ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-nav);
  letter-spacing: var(--track);
  text-transform: uppercase;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition:
    filter var(--ease),
    border-color var(--ease);
}
.btn:hover {
  text-decoration: none;
}
.btn small {
  font-family: var(--mono);
  font-weight: 400;
  font-size: var(--t-eyebrow);
  letter-spacing: 0.1em;
  opacity: 0.65;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  filter: brightness(0.92);
}
.btn--quiet {
  color: var(--strong);
  border-color: var(--edge);
}
.btn--quiet:hover {
  border-color: var(--accent);
}
/* On a phone the buttons take the full measure, and the parenthetical in the
   label is the first thing to go. */
@media (max-width: 34em) {
  .actions {
    display: grid;
  }
  .btn {
    justify-content: center;
  }
  .btn small {
    display: none;
  }
}

/* ------------------------------------------------------------------ hero -- */
.hero {
  padding: clamp(3.5rem, 8vw, 7rem) 0 0;
  text-align: center;
}
.hero__h1 {
  font-size: var(--t-h1);
  line-height: 0.88;
  max-width: 15ch;
  text-wrap: balance;
  margin-inline: auto;
}
/* With JS the line breaks are the ones the design wants; without it, the
   headline just wraps on its own inside the same measure. */
.js .hero__h1 {
  white-space: pre-line;
  text-wrap: nowrap;
  max-width: none;
}
/* Narrow enough and the designed breaks no longer fit: a forced line here
   would widen the whole document, so let the headline wrap on its own. */
@media (max-width: 46em) {
  .js .hero__h1 {
    white-space: normal;
    text-wrap: balance;
    max-width: 15ch;
  }
}
.hero__h1.is-settling {
  color: var(--accent);
}

.install-box {
  margin: 2.5rem auto 0;
  max-width: 38rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  text-align: left;
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
}
.install-box__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--hair);
}
.install-box__tabs button {
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  padding: 0.7em 1.1em;
  cursor: pointer;
  margin-bottom: -1px;
}
.install-box__tabs button.is-on {
  color: var(--strong);
  border-bottom-color: var(--accent);
}
.install-box__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
}
.install-box__row code {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
.install-box__copy {
  font: inherit;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--edge);
  border-radius: 3px;
  color: var(--fg);
  padding: 0.4em 0.8em;
  cursor: pointer;
  flex: none;
}
.install-box__copy:hover {
  border-color: var(--accent);
  color: var(--strong);
}

/* -------------------------------------------------------------- terminal -- */
.shot {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}
.shot figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 1rem;
}
.term {
  background: var(--bg-2);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--hair);
  font-size: 0.68rem;
  color: var(--muted);
}
.term__bar i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--hair);
}
.term__bar span {
  margin-left: 0.6rem;
}
.term__body {
  margin: 0;
  padding: 1.4rem 1.5rem;
  font-size: clamp(0.72rem, 0.6rem + 0.4vw, 0.88rem);
  line-height: 1.75;
  min-height: 18rem;
  overflow-x: auto;
  white-space: pre-wrap;
  text-align: left;
}
.term .in {
  color: var(--strong);
}
.term .in::before {
  content: '› ';
  color: var(--accent);
}
.term .out {
  color: var(--fg);
}
.term .tool {
  color: var(--ok);
}
.term .note {
  color: var(--muted);
}
.term .cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--accent);
  vertical-align: -0.15em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* --------------------------------------------------------------- mission -- */
.mission {
  padding: var(--section) 0;
  text-align: center;
}
.mission__line {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 1rem + 3.6vw, 3.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--accent);
}
.mission__sub {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- stage -- */
.stage {
  padding: calc(var(--section) * 0.55) 0;
  border-top: 1px solid var(--hair);
}
.stage__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 62em) {
  .stage__grid {
    grid-template-columns: 1fr 1.05fr;
  }
  .stage--flip .stage__text {
    order: 2;
  }
}
.stage__text p {
  margin: 1.3rem 0 0;
  max-width: 44ch;
}

.keys {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-width: 28rem;
  font-size: 0.85rem;
}
.keys li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 0.55rem;
}
.keys li span:last-child {
  color: var(--muted);
  text-align: right;
}

.tags {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tags li {
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----------------------------------------------------- commands preview -- */
.fake-input {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font: inherit;
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  color: var(--muted);
  cursor: text;
  transition: border-color var(--ease);
}
.fake-input:hover {
  border-color: var(--accent);
}
.fake-input__slash {
  color: var(--accent);
}
.fake-input__ghost {
  flex: 1;
}
.fake-input kbd {
  flex: none;
}

.cmdlist {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.82rem;
}
.cmdlist li {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 1.1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--hair) 55%, transparent);
}
.cmdlist li:last-child {
  border-bottom: 0;
}
.cmdlist b {
  color: var(--accent);
  font-weight: 400;
}
.cmdlist span {
  color: var(--muted);
  text-align: right;
  font-size: 0.9em;
}

/* ------------------------------------------------------------ skins grid -- */
.skins-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 40em) {
  .skins-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.skin-btn {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  background: none;
  transition:
    border-color var(--ease),
    transform var(--ease);
}
.skin-btn:hover {
  transform: translateY(-2px);
}
.skin-btn[aria-pressed='true'] {
  border-color: var(--accent);
}
.skin-btn__swatch {
  display: block;
  height: 4.5rem;
  position: relative;
  border-bottom: 1px solid var(--hair);
}
.skin-btn__swatch i {
  position: absolute;
  border-radius: 999px;
}
.skin-btn__swatch i:nth-child(1) {
  inset: auto 1rem 1rem 1rem;
  height: 2px;
  border-radius: 0;
}
.skin-btn__swatch i:nth-child(2) {
  left: 1rem;
  top: 1rem;
  width: 0.9rem;
  height: 0.9rem;
}
.skin-btn__swatch i:nth-child(3) {
  left: 2.3rem;
  top: 1rem;
  width: 0.9rem;
  height: 0.9rem;
}
.skin-btn__label {
  display: grid;
  padding: 0.6rem 0.85rem 0.75rem;
}
.skin-btn__label b {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}
.skin-btn__label small {
  color: var(--muted);
  font-size: 0.72rem;
}

/* ------------------------------------------------------------- the loop -- */
.loop {
  list-style: none;
  counter-reset: loop;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.loop li {
  counter-increment: loop;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hair);
  opacity: 0.25;
  transition: opacity 0.5s ease;
}
.loop li.is-on {
  opacity: 1;
}
.loop li::before {
  content: '0' counter(loop);
  grid-row: 1 / span 2;
  color: var(--accent);
  font-size: 0.78rem;
  padding-top: 0.2em;
}
.loop b {
  font-family: var(--display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 400;
}
.loop span {
  color: var(--muted);
  font-size: 0.85rem;
}

.grew {
  margin: 1.5rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--bg-2);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  font-size: 0.76rem;
  line-height: 1.8;
  color: var(--ok);
  min-height: 8.5rem;
  overflow-x: auto;
  white-space: pre;
}

/* ----------------------------------------------------------------- stats -- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1rem;
  padding: var(--section) 0;
  text-align: center;
  border-top: 1px solid var(--hair);
}
@media (min-width: 48em) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stats strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4rem);
  line-height: 1;
  color: var(--accent);
}
.stats span {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ bots -- */
.bots {
  padding: 0 0 var(--section);
  text-align: center;
}
.bots .lede {
  color: var(--muted);
}
.bots__list {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}
@media (min-width: 44em) {
  .bots__list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 68em) {
  .bots__list {
    grid-template-columns: repeat(4, 1fr);
  }
}
.bots__list li {
  background: var(--bg);
  padding: 1.6rem 1.4rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.bots__list b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent);
}
.bots__list small {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bots__list span {
  font-size: 0.85rem;
}

/* ------------------------------------------------- hero labels + actions -- */
.label {
  margin: 2.4rem 0 0.8rem;
  color: var(--muted);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.actions--center {
  justify-content: center;
  margin-top: 0;
}
.dim--tight {
  margin: 0.9rem 0 0;
  font-size: var(--t-eyebrow);
  letter-spacing: 0.06em;
}

/* ------------------------------------------------------------------ spec -- */
.spec {
  max-width: 62rem;
  margin-inline: auto;
  padding: 0 0 var(--section);
  color: var(--muted);
  text-align: center;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- portal -- */
/* Nous Portal is where Hermes stops being free, so it gets a frame of its
   own rather than a line in the footer. */
.portal {
  padding: 0 0 var(--section);
}
.portal__inner {
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
}
.portal .lede {
  color: var(--fg);
}
.portal__cmd {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem 1rem;
  margin-top: 2rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.portal__cmd code {
  color: var(--accent);
}
.portal__cmd span {
  color: var(--muted);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- install -- */
.install {
  padding: calc(var(--section) * 0.75) 0;
  border-top: 1px solid var(--hair);
  text-align: center;
}
.steps {
  list-style: none;
  counter-reset: step;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.3rem;
  text-align: left;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  align-items: baseline;
}
.steps li::before {
  content: counter(step);
  color: var(--accent);
  border: 1px solid var(--edge);
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
}
.install .dim {
  margin-top: 1.8rem;
  font-size: 0.82rem;
}

/* ------------------------------------------------------------------ news -- */
.news {
  padding: 0 0 calc(var(--section) * 0.6);
  text-align: center;
}
.post-list {
  list-style: none;
  margin: 2.5rem 0 1.5rem;
  padding: 0;
  text-align: left;
}
.post-list li {
  display: grid;
  grid-template-columns: 7ch 1fr;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--hair);
  font-size: 0.88rem;
}
.post-list li:last-child {
  border-bottom: 1px solid var(--hair);
}
.post-list time {
  color: var(--accent);
  font-size: 0.8rem;
}

/* ---------------------------------------------------------------- footer -- */
.footer {
  border-top: 1px solid var(--hair);
  padding: 4rem 0 3rem;
  font-size: 0.85rem;
}
.footer__inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
}
@media (min-width: 48em) {
  .footer__cols {
    grid-template-columns: repeat(4, 1fr);
  }
}
.footer h3 {
  margin: 0 0 0.9rem;
}
.footer__cols a {
  display: block;
  color: var(--fg);
  padding: 0.2rem 0;
}
.footer__cols a:hover {
  color: var(--accent);
}
.footer__art {
  margin: 3.5rem 0 0;
  color: color-mix(in srgb, var(--accent) 45%, transparent);
  font-size: clamp(0.32rem, 1.1vw, 0.7rem);
  line-height: 1.15;
  overflow: hidden;
  white-space: pre;
  user-select: none;
}
.footer__line {
  color: var(--muted);
  margin: 2rem 0 0;
  max-width: 62ch;
  font-size: 0.78rem;
}

/* --------------------------------------------------------------- palette -- */
.palette,
.sheet {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--fg);
  padding: 0;
  width: min(100% - 2rem, 34rem);
  margin-top: 14vh;
}
.palette::backdrop,
.sheet::backdrop {
  background: color-mix(in srgb, var(--bg) 65%, #000 40%);
  backdrop-filter: blur(4px);
}
.palette__field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--hair);
}
.palette__slash {
  color: var(--accent);
}
.palette__input {
  flex: 1;
  min-width: 0;
  font: inherit;
  background: none;
  border: 0;
  color: var(--strong);
  outline: none;
}
.palette__input::placeholder {
  color: var(--muted);
}
.palette__list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  max-height: 40vh;
  overflow-y: auto;
}
.palette__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.4rem 1.1rem;
  cursor: pointer;
  font-size: 0.85rem;
}
.palette__list li[aria-selected='true'] {
  background: var(--surface);
}
.palette__list li[aria-selected='true'] b::before {
  content: '› ';
  color: var(--accent);
}
.palette__list b {
  color: var(--accent);
  font-weight: 400;
}
.palette__list span {
  color: var(--muted);
  font-size: 0.9em;
  text-align: right;
}
.palette__empty {
  padding: 1rem 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.palette__foot,
.sheet__foot {
  margin: 0;
  padding: 0.7rem 1.1rem;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 0.72rem;
}

/* ------------------------------------------------------------- shortcuts -- */
.sheet form {
  padding: 1.1rem 0 0;
}
.sheet h3 {
  padding: 0 1.1rem;
  margin: 0 0 0.8rem;
}
.sheet__list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.6rem;
}
.sheet__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.35rem 1.1rem;
  font-size: 0.85rem;
}
.sheet__list span {
  color: var(--muted);
  text-align: right;
}

/* ----------------------------------------------------------------- toast -- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 1rem);
  margin: 0;
  padding: 0.6em 1.2em;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--ease),
    transform var(--ease);
  z-index: 40;
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ----------------------------------------------------------------- misc -- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .term .cursor {
    animation: none;
  }
  * {
    transition: none !important;
  }
}
