/*
 * The new look's variables (docs/agents/portal-design.md, "Where the values come from").
 * Copied from the website's apps/site/src/styles/system/tokens.css, lines 13-134, at skinsouk
 * a19015ed04e1b050eb586953758543cb1e02fd43 (its origin/main on 18 November 2026): the :root
 * block, names and values unchanged. Not copied: the site's springs.css and its motion layers
 * (the portal is still). --font-site is written by views/fonts.tsx, beside the typeface's faces.
 * Kept in step by hand, the site's side first: a diff of the two :root blocks shows only this
 * comment and the portal's own two blocks below, the phone block and the tiles' sides.
 */
:root {
  /* The seven soft colours, four steps each (System §1). */
  --color-rose-tint: #fde3eb;
  --color-rose-soft: #fbd1de;
  --color-rose-mid: #f8aac5;
  --color-rose-deep: #9b255c;
  --color-sky-tint: #deedfc;
  --color-sky-soft: #c9e1f9;
  --color-sky-mid: #9ec9f4;
  --color-sky-deep: #195e98;
  --color-sand-tint: #f3eae0;
  --color-sand-soft: #ebdbca;
  --color-sand-mid: #edd0b3;
  --color-sand-deep: #765228;
  --color-butter-tint: #fbeac2;
  --color-butter-soft: #f6db9d;
  --color-butter-mid: #f4c85b;
  --color-butter-deep: #7b5101;
  --color-lilac-tint: #ede8fb;
  --color-lilac-soft: #e2d8f9;
  --color-lilac-mid: #c1a8e9;
  --color-lilac-deep: #66459b;
  --color-green-tint: #dff1e2;
  --color-green-soft: #c8e8cd;
  --color-green-mid: #9bd3a6;
  --color-green-deep: #266738;
  --color-apricot-tint: #fde6d8;
  --color-apricot-soft: #fdd5bb;
  --color-apricot-mid: #e99d67;
  --color-apricot-deep: #88470d;

  /* The fixed colours. */
  --color-canvas: #fdf8f9;
  --color-paper: #ffffff;
  --color-oat: #f6f3f1;
  --color-ink: #1b1a21;
  --color-ink-2: #4a4652;
  --color-muted: #625f6a;
  --color-hero-pink: #dd5f92;
  --color-red: #b90f00;
  --color-unavailable: #d0cad1;

  /* The edges, and the veil behind a dialog or a sheet. */
  --color-edge: rgb(27 26 33 / 6%);
  --color-edge-pill: rgb(27 26 33 / 8%);
  --color-edge-inverse: rgb(255 255 255 / 16%);
  --color-scrim: rgb(27 26 33 / 50%);

  /* The weights (System §2). */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* The thirteen roles: size (with -mobile below the desktop screen), line height, tracking. */
  --text-display-mobile: 44px;
  --text-display: 76px;
  --text-headline-mobile: 32px;
  --text-headline: 54px;
  --text-title-mobile: 28px;
  --text-title: 40px;
  --text-heading-mobile: 22px;
  --text-heading: 28px;
  --text-name: 16px;
  --text-lead-mobile: 17px;
  --text-lead: 18px;
  --text-body: 16px;
  --text-label: 14px;
  --text-small-mobile: 12px;
  --text-small: 13px;
  --text-overline: 11px;
  --text-badge: 11px;
  --text-price: 17px;
  --text-price-large-mobile: 28px;
  --text-price-large: 36px;

  /* The logo's word (System §9): 24 in a phone's header and the menu, 30 in the wide header, 34 on the footer. */
  --text-logo-24: 24px;
  --text-logo-30: 30px;
  --text-logo-34: 34px;

  --leading-display: 102%;
  --leading-headline: 105%;
  --leading-title: 108%;
  --leading-heading: 120%;
  --leading-name: 130%;
  --leading-lead: 155%;
  --leading-body: 160%;
  --leading-label: 120%;
  --leading-small: 140%;
  --leading-overline: 120%;
  --leading-badge: 120%;
  --leading-price: 100%;

  --tracking-display: -0.035em;
  --tracking-headline: -0.035em;
  --tracking-title: -0.03em;
  --tracking-heading: -0.02em;
  --tracking-overline: 0.14em;
  --tracking-price-large: -0.01em;

  /* The corners (System §3). */
  --radius-pill: 999px;
  --radius-16: 16px;
  --radius-24: 24px;
  --radius-32: 32px;
  --radius-40: 40px;
  /* A tick box's corner, and nothing else's (the seat's ruling, 17 Nov). */
  --radius-6: 6px;

  /* The heights: a button, a chip or small button, a field (System §4 "Heights"). */
  --spacing-control: 44px;
  --spacing-control-small: 36px;
  --spacing-field: 48px;

  /* The shadows: only on what lifts, floats, or is the homepage's search bar (System §3). */
  --shadow-lift: 0 1px 2px rgba(27, 26, 33, 0.05), 0 8px 20px -6px rgba(27, 26, 33, 0.1);
  --shadow-float: 0 2px 6px rgba(27, 26, 33, 0.06), 0 20px 48px -12px rgba(27, 26, 33, 0.16);
  --shadow-glow:
    0 0 0 6px rgba(255, 255, 255, 0.45), 0 18px 50px -14px rgba(220, 110, 148, 0.45),
    0 2px 6px rgba(27, 26, 33, 0.05);
}

/*
 * The portal's own addition: under 900, its one main breakpoint, each role with a phone size
 * takes it. The markup keeps its class names, so a rule writes one size variable whatever the
 * width, and this block gives it the phone's value.
 */
@media (max-width: 900px) {
  :root {
    --text-display: var(--text-display-mobile);
    --text-headline: var(--text-headline-mobile);
    --text-title: var(--text-title-mobile);
    --text-heading: var(--text-heading-mobile);
    --text-lead: var(--text-lead-mobile);
    --text-small: var(--text-small-mobile);
    --text-price-large: var(--text-price-large-mobile);
  }
}

/*
 * The portal's own names, which the site does not hold: the sides of a tile, the square with
 * corners of 16 that holds a product's picture on oat or an icon on its tint
 * (docs/agents/portal-design.md, « The tiles »). The heights above are a control's: a tile of
 * the same side reads its own name.
 */
:root {
  --size-tile-small: 36px;
  --size-tile: 44px;
  --size-tile-large: 48px;
}
