/* Design tokens for every Desk Genie page. This is the only stylesheet that names a color, a font family or a
   raw size. Every other stylesheet reads the semantic roles below through var(--...).
   test/tokens.test.js fails if a hex color or a font name shows up anywhere else.

   Primitives are the palette and the scales. Semantic roles say what a value is for. A theme is a block that
   redefines the roles and nothing else. Spotlight is the default theme.

   To add a second theme, copy the [data-theme="spotlight"] block, give it a new name, point its roles at other
   primitives (add new primitives above if needed) and set data-theme="<name>" on <html>:
     [data-theme="paper"]{--surface:var(--paper);--text:var(--black);...}                                  */

@font-face{font-family:Archivo;src:url(/fonts/archivo.woff2) format("woff2");font-weight:400 800;font-style:normal;font-display:swap}

:root{
  /* Palette */
  --black:#0A0A0B;
  --night:#000000;
  --smoke:#26262A;
  --charcoal:#141416;
  --soot:#111113;
  --iron:#3A3A40;
  --ash:#6B6862;
  --slate:#2E2E33;
  --grey:#9A968D;
  --stone:#C9C5BC;
  --linen:#DCD8CF;
  --paper:#F5F5F2;
  --cream:#F4E6C8;
  --cream-bright:#FFF1D6;
  --brass:#C79B45;
  --red:#D23B2A;
  --coral:#F2A48B;
  --white:#FFFFFF;
  /* Palette with alpha, for the flat light shapes */
  --cream-a24:#F4E6C83D;
  --cream-a15:#F4E6C826;
  --cream-a04:#F4E6C80A;
  --cream-a20:#F4E6C833;
  --cream-a70:#F4E6C8B3;
  --night-a70:#000000B3;

  /* Type */
  --font-sans:Archivo,ui-sans-serif,-apple-system,"Helvetica Neue",Arial,sans-serif;
  --weight-regular:400;
  --weight-medium:600;
  --weight-bold:700;
  --weight-black:800;
  --size-xs:13px;
  --size-sm:14.5px;
  --size-ui:15.5px;
  --size-md:17px;
  --size-lg:19px;
  --size-lede:20px;
  --size-xl:21px;
  --size-2xl:26px;
  --size-3xl:clamp(30px,3.4vw,44px);
  --size-4xl:clamp(38px,4.6vw,64px);
  --size-display:clamp(56px,8.6vw,124px);
  --size-name:clamp(60px,9vw,140px);
  --size-name-long:clamp(46px,6vw,92px);
  --size-hero:clamp(44px,5.4vw,84px);
  --size-section:clamp(32px,3.8vw,56px);
  --size-mono:140px;
  --leading-tight:.95;
  --leading-snug:1.25;
  --leading-body:1.5;
  --tracking-tight:-.045em;
  --tracking-snug:-.03em;
  --tracking-flat:0;

  /* Space */
  --space-3xs:2px;
  --space-2xs:4px;
  --space-xs:8px;
  --space-sm:12px;
  --space-md:16px;
  --space-lg:22px;
  --space-xl:28px;
  --space-2xl:38px;
  --space-3xl:48px;
  --space-4xl:56px;
  --space-5xl:72px;
  --space-6xl:96px;
  --section-space:var(--space-6xl);
  --section-space-narrow:var(--space-5xl);

  /* Shape */
  --radius:3px;
  --radius-round:50%;
  --border-width:1px;
  --border-strong:2px;
  --letterbox:28px;
  --letterbox-narrow:16px;
  --max-width:1280px;
  --max-width-text:760px;
  --max-width-form:520px;
  --measure:62ch;
  --gut:28px;
  --gut-narrow:16px;
  --bar-height:64px;
  --hero-height:clamp(520px,calc(100svh - 150px),680px);
  --hero-height-narrow:420px;
  --panel-space:var(--space-5xl);
  --panel-space-narrow:var(--space-3xl);
  --panel-gap:var(--space-4xl);
}

/* Spotlight: a black stage, one flat cone of light, cream type, a red underline for the current place. */
:root,[data-theme="spotlight"]{
  --surface:var(--black);
  --surface-raised:var(--charcoal);
  --surface-stage:var(--soot);
  --surface-soft:var(--smoke);
  --letterbox-color:var(--night);
  --text:var(--paper);
  --text-strong:var(--cream);
  --text-soft:var(--linen);
  --muted:var(--stone);
  --faint:var(--grey);
  --accent:var(--red);
  --accent-ink:var(--white);
  --credit:var(--brass);
  --button:var(--cream);
  --button-hover:var(--cream-bright);
  --button-text:var(--black);
  --rule:var(--slate);
  --field-border:var(--ash);
  --danger:var(--coral);
  --focus:var(--cream);
  --cone-top:var(--cream-a24);
  --cone-bottom:var(--cream-a04);
  --pool:var(--cream-a15);
  --ghost:var(--cream-a20);
  --outline-soft:var(--cream-a70);
  --subtitle-bg:var(--night-a70);
  --card-surface:var(--surface-raised);
  --card-text:var(--text);
  --card-rule:var(--rule);
  --separator:var(--credit);
}

/* Panels: a section sets data-panel to change the surface and the text roles under it. Roles only, no new
   primitives. "raised" is a lifted dark panel, "paper" and "cream" are the two light panels. */
[data-panel="raised"]{
  --surface:var(--charcoal);
  --card-surface:var(--smoke);
  --card-rule:var(--iron);
}
[data-panel="paper"]{
  --surface:var(--paper);
  --text:var(--black);
  --text-strong:var(--black);
  --text-soft:var(--smoke);
  --muted:var(--iron);
  --faint:var(--ash);
  --credit:var(--iron);
  --rule:var(--linen);
  --card-surface:var(--white);
  --card-text:var(--black);
  --card-rule:var(--linen);
}
[data-panel="cream"]{
  --surface:var(--cream);
  --text:var(--black);
  --text-strong:var(--black);
  --text-soft:var(--smoke);
  --muted:var(--iron);
  --faint:var(--smoke);
  --credit:var(--iron);
  --rule:var(--brass);
  --card-surface:var(--cream-bright);
  --card-text:var(--black);
  --card-rule:var(--brass);
}
