/* =========================================================
   Ankeas Games — shared stylesheet
   Mobile-first: base styles are for phones, the
   @media (min-width: 768px) blocks adjust for tablets/desktop.
   ========================================================= */

:root {
  --ink: #121412;
  --ink-soft: #3d423d;
  --muted: #535953;
  --line: #e4e7e3;
  --surface: #f2f4f1;
  --bg: #ffffff;
  --accent: #17663f;          /* pitch green — change here to recolor the site */
  --accent-ink: #ffffff;

  --font-display: "Archivo", "Arial Black", "Helvetica Neue", sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Helvetica, sans-serif;

  --page-max: 1120px;
  --gutter: 24px;
  --radius: 16px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

a { color: var(--ink); }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--line); }

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

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
}

.site-nav { display: flex; gap: 20px; }

.site-nav a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding-block: 12px;          /* keeps the tap target >= 44px tall */
}

/* ---------- Home: hero ---------- */

.hero {
  padding-block: 64px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--muted);
  text-wrap: balance;
}

.hero-sub {
  max-width: 520px;
  font-size: 18px;
  color: var(--muted);
}

.hero-rule {
  width: 56px;
  height: 5px;
  margin-top: 8px;
  background: var(--accent);
  border-radius: 3px;
}

/* ---------- Home: products ---------- */

.products {
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
}

.section-head span { font-size: 14px; color: var(--muted); }

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.product-card:hover { color: var(--ink); border-color: #c9cec9; }

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

.product-genre { font-size: 15px; color: var(--muted); }

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Product page ---------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.back-row { padding-top: 12px; }

/* Phone order: tag, title, text, screenshot, buttons */
.game-hero {
  padding-block: 16px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "tag"
    "title"
    "desc"
    "shot"
    "platforms";
  row-gap: 16px;
}

.game-tag   { grid-area: tag; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.game-title { grid-area: title; }
.game-desc  { grid-area: desc; }
.game-shot  { grid-area: shot; }
.platforms  { grid-area: platforms; }

.game-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.game-desc {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Landscape phone frame around the gameplay screenshot */
.game-shot {
  margin-top: 8px;
  width: 100%;
  aspect-ratio: 19.5 / 9;
  border: 7px solid var(--ink);
  border-radius: 26px;
  background: var(--ink);
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(18, 20, 18, 0.18);
}

.game-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 19px;
}

.platforms {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platforms h2 { font-size: 15px; font-weight: 700; }

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  color: #ffffff;
  background: var(--ink);
  transition: transform 0.1s ease;
}

.store-btn:hover { color: #ffffff; }
.store-btn:active { transform: scale(0.98); }

.store-btn--android { background: var(--accent); }

.store-btn svg { flex-shrink: 0; }

.store-btn-text { display: flex; flex-direction: column; gap: 2px; }
.store-btn-small { font-size: 13px; color: #c9cec9; }
.store-btn--android .store-btn-small { color: #ddebe3; }
.store-btn-big { font-size: 18px; font-weight: 700; white-space: nowrap; }

/* Features band */
.features { background: var(--surface); }

.features .container {
  padding-block: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.feature { display: flex; flex-direction: column; gap: 8px; }

.feature h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

.feature p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); }

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 404 ---------- */

.not-found {
  padding-block: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.not-found h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1;
}

.not-found p { font-size: 18px; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.btn:hover { color: #ffffff; background: var(--accent); }

/* =========================================================
   Tablet & desktop
   ========================================================= */

@media (min-width: 768px) {
  .site-header .container { padding-block: 20px; }
  .wordmark { font-size: 20px; }
  .site-nav { gap: 28px; }

  .hero { padding-block: 120px 96px; gap: 24px; }
  .hero-sub { font-size: 20px; }
  .hero-rule { width: 72px; height: 6px; margin-top: 0; }

  .products { padding-bottom: 120px; gap: 32px; }
  .section-head { padding-top: 32px; }
  .section-head h2 { font-size: 28px; }
  .section-head span { font-size: 15px; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-body { padding: 24px; gap: 8px; }
  .product-name { font-size: 24px; }
  .product-genre { font-size: 16px; }

  .back-row { padding-top: 32px; }

  .store-buttons { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .store-btn { flex: 0 0 auto; padding: 16px 22px; }
  .store-btn-big { font-size: 17px; }

  .features .container {
    padding-block: 72px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
  .feature h3 { font-size: 22px; }

  .site-footer .container { padding-block: 28px; font-size: 14px; }
}

/* Desktop: text + buttons on the left, phone frame on the right */
@media (min-width: 1024px) {
  .game-hero {
    padding-block: 40px 96px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-areas:
      "tag       shot"
      "title     shot"
      "desc      shot"
      "platforms shot";
    grid-template-rows: auto auto auto 1fr;
    column-gap: 64px;
    row-gap: 24px;
    align-items: start;
  }

  .game-desc { font-size: 20px; }

  .game-shot {
    align-self: center;
    margin-top: 0;
    border-width: 10px;
    border-radius: 36px;
    box-shadow: 0 24px 48px rgba(18, 20, 18, 0.18);
  }
  .game-shot img { border-radius: 26px; }

  .platforms { margin-top: 8px; gap: 14px; }
}

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