/* Tebersons: one stylesheet for the whole site. Each game page sets its own colours with a theme class on <body>. */

:root {
  --bg: #13110f;
  --surface: #1d1a17;
  --surface-2: #26221e;
  --line: #3a342d;
  --text: #f1ebe2;
  --muted: #b3a998;
  --accent: #e8893a;
  --accent-text: #1a0f05;
  --link: #f2a65e;
  --heading-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* ---------- Header and footer ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.wordmark { color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.wordmark img { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero h1 { font-family: var(--heading-font); font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.05; margin: 0 0 14px; letter-spacing: -.01em; }
.hero .lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--muted); max-width: 640px; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--accent); margin: 0 0 12px; }

/* ---------- Sections ---------- */
section { padding: 28px 0; }
h2 { font-family: var(--heading-font); font-size: 1.7rem; line-height: 1.2; margin: 0 0 14px; }
h3 { font-size: 1.12rem; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.narrow { max-width: 680px; }

/* ---------- Game cards (home) ---------- */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.game-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border-radius: var(--radius); text-decoration: none; color: #fff;
  min-height: 260px; position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.game-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.game-card h3 { font-size: 1.45rem; line-height: 1.2; margin: auto 0 0; }
.game-card p { margin: 0; color: rgba(255,255,255,.82); }
.game-card .more { font-weight: 700; color: #fff; }
.game-card img { width: 76px; height: 76px; border-radius: 18px; }
.card-kikker { background: linear-gradient(160deg, #36b3f2 0%, #2a9d57 70%, #1f7a3f 100%); }
.card-korbrand { background: radial-gradient(120% 90% at 85% 0%, #7a5a1e 0%, transparent 55%), linear-gradient(170deg, #2a2621 0%, #15130f 100%); }
.card-emberdeep { background: radial-gradient(110% 80% at 15% 100%, #b4471a 0%, transparent 55%), linear-gradient(170deg, #2a1a3d 0%, #0e0914 100%); }
.card-korbrand h3, .card-korbrand .monogram,
.card-emberdeep h3, .card-emberdeep .monogram { font-family: Georgia, "Times New Roman", serif; }
.monogram { font-size: 2.4rem; font-weight: 700; line-height: 1; opacity: .9; }

/* ---------- Status pills ---------- */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 4px; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: rgba(255,255,255,.14); color: inherit; }
.pill.solid { background: var(--accent); color: var(--accent-text); }

/* ---------- Feature grid (game pages) ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 16px; }
.feature p { color: var(--muted); margin: 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.panel p:last-child { margin-bottom: 0; }

.button {
  display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 700; text-decoration: none;
  background: var(--accent); color: var(--accent-text);
}
.button.ghost { background: transparent; color: var(--text); border: 2px solid var(--line); }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.links a { font-weight: 600; }

blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }

mark { background: #ffe27a; color: #1a1a1a; padding: 0 4px; border-radius: 3px; }

/* ---------- Theme: Kikker (bright pond) ---------- */
.theme-kikker {
  --bg: #f2faf3;
  --surface: #ffffff;
  --surface-2: #e5f4e8;
  --line: #cfe5d4;
  --text: #15301d;
  --muted: #4f6857;
  --accent: #2f9e44;
  --accent-text: #ffffff;
  --link: #1c7fb5;
  --heading-font: "Trebuchet MS", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.theme-kikker .hero { background: linear-gradient(180deg, #bfe9ff 0%, #f2faf3 100%); margin-bottom: 8px; }
.kikker-hero { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.kikker-hero img { width: 160px; height: 160px; border-radius: 36px; box-shadow: 0 12px 30px rgba(20, 80, 40, .25); }
.kikker-hero > div { flex: 1 1 320px; }

/* ---------- Theme: Korbrand (iron and gold) ---------- */
.theme-korbrand {
  --bg: #111316;
  --surface: #1a1d21;
  --line: #33373d;
  --text: #ece6da;
  --muted: #a9a294;
  --accent: #d4a84b;
  --accent-text: #1b1406;
  --link: #e3bd6a;
  --heading-font: Georgia, "Times New Roman", serif;
}
.theme-korbrand { background-image: radial-gradient(70% 520px at 80% 0%, rgba(212,168,75,.20) 0%, transparent 100%); background-repeat: no-repeat; }

/* ---------- Theme: Emberdeep (void and ember) ---------- */
.theme-emberdeep {
  --bg: #0d0a12;
  --surface: #17121f;
  --line: #2f2540;
  --text: #f0e9f5;
  --muted: #ad9fbd;
  --accent: #ff7a2f;
  --accent-text: #1f0a00;
  --link: #ff9a5c;
  --heading-font: Georgia, "Times New Roman", serif;
}
.theme-emberdeep { background-image: radial-gradient(55% 420px at 15% 380px, rgba(255,122,47,.18) 0%, transparent 100%), radial-gradient(60% 480px at 90% 0%, rgba(143,108,255,.18) 0%, transparent 100%); background-repeat: no-repeat; }

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 28px; }
  .kikker-hero img { width: 120px; height: 120px; border-radius: 28px; }
  .site-nav { gap: 16px; }
}
