/* Both themes, one stylesheet. The first part is the house palette (quiet mode), copied unchanged.
   goingin's own tokens follow it. Values and reasons: docs/design/DIRECTION.md, section 3. */

/* GENERATED by design-director/tools/register.py from the register. Never edit this file: edit the register, then run `register.py views`. Register stamp: WD113-ed3c40d7
   The house palette, quiet mode. A piece wears one mode; each colour's job is in the register's colour entries. Values are the register's token lines as written.
   On a navy or purple ground, put class="wears-dark" on the element: inside it the tokens take their dark-theme values. */
:root {
  /* grounds and neutral inks (WD-111) */
  --white: oklch(1 0 0);
  --paper: oklch(0.958 0.007 85); /* warm paper */
  --panel: oklch(0.995 0.002 85); /* raised */
  --panel-2: oklch(0.975 0.005 85); /* recessed */
  --hair: oklch(0.885 0.008 85);
  --hair-strong: oklch(0.78 0.01 85);
  --ink: oklch(0.24 0.012 80);
  --ink-2: oklch(0.45 0.012 80);
  --ink-3: oklch(0.57 0.012 80); /* large labels and marks only */
  --dot-fine: oklch(0.28 0.012 80 / 0.10);
  --dot-heavy: oklch(0.28 0.012 80 / 0.16);
  /* hues, quiet (WD-108) */
  --blue: oklch(0.52 0.075 225);
  --clay: oklch(0.635 0.11 50);
  --green: oklch(0.52 0.085 150);
  --coral-peach: oklch(0.80 0.07 55);
  --pink: oklch(0.68 0.085 15);
  --red: oklch(0.44 0.13 30);
  --navy: oklch(0.29 0.03 255);
  --yellow: #fbfc8e; /* the colour he supplied; the hex is the token */
  /* hues, quiet (WD-109) */
  --purple: oklch(0.34 0.085 301);
  /* derived: read from the light-theme values above, the same in both themes */
  --label-ink: oklch(0.24 0.012 80); /* the light theme's --ink (WD-111): the label on a fill that takes the dark ink */
  --navy-ground: oklch(0.29 0.03 255); /* the light theme's --navy (WD-108): the value a navy ground takes (WD-111) */
  --purple-ground: oklch(0.34 0.085 301); /* the light theme's --purple (WD-109): the value a purple ground takes (WD-111) */
}
:root[data-theme="dark"],
.wears-dark {
  /* grounds and neutral inks (WD-111) */
  --paper: oklch(0.205 0.006 80); /* the dark ground */
  --panel: oklch(0.255 0.007 80);
  --panel-2: oklch(0.232 0.006 80);
  --hair: oklch(0.34 0.008 80);
  --hair-strong: oklch(0.46 0.01 80);
  --ink: oklch(0.945 0.006 85);
  --ink-2: oklch(0.76 0.008 82);
  --ink-3: oklch(0.60 0.008 82);
  --dot-fine: oklch(0.98 0.006 85 / 0.10);
  --dot-heavy: oklch(0.98 0.006 85 / 0.16);
  /* hues, quiet (WD-108) */
  --blue: oklch(0.72 0.10 225);
  --clay: oklch(0.74 0.105 52);
  --green: oklch(0.75 0.085 150);
  --coral-peach: oklch(0.84 0.07 55);
  --pink: oklch(0.78 0.09 10);
  --red: oklch(0.64 0.14 30);
  --navy: oklch(0.91 0.02 250);
  --yellow: oklch(0.93 0.09 109);
  /* hues, quiet (WD-109) */
  --purple: oklch(0.74 0.085 301);
}

/* ---- goingin ---- */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Azeret Mono";
  src: url("../fonts/azeret-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ground: var(--white);
  --on-fill: var(--white); /* labels on blue, green and red fills */
  --warning: var(--coral-peach);

  /* the sitting screen: the same in both themes */
  --sit-ground: oklch(0.10 0.004 80);
  --sit-ink: oklch(0.48 0.02 75);

  --font-sans: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Azeret Mono", ui-monospace, monospace;
  --track-label: 0.02em;
  --track-door: 0.04em;
  --track-tight: -0.02em;
  --t-label: 0.75rem;     --lh-label: 1;  --lh-label-wrapped: 1.4;
  --t-small: 0.875rem;    --lh-small: 1.5;
  --t-body: 1.0625rem;    --lh-body: 1.6;
  --t-lede: 1.375rem;     --lh-lede: 1.35;
  --t-door: 1.75rem;      --lh-door: 1.2;
  --t-title: 2.5rem;      --lh-title: 1.05;
  --t-sit: clamp(5.5rem, 27vw, 6.5rem);

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;  --s-4: 16px;
  --s-5: 24px; --s-6: 40px; --s-7: 64px;  --s-8: 104px;
  --gutter: 24px;
  --cols: 6;
  --gap: 12px;
  /* The left edge of column 3: 142px on a 390px screen. */
  --axis: calc(var(--gutter) + 2 * ((100vw - 2 * var(--gutter) - (var(--cols) - 1) * var(--gap)) / var(--cols) + var(--gap)));
  --page: 40rem;
  --tap: 48px;
  --tap-play: 56px;
  --tap-copy: 52px;
  --tap-row: 72px;
  --radius: 2px;
  --line: 1px;
  --line-progress: 2px;
  --line-focus: 2px;
  --icon: 20px;
  --icon-stroke: 1.6px;
  --off: 0.4;

  --sit-number-baseline: 30dvh;
  --sit-out-baseline: 72px;
  --sit-out-band: 120px;

  --ease-arrive: cubic-bezier(0, 0, 0.2, 1);
  --t-quick: 200ms;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: var(--paper);
  --on-fill: var(--label-ink);
  --warning: var(--clay);
}
