/* Void Live on the web: black, one mono face, hairlines instead of boxes, mint for the one thing to press. No scripts, no cookies,
   no third-party requests. The tokens are the app's (docs/design/tokens.md). */

@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/JetBrainsMono-Regular.woff") format("woff"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/JetBrainsMono-Medium.woff") format("woff"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/JetBrainsMono-Bold.woff") format("woff"); }

:root {
  color-scheme: dark;
  --ground: #000000;
  --text: #edeff2;
  --dim: #8a8f98;
  --mint: #7cf0b5;
  --amber: #ffb020;
  --hairline: #1f2226;
  --selection: #0e1012;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --column: 44rem;
}

* { box-sizing: border-box; }

html { background: var(--ground); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

::selection { background: var(--mint); color: #000; }

a { color: var(--mint); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--mint) 45%, transparent); text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--mint); }
a:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--column); margin: 0 auto; padding: 0 20px; }

/* Header: the wordmark and two links, a hairline under them. */
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 0 18px; border-bottom: 1px solid var(--hairline); }
.mark { color: var(--mint); font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: -0.01em; }
.mark:hover { text-decoration: none; }
.top nav { display: flex; gap: 22px; font-size: 14px; }
.top nav a { color: var(--dim); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }

main { padding: 56px 0 40px; }

h1 { font-size: clamp(34px, 8vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 20px; }
h1 .cursor { color: var(--mint); }
h2 { display: flex; align-items: center; gap: 12px; margin: 56px 0 20px; font-size: 13px; font-weight: 500; color: var(--dim); letter-spacing: 0.04em; }
h2::before { content: ""; width: 18px; height: 1px; background: var(--dim); }
h2::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
h3 { margin: 28px 0 6px; font-size: 16px; font-weight: 700; }

p { margin: 0 0 16px; }
.lede { font-size: 18px; color: var(--text); max-width: 34rem; }
.dim { color: var(--dim); }
.mint { color: var(--mint); }
.amber { color: var(--amber); }
small, .small { font-size: 13px; color: var(--dim); }

ul, ol { margin: 0 0 16px; padding-left: 1.3em; }
li { margin: 0 0 6px; }
li::marker { color: var(--dim); }

code { font-family: var(--mono); font-size: 0.93em; color: var(--text); }
pre { margin: 0 0 20px; padding: 14px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); overflow-x: auto; font-size: 14px; line-height: 1.6; }
pre code { color: var(--mint); font-size: inherit; white-space: pre; }
.prompt::before { content: "❯ "; color: var(--mint); }

/* The pillars of the landing page: a title, one sentence, hairlines between them. */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.rows > li { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--hairline); display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 4px 28px; }
.rows .name { font-weight: 700; }
.rows .what { color: var(--dim); }
@media (max-width: 560px) { .rows > li { grid-template-columns: 1fr; } }

/* Plans: the same rows, with the price on the right. */
.plans { margin: 0 0 16px; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.plans li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--hairline); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 20px; }
.plans .price { font-weight: 500; }
.plans .note { flex-basis: 100%; color: var(--dim); font-size: 14px; }

/* The path from the phone to the Mac, drawn in text. */
.path { margin: 8px 0 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.path .line { flex: 1 1 60px; min-width: 40px; height: 1px; background: var(--mint); }
.path .node { border: 1px solid var(--hairline); padding: 6px 12px; }

/* A text key, like the app's bracket actions. */
.key { display: inline-block; padding: 12px 18px; border: 1px solid var(--mint); color: var(--mint); text-decoration: none; font-weight: 500; min-height: 44px; }
.key:hover { background: var(--selection); text-decoration: none; }
.key.quiet { border-color: var(--hairline); color: var(--dim); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }

/* A status line at the top of a page that is not final yet. */
.status { margin: 0 0 28px; padding: 12px 0; border-top: 1px solid var(--amber); border-bottom: 1px solid var(--hairline); color: var(--amber); font-size: 14px; }

dl { margin: 0; }
dt { font-weight: 700; margin: 28px 0 4px; }
dd { margin: 0 0 8px; color: var(--text); }
dd + dd { margin-top: 8px; }

/* Documents (privacy, terms): a little more air, and numbers that follow the sections. */
.doc h2 { margin-top: 44px; }
.doc p, .doc li { max-width: 40rem; }
.meta { color: var(--dim); font-size: 14px; }

footer { border-top: 1px solid var(--hairline); padding: 26px 0 48px; color: var(--dim); font-size: 13px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
footer a { color: var(--dim); }
footer a:hover { color: var(--text); }
footer p { max-width: 36rem; margin: 0 0 8px; }

/* The one motion on the site: a block cursor, like the app's prompt line. */
.cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

@media (max-width: 560px) {
  body { font-size: 15px; }
  main { padding-top: 40px; }
  .top nav { gap: 16px; }
}
