/* Keels & Kingdoms - ship card design tokens. ONE source of truth.
   Night sea = the site background. Parchment = the cards on it.
   Use: put class "kk-night" or "kk-parchment" on any element to switch the
   tokens for everything inside it. :root defaults to night. */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&family=IM+Fell+English+SC&display=swap");

:root{
  /* type */
  --kk-font-display: "IM Fell English SC", Georgia, serif;          /* headings, small caps */
  --kk-font-text: Archivo, "Helvetica Neue", Arial, sans-serif;     /* body */
  --kk-font-num: "IBM Plex Mono", Consolas, Menlo, monospace;        /* every number */
  /* shape */
  --kk-radius: 3px;
  --kk-hairline-w: 1px;
}

:root, .kk-night{
  color-scheme: dark;
  --kk-bg: #0a121d;
  --kk-bg-grad: linear-gradient(180deg, #0d1826 0%, #0a121d 55%, #070e17 100%);
  --kk-fg: oklch(0.94 0.02 84);                 /* cream text */
  --kk-dim: oklch(0.84 0.02 80 / 0.66);         /* secondary text */
  --kk-gold: oklch(0.78 0.11 78);               /* accent, section heads */
  --kk-gold-strong: oklch(0.88 0.13 82);        /* emphasis, badges */
  --kk-hair: oklch(0.78 0.11 78 / 0.26);        /* hairlines, borders */
  --kk-panel: oklch(0.2 0.03 235 / 0.42);       /* panels on the night sea */
  --kk-card-bg: var(--kk-panel);
  --kk-card-edge: var(--kk-hair);
  --kk-plate: #070e17;                          /* behind ship profile images */
  --kk-flag: oklch(0.76 0.11 40);               /* placeholder / to-confirm tags */
  /* compass ring */
  --kk-ring-ink: oklch(0.94 0.02 84);
  --kk-ring-dim: oklch(0.84 0.02 80 / 0.66);
  --kk-ring-grid: oklch(0.84 0.02 80 / 0.17);
  --kk-ring-grid-main: oklch(0.78 0.11 78 / 0.5);
  --kk-ring-top: oklch(0.88 0.13 82);           /* 95-100 % */
  --kk-ring-fair: oklch(0.72 0.1 76);           /* 70-94 % */
  --kk-ring-slow: oklch(0.6 0.03 80);           /* under 70 % */
  --kk-ring-nogo: oklch(0.6 0.13 32 / 0.16);
  --kk-ring-nogo-line: oklch(0.66 0.13 34 / 0.65);
  --kk-ring-nogo-ink: oklch(0.76 0.11 40);
  --kk-ring-best: oklch(0.88 0.13 82);
  --kk-ring-cut: #0a121d;                       /* best diamond = background colour */
  --kk-ring-hub: oklch(0.78 0.11 78 / 0.5);
}

.kk-parchment{
  color-scheme: light;
  --kk-bg: oklch(0.9 0.04 85);
  --kk-bg-grad: linear-gradient(180deg, oklch(0.94 0.03 88) 0%, oklch(0.87 0.045 82) 100%);
  --kk-fg: oklch(0.22 0.03 60);                 /* dark ink */
  --kk-dim: oklch(0.3 0.03 60 / 0.72);
  --kk-gold: oklch(0.5 0.1 68);
  --kk-gold-strong: oklch(0.4 0.11 58);
  --kk-hair: oklch(0.6 0.08 70 / 0.35);
  --kk-panel: oklch(0.97 0.02 88 / 0.5);
  --kk-card-bg: linear-gradient(180deg, oklch(0.94 0.03 88), oklch(0.87 0.045 82));
  --kk-card-edge: oklch(0.6 0.08 70 / 0.35);
  --kk-plate: #0b141f;
  --kk-flag: oklch(0.42 0.14 32);
  --kk-ring-ink: oklch(0.22 0.03 60);
  --kk-ring-dim: oklch(0.32 0.03 60 / 0.75);
  --kk-ring-grid: oklch(0.3 0.03 60 / 0.18);
  --kk-ring-grid-main: oklch(0.4 0.06 65 / 0.55);
  --kk-ring-top: oklch(0.4 0.12 52);
  --kk-ring-fair: oklch(0.58 0.1 72);
  --kk-ring-slow: oklch(0.76 0.04 80);
  --kk-ring-nogo: oklch(0.5 0.15 30 / 0.12);
  --kk-ring-nogo-line: oklch(0.45 0.14 30 / 0.6);
  --kk-ring-nogo-ink: oklch(0.42 0.14 32);
  --kk-ring-best: oklch(0.4 0.13 50);
  --kk-ring-cut: oklch(0.94 0.03 88);
  --kk-ring-hub: oklch(0.4 0.06 65 / 0.55);
}
