/* ─────────────────────────────────────────────────────────────────────────────
   INSPIRATORS — Design Tokens & Base Styles
   ───────────────────────────────────────────────────────────────────────────── */

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

/* ── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  /* Colours */
  --color-bg:             #FAFAF8;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F0EFE9;
  --color-border:         #E2E0D8;
  --color-border-strong:  #C8C5BB;
  --color-text-primary:   #1A1A1A;
  --color-text-secondary: #6B6760;
  --color-text-muted:     #A09C95;
  --color-accent:         #2D6A4F;
  --color-accent-light:   #D8EDDF;
  --color-accent-hover:   #235439;

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

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

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

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);

  /* Card thumbnail gradients per category */
  --gradient-leadership:  linear-gradient(145deg, #1a2a3a 0%, #2d4a6e 100%);
  --gradient-innovation:  linear-gradient(145deg, #1a2d1a 0%, #2e5c2e 100%);
  --gradient-philosophy:  linear-gradient(145deg, #2a1a3a 0%, #4a2d6e 100%);
  --gradient-ai:          linear-gradient(145deg, #0d1f2d 0%, #1a3f5c 100%);
  --gradient-psychology:  linear-gradient(145deg, #2a1a1a 0%, #5c2d2d 100%);
  --gradient-science:     linear-gradient(145deg, #1a1a2a 0%, #2d2d5c 100%);
  --gradient-creativity:  linear-gradient(145deg, #2a1f0d 0%, #5c4019 100%);
  --gradient-default:     linear-gradient(145deg, #1f1f1f 0%, #3a3a3a 100%);

  /* Layout */
  --max-width: 1200px;
  --header-height: 64px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* ── Layout Utilities ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

/* ── Typography Base ──────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 600;
}

p {
  line-height: 1.65;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-16) 0;
}

/* ── Launch state ─────────────────────────────────────────────────────────── */
/* Set  launched: true  in config.js to activate these rules.                 */
/* All elements marked data-prelaunch disappear; cards become clickable links */
body.is-launched [data-prelaunch] {
  display: none !important;
}

body.is-launched .card__overlay {
  display: none;
}

body.is-launched .card--has-url {
  cursor: pointer;
}

body.is-launched .card--has-url:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
