/* Z Cast Interactive site styles.
   Every colour, font and radius is a token in :root. Brand colours match the logo
   files in /brand (README "Brand" section). */

@font-face {
  font-family: "Michroma";
  src: url("fonts/Michroma-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0e0f12;
  --bg-raised: #16181d;
  --bg-sunken: #0a0b0d;
  --line: #262931;
  --text: #f2efea;
  --text-muted: #9a9890;
  --accent: #8a5cf6;          /* brand amethyst: links, labels, the Z */
  --accent-strong: #7646ee;   /* button fill; passes AA with white text */
  --accent-ink: #ffffff;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Michroma", "Segoe UI", system-ui, sans-serif;  /* one weight: keep at 400 */
  --radius: 10px;
  --max: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font: 400 14px/1 var(--font-display); letter-spacing: .04em;
}
.brand-mark { width: 37px; height: 37px; }
.brand-z { color: var(--accent); }
.site-nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.site-nav a { color: var(--text-muted); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--text); }

/* Hero */
.hero { padding-top: clamp(72px, 14vw, 160px); padding-bottom: clamp(56px, 10vw, 112px); }
.eyebrow {
  margin: 0 0 16px; color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.hero-logo { width: clamp(240px, 40vw, 380px); height: auto; margin: 0 0 clamp(40px, 7vw, 72px) -4px; }
.hero h1 {
  margin: 0; max-width: 20ch;
  font: 400 clamp(28px, 4.6vw, 50px)/1.18 var(--font-display);
}
.hero p { max-width: 56ch; margin: 24px 0 0; color: var(--text-muted); font-size: clamp(17px, 2vw, 19px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); color: var(--text);
}
.btn:hover { border-color: var(--text-muted); }
.btn-primary { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.1); border-color: var(--accent-strong); }

/* Sections */
section { padding: clamp(56px, 9vw, 96px) 0; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.section-head { margin-bottom: 40px; }
.section-head h2 { margin: 0; font: 400 clamp(22px, 3vw, 30px)/1.25 var(--font-display); }
.section-head p { margin: 12px 0 0; max-width: 60ch; color: var(--text-muted); }

/* Games */
.games { display: grid; gap: 28px; }
.game {
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4);
  overflow: hidden;
}
.game:nth-child(even) .game-media { order: 2; }
.game-media {
  position: relative; min-height: 280px;
  background: var(--bg-sunken);
  overflow: hidden;
}
.game-media img, .game-media .teaser { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.game-media .placeholder {
  position: absolute; left: 20px; bottom: 18px;
  color: var(--text-muted); font: 400 11px/1 var(--font-display); letter-spacing: .22em; text-transform: uppercase;
}
.game-body { padding: clamp(24px, 4vw, 40px); }
.game-body h3 { margin: 8px 0 12px; font: 400 clamp(19px, 2.4vw, 23px)/1.3 var(--font-display); }
.game-body p { margin: 0 0 20px; color: var(--text-muted); }
.status {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-muted);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.pillars { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.pillars li { padding-left: 22px; position: relative; }
.pillars li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg);
}
.pillars strong { color: var(--text); }
.links { display: flex; flex-wrap: wrap; gap: 10px; }

/* About + contact */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); }
.split p { color: var(--text-muted); margin: 0 0 16px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--text-muted); }

/* Footer */
.site-footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--text-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }

/* Sub pages (press kit, privacy) */
.doc { padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(56px, 9vw, 96px); max-width: 820px; }
.doc h1 { margin: 0 0 16px; font: 400 clamp(26px, 4vw, 40px)/1.2 var(--font-display); }
.doc h2 { margin: 48px 0 16px; font: 400 clamp(18px, 2.4vw, 22px)/1.3 var(--font-display); }
.doc p, .doc li { color: var(--text-muted); }
.doc .lead { font-size: 18px; margin: 0 0 8px; }
.doc .updated { font-size: 14px; }
.doc ul { padding-left: 20px; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts th { width: 34%; padding-right: 16px; color: var(--text-muted); font-weight: 400; }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.download { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.download .swatch { display: grid; place-items: center; height: 120px; padding: 16px; }
.download .swatch img { max-height: 88px; width: auto; }
.download .on-light { background: #f2efea; }
.download .on-dark { background: #1c1d20; }
.download .meta { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; font-size: 14px; }
.download .meta span { color: var(--text-muted); }
.colors { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0 !important; }
.colors li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.colors i { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); }

/* Narrow screens */
@media (max-width: 760px) {
  .game, .split { grid-template-columns: 1fr; }
  .game:nth-child(even) .game-media { order: 0; }
  .game-media { min-height: 200px; }
  .site-nav a:nth-child(n+3) { display: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
