/* Janus website — THEME. Edit this file to restyle the site.
 *
 * What is where:
 *   static/css/theme.css   this file: colours, fonts, page backdrop (start here)
 *   static/css/hub.css     layout and components; uses only the tokens below
 *   templates/base.html    which Google Fonts are loaded (<link> in <head>)
 *
 * Images (static/img/):
 *   logo.svg               header/footer logo and favicon (happy & shocked masks)
 *   hero-masks.webp        home page illustration, transparent background, 1512×1512
 *   bg-backdrop.webp       page backdrop (blue/orange panels), 2048×1440, fades into --bg
 *
 * To swap an image, replace the file with one of the same name, or change the
 * path: the backdrop is referenced below, the hero in hub/templates/hub/game_list.html.
 */

:root {
  /* Surfaces: deep navy, lighter as they rise */
  --bg: #071236;
  --bg-raised: #0f2463;
  --bg-sunken: #050d2b;
  --bg-hover: #16317a;
  --panel: rgba(9, 22, 66, .82);       /* cards and panels over the backdrop */
  --border: #1f3c8f;
  --border-strong: #2d52b4;

  /* Text */
  --text: #ffffff;
  --text-muted: #c3d1f3;
  --text-faint: #8ca1d6;

  /* Player 1 (blue) and player 2 (orange): the split-screen pair */
  --accent: #1f6bff;
  --accent-hover: #3d82ff;
  --accent-shadow: #0b3fb3;            /* the flat "pressed" edge under primary buttons */
  --accent-text: #ffffff;
  --accent-soft: rgba(56, 132, 255, .18);
  --accent-bright: #2fc6ff;            /* "One screen." and links on panels */
  --accent-2: #ff7a1f;
  --accent-2-soft: rgba(255, 122, 31, .2);

  /* Home page feature icons */
  --f-green: #22d97a;
  --f-yellow: #ffd23a;
  --f-violet: #7c7dff;
  --f-pink: #ff4f8b;

  /* Status */
  --success: #2fd296;
  --success-soft: rgba(47, 210, 150, .16);
  --warning: #ffc53a;
  --warning-soft: rgba(255, 197, 58, .16);
  --danger: #ff5d6c;
  --danger-soft: rgba(255, 93, 108, .16);

  /* The light search field */
  --field-bg: #e8eefb;
  --field-text: #0d1a45;
  --field-placeholder: #5d6c95;

  --shadow: 0 12px 32px rgba(2, 6, 26, .4);
  --radius: 14px;
  --radius-sm: 8px;

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Figtree", system-ui, sans-serif;
  --font-hand: "Permanent Marker", "Comic Sans MS", cursive;   /* the hero notes */
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

/* Page backdrop: the image sits at the top of every page and fades into --bg. */
body { position: relative; background: var(--bg); }
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: max(70vw, 1100px);
  z-index: -1;
  background:
    linear-gradient(to bottom, transparent 55%, var(--bg)),
    url("../img/bg-backdrop.987c2757a30b.webp") center top / cover no-repeat;
  pointer-events: none;
}
/* Other pages (docs, forms, game pages) get a dimmed, shorter backdrop so text stays readable */
body:not(.page-home)::before { height: 640px; opacity: .3; }

/* Hand-lettered notes on the hero */
.note { font-family: var(--font-hand); color: #d4e3ff; border-color: #4a78f0; }
.note-right { color: #ffe6cc; border-color: #ff8a3c; }
