/* ==========================================================================
   D-ARTIST — Global Design System & Variables
   Theme: Strict Black, White & Grayscale Editorial Gallery
   ========================================================================== */

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

:root {
  /* Strict Monochrome Grayscale Palette */
  --black: #000000;
  --white: #FFFFFF;
  
  --gray-50:  #FAFAFA;
  --gray-100: #F4F4F5;
  --gray-200: #E4E4E7;
  --gray-300: #D4D4D8;
  --gray-400: #A1A1AA;
  --gray-500: #71717A;
  --gray-600: #52525B;
  --gray-700: #3F3F46;
  --gray-800: #27272A;
  --gray-900: #18181B;
  --gray-950: #0C0C0E;

  /* Semantic UI Surfaces */
  --bg: #09090B;
  --surface: #121214;
  --surface-2: #18181B;
  --surface-3: #222225;
  --surface-hover: #2A2A2E;
  
  /* Borders */
  --border: #27272A;
  --border-subtle: #1C1C1F;
  --border-strong: #3F3F46;
  --border-focus: #FFFFFF;

  /* Typography Colors */
  --text: #F4F4F5;
  --text-dim: #D4D4D8;
  --muted: #A1A1AA;
  --muted-dark: #71717A;

  /* Monochrome High-Contrast Accents */
  --accent: #FFFFFF;
  --accent-inverse: #000000;
  --accent-muted: rgba(255, 255, 255, 0.08);
  --accent-border: #3F3F46;
  --accent-hover: #E4E4E7;

  /* Status Colors in Monochrome Scale */
  --status-active: #FFFFFF;
  --status-muted: #71717A;
  --danger: #E4E4E7;
  --danger-bg: #221515;
  --danger-border: #522525;
  --success: #FAFAFA;
  --success-bg: #152217;
  --success-border: #254629;

  /* Typography Stack */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --font-size-2xs: 0.6875rem; /* 11px */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.84rem;    /* 13.5px */
  --font-size-base: 0.95rem;  /* 15.2px */
  --font-size-md: 1.05rem;    /* 16.8px */
  --font-size-lg: 1.25rem;    /* 20px */
  --font-size-xl: 1.6rem;     /* 25.6px */
  --font-size-2xl: 2.1rem;    /* 33.6px */
  --font-size-3xl: 2.8rem;    /* 44.8px */
  --font-size-hero: clamp(2.4rem, 5vw, 4.2rem);

  /* Spacing Scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 18px;
  --space-lg: 24px;
  --space-xl: 36px;
  --space-2xl: 56px;
  --space-3xl: 84px;

  /* Layout Containers */
  --container-max: none;
  --container-narrow: 1100px;
  --container-text: 840px;
  --nav-height: 64px;
  --nav-top-offset: 12px;
  --sidebar-width: 260px;

  /* Radius Rules — Strict Boxy Editorial Interface */
  --radius-xs: 0px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-nav: 6px; /* Subtle architectural radius for floating glass navbar */
  --radius-full: 9999px; /* Reserved ONLY for circular user avatars and status dots */

  /* Subtle Dark Glassmorphism System */
  --glass-bg: rgba(12, 12, 14, 0.72);
  --glass-bg-scrolled: rgba(9, 9, 11, 0.90);
  --glass-bg-subtle: rgba(18, 18, 22, 0.65);
  --glass-bg-dropdown: rgba(12, 12, 14, 0.95);
  --glass-bg-light: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-scrolled: rgba(255, 255, 255, 0.14);
  --glass-border-hover: rgba(255, 255, 255, 0.18);
  --glass-border-focus: rgba(255, 255, 255, 0.35);
  --glass-blur: 18px;
  --glass-blur-heavy: 24px;

  /* Motion & Transitions - Subtle & Smooth */
  --transition-fast: 140ms ease;
  --transition-base: 220ms ease;
  --transition-slow: 320ms ease;

  /* Clean Fine Elevation (No Glow, No Neon, Crisp Contrast) */
  --shadow-subtle: none;
  --shadow-card: none;
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-elevated: 0 12px 36px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   CSS Reset & Base Rules
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  overflow-x: clip;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
  outline: none;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.page-title {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.section-subtitle {
  font-size: var(--font-size-base);
  color: var(--muted);
  max-width: 600px;
  line-height: 1.6;
}

.label-caps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-xs);
}

.text-muted { color: var(--muted); }
.text-dim { color: var(--text-dim); }
.text-white { color: var(--white); }
.text-serif { font-family: var(--font-serif); }

/* ==========================================================================
   Layout Structures & Containers
   ========================================================================== */

.container {
  width: 95%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.container-narrow {
  width: 95%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.container-text {
  width: 95%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.main-content {
  flex: 1 0 auto;
  padding-top: calc(var(--nav-height) + var(--nav-top-offset) + var(--space-md));
  padding-bottom: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.section {
  margin-bottom: var(--space-3xl);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: var(--space-md);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-sm);
}

/* ==========================================================================
   Scrollbars — Minimalist & Boxy
   ========================================================================== */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-800);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-600);
}
