/*
 * The app's own colours and typeface, so the site and the thing it is about
 * look like one product. Amber on near-black, Instrument Sans, and the same
 * restraint: no gradients, no shadows doing work a line could do.
 */

:root {
  --bg: #0a0b0d;
  --panel: #131519;
  --raised: #1a1d22;
  --line: #23262c;
  --line-2: #2e323a;
  --text: #f2f3f5;
  --muted: #9aa0aa;
  --dim: #6b7280;
  --accent: #e0a458;
  --accent-soft: #e0a4581f;
  --measure: 34rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── shell ─────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

header.top {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}

.mark { display: block; flex: none; }

nav.links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

nav.links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}

nav.links a:hover,
nav.links a[aria-current='page'] { color: var(--text); }

main { padding-block: 3.5rem 4.5rem; }

/* ── type ──────────────────────────────────────────────────────────── */

h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
  font-weight: 600;
}

h2 {
  font-size: 1.28rem;
  letter-spacing: -0.012em;
  margin: 2.75rem 0 0.7rem;
  font-weight: 600;
}

h3 {
  font-size: 1.02rem;
  margin: 1.9rem 0 0.35rem;
  font-weight: 600;
}

p, li { max-width: var(--measure); }

p { margin: 0 0 1rem; }

.lede {
  font-size: 1.16rem;
  color: var(--muted);
  max-width: 32rem;
}

a { color: var(--accent); text-underline-offset: 0.18em; }

strong { font-weight: 600; }

ul { padding-left: 1.15rem; margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }

.small { font-size: 0.92rem; color: var(--dim); }

/* ── pieces ────────────────────────────────────────────────────────── */

.note {
  border: 1px solid var(--line-2);
  background: var(--panel);
  border-radius: 0.7rem;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  max-width: var(--measure);
}

.note p:last-child { margin-bottom: 0; }

.pill {
  display: inline-block;
  border: 1px solid var(--line-2);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.82rem;
  margin-bottom: 1.1rem;
}

.features {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.9rem;
  max-width: 38rem;
}

.features li {
  margin: 0;
  max-width: none;
  padding-left: 1.4rem;
  position: relative;
  color: var(--muted);
}

/* a drawn mark, not a glyph */
.features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--accent);
}

.features b { color: var(--text); font-weight: 600; }

dl.facts { margin: 1.25rem 0; max-width: var(--measure); }
dl.facts dt { color: var(--dim); font-size: 0.86rem; margin-top: 1rem; }
dl.facts dd { margin: 0.15rem 0 0; }

.todo {
  border: 1px dashed var(--line-2);
  border-radius: 0.5rem;
  padding: 0.15rem 0.45rem;
  color: var(--accent);
  font-size: 0.9rem;
  white-space: nowrap;
}

footer.bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem 3rem;
  color: var(--dim);
  font-size: 0.9rem;
}

footer.bottom .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer.bottom a { color: var(--muted); text-decoration: none; }
footer.bottom a:hover { color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ── app screenshots ───────────────────────────────────────────────── */

.shots {
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  /* minmax(0, ...) rather than 1fr: a grid item's min-width is auto, and the
     day someone drops `width: 100%` from the images below, their intrinsic
     430px would become the column's floor and push the page off the screen.
     Measured: it changes nothing today. It is the cheap kind of insurance. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.shots img {
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
  border: 1px solid var(--line-2);
  display: block;
  background: var(--panel);
  min-width: 0;
}

.shots figcaption {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

@media (max-width: 40rem) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots img:nth-child(3) { display: none; }
}
