/* Klarsikt Studios — Nordic minimalist. Green-white, calm, lots of air. */

:root {
  --bg: #f3f6f1;          /* green-tinted white, never pure #fff */
  --surface: #ffffff;
  --ink: #1b2a22;         /* deep pine, softer than black */
  --muted: #5d6f64;
  --green: #2f6b4f;       /* single accent */
  --green-soft: #e4ede6;
  --line: #dce5dd;
  --bar-h: 4.5rem;        /* thick top bar */
}

* { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Thick top bar ---- */
.topbar {
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.wordmark { font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.wordmark:hover { text-decoration: none; }

.topbar nav { display: flex; gap: 0.5rem; }
.topbar nav a {
  color: var(--muted);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}
.topbar nav a:hover { background: var(--green-soft); text-decoration: none; }
.topbar nav a.active { color: var(--green); background: var(--green-soft); }

/* ---- Page body fills the rest of the viewport ---- */
main { flex: 1 0 auto; }

/* Home hero — centered in remaining space */
.hero {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 6vw;
  background: linear-gradient(180deg, var(--green-soft), var(--bg));
}
.hero-inner { max-width: 38rem; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 auto 2rem; max-width: 32rem; }

.cta {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
}
.cta:hover { background: #265740; text-decoration: none; }

/* Content pages (Why, Games) */
.page {
  max-width: 60rem;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 6vw;
}
.page h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 1.5rem; }
.page > p { color: var(--muted); font-size: 1.15rem; max-width: 38rem; }
.why-close { color: var(--ink); font-weight: 600; }

/* ---- Games ---- */
.game-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
}
.game-card h3 { margin: 0 0 0.4rem; }
.game-card p { margin: 0; color: var(--muted); }

/* ---- Footer ---- */
footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 2rem 6vw;
  color: var(--muted);
  font-size: 0.9rem;
}
