/* ==========================================================================
   Boring Game Studios — Dark Forge theme
   Single stylesheet for all pages. No build step.
   ========================================================================== */

:root {
  --bg-0: #16130f;          /* darkest background */
  --bg-1: #2a1d12;          /* warm highlight for radial gradient */
  --surface: rgba(255,255,255,.04);
  --surface-border: #3a2f22;
  --text: #f3ece1;          /* primary text */
  --muted: #b9ab98;         /* secondary text */
  --ember-1: #ff7a33;       /* accent gradient start */
  --ember-2: #ff5a1f;       /* accent gradient end */
  --gold: #ffb347;          /* accent highlight */
  --ghost-border: #4a3c2c;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  color: var(--text);
  /* Solid fallback first so overscroll / iOS Safari can never flash white
     behind the fixed gradient. */
  background-color: var(--bg-0);
  background-image: radial-gradient(130% 100% at 78% -10%, var(--bg-1) 0%, var(--bg-0) 55%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ---- Navigation ---- */
.nav { position: sticky; top: 0; z-index: 50;
  background: rgba(22,19,15,.78); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-weight: 700; letter-spacing: -.01em; font-size: 1.05rem; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: .95rem; color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { background: linear-gradient(90deg, var(--ember-1), var(--ember-2));
  color: var(--bg-0) !important; font-weight: 600; padding: 9px 18px; border-radius: 9px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text);
  font-size: 1.5rem; cursor: pointer; }

/* ---- Buttons ---- */
.btn { display: inline-block; padding: 13px 24px; border-radius: 10px;
  font-weight: 600; font-size: .98rem; transition: transform .12s, box-shadow .12s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(90deg, var(--ember-1), var(--ember-2));
  color: var(--bg-0); box-shadow: 0 6px 24px rgba(255,90,31,.32); }
.btn-secondary { border: 1.5px solid var(--ghost-border); color: var(--text); }

/* ---- Hero ---- */
.hero { padding: 96px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: -120px; bottom: -200px;
  width: 520px; height: 520px; z-index: 0;
  background: radial-gradient(circle, rgba(255,110,30,.18), transparent 68%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.eyebrow { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ember-1); font-weight: 600; margin-bottom: 20px; }
.hero-title { font-family: 'Fraunces', Georgia, serif; font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 22px; }
.hero-title .accent { background: linear-gradient(90deg, var(--gold), var(--ember-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-subtitle { font-size: 1.15rem; color: var(--muted); max-width: 48ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Sections ---- */
.section { padding: 72px 0; }
.section-title { font-family: 'Fraunces', Georgia, serif; font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.01em; margin-bottom: 12px; }
.section-subtitle { color: var(--muted); max-width: 52ch; margin-bottom: 40px; }

/* ---- Game cards ---- */
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.game-card { background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: 14px; padding: 28px 26px; transition: border-color .15s, transform .15s; }
.game-card:hover { border-color: var(--ghost-border); transform: translateY(-3px); }
.game-name { font-family: 'Fraunces', Georgia, serif; font-weight: 900; font-size: 1.6rem; margin-bottom: 6px; }
.game-status { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; }
.game-blurb { color: var(--muted); margin-top: 12px; font-size: .98rem; }

/* ---- Prose (legal pages) ---- */
.prose { max-width: 760px; }
.prose h2 { font-family: 'Fraunces', Georgia, serif; font-size: 1.4rem; margin: 36px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--ember-1); text-decoration: underline; }
.prose .updated { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }

/* ---- Contact form ---- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .9rem; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--surface-border);
  color: var(--text); font-family: inherit; font-size: .98rem; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--ember-1); }
.form-group select option { color: #111; }
.contact-aside h3 { font-family: 'Fraunces', Georgia, serif; margin-bottom: 10px; }
.contact-aside p { color: var(--muted); }

/* ---- CTA band ---- */
.cta-band { padding: 80px 0; text-align: center;
  border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); }
.cta-band h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 14px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--surface-border); padding: 56px 0 36px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-col h4 { font-size: .95rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a, .footer-tagline { color: var(--muted); font-size: .92rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--surface-border); padding-top: 22px;
  color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin-bottom: 4px; }

/* ---- Fade-in on scroll ---- */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.fade-in.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }

/* ---- 404 ---- */
.notfound { min-height: 70vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; }
.notfound h1 { font-family: 'Fraunces', Georgia, serif; font-size: 5rem; font-weight: 900;
  background: linear-gradient(90deg, var(--gold), var(--ember-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 0; background: var(--bg-0);
    border-bottom: 1px solid var(--surface-border); padding: 0 24px;
    max-height: 0; overflow: hidden; transition: max-height .25s; }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; padding: 12px 0; }
  .nav-cta { display: inline-block; }
  .game-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
}
