/* The landing shell: what every thing's page looks like. Measurements follow
   Vercel's Geist system (type scale, neutral ground, hairlines at 8% white),
   set in Geist itself, self-hosted. A site's style.css sets --accent (and
   --me, the local prompt) and nothing else. The accent is the page's
   identity: the primary button, the headline's second half, the shot's top
   edge, labels, icons and the status dot. Never body text. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --raised: #111111;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.14);
  --ink: #ededed;
  --muted: #a1a1a1;
  --dim: #8f8f8f;
  --ok: #62c073;
  --warn: #ff6166;
  --accent: #ededed;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 60rem;
  --measure: 40rem;
  --gutter: 1.5rem;
  --block: 7.5rem;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font: 500 0.9em var(--mono);
}

::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font: 500 0.9375rem/1 var(--sans);
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.btn:hover {
  background: color-mix(in srgb, var(--accent) 82%, #fff);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.22);
}

.btn-sm {
  height: 2rem;
  padding: 0 0.875rem;
  font-size: 0.875rem;
}

/* -------------------------------------------------------------- nav -- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgb(10 10 10 / 0.72);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--muted);
}

.nav-links a {
  transition: color 150ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
}

.hero-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.875rem 0.3125rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.03);
  color: var(--muted);
  font-size: 0.8125rem;
}

.dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  border: 1.5px solid var(--dim);
}

.status.live .dot {
  border: 0;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.hero h1 {
  max-width: 16ch;
  margin-top: 1.75rem;
  font-size: clamp(2.75rem, 7.2vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.sub {
  max-width: 38rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* ------------------------------------------------------------- shot -- */

.shot-wrap {
  position: relative;
  margin-top: 4.5rem;
}

/* the one decoration: the accent, far behind the product */
.shot-wrap::before {
  content: "";
  position: absolute;
  inset: 10% 15% auto;
  height: 70%;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  filter: blur(40px);
}

.shot {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-top-color: color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 0.875rem;
  background: linear-gradient(180deg, #141414, #0d0d0d);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.06),
    0 0 0 1px rgb(0 0 0 / 0.6),
    0 2.5rem 5rem -1.5rem rgb(0 0 0 / 0.9);
}

.shot-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  height: 2.5rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
}

.shot-bar span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: #2b2b2b;
}

.shot-bar b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--dim);
  font: 400 0.75rem var(--mono);
}

.shot-body {
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-x: auto;
  font: 400 0.84375rem/1.75 var(--mono);
}

.l {
  min-height: 1.75em;
  white-space: pre;
  color: var(--muted);
}

.l.c + .l.c,
.l:not(.c) + .l.c {
  margin-top: 0.75rem;
}

.l.c:first-child {
  margin-top: 0;
}

.p {
  color: var(--accent);
  font-style: normal;
}

.p.me::before {
  content: var(--me, "");
}

.t {
  color: var(--ink);
}

.ok,
.add {
  color: var(--ok);
}

.f,
.del {
  color: var(--warn);
}

.dim {
  color: var(--dim);
}

/* ------------------------------------------------------------ facts -- */

.facts {
  margin-top: 5rem;
}

.facts-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.facts-in li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fact-value {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.fact-label {
  color: var(--muted);
  font-size: 0.875rem;
}

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

.block {
  padding-top: calc(var(--block) * 1.15);
}

/* below the hero, every section starts on the container's edge, the same
   edge as the nav, the shot and the footer; text keeps a readable measure */
.split .head,
.split .list,
.split > .actions {
  max-width: var(--measure);
}

.label {
  color: var(--accent);
  font: 500 0.8125rem var(--mono);
}

.head h2 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------- list -- */

.list {
  display: grid;
  gap: 2.75rem;
  margin-top: 3.5rem;
}

.item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1.25rem;
}

.item h3 {
  margin-top: 0.5rem;
}

.item p {
  margin-top: 0.375rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.icon,
.step-no {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 0.625rem;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent);
}

.icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 1.75;
}

.step-no {
  border-radius: 50%;
  font: 500 0.875rem var(--mono);
}

/* the steps are one path: a rail joins the numbers */
.steps .item {
  position: relative;
}

.steps .item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 3rem;
  bottom: -2.25rem;
  width: 1px;
  background: var(--line-strong);
}

/* -------------------------------------------------------------- ask -- */

.ask {
  padding-bottom: var(--block);
}

.ask .actions {
  justify-content: flex-start;
  margin-top: 2rem;
}

/* ------------------------------------------------------------- foot -- */

.foot {
  border-top: 1px solid var(--line);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2.5rem;
  font-size: 0.875rem;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.foot-brand span {
  color: var(--dim);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--muted);
}

.foot-links a:hover {
  color: var(--ink);
}

/* -------------------------------------------------------------- 404 -- */

.lost {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 4rem);
  padding-block: 4rem;
}

/* ----------------------------------------------------------- narrow -- */

@media (max-width: 52rem) {
  .facts-in {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }
}

@media (max-width: 40rem) {
  :root {
    --gutter: 1rem;
    --block: 5rem;
  }

  .nav-links {
    display: none;
  }

  .nav-in .btn-sm {
    margin-left: auto;
  }

  .hero {
    padding-top: 4rem;
  }

  .shot-wrap {
    margin-top: 3rem;
  }

  .shot-body {
    padding: 1rem;
    font-size: 0.75rem;
  }

  .p.me::before {
    content: "";
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* the second half of a headline, stepped back */
/* the second half of a headline, in the site's own colour */
.quiet {
  display: block;
  color: var(--accent);
}

.lost-h {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

/* a .nix file in a shot (<.code>): the kit's roles, in the shell's colours */
.cm {
  color: var(--dim);
}

.s {
  color: var(--ok);
}

.m {
  color: var(--muted);
}

.a {
  color: var(--accent);
}
