/*
  Norwegian 2026. Loaded only for campaigns with template `norwegian-2026`,
  instead of the campaign's theme in the database: this file sets every token.

  Colours from Stig's prototype, tokens/colors.css at 28465d6:
  1. Primitives hold the exact brand values, named like Tailwind (hue-step).
  2. The platform's tokens (--background, --card, --muted-foreground …) set
     from them. Stig's own theme layer (--ink, --line, --surface,
     .theme-light) says the same with other names and is left out.
  3. Roles only this campaign has. Their Tailwind names are in
     templates/norwegian-2026/theme.css. A colour used in one file only is
     hex in that file instead.
*/

/* Primitives, the ones in use. The rest of Stig's palette is in his file. */
:root {
  --white: #ffffff;

  --navy-50: #f5fbff; /* Text on dark */
  --navy-100: #e1f1ff; /* Secondary text on dark */
  --navy-300: #98b9dc; /* Muted text on dark */
  --navy-900: #15273f; /* Brand navy: dark background, text on light */
  --navy-950: #0b1728; /* Space behind the globe */

  --red-500: #e5212d; /* Primary buttons */
  --red-700: #c4131f; /* Primary hover */

  --green-50: #e4f9dc; /* Your row on the leaderboard */
  --green-200: #b9d8ad; /* Prize ribbon, avatar */
  --green-500: #4ca12f; /* Prize wrap, live offer */
  --green-600: #1f8226; /* Widerøe */
  --green-700: #00684b; /* Avatar icon, discount code */

  --gray-100: #eef0f2; /* Soft fill on light */
}

/* The platform's tokens (globals.css), from Stig's dark theme on the page
   and his light theme on cards, popovers and the white sheets. */
:root {
  --background: var(--navy-900);
  --foreground: var(--navy-50);
  --foreground-muted: var(--navy-300);

  --frame: var(--navy-100);
  --frame-foreground: var(--navy-900);
  --card: var(--white);
  --card-foreground: var(--navy-900);
  --popover: var(--white);
  --popover-foreground: var(--navy-900);

  --primary: var(--red-500);
  --primary-foreground: var(--white);
  --secondary: var(--navy-100);
  --secondary-foreground: var(--navy-900);
  --avatar: var(--green-200);
  --avatar-foreground: var(--green-700);
  --muted: var(--gray-100);
  /* 68 %: 5.3:1 on white and 5.0:1 on --muted; 62 % was under 4.5:1. */
  --muted-foreground: color-mix(in srgb, var(--navy-900) 68%, transparent);
  --accent: color-mix(in srgb, var(--navy-900) 6%, transparent);
  --accent-foreground: var(--navy-900);
  --destructive: var(--red-500);
  --destructive-foreground: var(--white);

  --headlines: var(--navy-900);
  --border: color-mix(in srgb, var(--navy-900) 14%, transparent);
  --input: color-mix(in srgb, var(--navy-900) 14%, transparent);
  --ring: var(--red-500);

  /* The games' ramp: a red ramp around red-500, not Stig's. */
  --brand-100: #fdeceb;
  --brand-200: #fbd3d0;
  --brand-300: #f6a39f;
  --brand-400: #ef6b66;
  --brand-500: #e83c3c;
  --brand-600: #e5212d;
  --brand-700: #c11a26;
  --brand-800: #a8141f;
  --brand-900: #6e0d14;

  --radius: 0.625rem;

  /* Stig's page titles: 38px on a phone, 54px on desktop. */
  --text-display: clamp(38px, 5vw, 54px);
  --text-stat: clamp(44px, 12vw, 56px);
  --text-heading: clamp(20px, 2.5vw, 22px);
  --text-prompt: clamp(19px, 2.2vw, 20px);
  --text-body: 16px;
  --text-meta: 14px;
  --text-label: 14px;
}

/* Roles only this campaign has, used in more than one file */
:root {
  --wideroe-dark: var(--green-600);
  --gift-prize: var(--green-500);
  --gift-prize-ribbon: var(--green-200);
  --map-space: var(--navy-950);
  --offer-live: var(--green-500);
  --offer-code: var(--green-700);
  /* Behind white text: green-500 gives 3.3:1, green-600 4.9:1. */
  --prize-label: var(--green-600);
}

/* Norwegian's own fonts, from our own origin (TA-303). */
@font-face {
  font-family: "Norwegian Display Pro";
  src: url("./fonts/norwegian-display-pro-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Norwegian Display Pro";
  src: url("./fonts/norwegian-display-pro-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Norwegian Text Pro";
  src: url("./fonts/norwegian-text-pro-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Norwegian Text Pro";
  src: url("./fonts/norwegian-text-pro-regular-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Norwegian Text Pro";
  src: url("./fonts/norwegian-text-pro-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Norwegian Text Pro";
  src: url("./fonts/norwegian-text-pro-bold-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-display: "Norwegian Display Pro", var(--font-onest), sans-serif;
  --font-body: "Norwegian Text Pro", var(--font-geist), sans-serif;
}

[data-slot="button"][data-variant="default"] {
  font-family: var(--font-display);
  font-weight: 700;
}

[data-slot="button"][data-variant="default"]:hover {
  background-color: var(--red-700);
}

/* The links in the consent checkboxes' labels in the label's colour, not
   red, so the required box does not stand out from the optional one. Still
   underlined. */
[data-slot="consent-link"] {
  color: inherit;
}
