/* Studio: the base style. A style is only tokens; studio.css (the shell) reads them and never
   hardcodes a colour, radius or font. A new style is a copy of this file with other values, plus its
   id in STYLES (schema.js) and a <link> in scripts/tenant.mjs. */

:root[data-style="studio"] {
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --display-weight: 400;
  --display-style: normal;

  --accent: #f0532b;
  --accent-ink: #fff;

  --text: #17161a;
  --muted: #5d5a63;
  --faint: #8d8994;
  --line: rgba(20, 16, 30, .1);
  --line-strong: rgba(20, 16, 30, .16);

  --wall: radial-gradient(120% 90% at 85% 0%, #fde0cb 0%, rgba(253, 224, 203, 0) 60%),
          radial-gradient(90% 80% at 0% 100%, #dcdcf6 0%, rgba(220, 220, 246, 0) 70%),
          linear-gradient(180deg, #fbefe6 0%, #efe9f1 100%);
  --stars: none;

  --surface: #fff;
  --surface-2: #f6f4f3;
  --surface-sunk: #f3f1f0;
  --glass: rgba(255, 255, 255, .62);
  --glass-line: rgba(255, 255, 255, .8);
  --menubar: rgba(255, 255, 255, .55);

  --sticky: #fbe9a6;
  --sticky-ink: #3b3320;

  --shadow-win: 0 1px 0 rgba(255,255,255,.6) inset, 0 24px 60px -18px rgba(40, 20, 60, .28), 0 2px 8px rgba(40, 20, 60, .08);
  --shadow-soft: 0 10px 30px -12px rgba(40, 20, 60, .25);

  --r-win: 12px;
  --r-tile: 22%;
  --r-btn: 9px;
  --r-card: 12px;

  --cover: repeating-linear-gradient(135deg, var(--accent) 0 22px, color-mix(in srgb, var(--accent) 62%, #fff) 22px 44px);
}

/* Dark: the same room at night. Auto follows the visitor's system unless they (or the owner) pick. */
:root[data-style="studio"][data-mode="dark"] {
  --text: #f4f1f6;
  --muted: #aaa4b1;
  --faint: #7d7785;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);

  --wall: radial-gradient(110% 80% at 65% 0%, #4a2418 0%, rgba(74, 36, 24, 0) 62%),
          radial-gradient(90% 80% at 0% 100%, #2c1f5c 0%, rgba(44, 31, 92, 0) 70%),
          linear-gradient(180deg, #1b1214 0%, #110d1a 100%);
  --stars: radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.5), transparent 60%),
           radial-gradient(1px 1px at 66% 12%, rgba(255,255,255,.4), transparent 60%),
           radial-gradient(1px 1px at 82% 46%, rgba(255,255,255,.35), transparent 60%),
           radial-gradient(1px 1px at 34% 70%, rgba(255,255,255,.35), transparent 60%),
           radial-gradient(1px 1px at 90% 82%, rgba(255,255,255,.4), transparent 60%),
           radial-gradient(1px 1px at 20% 90%, rgba(255,255,255,.3), transparent 60%),
           radial-gradient(1px 1px at 55% 55%, rgba(255,255,255,.25), transparent 60%);

  --surface: #1e1c22;
  --surface-2: #26232b;
  --surface-sunk: #17151b;
  --glass: rgba(40, 36, 46, .6);
  --glass-line: rgba(255, 255, 255, .1);
  --menubar: rgba(18, 14, 22, .45);

  --sticky: #fbe3b8;
  --sticky-ink: #3b2f20;

  --shadow-win: 0 0 0 1px rgba(255,255,255,.06), 0 24px 60px -18px rgba(0, 0, 0, .7);
  --shadow-soft: 0 10px 30px -12px rgba(0, 0, 0, .6);
}

/* Before the script runs, "auto" is still on the page: follow the system so a dark-mode visitor
   never sees a white loading screen. Same values as the block above. */
@media (prefers-color-scheme: dark) {
  :root[data-style="studio"][data-mode="auto"] {
    --text: #f4f1f6;
    --muted: #aaa4b1;
    --faint: #7d7785;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .14);
  
    --wall: radial-gradient(110% 80% at 65% 0%, #4a2418 0%, rgba(74, 36, 24, 0) 62%),
            radial-gradient(90% 80% at 0% 100%, #2c1f5c 0%, rgba(44, 31, 92, 0) 70%),
            linear-gradient(180deg, #1b1214 0%, #110d1a 100%);
    --stars: radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.5), transparent 60%),
             radial-gradient(1px 1px at 66% 12%, rgba(255,255,255,.4), transparent 60%),
             radial-gradient(1px 1px at 82% 46%, rgba(255,255,255,.35), transparent 60%),
             radial-gradient(1px 1px at 34% 70%, rgba(255,255,255,.35), transparent 60%),
             radial-gradient(1px 1px at 90% 82%, rgba(255,255,255,.4), transparent 60%),
             radial-gradient(1px 1px at 20% 90%, rgba(255,255,255,.3), transparent 60%),
             radial-gradient(1px 1px at 55% 55%, rgba(255,255,255,.25), transparent 60%);
  
    --surface: #1e1c22;
    --surface-2: #26232b;
    --surface-sunk: #17151b;
    --glass: rgba(40, 36, 46, .6);
    --glass-line: rgba(255, 255, 255, .1);
    --menubar: rgba(18, 14, 22, .45);
  
    --sticky: #fbe3b8;
    --sticky-ink: #3b2f20;
  
    --shadow-win: 0 0 0 1px rgba(255,255,255,.06), 0 24px 60px -18px rgba(0, 0, 0, .7);
    --shadow-soft: 0 10px 30px -12px rgba(0, 0, 0, .6);
  }
}
