/* ═══════════════════════════════════════════════
   Selah Puzzles — Shared Styles v5.0
   Brand identity: LeaderSource Identity Guide v1.1
   ═══════════════════════════════════════════════ */

/* ── FONTS ── */
@font-face {
  font-family: 'Galano Grotesque';
  src: url('../fonts/Galano_Grotesque_Light.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Galano Grotesque';
  src: url('../fonts/Galano_Grotesque.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Galano Grotesque';
  src: url('../fonts/Galano_Grotesque_Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Galano Grotesque';
  src: url('../fonts/Galano_Grotesque_SemiBold.otf') format('opentype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Galano Grotesque';
  src: url('../fonts/Galano_Grotesque_Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

/* ── BRAND TOKENS ── */
:root {
  /* Primary palette */
  --navy: #2D3270;
  --sky: #5BB8F5;
  --white: #FFFFFF;

  /* Extended palette */
  --teal: #50C2C3;
  --teal-light: #6EC9CE;
  --teal-pale: rgba(80,194,195,0.15);
  --purple-soft: #A999C8;
  --blue-soft: #889ED0;

  /* Functional */
  --bg: var(--white);
  --bg-subtle: #f4f4f8;
  --bg-surface: #eaeaf0;
  --text: var(--navy);
  --text-mid: #555880;
  --text-dim: #8b8ea8;
  --border: rgba(45,50,112,0.08);
  --shadow-sm: 0 1px 3px rgba(45,50,112,0.06);
  --shadow-md: 0 4px 12px rgba(45,50,112,0.08);
  --error: #ef4444;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 100px;

  /* Typography */
  --font: 'Galano Grotesque', Arial, Helvetica, sans-serif;
  --transition: 0.15s ease;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  overflow-x: hidden;
}

/* ── SITE HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-logo {
  display: flex; align-items: flex-end; text-decoration: none; gap: 0;
  flex-wrap: wrap; line-height: 1;
}
.logo-selah {
  font-family: 'Dancing Script', cursive;
  font-weight: 700; font-size: 42px;
  color: #2D3270; line-height: 0.85;
}
.logo-cross {
  width: 18px; height: 28px; margin-left: 2px; margin-bottom: 4px;
  flex-shrink: 0;
}
.logo-puzzles {
  font-family: 'Galano Grotesque', Arial, Helvetica, sans-serif;
  font-weight: 700; font-size: 16px;
  color: #2D3270; letter-spacing: 5px;
  margin-left: -2px; margin-top: -6px;
  width: 100%;
}
.site-nav {
  display: flex; gap: 4px; align-items: center;
}
.site-nav a {
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  color: var(--text-dim); text-decoration: none;
  padding: 6px 12px; border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.site-nav a:hover {
  color: var(--text-mid); background: var(--bg-subtle);
}
.site-nav a.active {
  color: var(--navy); background: var(--bg-surface);
}

/* ── PAGE WRAPPER ── */
.page {
  display: flex; flex-direction: column; align-items: center;
  min-height: calc(100vh - 100px);
  padding: 20px 16px 32px;
  background: var(--bg);
}

/* ── SITE FOOTER ── */
.site-footer {
  text-align: center; padding: 20px;
  font-size: 11px; font-weight: 300; color: var(--text-dim); letter-spacing: 1px;
  border-top: 1px solid var(--border);
}

/* ── SHARED UI ELEMENTS ── */
.overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
}
.overlay.hidden { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 420px) {
  .site-nav { 
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; gap: 2px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: 9px; padding: 5px 8px; white-space: nowrap; }
  .logo-selah { font-size: 32px; }
  .logo-cross { width: 14px; height: 22px; }
  .logo-puzzles { font-size: 12px; letter-spacing: 4px; }
  .site-header { padding: 10px 12px; }
}

