/* ============================================================
   SPANTUS — Ball de Diables dels Monjos
   Colors & Type Foundation
   ============================================================ */

/* ---- Fonts ---- */

/* Big Shoulders Display (variable, 500–900) */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('../assets/fonts/big-shoulders-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('../assets/fonts/big-shoulders-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Manrope (variable, 400–700) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Spectral normal 400 */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/spectral-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/spectral-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Spectral normal 500 */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/spectral-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/spectral-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Spectral normal 600 */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/spectral-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/spectral-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Spectral normal 700 */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/spectral-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/spectral-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Spectral italic 400 */
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/spectral-italic-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/spectral-italic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Spectral italic 600 */
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/spectral-italic-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/spectral-italic-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ============================================================
     COLORS — la paleta del foc
     ============================================================ */

  /* Foc — fire primaries (ember to spark) */
  --brasa: #b6291e;
  /* deep ember red — primary brand red */
  --brasa-fosc: #7a1812;
  /* dried-blood / charred ember */
  --brasa-clar: #d1442a;
  /* hotter ember */
  --foc: #e85f1a;
  /* live flame orange */
  --espurna: #f2b843;
  /* spark / glowing iron yellow */
  --espurna-clar: #f8d479;
  /* faded spark */

  /* Carbó — night, smoke, sackcloth */
  --carbo: #120a08;
  /* deepest night — almost true black, warm */
  --carbo-2: #1f1512;
  /* charred wood */
  --carbo-3: #2e211c;
  /* sackcloth shadow */
  --fum: #4a3c36;
  /* warm smoke */
  --fum-2: #6b5a52;
  /* daylight smoke */
  --cendra: #9c8b82;
  /* ash */

  /* Pergamí — parchment & stone (warm neutrals) */
  --pergami: #f4ead5;
  /* parchment / paper */
  --pergami-2: #e8dcc2;
  /* aged parchment */
  --pedra: #c8b89a;
  /* warm stone */
  --pedra-fosc: #8a7a60;
  /* stone in shadow */

  /* Semàntics — UI roles */
  --fg-1: var(--carbo);
  --fg-2: var(--fum);
  --fg-3: var(--fum-2);
  --fg-muted: var(--cendra);
  --fg-on-dark: var(--pergami);
  --fg-on-fire: var(--pergami);

  --bg-1: var(--pergami);
  /* primary page bg, warm parchment */
  --bg-2: var(--pergami-2);
  /* sub surfaces, cards */
  --bg-3: #fbf6ea;
  /* lightest, dialogs */
  --bg-night: var(--carbo);
  /* dark / "night-mode" sections */
  --bg-night-2: var(--carbo-2);

  --accent: var(--brasa);
  /* primary brand action */
  --accent-hot: var(--foc);
  /* hover / hotter */
  --accent-glow: var(--espurna);
  /* highlights / sparks */

  --border: rgba(18, 10, 8, 0.14);
  --border-strong: rgba(18, 10, 8, 0.32);
  --border-fire: rgba(182, 41, 30, 0.4);

  --danger: #b6291e;
  --warn: #e8941a;
  --ok: #5c7a2e;
  /* olive — staying in the warm earth family */

  /* ============================================================
     TYPE — playbill display, editorial serif, ui sans
     ============================================================ */
  --font-display: "Big Shoulders Display", "Bebas Neue", "Oswald", sans-serif;
  --font-serif: "Spectral", "Source Serif Pro", Georgia, serif;
  --font-sans: "Manrope", "Inter", -apple-system, system-ui, sans-serif;

  /* Type scale */
  --fs-d1: clamp(72px, 9vw, 144px);
  --fs-d2: clamp(56px, 6.5vw, 104px);
  --fs-d3: clamp(40px, 4.5vw, 72px);
  --fs-h1: 48px;
  --fs-h2: 36px;
  --fs-h3: 26px;
  --fs-h4: 20px;
  --fs-body: 17px;
  --fs-body-lg: 19px;
  --fs-small: 14px;
  --fs-eyebrow: 13px;

  /* Spacing / radii / shadow */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  --radius-1: 2px;
  --radius-2: 4px;
  --radius-3: 8px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(18, 10, 8, 0.1);
  --shadow-2: 0 4px 14px rgba(18, 10, 8, 0.12);
  --shadow-3: 0 18px 48px -12px rgba(18, 10, 8, 0.35);
  --shadow-glow: 0 0 0 1px rgba(232, 95, 26, 0.3), 0 0 48px -12px rgba(232, 95, 26, 0.55);
}

/* ============================================================
   SEMANTIC ELEMENT STYLES
   ============================================================ */

html,
body {
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.display-1,
.display-2,
.display-3,
h1.display,
h2.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--fg-1);
  text-wrap: balance;
}

.display-1 {
  font-size: var(--fs-d1);
}

.display-2 {
  font-size: var(--fs-d2);
}

.display-3 {
  font-size: var(--fs-d3);
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0 0 var(--sp-5);
}

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 var(--sp-4);
}

h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 var(--sp-3);
}

h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0 var(--sp-3);
  text-transform: uppercase;
}

p,
.body {
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--fg-1);
  margin: 0 0 var(--sp-4);
  text-wrap: pretty;
}

.body-lg {
  font-size: var(--fs-body-lg);
  line-height: 1.55;
}

.lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--fg-2);
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brasa);
}

.caption {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
}

.ui-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--fg-1);
}

code,
.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: rgba(18, 10, 8, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

a {
  color: var(--brasa);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 120ms ease;
}

a:hover {
  color: var(--brasa-fosc);
}

/* ============================================================
   UTILITY — fire / night sections
   ============================================================ */
.surface-night {
  background: var(--bg-night);
  color: var(--fg-on-dark);
}

.surface-night h1,
.surface-night h2,
.surface-night h3,
.surface-night h4 {
  color: var(--pergami);
}

.surface-night .eyebrow {
  color: var(--espurna);
}

.surface-night p {
  color: rgba(244, 234, 213, 0.78);
}

.surface-fire {
  background: linear-gradient(180deg, var(--brasa-fosc) 0%, var(--brasa) 60%, var(--foc) 100%);
  color: var(--pergami);
}