/* =========================
   Wizards of the East
   Base stylesheet
   ========================= */

:root {
  --bg: #ffffff;
  --panel: #f6f7f8;
  --text: #111111;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #111111;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

/* ---------- layout ---------- */

.container {
  max-width: 1200px;
  padding: 0 16px;
  margin: 0 auto;
}

main {
  padding-bottom: 60px;
}

section {
  margin-top: 40px;
}

/* ---------- typography ---------- */

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.lead {
  font-size: 1.1rem;
  color: #222;
  max-width: 80ch;
}

.sub {
  color: var(--muted);
  max-width: 80ch;
}

/* ---------- navigation ---------- */

header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand img {
  height: 34px;
}

nav ul {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

.hamburger {
  display: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: #fff;
  font-weight: 500;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---------- grids & cards ---------- */

.grid12 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

.thumb img {
  width: 100%;
  display: block;
}

.card-body {
  padding: 12px;
}

.title {
  font-weight: 700;
  margin-bottom: 4px;
}

.desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.badge {
  font-size: 12px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ---------- panels ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.foot img {
  height: 28px;
}

.footlinks {
  display: flex;
  gap: 16px;
}

/* ---------- mobile ---------- */

@media (max-width: 900px) {
  nav ul {
    display: none;
  }

  .hamburger {
    display: inline-block;
  }
}
