/* Shared design tokens, page chrome (header / nav / footer), and base
   typography. Used by index.html (Lens), dreamer.html, and any future
   pages (rankings.html, etc.). Page-specific styles stay inline in each
   HTML file. */

:root {
  --accent: #C061AE;
  --accent-strong: #8a3f7d;
  --accent-soft: rgba(192, 97, 174, 0.10);
  --rarity: 217, 119, 6;          /* amber, used as rgba(var(--rarity), α) */
  --bg: #f6f1e6;                  /* warm cream — replaces clinical white */
  --bg-grid: rgba(26, 26, 31, 0.05);
  --card: #fffefb;
  --text: #1a1a1f;
  --muted: #6b7280;
  --border: #d9cfb9;              /* warm beige border */
  --border-soft: rgba(217, 207, 185, 0.5);
  --shadow: 0 1px 0 rgba(26,26,31,0.05), 0 2px 8px rgba(26,26,31,0.04);
  --font-display: 'VT323', ui-monospace, monospace;
  --font-body: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, var(--bg-grid) 1px, transparent 0);
  background-size: 24px 24px;
  background-attachment: fixed;
  color: var(--text);
  padding: 20px 24px 64px;
}

/* ---- Site header (UNIPEG wordmark + nav tabs) ---- */
.site-header {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 56px; line-height: 0.85;
  color: var(--text); text-decoration: none;
}
.brand img {
  width: 44px; height: 44px;
  border: 1.5px solid var(--text);
  border-radius: 4px;
  padding: 2px;
  background: var(--card);
  image-rendering: pixelated;
}
.site-nav { display: inline-flex; gap: 4px; align-items: center; padding-top: 8px; }
.nav-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.10em;
  color: var(--muted);
  border: 1.5px solid transparent;
  transition: color 0.1s ease, background 0.1s ease;
}
.nav-tab svg { width: 14px; height: 14px; }
.nav-tab:hover:not(.nav-tab--active) { color: var(--text); }
.nav-tab--active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(192,97,174,0.30);
}

/* ---- Common micro-elements ---- */
.lab {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

/* ---- Site footer (Created by community + UNIPEG / FEEDBACK / DONATE) ---- */
footer.site-footer {
  margin-top: 36px;
  padding: 20px 4px 8px;
  border-top: 1.5px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
footer.site-footer b { color: var(--text); font-weight: 600; }
footer.site-footer .links {
  display: inline-flex; align-items: center; gap: 14px;
}
footer.site-footer a, footer.site-footer .footer-link {
  background: none; border: 0;
  color: var(--text);
  text-decoration: none;
  font: inherit; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 0 1px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
footer.site-footer a:hover, footer.site-footer .footer-link:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

/* ---- Mobile site-chrome tweaks ---- */
@media (max-width: 720px) {
  body { padding: 14px 12px 48px; }
  .site-header { gap: 14px; }
  .brand { font-size: 40px; gap: 10px; }
  .brand img { width: 36px; height: 36px; }
}
@media (max-width: 420px) {
  .brand { font-size: 32px; }
  .brand img { width: 28px; height: 28px; }
  .nav-tab { padding: 5px 10px; font-size: 11px; }
}
