/*
 * The dusk world, on the web.
 *
 * Palette copied from `apps/mobile/src/theme.ts`. There is no import path from TypeScript to
 * a stylesheet, so if the theme moves, move these — the app and its marketing site being
 * different colours is the sort of thing nobody files a bug about and everybody notices.
 *
 * No web fonts. The app's accent face is Iowan Old Style, which ships with macOS and iOS and
 * is not licensed for webfont serving; the stack below lands on it where it exists and on a
 * reasonable old-style serif everywhere else. Nothing here fetches from another host, which
 * also means the pages work on a locked-down network and load in one round trip.
 */
:root {
  --void: #08060c;
  --ink0: #0d0a12;
  --ink1: #17121e;
  --ink2: #211a2b;
  --hair: #362b44;
  --amber: #ffb454;
  --amber-d: #ff9026;
  --mint: #5fe0a8;
  --tx0: #f8f4fb;
  --tx1: #b4aac2;
  --tx2: #7c7189;
  --tx3: #564c64;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --measure: 34rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink0);
  color: var(--tx1);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  /* Long-form legal copy is the main job of two of these three pages. */
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.4rem 5rem;
}

/* ---- the lockup ------------------------------------------------------- */

.lockup {
  display: flex;
  align-items: center;
  /* Clear space is the mark's own rule (CLEAR_FRACTION, a little under half its height),
     expressed here against the rendered height rather than re-derived. */
  gap: 0.45em;
  /*
   * Hero-sized. This was 2rem, which put a 54px sign beside a 32px word on a page whose
   * whole job is to introduce the thing — "the 4 and the fourish should be bigger"
   * (2026-09-04). The mark is 1.7em of this, so the pair scales together.
   */
  font-size: clamp(2.5rem, 7vw, 3.4rem);
  text-decoration: none;
}
/*
 * Both forms of the mark: `<img src="/mark.svg">` on the inner pages, and the inlined `<svg>`
 * on the landing page, which is inlined precisely so the strike can run (Chrome will not
 * drive CSS animations inside an image-referenced SVG).
 *
 * `flex: none` so the mark is never the thing a tight row decides to shrink to nothing, and
 * the width/height override the intrinsic attributes the generator writes.
 */
.lockup img,
.lockup svg { height: 1.7em; width: auto; display: block; flex: none; }
.wordmark {
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--tx0);
  font-size: 1em;
}
.wordmark i {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
  letter-spacing: 0;
}

header.site { margin-bottom: 3rem; }

/* ---- type ------------------------------------------------------------- */

h1 {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--tx0);
  font-weight: 800;
  margin: 0 0 0.6rem;
}
h2 {
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  color: var(--tx0);
  font-weight: 700;
  margin: 2.6rem 0 0.5rem;
}
em.accent { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--amber); }
p { margin: 0 0 1rem; }
strong { color: var(--tx0); font-weight: 650; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--amber-d); }
.lede { font-size: 1.12rem; color: var(--tx1); }
.version { color: var(--tx3); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2.2rem; }
.fine { color: var(--tx3); font-size: 0.9rem; border-top: 1px solid var(--hair); padding-top: 1.2rem; margin-top: 3rem; }

ul { padding-left: 1.1rem; margin: 0 0 1rem; }
li { margin-bottom: 0.45rem; }
li::marker { color: var(--tx3); }

/* ---- blocks ----------------------------------------------------------- */

.card {
  background: var(--ink1);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin: 0 0 1rem;
}
.card h3 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--tx0); font-weight: 650; }
.card p:last-child { margin-bottom: 0; }

.pill {
  display: inline-block;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx2);
}

nav.foot {
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.92rem;
}
nav.foot a { color: var(--tx2); text-decoration: none; }
nav.foot a:hover { color: var(--amber); }

/* ---- app screenshots -------------------------------------------------- */

/*
 * Real captures from the simulator, at 620px for a ~310px display width. WebP, because the
 * same three shots are 1.0 MB as PNG and 102 KB as WebP — on a brochure page that is the
 * difference between the whole site being one small download and not.
 *
 * `width`/`height` are on the <img> as attributes so the box is reserved before the bytes
 * arrive and the text below does not jump.
 */
.shot {
  margin: 2rem 0 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.shot img {
  width: 100%;
  max-width: 310px;
  height: auto;
  display: block;
  /* Close to the device's own corner radius, so it reads as a phone and not as a panel. */
  border-radius: 26px;
  border: 1px solid var(--hair);
  /* A dark page needs the shot lifted off it, or the screenshot's own black bleeds
     into the background and the edges disappear. */
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.shot figcaption {
  color: var(--tx3);
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
  max-width: 30rem;
}
/* The lead shot carries the hero, so it gets a little more room and a little more size. */
.shot-lead { margin: 2.4rem 0 3rem; }
.shot-lead img { max-width: 340px; }

/* Wide tables/blocks must scroll inside themselves, never the page. */
.scroll-x { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
