/* =========================================================
   Xurshid Maroziqov — Cinematic Noir Design System
   Aesthetic: deep black, warm amber accent, dramatic light
   Language: Uzbek (Latin script, diacritics oʻ, gʻ, sh, ch)
   ========================================================= */

/* ---------- Webfonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ===== COLORS ===== */
  /* Primary surface — pure cinematic black, layered upward */
  --noir-0:   #050505;   /* the void — deepest background */
  --noir-1:   #0A0A0A;   /* primary canvas */
  --noir-2:   #131110;   /* elevated surface (warm-shifted) */
  --noir-3:   #1C1916;   /* card / glass base */
  --noir-4:   #26221D;   /* hover / elevated card */
  --noir-5:   #332E27;   /* divider, subtle border */

  /* Smoke — warm-cool neutrals on dark */
  --smoke-1:  #4A443B;   /* faint text, dividers */
  --smoke-2:  #6B6358;   /* tertiary text */
  --smoke-3:  #8E8678;   /* secondary text */
  --smoke-4:  #B8B0A1;   /* muted body */
  --smoke-5:  #DCD4C5;   /* primary body — warm ivory */
  --ivory:    #F4ECDC;   /* high-emphasis text — warm white */
  --pure:     #FFFFFF;   /* pure white — used sparingly */

  /* Amber — the single hero color, warm gold spectrum */
  --amber-50:  #FBF4E2;
  --amber-100: #F2E2B3;
  --amber-200: #E5CB85;
  --amber-300: #D6B36C;
  --amber-400: #C9A961;  /* PRIMARY ACCENT */
  --amber-500: #B8964D;
  --amber-600: #9C7E3E;
  --amber-700: #76602F;
  --amber-800: #4F4020;
  --amber-900: #2A220F;

  /* Ember — secondary warm, used for film-light glows */
  --ember:     #E0A847;
  --ember-glow: rgba(224, 168, 71, 0.18);

  /* Semantic */
  --success:   #7BA77E;
  --warning:   #D6B36C;
  --danger:    #B45A4A;
  --danger-bg: rgba(180, 90, 74, 0.10);

  /* ===== TEXT TOKENS ===== */
  --fg-1: var(--ivory);     /* primary headline */
  --fg-2: var(--smoke-5);   /* body */
  --fg-3: var(--smoke-4);   /* muted */
  --fg-4: var(--smoke-3);   /* tertiary, captions */
  --fg-5: var(--smoke-2);   /* faint, metadata */
  --fg-accent: var(--amber-400);
  --fg-on-amber: var(--noir-1);

  /* ===== SURFACE TOKENS ===== */
  --bg-0: var(--noir-0);
  --bg-1: var(--noir-1);
  --bg-2: var(--noir-2);
  --bg-3: var(--noir-3);
  --bg-4: var(--noir-4);

  --border-faint: rgba(244, 236, 220, 0.06);
  --border-subtle: rgba(244, 236, 220, 0.10);
  --border-strong: rgba(244, 236, 220, 0.18);
  --border-amber: rgba(201, 169, 97, 0.35);

  /* ===== GLASS / BLUR ===== */
  --glass-bg: rgba(28, 25, 22, 0.55);
  --glass-bg-strong: rgba(19, 17, 16, 0.75);
  --glass-border: rgba(244, 236, 220, 0.08);
  --glass-blur: blur(20px) saturate(1.1);

  /* ===== SHADOW & LIGHT ===== */
  /* All shadows on dark UIs: combine deep void + warm amber halo */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.7), 0 8px 16px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 40px 100px rgba(0, 0, 0, 0.8);

  /* The "spotlight" — characteristic of this brand */
  --glow-amber-sm: 0 0 24px rgba(201, 169, 97, 0.20);
  --glow-amber-md: 0 0 60px rgba(201, 169, 97, 0.28), 0 0 120px rgba(201, 169, 97, 0.10);
  --glow-amber-lg: 0 0 120px rgba(201, 169, 97, 0.35), 0 0 240px rgba(201, 169, 97, 0.12);

  /* Inner light — for cards on dark */
  --inset-top: inset 0 1px 0 rgba(244, 236, 220, 0.06);
  --inset-amber: inset 0 1px 0 rgba(201, 169, 97, 0.25);

  /* ===== RADII ===== */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 999px;

  /* ===== SPACING ===== */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 144px;

  /* ===== TYPOGRAPHY ===== */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', monospace;

  /* Type scale — editorial, generous */
  --t-display:  clamp(64px, 9vw, 144px);   /* hero */
  --t-h1:       clamp(48px, 6vw, 84px);
  --t-h2:       clamp(36px, 4.5vw, 60px);
  --t-h3:       clamp(28px, 3vw, 40px);
  --t-h4:       24px;
  --t-h5:       20px;
  --t-eyebrow:  12px;   /* tracked uppercase label */
  --t-body-lg:  19px;
  --t-body:     16px;
  --t-small:    14px;
  --t-caption:  12px;

  /* ===== MOTION ===== */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-cinema: cubic-bezier(0.7, 0, 0.2, 1);
  --dur-fast:   180ms;
  --dur-base:   320ms;
  --dur-slow:   600ms;
  --dur-cinema: 900ms;

  /* ===== EFFECTS ===== */
  --grain-opacity: 0.06;
  --vignette: radial-gradient(ellipse 120% 80% at 50% 40%, transparent 0%, transparent 50%, rgba(0,0,0,0.55) 100%);
  --spotlight-amber: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(201, 169, 97, 0.18) 0%, transparent 60%);
}

/* ===== SEMANTIC ELEMENT STYLES ===== */
html, body {
  background: var(--bg-1);
  color: var(--fg-2);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.display, h1.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-display);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--fg-1);
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-h1);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--fg-1);
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-h3);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg-1);
}

h4, .h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-h4);
  line-height: 1.25;
  color: var(--fg-1);
}

h5, .h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-h5);
  line-height: 1.35;
  color: var(--fg-1);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--t-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-accent);
}

.lead, p.lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: var(--t-body-lg);
  line-height: 1.55;
  color: var(--fg-2);
}

p, .body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--fg-2);
}

.caption {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--t-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-4);
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--fg-3);
}

a {
  color: var(--fg-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
a:hover {
  border-bottom-color: var(--fg-accent);
}

::selection {
  background: var(--amber-400);
  color: var(--noir-1);
}

/* ===== UTILITY: film grain overlay ===== */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.93 0 0 0 0 0.78 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

/* ===== UTILITY: vignette ===== */
.vignette::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--vignette);
  z-index: 0;
}
