/* ============================================================
   NYU ALUMNI STORIES — THEME VARIABLES
   All colors, typography, spacing defined here.
   Update this file to retheme the entire site.
   ============================================================ */

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

:root {
  /* NYU Brand Colors */
  --nyu-violet:       #57068C;
  --nyu-violet-dark:  #3D0566;
  --nyu-violet-deep:  #2A0347;
  --nyu-violet-mid:   #7A1DB5;
  --nyu-violet-light: #9B3FD4;
  --nyu-violet-tint:  #F0E6F8;
  --nyu-violet-pale:  #F8F2FC;
  --nyu-black:        #0A0A0A;
  --nyu-white:        #FFFFFF;

  /* UI Colors */
  --bg:               #FAF7FC;
  --bg-card:          #FFFFFF;
  --text-primary:     #0F0A14;
  --text-secondary:   #4A3A5C;
  --text-muted:       #8B7BA0;
  --border:           #E4D8F0;
  --border-strong:    #C4A8E0;

  /* Accent */
  --accent:           var(--nyu-violet);
  --accent-hover:     var(--nyu-violet-dark);

  /* Typography */
  --font-display:     'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:        'DM Sans', 'Helvetica Neue', sans-serif;

  /* Sizes */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max:  1200px;
  --container-pad:  clamp(1rem, 5vw, 2.5rem);

  /* Radii */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(87,6,140,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(87,6,140,0.12), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:  0 12px 40px rgba(87,6,140,0.18), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl:  0 24px 64px rgba(87,6,140,0.24);

  /* Transitions */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --duration:   220ms;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

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

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   SHARED LAYOUT
   ============================================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 5, 20, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(87,6,140,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--container-pad);
  max-width: 100%;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  text-decoration: none;
}

.nav-logo-nyu {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-xl);
  color: var(--nyu-white);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--nyu-violet-light), #C084E8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: var(--space-8);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
  transition: color var(--duration) var(--ease);
}

.nav-links a:hover { color: var(--nyu-white); }

/* ============================================================
   TAGS
   ============================================================ */

.tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--nyu-violet);
  background: var(--nyu-violet-tint);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 0.2em 0.75em;
  text-decoration: none;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.tag:hover {
  background: var(--nyu-violet);
  color: var(--nyu-white);
  border-color: var(--nyu-violet);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--nyu-violet);
  color: var(--nyu-white);
}
.btn-primary:hover {
  background: var(--nyu-violet-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--nyu-white);
  background: var(--nyu-violet);
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.btn-link:hover {
  background: var(--nyu-violet-mid);
  transform: translateY(-1px);
}
.btn-link--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
}
.btn-link--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}
