/* ==========================================================================
   VEYORA STUDIO — Main Design System & Base Layout
   ========================================================================== */

:root {
  /* Core Brand Palette */
  --navy: #10172A;
  --navy-deep: #0B1020;
  --indigo: #282B55;
  --violet: #745CFF;
  --violet-dark: #5B43E6;
  --electric-blue: #4088FF;
  --cyan: #44C7D7;
  --gold: #D8B168;
  --gold-soft: #E9CE96;

  /* Light Surfaces & Typography */
  --off-white: #F7F8FC;
  --white: #FFFFFF;
  --surface-tint: #EFF2FA;
  --text-primary: #182033;
  --text-secondary: #525E75;
  --text-muted: #667085;
  --border-light: rgba(24, 32, 51, 0.09);
  --border-strong: rgba(24, 32, 51, 0.16);
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Gradients (used selectively) */
  --grad-brand: linear-gradient(135deg, #745CFF 0%, #4088FF 62%, #44C7D7 100%);
  --grad-dark: linear-gradient(145deg, #0B1020 0%, #10172A 48%, #1E2349 100%);
  --grad-gold: linear-gradient(135deg, #EED297 0%, #D8B168 55%, #B58C42 100%);

  /* Typography */
  --font-display: 'Manrope', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii & Shadows */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 10px rgba(16, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(16, 23, 42, 0.08);
  --shadow-lg: 0 24px 56px rgba(16, 23, 42, 0.16);
  --shadow-glow: 0 14px 36px rgba(116, 92, 255, 0.24);

  /* Layout */
  --container-max: 1240px;
  --container-narrow: 860px;
  --header-height: 78px;
  --transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--off-white);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-drawer-open {
  overflow: hidden;
}

img,
svg,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--violet-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--electric-blue);
}

:focus-visible {
  outline: 3px solid var(--electric-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.42rem);
  font-weight: 700;
}

p {
  margin: 0 0 1.05rem;
  color: var(--text-secondary);
}

ul, ol {
  margin: 0 0 1.25rem;
  padding-left: 1.3rem;
}

li {
  margin-bottom: 0.45rem;
  color: var(--text-secondary);
}

/* Skip Link & Screen Reader Utilities */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.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;
}

/* Containers & Sections */
.container {
  width: min(100% - 2.5rem, var(--container-max));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2.5rem, var(--container-narrow));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.section--white {
  background: var(--white);
}

.section--tint {
  background: var(--off-white);
}

.section--dark {
  background: var(--grad-dark);
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--dark p,
.section--dark li {
  color: rgba(235, 240, 255, 0.82);
}

.section-header {
  max-width: 740px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-dark);
  margin-bottom: 0.85rem;
}

.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--gold-soft);
}

.lead {
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  line-height: 1.72;
  color: var(--text-secondary);
}

.section--dark .lead,
.hero .lead,
.page-hero .lead {
  color: rgba(235, 241, 255, 0.84);
}

/* Grid Helpers */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Editorial Two-Column Page Layout (Main + Sticky Sidebar) */
.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 2.5rem;
  align-items: start;
}

.editorial-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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