/* WorldGame Marketing Website — style.css
   Palette: provisional tokens from Color_System_Definition.md §6
   Visual direction: "clean industrial clarity" per Visual_Direction_Specification.md §2 */

/* ── Reset & base ────────────────────────────────────────── */

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

:root {
  /* Neutrals (Color_System_Definition §6.1) */
  --n-900: #1a1a1e;   /* deep charcoal — page background          */
  --n-800: #222228;   /* slightly lighter — nav/footer             */
  --n-700: #2a2a30;   /* panel / card background                   */
  --n-500: #4a4a54;   /* borders, separators, inactive controls    */
  --n-300: #8a8a94;   /* secondary text, muted surfaces            */
  --n-100: #e8e8ec;   /* primary text on dark                      */

  /* Accent — muted warm ochre (medieval feel) */
  --accent: #c4956a;
  --accent-dim: #a07a55;

  --max-width: 900px;
  --radius: 4px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background: var(--n-900);
  color: var(--n-100);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img { max-width: 100%; }

/* ── Layout ──────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  flex: 1;
  padding: 2.5rem 0;
}

/* ── Nav ─────────────────────────────────────────────────── */

nav {
  background: var(--n-800);
  border-bottom: 1px solid var(--n-500);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav .brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--n-100);
  letter-spacing: 0.04em;
}

nav .nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

nav .nav-links a {
  color: var(--n-300);
  font-size: 0.9rem;
  transition: color 0.15s;
}
nav .nav-links a:hover,
nav .nav-links a.active {
  color: var(--n-100);
  text-decoration: none;
}

/* ── Footer ──────────────────────────────────────────────── */

footer {
  background: var(--n-800);
  border-top: 1px solid var(--n-500);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--n-300);
}

/* ── Hero ─────────────────────────────────────────────────── */

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

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--n-300);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* ── Section defaults ────────────────────────────────────── */

section {
  margin-bottom: 2.5rem;
}

section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent);
}

section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p + p {
  margin-top: 0.75rem;
}

/* ── Cards grid ──────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  background: var(--n-700);
  border: 1px solid var(--n-500);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card h3 {
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--n-300);
}

/* ── Prose block (story, download, issues) ───────────────── */

.prose p {
  max-width: 70ch;
}

.prose ul {
  margin: 0.5rem 0 0.5rem 1.5rem;
  color: var(--n-300);
}

.prose li {
  margin-bottom: 0.3rem;
}

/* ── Download box ────────────────────────────────────────── */

.download-box {
  background: var(--n-700);
  border: 1px solid var(--n-500);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.25rem;
  text-align: center;
}

.download-box .btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.5rem;
  background: var(--accent);
  color: var(--n-900);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.download-box .btn:hover {
  background: var(--accent-dim);
  text-decoration: none;
}

/* ── Iframe embed (issues page) ──────────────────────────── */

.form-embed {
  margin-top: 1.25rem;
  border: 1px solid var(--n-500);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.form-embed iframe {
  display: block;
  width: 100%;
  min-height: 700px;
  border: none;
}

/* ── Requirements table ──────────────────────────────────── */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--n-500);
}

th {
  color: var(--accent);
  font-weight: 600;
}

td {
  color: var(--n-300);
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 600px) {
  .hero h1 { font-size: 1.6rem; }
  .hero .tagline { font-size: 1rem; }
  nav .container { gap: 0.75rem; }
  nav .nav-links { gap: 0.75rem; }
}
