/**
 * Base CSS — Design Tokens & Reset
 * Aesthetic: Dark editorial / premium adult platform
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Core Palette */
  --black:        #0a0a0b;
  --surface-1:    #111114;
  --surface-2:    #18181d;
  --surface-3:    #222229;
  --surface-4:    #2e2e38;

  /* Accent — deep crimson/rose */
  --accent:       #c0184a;
  --accent-bright:#e8215a;
  --accent-glow:  rgba(192, 24, 74, 0.35);
  --accent-subtle:rgba(192, 24, 74, 0.12);

  /* Text */
  --text-primary:   #f0eee8;
  --text-secondary: #9e9b96;
  --text-muted:     #5a5855;
  --text-on-accent: #fff0f3;

  /* Status */
  --success:  #1db87a;
  --error:    #e84040;
  --warning:  #e09a20;
  --info:     #4ea8e8;

  /* Borders */
  --border-subtle: rgba(255,255,255,0.06);
  --border-mid:    rgba(255,255,255,0.11);
  --border-accent: rgba(192, 24, 74, 0.5);

  /* Spacing */
  --sp-xs:  0.25rem;
  --sp-sm:  0.5rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4.5rem;

  /* Font sizes */
  --fs-xs:   0.72rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.35rem;
  --fs-2xl:  1.75rem;
  --fs-3xl:  2.25rem;
  --fs-4xl:  3rem;
  --fs-5xl:  4rem;

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  /* Font weights */
  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    900;

  /* Radii */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   18px;
  --r-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.6);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.7);
  --shadow-accent: 0 0 30px var(--accent-glow);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 280ms ease;
  --t-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Z layers */
  --z-base:    1;
  --z-sticky:  100;
  --z-overlay: 200;
  --z-modal:   300;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--black);
  min-height: 100vh;
  /* Subtle noise grain overlay */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ─── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); }
h6 { font-size: var(--fs-lg); }

p { margin-bottom: var(--sp-md); }

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: #ff3d73; }

/* ─── Form Inputs ─────────────────────────────────────────── */
input, textarea, select, button {
  font-family: var(--font-body);
  font-size: var(--fs-base);
}

input[type='text'],
input[type='url'],
input[type='email'],
textarea,
select {
  width: 100%;
  padding: var(--sp-md);
  background: var(--surface-2);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-md);
  color: var(--text-primary);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

input::placeholder { color: var(--text-muted); }

button { cursor: pointer; border: none; }

/* ─── Images ──────────────────────────────────────────────── */
img { max-width: 100%; height: auto; display: block; }

/* ─── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-1); }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── Selection ───────────────────────────────────────────── */
::selection { background: var(--accent); color: var(--text-on-accent); }
