/* ============================================================
   Snazi Games — Studio Website
   "Studio Modern" palette.

   Designed to look like a contemporary indie studio site
   (think Linear / Notion / Stripe) — neutral stone family
   with one confident forest-green accent. Intentionally NOT
   themed to any single game; the chrome stays neutral so any
   future game's artwork can sit inside a card without
   clashing.
   ============================================================ */

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

:root {
  /* Neutrals — warm stone family (slight beige tint, not cold gray) */
  --bg:           #fafaf9;
  --surface:     #ffffff;
  --border:      #e7e5e4;
  --border-strong: #d6d3d1;

  --text-primary:   #0c0a09;
  --text-secondary: #57534e;
  --text-tertiary:  #a8a29e;
  --text-inverse:   #fafaf9;

  /* Accent — deep forest green (links, brand, primary CTA) */
  --accent:        #15803d;
  --accent-hover:  #166534;
  --accent-soft:   #f0fdf4;

  /* Dark surface (footer, brand mark fill) */
  --ink:           #0c0a09;

  --radius-card: 10px;
  --radius-btn:  8px;

  /* Type scale */
  --fs-h1: clamp(34px, 5.5vw, 52px);
  --fs-h2: clamp(22px, 3.4vw, 30px);
  --fs-h3: 18px;
  --fs-body: 16px;
  --fs-small: 13px;

  /* Shadows — soft modern blur, not chunky offset */
  --shadow-card: 0 1px 3px rgba(12, 10, 9, 0.08), 0 1px 2px rgba(12, 10, 9, 0.04);
  --shadow-card-hover: 0 4px 8px rgba(12, 10, 9, 0.10), 0 2px 4px rgba(12, 10, 9, 0.06);
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.65;
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-hover); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* ---- Layout containers ---- */
.container {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
}

.container-wide {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}

main { padding: 24px 0 80px; }

/* ---- Site header ---- */
.site-header {
  padding: 18px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--text-primary);
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}
.site-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.site-nav a:hover {
  color: var(--text-primary);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 80px 0 48px;
}
.hero h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero p.tagline {
  font-size: 19px;
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 560px;
  line-height: 1.55;
}

/* ---- Card chrome — clean white surface + soft border + soft shadow ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
}

.card + .card { margin-top: 24px; }

/* ---- Games grid (landing page) ---- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.game-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  color: var(--text-primary);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

/* Game card cover slot — sits at the top of each card. The
   styling splits in two depending on whether the markup uses a
   placeholder <div> (no cover art yet) or an actual <img>.
   The aspect-ratio + flex centering treatment only makes sense for
   the empty placeholder; on an <img> it was stretching the source
   into a weird tall shape because the flex container was claiming
   more height than the image needed. */
.game-card .game-shot {
  width: 100%;
  border-bottom: 1px solid var(--border);
}

/* Placeholder treatment — "Cover art coming soon" gray slot */
div.game-shot {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f5f5f4, #e7e5e4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
}

/* Image treatment — let the source image dictate its own height,
   and use object-fit: cover so different aspect ratios get cropped
   nicely rather than letterboxed or stretched. The 1200×750 cover
   we generated is exactly 16:10, so the cover-fit is essentially a
   no-op for now — but if a future game's cover is a different
   aspect, it'll still slot in cleanly. */
img.game-shot {
  display: block;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.game-card-body { padding: 20px 24px 24px; }

.game-card h3 {
  margin: 0 0 8px;
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.game-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Section heading on landing */
.section-eyebrow {
  text-align: center;
  margin: 40px 0 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  font-weight: 600;
}
.section-title {
  text-align: center;
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.section-sub {
  text-align: center;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

/* ---- Buttons / CTAs ---- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--text-secondary); }

/* ---- App store badge placeholders ---- */
.app-store-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 4px;
}
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--text-inverse);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  min-height: 50px;
  transition: background 0.15s ease;
}
.app-store-badge:hover { text-decoration: none; background: #292524; }
.app-store-badge .label-row { display: flex; flex-direction: column; line-height: 1.15; }
.app-store-badge .label-small { font-size: 10px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.06em; }
.app-store-badge .label-large { font-size: 16px; font-weight: 700; }

/* ---- Longform content (privacy, terms, support) ---- */
.longform h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.longform .effective {
  color: var(--text-tertiary);
  font-size: var(--fs-small);
  margin: 0 0 36px;
}
.longform h2 {
  font-size: var(--fs-h2);
  margin: 40px 0 14px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.longform h3 {
  font-size: var(--fs-h3);
  margin: 28px 0 10px;
  color: var(--text-primary);
  font-weight: 600;
}
.longform p, .longform li {
  color: var(--text-secondary);
}
.longform ul, .longform ol { padding-left: 22px; }
.longform li + li { margin-top: 6px; }
.longform strong { color: var(--text-primary); font-weight: 600; }
.longform a { font-weight: 500; }

.changelog {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.changelog h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin: 0 0 12px;
  font-weight: 600;
}
.changelog ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--text-tertiary);
}
.changelog li { margin-top: 6px; }

/* ---- Footer ---- */
.site-footer {
  margin-top: 100px;
  padding: 32px 0 40px;
  background: var(--ink);
  color: var(--text-inverse);
  font-size: var(--fs-small);
}
.site-footer .container-wide {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  align-items: baseline;
  justify-content: space-between;
}
.site-footer a {
  color: var(--text-inverse);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s ease;
  font-weight: 500;
}
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer .legal {
  opacity: 0.65;
  max-width: 580px;
  line-height: 1.6;
}
.site-footer .legal strong { opacity: 0.9; font-weight: 600; color: var(--text-inverse); }
.site-footer .footer-nav { display: flex; gap: 22px; }

/* ---- Game detail page extras ---- */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.screenshot {
  aspect-ratio: 9 / 16;
  background: linear-gradient(135deg, #f5f5f4, #e7e5e4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 500;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
  list-style: none;
  padding: 0;
}
.feature-grid li {
  padding: 16px 18px;
  background: var(--accent-soft);
  border: 1px solid #d1fae5;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.feature-grid li strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

/* Email link callout on support page */
.email-callout {
  font-size: 22px;
  font-weight: 600;
  margin: 8px 0 16px;
}
.email-callout a {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.email-callout a:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration: none;
}

/* ---- Small-screen tweaks ---- */
@media (max-width: 480px) {
  .site-nav ul { gap: 18px; }
  .site-nav a { font-size: 13px; }
  .hero { padding: 56px 0 32px; }
  .card { padding: 24px; }
  main { padding: 16px 0 56px; }
  .site-footer .container-wide { flex-direction: column; align-items: flex-start; }
  .site-footer .footer-nav { gap: 18px; }
}
