/* =============================================
   Gentle Armageddon — gentlearmageddon.com
   Dark pixel art studio landing page
   ============================================= */

@font-face {
  font-family: 'GravityBold8';
  src: url('fonts/GravityBold8.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'PixelOperator8';
  src: url('fonts/PixelOperator8.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'PixelOperator8';
  src: url('fonts/PixelOperator8-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* ---- Reset & base ---- */

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

:root {
  --bg:        #070e0a;
  --surface:   #0c1a11;
  --border:    #163321;
  --accent:    #4dcba5;     /* game teal */
  --accent-dim:#2a6645;
  --text:      #c0d8c8;
  --muted:     #3a6048;
  --heading:   #7ecbbf;     /* midpoint between teal and pastel blue */

  --font-pixel: 'PixelOperator8', monospace;
  --font-title: 'GravityBold8', monospace;

  /* pixel-art rendering for fonts */
  image-rendering: pixelated;
}

html {
  font-size: 16px;
  background-color: var(--bg);
  color: var(--text);
}

body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  font-family: var(--font-pixel);
  /* subtle scanline texture */
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
}

/* ---- Layout ---- */

main {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

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

header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

header .label {
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

header h1 {
  font-family: var(--font-title);
  font-size: clamp(28px, 6vw, 42px);
  color: var(--heading);
  line-height: 1.1;
  /* pixel-art sharpness */
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: none;
  font-smoothing: none;
}

header .credits {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

header .credits a {
  color: var(--accent);
  text-decoration: none;
}

header .credits a:hover,
header .credits a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

header .tagline {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---- Section label ---- */

.section-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 0.75rem;
}

/* ---- Game card ---- */

.games {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
}

.game-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
  /* 2-pixel inset shadow for depth */
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    4px 4px 0 #000;
}

.game-card:hover,
.game-card:focus-visible {
  border-color: var(--accent);
  background: #0f2018;
  outline: none;
}

.game-card-inner {
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.game-thumb {
  width: 220px;
  height: auto;
  align-self: center;
  image-rendering: auto;
}

.game-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.game-card h2 {
  font-family: var(--font-pixel);
  font-weight: bold;
  font-size: clamp(18px, 4vw, 24px);
  color: var(--heading);
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: none;
  font-smoothing: none;
}

.game-card p {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--text);
  line-height: 1.7;
  max-width: 38ch;
}

.game-card .cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.game-card:hover .cta,
.game-card:focus-visible .cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.socials a {
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.1s;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--accent);
  outline: none;
}

.copyright {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ---- Accessibility ---- */

@media (prefers-reduced-motion: reduce) {
  .game-card,
  .socials a {
    transition: none;
  }
}

/* ---- Responsive ---- */

@media (max-width: 400px) {
  body {
    padding: 1.5rem 1rem;
  }
}
