/* Style 1, "Tegnet og leken": colours, type and shapes for the page.
   The globe's own look is in globe-style.js. ui.css only uses these variables. */

@font-face { font-family: 'Fredoka'; font-weight: 400; font-display: swap; src: url('fonts/fredoka-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url('fonts/fredoka-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('fonts/fredoka-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('fonts/fredoka-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #ffd84d;              /* sunny page background */
  --ink: #1a2342;             /* outlines and text */
  --muted: rgba(26, 35, 66, .64);
  --paper: #fffaf0;           /* panels */
  --card: #ffffff;
  --accent: #ff5a4f;          /* route, primary buttons */
  --accent-ink: #ffffff;
  --good: #2fbf71;
  --good-ink: #0d4d2c;
  --bad: #ff5a4f;
  --bad-ink: #8c1d16;
  --sea: #30aedb;

  --font: 'Fredoka', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --line: 2.5px;              /* outline width */
  --lift: 4px;                /* how far buttons stand out */
  --radius: 16px;
  --panel-radius: 24px;

  /* Page background: soft light and faint sun rays behind the globe, and a faint dot grid. */
  --backdrop:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 48%),
    radial-gradient(rgba(26, 35, 66, .085) 1.3px, transparent 1.5px) 0 0 / 22px 22px,
    radial-gradient(circle at 50% 34%, rgba(255, 216, 77, 0) 25%, var(--bg) 78%),
    repeating-conic-gradient(from 0deg at 50% 34%, rgba(255, 255, 255, .16) 0deg 7.5deg, rgba(255, 255, 255, 0) 7.5deg 15deg),
    var(--bg);
}
