/* Lowlit's site, in the look of the app itself (app/styles/noir.css): black, the light of a lamp just past the top
   left corner drawn in fine dots, the pictures lying over it like the app's own panel. Reading is in Inter; small
   figures and commands are in Geist Mono. White is what can be pressed. Nothing else has a colour. */

@font-face {
  font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-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;
}
@font-face {
  font-family: 'Geist Mono'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/geist-mono.woff) format('woff');
}

:root {
  color-scheme: dark;
  --font: 'Inter Variable', 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;
  --text: #f1f1f3;
  --text-2: #a5a5ac;
  /* the dimmest grey that is still read: 5.7 to 1 on black */
  --text-3: #85858e;
  --text-4: #4a4a51;
  --bg: #000;
  --panel: #060607;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .11);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --page: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --gap: clamp(32px, 5vw, 72px);
  --part: clamp(96px, 13vw, 176px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  position: relative; margin: 0; min-height: 100vh; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font); letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, figure, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
b { font-weight: 600; }
button { font: inherit; letter-spacing: inherit; }
::selection { background: rgba(255, 255, 255, .2); }
:focus { outline: none; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, .6); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .9em; letter-spacing: 0; }
p code { padding: .1em .38em; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--text); }

.nav, main > section, .foot { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--text); color: #000; font-size: 14px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---- the light: a canvas the script draws (site.js); it comes up from black with its first frame ---- */
.light { position: absolute; inset: 0 0 auto 0; z-index: 0; height: min(940px, 132vh); overflow: hidden; pointer-events: none; }
.light canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 900ms ease-out; }
.light.live canvas { opacity: 1; }
.light.lost canvas { visibility: hidden; }
/* without scripts, or without WebGL: the same lamp standing still. Rays from the corner, cut into dots, fading with distance */
.light::before {
  content: ''; position: absolute; inset: 0; display: none;
  background: conic-gradient(from 90deg at -5% -8%,
    rgba(220, 224, 235, .5) 0deg, rgba(220, 224, 235, .1) 7deg, rgba(220, 224, 235, .62) 15deg, rgba(220, 224, 235, .14) 24deg,
    rgba(220, 224, 235, .48) 33deg, rgba(220, 224, 235, .08) 42deg, rgba(220, 224, 235, .58) 51deg, rgba(220, 224, 235, .12) 60deg,
    rgba(220, 224, 235, .42) 70deg, rgba(220, 224, 235, .06) 80deg, rgba(220, 224, 235, .3) 90deg, transparent 90deg);
  -webkit-mask-image: radial-gradient(circle, #000 0 .7px, transparent 1.1px), radial-gradient(ellipse 78% 86% at 0% 0%, #000, rgba(0, 0, 0, .5) 30%, rgba(0, 0, 0, .16) 58%, transparent 82%);
  -webkit-mask-size: 4px 4px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(circle, #000 0 .7px, transparent 1.1px), radial-gradient(ellipse 78% 86% at 0% 0%, #000, rgba(0, 0, 0, .5) 30%, rgba(0, 0, 0, .16) 58%, transparent 82%);
  mask-size: 4px 4px, 100% 100%;
  mask-repeat: repeat, no-repeat;
  mask-composite: intersect;
}
.light.flat::before { display: block; }
@media (scripting: none) { .light::before { display: block; } }

/* ---- what stands on the light: a soft black halo round every letter, so words cut through the dots ---- */
.nav, .hero > :not(.shot) { text-shadow: 0 0 2px #000, 0 0 4px #000, 0 0 12px rgba(0, 0, 0, .95); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 19px; font-weight: 600; letter-spacing: -.04em; }
.brand img { width: 25px; height: 18px; }
.nav nav { display: flex; align-items: center; gap: 28px; color: #cfcfd4; font-size: 14px; }
.nav nav a:not(.pill) { padding: 8px 0; transition: color 160ms var(--ease); }
.nav nav a:not(.pill):hover { color: #fff; }
.pill {
  display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(10, 10, 12, .7); color: var(--text); font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); text-shadow: none;
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}
.pill:hover { background: rgba(32, 32, 36, .8); border-color: rgba(255, 255, 255, .22); }

/* ---- the top ---- */
.hero { padding-top: clamp(52px, 8.5vw, 116px); }
.eyebrow, .fine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--mono); letter-spacing: 0; }
.eyebrow { color: #cfcfd4; font-size: 12.5px; font-weight: 500; line-height: 1.4; }
.eyebrow i, .fine i { flex: none; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
h1 { margin-top: 22px; max-width: 12em; font-size: clamp(40px, 7.2vw, 88px); line-height: 1; font-weight: 600; letter-spacing: -.048em; text-wrap: balance; }
.lede { margin-top: 26px; max-width: 33em; color: #c3c3c9; font-size: clamp(17px, 1.55vw, 20.5px); line-height: 1.55; text-wrap: pretty; }
.lede code { padding: 0; background: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(10, 10, 12, .7); color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); text-shadow: none;
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}
.btn:hover { background: rgba(32, 32, 36, .8); border-color: rgba(255, 255, 255, .22); }
.btn.solid { background: var(--text); border-color: var(--text); color: #000; box-shadow: 0 0 22px rgba(255, 255, 255, .14); }
.btn.solid:hover { background: #fff; border-color: #fff; }
.fine { margin-top: 22px; color: #a5a5ac; font-size: 12px; line-height: 1.5; }

/* ---- a picture of the app: obsidian over the light, a thin rim of it along the top and the left where the lamp
   ---- catches the edge, round the corner and fading away from it (the app's own panel) ---- */
.shot {
  position: relative; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .09); background: var(--panel);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .85), 0 50px 120px -50px #000;
}
.shot img { width: 100%; }
.shot::after {
  content: ''; position: absolute; inset: 0; border-radius: 13px; pointer-events: none;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .32);
  -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .3) 32%, transparent 72%), linear-gradient(180deg, #000, rgba(0, 0, 0, .25) 120px, transparent 45%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .3) 32%, transparent 72%), linear-gradient(180deg, #000, rgba(0, 0, 0, .25) 120px, transparent 45%);
  mask-composite: intersect;
}
.shot.lead { margin-top: clamp(48px, 7vw, 88px); }

/* ---- the parts of the page ---- */
h2 { font-size: clamp(28px, 3.7vw, 46px); line-height: 1.08; font-weight: 600; letter-spacing: -.038em; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.022em; }
.sub { margin-top: 16px; max-width: 34em; color: var(--text-2); font-size: clamp(16px, 1.4vw, 18.5px); text-wrap: pretty; }
.three, .features, .trust, .install { padding-top: var(--part); }

.three ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 48px); margin-top: clamp(40px, 5vw, 64px); }
.three li { padding-top: 22px; border-top: 1px solid var(--line-2); }
.n, .kicker { color: var(--text-3); font: 500 12.5px/1 var(--mono); letter-spacing: 0; }
.three h3 { margin-top: 18px; }
.three li p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; }

