/*
  Soulslands theme: every colour of the site lives here and nowhere else.
  To change the palette, edit only this file; site.css holds layout and
  structure and reads colours through these variables. The *-rgb values
  are the same colours as "R, G, B" so site.css can add transparency.
*/
:root,
[data-bs-theme="dark"] {
  --ss-orange: #f07b1a;
  --ss-orange-hover: #ff9233;
  --ss-black: #0e0e0f;
  --ss-panel: #1a1a1c;
  --ss-panel-border: #2e2e32;
  --ss-grey: #9a9a9f;
  --ss-text: #e6e6e8;
  /* Gold glow for the game title and the most important text. */
  --ss-gold: #ffd23f;
  --ss-gold-glow: rgba(255, 210, 63, .6);
  /* Cyan for small, special details only. */
  --ss-cyan: #3ee6f2;
  --ss-cyan-glow: rgba(62, 230, 242, .55);

  /* Same colours as R, G, B channels, for transparent variants. */
  --ss-orange-rgb: 240, 123, 26;
  --ss-orange-hover-rgb: 255, 146, 51;
  --ss-gold-rgb: 255, 210, 63;
  --ss-cyan-rgb: 62, 230, 242;
  --ss-ember-dark-rgb: 140, 40, 10;
  --ss-steel-rgb: 90, 90, 100;
  --ss-shadow-rgb: 0, 0, 0;
  --ss-light-rgb: 255, 255, 255;
  --ss-glass-top-rgb: 38, 38, 42;
  --ss-glass-bottom-rgb: 16, 16, 18;
  --ss-hero-top-rgb: 22, 22, 24;
  --ss-hero-bottom-rgb: 10, 10, 11;
  --ss-online-rgb: 74, 222, 128;

  /* Text */
  --ss-heading: #fff;
  --ss-gold-soft: #ffe27a;
  --ss-on-primary: #000;
  --ss-online: #4ade80;

  /* Gradients */
  --ss-title-light: #fff6c4;
  --ss-title-dark: #f0a020;
  --ss-button-top: #ff9a3c;
  --ss-button-bottom: #e0670a;
  --ss-media-ember: #2a1608;
  --ss-media-base: #050505;
  --ss-media-steel: #1d1d22;
  --ss-media-sea: #0d1a1c;

  /* Ember particles (site.js): hue range of the embers and of the rare sparks. */
  --ss-ember-hue: 18;
  --ss-ember-hue-range: 22;
  --ss-spark-hue: 186;

  --bs-body-bg: var(--ss-black);
  --bs-body-color: var(--ss-text);
  --bs-secondary-color: var(--ss-grey);
  --bs-border-color: var(--ss-panel-border);
  --bs-link-color: var(--ss-orange);
  --bs-link-color-rgb: var(--ss-orange-rgb);
  --bs-link-hover-color: var(--ss-orange-hover);
  --bs-link-hover-color-rgb: var(--ss-orange-hover-rgb);
  --bs-primary: var(--ss-orange);
  --bs-primary-rgb: var(--ss-orange-rgb);
  --bs-tertiary-bg: var(--ss-panel);
}

/*
  Fonts: like colours, they live only here. UO-Font is the font of the old
  Cursed Souls site; it has no accented letters, so those fall back to
  Georgia exactly as they did there. Players who read better with their
  browser's own fonts switch them off in Il mio account → Preferenze, which
  adds the ss-browser-fonts class to <html>.
*/
@font-face {
  font-family: "UO-Font";
  src: url("../fonts/uo-classic.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --ss-font-body: "UO-Font", Georgia, serif;
  --ss-font-heading: "UO-Font", Georgia, serif;
  /* Keys and codes stay monospaced so every character is unambiguous. */
  --ss-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:root.ss-browser-fonts {
  --ss-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ss-font-heading: var(--ss-font-body);
}
