/* Delightful v3 (Wall). Ported from project/03-design/v3/wall/tokens.css. Tokens: the V2 visual layer, dark default, light designed.
   Every colour, size, radius and gap in chrome.css, home.css and the Wall pages comes from here.
   Contrast (AA, measured):
   dark  text-1 #ededed on ground 16.0, text-2 #a1a1a1 on ground 7.3 / on surface-2 6.2,
         text-3 #919191 on ground 6.0 / on surface-1 5.4 / on surface-2 4.9 (not used on surface-3)
   light text-1 #111 on ground 17.9, text-2 #555 on ground 7.3 / on surface-2 6.4,
         text-3 #6b6b6b on ground 5.1 / on surface-2 4.8 (not used on surface-3) */

@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  /* surfaces and text */
  --ground: #111111;
  --surface-1: #191919;
  --surface-2: #212121;
  --surface-3: #2a2a2a;
  --line: #262626;
  --text-1: #ededed;
  --text-2: #a1a1a1;
  --text-3: #919191;
  --focus: #ededed;
  --like: #ff3b4e;
  /* primary pill (in UI) and the pill that sits on images (always white, black text) */
  --primary-bg: #ffffff;
  --primary-text: #111111;
  --img-pill-bg: #ffffff;
  --img-pill-text: #111111;
  --img-btn-bg: rgba(0, 0, 0, .56);
  --img-btn-text: #ffffff;
  --scrim-tile: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0));
  --hover-ring: rgba(255, 255, 255, .24);
  --mask: #000000;
  /* floating layers: toast, menu */
  --pop-bg: #212121;
  --pop-shadow: 0 16px 48px rgba(0, 0, 0, .5);
  --avatar-bg: #2a2a2a;

  /* spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 40px; --s-8: 56px; --s-9: 80px;
  /* radii */
  --r-tile: 12px; --r-card: 16px; --r-pop: 14px; --r-control: 10px; --r-pill: 999px;

  /* type: Onest, Geist Mono for hints only */
  --font: "Onest", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --t-12: 12px; --t-13: 13px; --t-14: 14px; --t-16: 16px; --t-20: 20px; --t-28: 28px; --t-40: 40px;
  --w-regular: 400; --w-medium: 500; --w-semibold: 600;
  --track-display: -0.02em;

  /* layout */
  --gutter: 16px;
  --bar-h: 64px;
  --bar-h-condensed: 52px;
  --bar-squash: 0.8125;          /* 52 / 64, the bar's background scales to this */
  --bar-shift: -6px;             /* contents re-centre in the condensed bar */
  --scope-h: 48px;
  --scope-shift: -12px;          /* 64 - 52: the scope row rides up with the bar */
  --field-h: 44px;
  --field-max: 640px;
  --tap: 40px;
  --avatar: 32px;
  --icon: 20px;
  --icon-s: 16px;
  --mark: 28px;
  --tile-min: 236px;
  --cover-w: 160px;
  --cover-h: 120px;
  --focus-w: 2px;
  --focus-gap: 2px;
  --toast-bottom: 24px;
  --menu-w: 220px;
}
@media (min-width: 700px) {
  :root { --gutter: 24px; --cover-w: 240px; --cover-h: 160px; }
}
@media (min-width: 1100px) {
  :root { --cover-h: 200px; }
}

/* Light, designed: ground #fafafa, white surfaces lift the cards, shadows soft and only on floats. */
:root[data-theme="light"] {
  color-scheme: light;
  --ground: #fafafa; --surface-1: #ffffff; --surface-2: #f2f2f2; --surface-3: #e8e8e8; --line: #e5e5e5;
  --text-1: #111111; --text-2: #555555; --text-3: #6b6b6b; --focus: #111111;
  --primary-bg: #111111; --primary-text: #ffffff;
  --hover-ring: rgba(0, 0, 0, .2);
  --pop-bg: #ffffff; --pop-shadow: 0 16px 48px rgba(0, 0, 0, .16);
  --avatar-bg: #e8e8e8;
}

/* ---- legacy names: account.css, brands.css, overlay.css, cursor.css and the palette still read these; they alias the Wall tokens ---- */
:root {
  --bg: var(--ground); --s1: var(--surface-1); --s2: var(--surface-2); --s3: var(--surface-3);
  --line-2: #333333; --t1: var(--text-1); --t2: var(--text-2); --t3: var(--text-3);
  --on-t1: var(--primary-text); --scrim: rgba(0, 0, 0, .6); --float: var(--pop-shadow);
  --sans: var(--font);
  --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-16: 16px; --fs-20: 20px; --fs-28: 28px; --fs-40: 40px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 40px; --sp-8: 48px;
  --r-media: var(--r-tile); --r-ctl: var(--r-control);
  --page-x: var(--gutter);
}
:root[data-theme="light"] { --line-2: #d4d4d4; --on-t1: #fafafa; --scrim: rgba(17, 17, 17, .4); }
