/* Shared styles for edumongame.com pages. The game itself (play.html) has its own. */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/hanken-grotesk-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-600-latin.woff2") format("woff2");
}

:root {
  --cream: #f1f0eb;
  --paper: #faf9f5;
  --navy: #1b5077;
  --navy-deep: #0c2a40;
  --slate: #476579;
  --gold: #c9a24b;
  --gold-deep: #a9832f;
  --line: rgba(27, 80, 119, 0.14);
  --text: #23323d;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Schibsted Grotesk", "Hanken Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--gold-deep); }
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 600;
  color: var(--navy-deep);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(28px, 3.6vw, 38px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(241, 240, 235, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--head); font-size: 22px; color: var(--navy-deep);
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; font-size: 16px; color: var(--navy-deep); }
.site-nav a:hover { color: var(--gold-deep); }
@media (max-width: 820px) {
  .site-nav a.hide-sm { display: none; }
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--head); font-weight: 600; font-size: 17px;
  text-decoration: none; text-align: center;
  padding: 13px 24px; border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #d4b05c; color: var(--navy-deep); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-small { font-size: 15px; padding: 9px 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Sections */
section { padding: 84px 0; scroll-margin-top: 64px; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--navy-deep); color: #d8e3ec; }
.dark h2, .dark h3 { color: #fff; }
.dark a { color: var(--gold); }
.dark a.btn-gold, .dark a.btn-gold:hover { color: var(--navy-deep); }
.eyebrow {
  font-family: var(--head); font-size: 14px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px;
}
.dark .eyebrow { color: var(--gold); }
.lede { font-size: 20px; color: var(--slate); max-width: 640px; }
.dark .lede { color: #b9cad8; }

.shot {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -30px rgba(12, 42, 64, 0.55);
  background: #0c2a40;
  image-rendering: auto;
}

.quiet { font-size: 15px; color: var(--slate); }

/* Footer */
.site-foot { background: var(--navy-deep); color: #9fb4c4; padding: 48px 0 40px; font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: #e8eef3; text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
