/* arklay.games marketing site: retro pixel-art palette, VT323 body with
   Press Start 2P for heading accents. Leans into the brand in a way the
   editor chrome deliberately doesn't. */

:root {
  --bg: #18131f;
  --bg-elevated: #221a2d;
  --text: #f5e8c8;
  --text-muted: #9e8f78;
  --accent: #e8c547;
  --accent-hover: #ffe066;
  --accent-deep: #c29c1a;
  --accent-pink: #d64c8a;
  --border: #3a2f44;
}

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

html {
  color-scheme: dark;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: "VT323", "Courier New", monospace;
  font-size: 20px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 3rem 0 4rem;
}

.hero-wordmark {
  font-family: "Press Start 2P", monospace;
  /* clamp so the wordmark scales smoothly and never wraps. */
  font-size: clamp(0.9rem, 5vw, 2.25rem);
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 1.5rem;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.hero-wordmark .prompt {
  color: var(--accent);
  margin-right: 4px;
}

.hero-tagline {
  font-family: "VT323", "Courier New", monospace;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0 auto 2.5rem;
  max-width: 520px;
}

@media (min-width: 700px) {
  .hero-tagline {
    font-size: 1.65rem;
  }
}

/* ---------- Sections ---------- */

section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

section h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

section p {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  max-width: 640px;
}

/* ---------- Primitives list ---------- */

.primitives ul {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.primitives li {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 14px 18px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.primitives strong {
  display: inline-block;
  color: var(--accent);
  font-weight: normal;
  font-family: "Press Start 2P", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin-right: 10px;
  padding: 2px 8px;
  border: 1px solid var(--accent);
}

/* ---------- Closing ---------- */

.closing {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 1rem;
}

/* ---------- CTA button ---------- */

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  padding: 14px 28px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  border: 2px solid var(--accent);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  transition:
    background-color 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
}

.cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.cta:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

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

footer {
  padding: 2.5rem 0 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-prompt {
  color: var(--accent);
  font-family: "Press Start 2P", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-right: 8px;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
}

footer a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* ---------- Mobile tweaks ---------- */

@media (max-width: 600px) {
  main {
    padding: 2rem 1rem 1rem;
  }
  .hero {
    padding-top: 1rem;
  }
  .hero-tagline {
    font-size: 1.25rem;
  }
  section h2 {
    font-size: 0.85rem;
  }
  .cta {
    font-size: 0.7rem;
    padding: 12px 22px;
  }
}
