/* ZenIRL — design system for the public landing + per-game pages. */

:root {
  /* Surfaces */
  --bg-top: #1A1A1A;
  --bg-bottom: #2C2C2C;
  --surface: #2C2C2C;
  --surface-2: #363636;
  --surface-hover: #404040;

  /* Text */
  --text: #F5F2E8;
  --text-muted: #A8A8A8;
  --text-dim: #7A7A7A;

  /* Borders + accents */
  --border: #4A4A4A;
  --border-soft: #3A3A3A;
  --accent: #5C6B73;          /* ZenIRL slate */
  --accent-hover: #6D7C84;
  --link: #A8A8A8;

  /* Per-game accent (overridden inline on each /games/<slug>/ page) */
  --game-accent: var(--accent);
  --game-accent-text: var(--text);
  --game-accent-hover: var(--accent-hover);

  /* Spacing rhythm */
  --gap-section: 80px;
  --gap-tight: 32px;
  --radius: 24px;

  /* Watch bezel screenshot frame */
  --bezel-ring: #3A3A3A;
  --bezel-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--text); }

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

/* Layout containers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--text);
}
.brand a { color: inherit; }
.brand a:hover { color: var(--text); }
.site-header nav a {
  margin-left: 24px;
  font-size: 14px;
  letter-spacing: 1px;
}

/* Hero (landing) */
.hero {
  padding: 80px 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 200;
  letter-spacing: 6px;
  margin-bottom: 16px;
}
.hero .lede {
  color: var(--text-muted);
  font-size: 18px;
  letter-spacing: 1px;
  max-width: 680px;
  margin: 0 auto 16px;
}
.hero p.lede:last-of-type { margin-bottom: 48px; }

/* Value-prop strip */
.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 80px;
  max-width: 760px;
}
.values .pill {
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.values .pill strong {
  color: var(--text);
  font-weight: 500;
  margin-right: 4px;
}

/* Section heading */
.section {
  padding: 40px 0;
}
.section h2.section-heading {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
}

/* Card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  color: inherit;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  color: inherit;
}
.card .card-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin: 0 auto;
  display: block;
  background: var(--surface-2);
}
.card .card-name {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 1.5px;
  color: var(--text);
}
.card .card-tagline {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
  min-height: 42px;
}
.card .card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
}
.card .card-tags .tag {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 999px;
}
.card .card-status {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px dashed var(--border);
  color: var(--text-dim);
}
.card.coming-soon .card-icon { filter: grayscale(0.2) brightness(0.85); }

/* Per-game page */
.game-hero {
  padding: 60px 0 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  text-align: center;
}
@media (min-width: 740px) {
  .game-hero {
    grid-template-columns: 200px 1fr;
    text-align: left;
  }
}
.game-hero .game-icon {
  width: 160px;
  height: 160px;
  border-radius: 36px;
  margin: 0 auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.game-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.game-hero .tagline {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 16px;
  max-width: 560px;
}
.game-hero .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
}
@media (min-width: 740px) {
  .game-hero .tag-row { justify-content: flex-start; }
}
.game-hero .tag-row .tag {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--surface);
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (min-width: 740px) {
  .cta-row { justify-content: flex-start; }
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 14px;
  letter-spacing: 0.5px;
  font-weight: 500;
  background: var(--game-accent);
  color: var(--game-accent-text);
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--game-accent-hover); color: var(--game-accent-text); }
.btn.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
}
.btn.btn-secondary:hover { background: var(--surface-hover); }
.btn.btn-coming {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-dim);
  cursor: default;
}

/* Body content */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0;
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.75;
}
.prose p { margin-bottom: 18px; }
.prose h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-muted);
  margin: 40px 0 18px;
  text-align: center;
}
.prose ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) {
  .prose ul { grid-template-columns: 1fr 1fr; }
}
.prose ul li {
  background: var(--surface);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.prose ul li strong { color: var(--text); margin-right: 6px; font-weight: 500; }

/* Watch-bezel screenshots */
.gallery {
  padding: 40px 0 20px;
}
.gallery h2.section-heading { margin-bottom: 28px; }
.gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  justify-items: center;
}
.bezel {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--bezel-ring);
  padding: 6px;
  box-shadow: var(--bezel-shadow), inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
}
.bezel img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Footer */
.site-footer {
  margin-top: 80px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin-bottom: 6px; }

/* Skip-to-content (a11y) */
.skip-link {
  position: absolute;
  left: -1000px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Focus outline */
:focus-visible {
  outline: 2px solid var(--game-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
