/* =================================================================
   base.css — design tokens, reset, typography, shell layout
   ================================================================= */

:root {
  /* Dark palette */
  --color-void: #0a0a0a;
  --color-night: #0D1B2A;
  --color-obsidian: #1A1714;
  --color-ink: #16213e;

  /* Light palette */
  --color-parchment: #F5F0E8;
  --color-ivory: #FAF3E0;
  --color-silver: #C8D6E5;

  /* Accents */
  --color-gold: #C9A84C;
  --color-gold-light: #F5D77A;
  --color-burgundy: #6B2D3E;
  --color-amber: #F0A500;
  --color-cyan: #00F5D4;
  --color-purple: #B537F2;

  /* Typography scale */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', ui-monospace, monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Transitions */
  --ease-elegant: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-dramatic: cubic-bezier(0.68, -0.55, 0.27, 1.55);
  --ease-out-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 300ms;
  --duration-medium: 600ms;
  --duration-slow: 1200ms;

  /* Radii */
  --radius-pill: 999px;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--color-void);
  color: var(--color-ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity var(--duration-fast) var(--ease-elegant);
}
a:hover {
  opacity: 0.7;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

blockquote,
figure,
p,
h1,
h2,
h3,
dl,
dd {
  margin: 0;
}

/* ---------- Shell layout (fullpage container) ---------- */

.wp-outer {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.wp-inner {
  width: 100%;
  height: 100%;
}

.page {
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

/* Ensure the fullpage engine's inline height propagates to the page flex context */
.fullPage-page {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Dot navigation ---------- */

.dot-nav {
  position: fixed;
  right: clamp(1rem, 3vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
  pointer-events: none; /* children re-enable */
}

.dot-nav__line {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
  transform: translateX(-50%);
  pointer-events: none;
}

.dot-nav__dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  transition:
    transform var(--duration-medium) var(--ease-elegant),
    background var(--duration-medium) var(--ease-elegant),
    box-shadow var(--duration-medium) var(--ease-elegant);
  pointer-events: auto;
}

.dot-nav__dot:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: scale(1.15);
}

.dot-nav__dot.is-active {
  transform: scale(1.6);
}

.dot-nav__dot[data-accent="gold"].is-active     { background: var(--color-gold);     box-shadow: 0 0 16px rgba(201, 168, 76, 0.75); }
.dot-nav__dot[data-accent="burgundy"].is-active { background: var(--color-burgundy); box-shadow: 0 0 16px rgba(107, 45, 62, 0.75); }
.dot-nav__dot[data-accent="amber"].is-active    { background: var(--color-amber);    box-shadow: 0 0 16px rgba(240, 165, 0, 0.75); }
.dot-nav__dot[data-accent="cyan"].is-active     { background: var(--color-cyan);     box-shadow: 0 0 18px rgba(0, 245, 212, 0.7); }
.dot-nav__dot[data-accent="ivory"].is-active    { background: var(--color-ivory);    box-shadow: 0 0 16px rgba(250, 243, 224, 0.55); }

.dot-nav__label {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0;
  white-space: nowrap;
  transition:
    opacity var(--duration-fast) var(--ease-elegant),
    transform var(--duration-fast) var(--ease-elegant);
  pointer-events: none;
}

.dot-nav__dot:hover .dot-nav__label,
.dot-nav__dot:focus-visible .dot-nav__label,
.dot-nav__dot.is-active .dot-nav__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ---------- Accessibility helpers ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}
