/* Shared by every version in launch/next: type, colour, the nav, the footer, buttons.
 * Direction (unslop): a companion that learns your days and tells you, straight, whether a change
 * worked. Calm, exact, on your side. A bright morning table: paper, ink, one pen colour (the
 * brand's accent, from brand.js). Moments: the one card that becomes each thing it does; the dot.
 * Signature: the dot. It stands for you, and the story ends with it as the name's full stop.
 */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("fonts/ZillaSlab-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
/* the wordmark's face (SIL OFL), for what the product says in a control; only version C uses it so far */
@font-face {
  font-family: "Quicksand";
  src: url("fonts/Quicksand-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --paper: var(--b-paper-l, #f4f4f6);
  --paper-2: var(--b-paper2-l, #ebebef);
  --card: var(--b-card-l, #ffffff);
  --ink: var(--b-ink-l, #141418);
  --ink-2: var(--b-ink2-l, #55565e);
  --ink-3: var(--b-ink3-l, #8a8b93);
  --line: rgba(20, 20, 24, 0.08);
  --line-2: rgba(20, 20, 24, 0.14);
  --chip: #f1f1f4;
  --shadow: 0 1px 2px rgba(20, 20, 32, 0.05), 0 10px 28px rgba(20, 20, 32, 0.07);
  --accent: var(--accent-l, #6a45f5);
  --accent-ink: var(--accent-ink-l, #5b36ec);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --on-accent: #ffffff;
  --good: #1f8a5b;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --serif: "Zilla Slab", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --nav-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: var(--b-paper-d, #0e0e11);
    --paper-2: var(--b-paper2-d, #16161a);
    --card: var(--b-card-d, #1c1c21);
    --ink: var(--b-ink-d, #f2f2f5);
    --ink-2: var(--b-ink2-d, #a6a7b0);
    --ink-3: var(--b-ink3-d, #6f7079);
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.16);
    --chip: #26262c;
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --accent: var(--accent-d, #8f78ff);
    --accent-ink: var(--accent-d, #8f78ff);
    --on-accent: #0e0e11;
    --good: #4cc38a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: var(--b-paper-d, #0e0e11);
  --paper-2: var(--b-paper2-d, #16161a);
  --card: var(--b-card-d, #1c1c21);
  --ink: var(--b-ink-d, #f2f2f5);
  --ink-2: var(--b-ink2-d, #a6a7b0);
  --ink-3: var(--b-ink3-d, #6f7079);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --chip: #26262c;
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  --accent: var(--accent-d, #8f78ff);
  --accent-ink: var(--accent-d, #8f78ff);
  --on-accent: #0e0e11;
  --good: #4cc38a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 1;
  caret-color: var(--accent);
}
::selection { background: var(--accent-soft); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 50;
  background: var(--ink); color: var(--paper);
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* nav: the name and the one action */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -0.01em;
  line-height: 1;
}
.brand [data-brand-small] { display: inline-flex; width: 24px; height: 24px; }
.brand [data-brand-small] svg { width: 100%; height: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  border-radius: 10px;
  background: var(--ink); color: var(--paper);
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  transition: transform 120ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-s { min-height: 36px; padding: 0 14px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
}
.note { font-size: 13px; color: var(--ink-2); }

.foot {
  position: relative; z-index: 2;
  padding: 48px 32px 56px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between;
  font-size: 13px; color: var(--ink-2);
  background: var(--paper);
}
.foot .brand { font-size: 18px; color: var(--ink); }
.foot .brand [data-brand-small] { width: 20px; height: 20px; }

@media (max-width: 759px) {
  :root { --nav-h: 56px; }
  .nav { padding: 0 16px; }
  .foot { padding: 40px 16px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: background-color 160ms ease; }
  .btn:active { transform: none; }
}
