/* ============================================================
   Grey Sky Interactive — styles
   ============================================================ */

/* ---- Self-hosted brand font (Satoshi) ----
   Drop Satoshi-Variable.woff2 (or the weights you have) into /fonts.
   If the file isn't present yet, the site falls back gracefully. */
@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi-Variable.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi-VariableItalic.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
  font-style: italic;
}

/* ---- Design tokens ---- */
:root {
  --bg:        #000000;
  --bg-alt:    #0a0a0a;
  --surface:   #111111;
  --border:    #262626;
  --text:      #ffffff;
  --text-dim:  #a3a3a3;
  --accent:    #ffffff;
  --accent-2:  #737373;
  --accent-direct: #91ff6a; /* the one splash of color — Buy Direct CTA */

  --font-brand: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:  "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--text);
}
.nav-menu {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a[aria-current="page"] { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  width: 100vw;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem);
  border-bottom: 1px solid var(--border);
  background-image: linear-gradient(rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0.6)),
    url("media/collections/blind/gg_anim.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 46ch;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.corner-copyright {
  position: absolute;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: clamp(1rem, 4vw, 2.5rem);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-2); }

/* Special "Buy Direct" button — white fill with a soft glow to stand apart */
.btn-direct {
  background: var(--accent-direct);
  color: #04210f;
  font-weight: 700;
  box-shadow: 0 6px 22px rgba(145, 255, 106, 0.28);
}
.btn-direct:hover { box-shadow: 0 8px 28px rgba(145, 255, 106, 0.42); }

.buy-divider { height: 1px; background: var(--border); margin: 0.35rem 0; }

/* ---- Page hero (sub-pages) ---- */
.page-hero {
  padding: clamp(3rem, 9vw, 5.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.page-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0;
}

/* ---- Sections ---- */
.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}
.section-lead {
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0 0 2.5rem;
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-2); }
.card-link-block { display: block; color: inherit; }

/* "Coming soon" placeholder card — dimmed and inert */
.card-soon { opacity: 0.45; }
.card-soon:hover { transform: none; border-color: var(--border); }

/* Homepage category grid — balanced 4-up, 2x2, then single column */
.home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .home-grid { grid-template-columns: 1fr; } }
.card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 1.25rem 1.35rem 1.5rem; }
.card-body h3 {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}
.card-body p { color: var(--text-dim); font-size: 0.95rem; margin: 0 0 1rem; }
.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s ease;
}
.card-link:hover { opacity: 0.7; }

/* ---- Game detail page ---- */
.back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--text); }

/* Media carousel */
.carousel { position: relative; margin-bottom: clamp(2rem, 5vw, 3rem); }
.carousel-viewport {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
}
.carousel-track { display: flex; transition: transform 0.4s ease; }
.carousel-slide { flex: 0 0 100%; aspect-ratio: var(--carousel-ar, 16 / 9); }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-embed { width: 100%; height: 100%; }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.carousel-btn:hover { background: rgba(0, 0, 0, 0.6); opacity: 1; }
.carousel-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease;
}
.carousel-dot.active { background: var(--text); }

.game-body {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.game-about p { color: var(--text-dim); max-width: 60ch; }
.game-intro { color: var(--text); font-size: 1.1rem; }

/* Domain list (game modes grouped by family) */
.domain-list { margin: 1.75rem 0 0; display: grid; gap: 1.1rem; }
.domain {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.domain:last-child { padding-bottom: 0; border-bottom: 0; }
.domain dt {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.domain dd { margin: 0; color: var(--text-dim); }
.domain .more { color: var(--text); font-weight: 600; white-space: nowrap; }

/* Language chips */
.lang-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.lang-list li {
  font-size: 0.85rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}
.game-subhead {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}
.game-features {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-dim);
}
.game-features li { margin-bottom: 0.4rem; }

.game-aside { position: sticky; top: 92px; display: grid; gap: 1.5rem; }
.buy-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
}
.buy-price {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}
.btn-block { text-align: center; width: 100%; }

.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list li span:first-child { color: var(--text-dim); }

@media (max-width: 820px) {
  .game-body { grid-template-columns: 1fr; }
  .game-aside { position: static; }
}

/* ---- Print collection page ---- */
.collection-body {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.collection-body .carousel { margin: 0; }
/* Show prints at their true aspect ratio — never crop or stretch */
.collection-body .carousel-slide img { object-fit: contain; }

/* Stacked variant: preview full-width on top, buy below (for wide prints) */
.collection-body.stacked { grid-template-columns: 1fr; }
.collection-body.stacked .game-aside { position: static; }
.collection-body.stacked .buy-box { max-width: 360px; margin-left: auto; }

@media (max-width: 820px) {
  .collection-body { grid-template-columns: 1fr; }
  .collection-body .buy-box { max-width: none; }
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}
.site-footer small { color: var(--accent-2); }

/* ---- Mobile ---- */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-menu.open { max-height: 280px; }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 1rem var(--pad);
    border-top: 1px solid var(--border);
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
