/* ──────────────────────────────────────────
   DESIGN TOKENS
─────────────────────────────────────────── */
:root {
  --dark:        #131313;
  --dark-deep:   #0a0a0a;
  --dark-warm:   #1c1815;
  --light:       #C4BAB0;
  --light-dim:   rgba(196, 186, 176, 0.65);
  --light-faint: rgba(196, 186, 176, 0.22);
  --light-ghost: rgba(196, 186, 176, 0.08);

  --serif: 'Noto Serif Georgian', 'Times New Roman', serif;
  --sans:  'Noto Sans Georgian', system-ui, sans-serif;

  --header-h:        110px;
  --header-h-shrunk: 70px;
  --logo-size:       72px;
  --logo-size-shrunk:46px;

  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
}

/* ──────────────────────────────────────────
   RESET + BASE
─────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--dark);
  color: var(--light);
  font-family: var(--sans);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { cursor: default; }

/* ──────────────────────────────────────────
   LOADING OVERLAY
   Covers viewport, holds the logo centered, then fades.
   The logo itself is a separate fixed element that animates from center → header.
─────────────────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--dark-warm) 0%, var(--dark) 50%, var(--dark-deep) 100%);
  z-index: 200;
  pointer-events: none;
  transition: opacity 1.2s var(--ease-in-out) 0.4s;
}
body.loaded .loading-overlay { opacity: 0; }
body.done    .loading-overlay { display: none; }

/* ──────────────────────────────────────────
   RESPONSIVE TOKENS
   Header / logo dimensions shrink on small screens. These need to be
   in base.css (not responsive.css) so every page picks them up —
   they used to live in responsive.css but inner pages didn't load that.
─────────────────────────────────────────── */
@media (max-width: 900px) {
  :root {
    --header-h: 80px;
    --header-h-shrunk: 60px;
    --logo-size: 56px;
    --logo-size-shrunk: 40px;
  }
}
