/* Room Studio tokens. Every value here is authored by slash.team; teams only
   choose among these named settings (data-* attributes on <html>). */

/* Palettes. Ink/bg, muted/bg and accent-text/bg each clear WCAG AA 4.5:1. */
:root[data-palette="paper"], :root[data-variant="release"][data-palette="house"] {
  --bg: #f5f1e8; --surface: #fffcf6; --surface-2: #ece6d8; --ink: #1f1c17; --muted: #5d574b; --rule: #d9d1c1;
  --accent: #b23a1c; --accent-ink: #ffffff; --accent-text: #a4341a; --live: #b23a1c;
  --tint: #c2541f; --tint-amt: 0.1;
  --t0: #e9d3c4; --t1: #d7dccb; --t2: #d6d3e6; --t3: #efdcae; --t4: #cfe0de; --tone-ink: #1f1c17;
  color-scheme: light;
}
:root[data-palette="midnight"] {
  --bg: #0f0d16; --surface: #17141f; --surface-2: #221e2c; --ink: #f4eee2; --muted: #b0a8bf; --rule: #342e44;
  --accent: #ff4f8b; --accent-ink: #1b0611; --accent-text: #ff79a5; --live: #ff4f8b;
  --tint: #7b3dff; --tint-amt: 0.42;
  --t0: #3a2350; --t1: #4a1d33; --t2: #1f3550; --t3: #4d3a1a; --t4: #1d4440; --tone-ink: #f4eee2;
  color-scheme: dark;
}
:root[data-palette="dusk"], :root[data-variant="masthead"][data-palette="house"] {
  --bg: #181512; --surface: #211d19; --surface-2: #2b2621; --ink: #f6efdf; --muted: #b8ae9b; --rule: #3d372f;
  --accent: #ff7440; --accent-ink: #1c0b03; --accent-text: #ff8d62; --live: #ff7440;
  --tint: #ff5a1f; --tint-amt: 0.2;
  --t0: #4b2c1c; --t1: #3b3a24; --t2: #2b3240; --t3: #4a2532; --t4: #243c35; --tone-ink: #f6efdf;
  color-scheme: dark;
}
:root[data-palette="riso"] {
  --bg: #f3ede0; --surface: #fcf8ef; --surface-2: #e8dfcc; --ink: #1c1b36; --muted: #53516c; --rule: #d3c9b4;
  --accent: #d81b5c; --accent-ink: #ffffff; --accent-text: #be1650; --live: #2747d1;
  --tint: #ff3d9a; --tint-amt: 0.38;
  --t0: #f7c6d8; --t1: #c7d1fa; --t2: #fbe3a3; --t3: #c9ead6; --t4: #e5cff5; --tone-ink: #1c1b36;
  color-scheme: light;
}
:root[data-palette="moss"] {
  --bg: #edf0e6; --surface: #f8faf3; --surface-2: #dfe5d6; --ink: #15211a; --muted: #4a594d; --rule: #c8d1c0;
  --accent: #2c6a43; --accent-ink: #ffffff; --accent-text: #2a6640; --live: #2c6a43;
  --tint: #3b8a55; --tint-amt: 0.28;
  --t0: #cfe0c4; --t1: #e3dcb8; --t2: #c3d8d6; --t3: #e2cdbf; --t4: #d6d0e3; --tone-ink: #15211a;
  color-scheme: light;
}
:root[data-palette="chalk"], :root[data-variant="dispatch"][data-palette="house"] {
  --bg: #f2f4f7; --surface: #ffffff; --surface-2: #e8ecf1; --ink: #121823; --muted: #525c6c; --rule: #d6dce4;
  --accent: #2152d0; --accent-ink: #ffffff; --accent-text: #1f4ec9; --live: #0d7a57;
  --tint: #2a5bd8; --tint-amt: 0.16;
  --t0: #d6e1f7; --t1: #d9eee5; --t2: #f1e0cf; --t3: #e6dbf3; --t4: #f3dbe0; --tone-ink: #121823;
  color-scheme: light;
}
:root[data-palette="signal"] {
  --bg: #0b0b0a; --surface: #141413; --surface-2: #1f1f1d; --ink: #f7f7f2; --muted: #a8a89f; --rule: #2e2e2b;
  --accent: #d4ff3f; --accent-ink: #0b0d00; --accent-text: #d4ff3f; --live: #ff4d3d;
  --tint: #b8ff00; --tint-amt: 0.14;
  --t0: #2c3a10; --t1: #3a1c19; --t2: #1d2d3d; --t3: #33281a; --t4: #2a2238; --tone-ink: #f7f7f2;
  color-scheme: dark;
}

