/* ============================================================
   dkh-base.css — Deckhalo CSS custom properties + resets
   ============================================================ */

:root {
  /* Brand palette */
  --dkh-brand-primary: #0E0E18;
  --dkh-accent: #7C5CFC;
  --dkh-accent-aa-light: #5B3FD4;
  --dkh-accent-aa-dark: #9D7FFF;
  --dkh-accent-warm: #F59E0B;
  --dkh-accent-warm-aa: #B45309;

  /* Foreground tokens */
  --dkh-fg-light-primary: #0E0E18;
  --dkh-fg-light-secondary: #4B5563;
  --dkh-fg-dark-primary: #F0EDF8;
  --dkh-fg-dark-secondary: #A89FC8;

  /* Background tokens */
  --dkh-bg-light: #F8F7FC;
  --dkh-bg-white: #FFFFFF;
  --dkh-bg-dark: #0E0E18;
  --dkh-bg-dark-alt: #1A1830;
  --dkh-bg-cream: #F4F0FF;

  /* Typography */
  --dkh-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --dkh-font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Sizing */
  --dkh-display: clamp(2.4rem, 5vw, 4.2rem);
  --dkh-h2: clamp(1.6rem, 3vw, 2.4rem);
  --dkh-h3: 1.25rem;
  --dkh-body: 1rem;
  --dkh-label: 0.75rem;

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

  /* Shadows */
  --dkh-shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --dkh-shadow-md: 0 4px 16px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.08);
  --dkh-shadow-lg: 0 12px 40px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.1);

  /* Transitions */
  --dkh-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dkh-duration: 0.18s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--dkh-font-sans);
  font-size: var(--dkh-body);
  line-height: 1.75;
  color: var(--dkh-fg-light-primary);
  background: var(--dkh-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.dkh-page--dark-top {
  background: var(--dkh-bg-dark);
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Typography resets ─────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dkh-fg-light-primary);
}

/* ── Focus visible ─────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--dkh-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Screen reader only ────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Container ─────────────────────────────────────────── */
.dkh-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.dkh-container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

/* ── Section spacing ────────────────────────────────────── */
.dkh-section {
  padding: clamp(64px, 8vw, 120px) 0;
}

.dkh-section--compact {
  padding: clamp(40px, 5vw, 72px) 0;
}

/* ── Label / eyebrow ────────────────────────────────────── */
.dkh-label {
  font-size: var(--dkh-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}

.dkh-section--light .dkh-label,
.dkh-section--white .dkh-label,
.dkh-section--cream .dkh-label {
  color: var(--dkh-accent-aa-light);
}

.dkh-section--dark .dkh-label,
.dkh-section--dark-alt .dkh-label,
.dkh-hero--dark .dkh-label {
  color: var(--dkh-accent-aa-dark);
}

/* ── Section heading alignment ─────────────────────────── */
.dkh-section-header {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.dkh-section-header--center {
  text-align: center;
}

/* ── Font weights ───────────────────────────────────────── */
.dkh-fw-semibold { font-weight: 600; }
.dkh-fw-bold { font-weight: 700; }

/* ── Reveal animations ──────────────────────────────────── */
.dkh-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--dkh-ease), transform 0.5s var(--dkh-ease);
}

.dkh-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes dkh-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dkh-fade-up {
  animation: dkh-fade-up 0.6s var(--dkh-ease) both;
}

.dkh-fade-up--delay-1 { animation-delay: 0.1s; }
.dkh-fade-up--delay-2 { animation-delay: 0.2s; }
.dkh-fade-up--delay-3 { animation-delay: 0.3s; }

/* ── Cookie banner ─────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--dkh-bg-dark-alt);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--dkh-fg-dark-secondary);
}

.cookie-banner__text a {
  color: var(--dkh-accent-aa-dark);
  text-decoration: underline;
}

.cookie-banner__actions {
  flex-shrink: 0;
}

.cookie-banner__btn--primary {
  background: var(--dkh-accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: var(--dkh-radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--dkh-duration) var(--dkh-ease);
}

.cookie-banner__btn--primary:hover {
  background: var(--dkh-accent-aa-light);
}

/* body padding when banner shows */
body.cookie-visible {
  padding-bottom: 72px;
}