.features { display: grid; gap: clamp(88px, 12vw, 168px); }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .words { order: 2; }
.feature h2 { margin-top: 16px; font-size: clamp(26px, 3.1vw, 38px); }
.feature .words p:not(.kicker) { margin-top: 16px; max-width: 30em; color: var(--text-2); font-size: 16.5px; line-height: 1.62; text-wrap: pretty; }

.trust { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap); align-items: start; }
.trust-head p { margin-top: 18px; color: var(--text-2); font-size: 16.5px; line-height: 1.62; text-wrap: pretty; }
.never li { padding: 18px 0; border-top: 1px solid var(--line-2); color: var(--text-2); font-size: 16px; line-height: 1.55; }
.never b { color: var(--text); }
.keeper { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px var(--gap); padding-top: 22px; border-top: 1px solid var(--line-2); }
.keeper p { color: var(--text-2); font-size: 16px; line-height: 1.55; }

.install > * { max-width: 720px; }
.term { margin-top: 28px; overflow: hidden; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.term-bar { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--line); color: var(--text-3); font: 500 12px/1 var(--mono); letter-spacing: 0; }
.copy { height: 28px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text-2); font: 500 12px/1 var(--font); cursor: pointer; transition: background 160ms var(--ease), color 160ms var(--ease); }
.copy:hover { background: rgba(255, 255, 255, .09); color: var(--text); }
.term pre { padding: 18px 20px 20px; overflow-x: auto; color: var(--text); font: 400 14px/1.9 var(--mono); letter-spacing: 0; }
.term pre code { font-size: inherit; }
.term .p { margin-right: 6px; color: var(--text-4); user-select: none; }
.after { margin-top: 20px; color: var(--text-2); font-size: 15.5px; text-wrap: pretty; }
.after a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .32); text-underline-offset: 3px; transition: text-decoration-color 160ms var(--ease); }
.after a:hover { text-decoration-color: #fff; }

.foot { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px 32px; margin-top: var(--part); padding: 36px 0 56px; border-top: 1px solid var(--line-2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--text-2); font-size: 14px; }
.foot nav a { transition: color 160ms var(--ease); }
.foot nav a:hover { color: var(--text); }
.foot p { grid-column: 1 / -1; max-width: 46em; color: var(--text-3); font-size: 13px; text-wrap: pretty; }

@media (max-width: 900px) {
  .feature, .feature.flip, .trust, .keeper { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .words { order: 0; }
  .three ol { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .three li { padding: 22px 0 26px; }
  .trust-head { padding-bottom: 32px; }
}
@media (max-width: 640px) {
  .nav { height: 64px; }
  .nav nav a:not(.pill) { display: none; }
  /* a line each: a dot left at the end of a line says nothing */
  .eyebrow, .fine { flex-direction: column; align-items: flex-start; gap: 3px; }
  .eyebrow i, .fine i { display: none; }
  .cta .btn { flex: 1 1 150px; }
  .term pre { padding: 16px; font-size: 12.5px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
