/* Portfolio look for the Wardle copy: the site's colors, fonts, and light/dark themes.
   Loaded after Wardle's own style.css by scripts/import-wardle.mjs. */
@font-face {
  font-family: 'Hanken Grotesk Variable';
  src: url('../fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  src: url('../fonts/bricolage-grotesque-latin-opsz-normal.woff2') format('woff2-variations');
  font-weight: 200 800; font-display: swap;
}

:root {
  --bg: #f7fafc; --panel: #ffffff; --panel2: #eef4f9; --border: #dbe5ee;
  --text: #0a2540; --muted: #425466; --accent: #b37a12;
  --shadow: 0 18px 40px -22px rgba(10, 37, 64, .35);
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #061727; --panel: #0a2540; --panel2: #0f2e4d; --border: #1b3d5e;
  --text: #eaf3fb; --muted: #b5c7d8; --accent: #e0a635;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* Transparent page, so the portfolio background shows through. */
html, body { background: transparent; font-family: 'Hanken Grotesk Variable', system-ui, sans-serif; }
.home-title, .logo, .final-title, #final-score, .pro-price, .tlogo, .hg-word {
  font-family: 'Bricolage Grotesque Variable', 'Hanken Grotesk Variable', sans-serif;
  font-optical-sizing: auto;
}
.home-title { letter-spacing: -0.02em; font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.6rem); }
.home-welcome { letter-spacing: 0; }

/* Menus sit on the page, not in a dark modal. */
#home-screen, #start-screen { background: transparent; backdrop-filter: none; }
.overlay { background: color-mix(in oklab, var(--bg) 90%, transparent); }
.start-card, .result-card, .game-card { box-shadow: var(--shadow); border-radius: 24px; }
.home-wrap { max-width: 1040px; }
.game-cards { gap: 20px; }
.gc-logo, .start-logo { filter: drop-shadow(0 6px 18px rgba(10, 37, 64, .28)); }
.desc strong, .gc-desc strong { color: var(--text); }

/* The portfolio already has a header and its own write-up. */
.seo-about { display: none; }
html.pf-menu #topbar { display: none; }

/* In play, the game's own panels keep their dark stage for photos and maps. */
#topbar { background: var(--panel); border-bottom-color: var(--border); }

/* Controls that float over photos and the Gramble world keep Wardle's original dark palette in both themes. */
#photo-panel, #alt-photo-frame, body.game-gramble #alt-screen, body.game-gramble #final-screen {
  --bg: #0d1117; --panel: #161d27; --panel2: #1d2632; --border: #2b3646;
  --text: #e6edf3; --muted: #8b98a9; --accent: #e0a635;
  color: var(--text);
}

/* Round results bar follows the site theme (Gramble keeps its dark world). */
.result-bar { background: color-mix(in oklab, var(--panel) 96%, transparent); box-shadow: 0 -12px 30px -18px rgba(10, 37, 64, .35); }
body.game-gramble .result-bar { background: rgba(18, 24, 32, .97); --text: #e6edf3; --muted: #8b98a9; }