/* Headline voices. Body copy always stays in the readable sans. */
:root[data-type="condensed"] {
  --display: Display, "Arial Narrow", sans-serif; --display-weight: 700; --display-case: uppercase; --display-track: -0.005em; --display-lh: 0.88; --display-style: normal;
}
:root[data-type="serif"] {
  --display: var(--serif); --display-weight: 500; --display-case: none; --display-track: -0.025em; --display-lh: 1; --display-style: italic;
}
:root[data-type="grotesk"] {
  --display: var(--sans); --display-weight: 600; --display-case: none; --display-track: -0.045em; --display-lh: 1; --display-style: normal;
}
:root[data-type="mono"] {
  --display: var(--mono); --display-weight: 500; --display-case: none; --display-track: -0.06em; --display-lh: 1; --display-style: normal;
}

/* Corners */
:root[data-shape="square"] { --r: 0px; --r-sm: 0px; }
:root[data-shape="soft"] { --r: 10px; --r-sm: 6px; }
:root[data-shape="round"] { --r: 22px; --r-sm: 999px; }
:root[data-shape="round"] .av { border-radius: 50%; }

/* Spacing */
:root[data-density="calm"] { --s: 1; }
:root[data-density="compact"] { --s: 0.7; font-size: 14px; }

/* Textures: drawn with gradients over .tx surfaces. */
.tx { position: relative; isolation: isolate; }
.tx::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; }
:root[data-texture="grooves"] .tx::after {
  opacity: 1; mix-blend-mode: soft-light;
  background: repeating-radial-gradient(circle at 82% 44%, #0000 0 2px, #ffffff30 2px 3px, #0000 3px 5px);
}
:root[data-texture="stars"] .tx::after {
  opacity: 0.9;
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, #0000 51%),
    radial-gradient(1px 1px at 33% 64%, #fff 50%, #0000 51%),
    radial-gradient(1.4px 1.4px at 58% 22%, #fff 50%, #0000 51%),
    radial-gradient(1px 1px at 76% 71%, #fff 50%, #0000 51%),
    radial-gradient(1.6px 1.6px at 88% 12%, #fff 50%, #0000 51%),
    radial-gradient(1px 1px at 22% 86%, #fff 50%, #0000 51%),
    radial-gradient(1.2px 1.2px at 47% 44%, #fff 50%, #0000 51%);
  background-size: 220px 160px;
}
:root[data-texture="grid"] .tx::after {
  opacity: 1; mix-blend-mode: overlay;
  background:
    linear-gradient(#ffffff26 1px, #0000 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, #ffffff26 1px, #0000 1px) 0 0 / 24px 24px;
}
:root[data-texture="halftone"] .tx::after {
  opacity: 1; mix-blend-mode: multiply;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, #0000) 1.3px, #0000 1.6px) 0 0 / 7px 7px;
}

/* Cover tint: owned art takes on the team palette. */
.tint-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--tint); opacity: var(--tint-amt); mix-blend-mode: color; }
/* Display size multipliers so each voice reads at a similar visual weight. */
:root { --display-k: 1; }
:root[data-type="serif"] { --display-k: 0.74; }
:root[data-type="grotesk"] { --display-k: 0.66; }
:root[data-type="mono"] { --display-k: 0.56; }
.display { font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); line-height: var(--display-lh); font-style: var(--display-style); }

:root[data-type="house"] {
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: var(--sans); --display-weight: 400; --display-case: none;
  --display-track: -0.035em; --display-lh: 1.04; --display-style: normal;
}
:root[data-palette="house"][data-variant] {
  --bg: #f8f8f5; --surface: #fff; --surface-2: #ebeee8;
  --ink: #202721; --muted: #55605a; --rule: #d4d8d2;
  --accent: #295d47; --accent-text: #295d47; --accent-ink: white; --live: #32664f;
  --tint-amt: 0; color-scheme: light;
}
:root[data-type="house"] .top .wordmark { font-weight: 400; font-size: 20px; letter-spacing: -0.025em; }
:root[data-type="house"] .watch-caption h1, :root[data-type="house"] .pinned-proof b { font-family: var(--sans); font-weight: 400; letter-spacing: -0.035em; }
