/* Playtime Adventures: a polar night with an aurora overhead (Jacob's first game is about penguins), gold like the
   game's own trim, and a chunky friendly display face. Each game card uses that game's own logo typeface. */
:root {
  --night: #0b1d33;      /* page ground */
  --deep: #14304f;       /* raised panels */
  --ice: #cfeaff;        /* secondary text, borders */
  --snow: #f5faff;       /* main text */
  --gold: #ffc93c;       /* the one accent: buttons, highlights */
  --gold-ink: #3a2600;   /* text on gold */
  --aurora-a: #3ee6b0;
  --aurora-b: #7a6bff;
  --display: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  --body: 'Alegreya Sans', 'Trebuchet MS', Verdana, sans-serif;
  --pq: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--night); }
body { margin: 0; min-height: 100vh; background: var(--night); color: var(--snow); font: 400 18px/1.55 var(--body); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* the sky: a slow aurora behind the top of every page */
.sky { position: relative; overflow: hidden; isolation: isolate; }
.sky::before {
  content: ''; position: absolute; inset: -40% -20% auto -20%; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 35% at 30% 45%, color-mix(in srgb, var(--aurora-a) 55%, transparent), transparent 70%),
    radial-gradient(35% 30% at 70% 35%, color-mix(in srgb, var(--aurora-b) 50%, transparent), transparent 70%);
  filter: blur(30px); opacity: 0.55; animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translateX(-4%) skewY(-2deg); } to { transform: translateX(4%) skewY(2deg); } }
@media (prefers-reduced-motion: reduce) { .sky::before { animation: none; } }

.wrap { width: min(1100px, 100%); margin: 0 auto; padding-inline: 20px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; flex-wrap: wrap; }
.brand { font: 400 clamp(22px, 3vw, 28px)/1 var(--display); letter-spacing: 0.02em; text-decoration: none; color: var(--snow); }
.brand span { color: var(--gold); }
.nav { display: flex; gap: 18px; font-weight: 700; }
.nav a { text-decoration: none; color: var(--ice); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--snow); border-color: var(--gold); }

h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; text-wrap: balance; margin: 0; }
.hero { padding-block: clamp(40px, 8vw, 96px) clamp(40px, 6vw, 72px); display: grid; gap: 18px; max-width: 760px; }
.hero h1 { font-size: clamp(44px, 8vw, 92px); line-height: 0.95; }
.hero p { margin: 0; font-size: clamp(19px, 2.2vw, 23px); color: var(--ice); max-width: 36em; }

.btn { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 13px 24px; border-radius: 999px;
  background: var(--gold); color: var(--gold-ink); font: 400 20px/1 var(--display); letter-spacing: 0.02em; text-decoration: none;
  box-shadow: 0 5px 0 #b8860b, 0 10px 24px rgba(0, 0, 0, 0.35); transition: transform 0.1s, box-shadow 0.1s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #b8860b, 0 14px 28px rgba(0, 0, 0, 0.4); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #b8860b, 0 6px 14px rgba(0, 0, 0, 0.35); }
.btn.quiet { background: transparent; color: var(--snow); box-shadow: inset 0 0 0 2px var(--ice); }

/* a game: screenshot on one side, what it is and a Play button on the other */
.game { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center;
  padding: clamp(16px, 3vw, 28px); background: var(--deep); border-radius: 18px; border: 1px solid color-mix(in srgb, var(--ice) 22%, transparent); }
.game .shot { border-radius: 12px; overflow: hidden; border: 3px solid var(--gold); aspect-ratio: 16 / 10; background: #09182b; max-width: 100%; }
.game .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game .info { display: grid; gap: 14px; min-width: 0; }
.game .kicker { font: 700 13px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--aurora-a); }
.game h2.pq { font-family: var(--pq); font-weight: 900; font-size: clamp(30px, 4vw, 44px); line-height: 1; color: var(--gold); text-shadow: 0 2px 0 #6b4a00; }
.game p { margin: 0; color: var(--ice); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.facts li { font-size: 15px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--night) 70%, transparent); border: 1px solid color-mix(in srgb, var(--ice) 30%, transparent); }
.game.next { grid-template-columns: 1fr; border-style: dashed; background: transparent; text-align: center; justify-items: center; }
.game.next h2 { font-size: clamp(26px, 3vw, 34px); color: var(--ice); }

section { padding-block: 24px 56px; display: grid; gap: 22px; }
.label { font: 400 clamp(26px, 3vw, 34px)/1.1 var(--display); }
.controls { font-size: 15px; color: var(--ice); }
kbd { font: 700 13px var(--body); color: var(--snow); background: var(--deep); border: 1px solid color-mix(in srgb, var(--ice) 40%, transparent); border-bottom-width: 3px; border-radius: 5px; padding: 1px 7px; }
footer { padding-block: 32px 48px; color: var(--ice); font-size: 15px; border-top: 1px solid color-mix(in srgb, var(--ice) 15%, transparent); }

@media (max-width: 760px) {
  .game { grid-template-columns: 1fr; }
  body { font-size: 17px; }
}
