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

:root {
  --color-primary: #211C27;
  --color-primary-rgb: 33, 28, 39;
  --color-primary-dark: #16121C;
  --color-bg: #FAF8F5;
  --color-bg-ivory: #FAF8F5;
  --color-surface: #FFFFFF;
  --color-secondary: #EBE7F0;
  --color-lavender: #EBE7F0;
  --color-sand: #DFD3C3;
  --color-accent: #E25B45;
  --color-coral: #E25B45;
  --color-coral-dark: #C94632;
  --color-coral-soft: #FDEEEB;
  --color-text-main: #211C27;
  --color-text-muted: #5E5868;
  --color-text-subtle: #857D90;
  --color-border: #E5DFD7;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --card-radius: 12px;
  --tag-radius: 9999px;
  --shadow-sm: 0 1px 3px rgba(33, 28, 39, 0.05);
  --shadow-md: 0 4px 14px rgba(33, 28, 39, 0.07);
  --shadow-lg: 0 12px 30px rgba(33, 28, 39, 0.09);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-main);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-display) !important;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text-main);
}

.font-mono-time {
  font-family: var(--font-mono) !important;
  letter-spacing: -0.02em;
}

/* DAYSHIFT Custom Palette Classes */
.bg-dayshift-dark { background-color: #211C27 !important; color: #FAF8F5 !important; }
.bg-dayshift-ivory { background-color: #FAF8F5 !important; }
.bg-dayshift-coral { background-color: #E25B45 !important; color: #FFFFFF !important; }
.bg-dayshift-lavender { background-color: #EBE7F0 !important; }
.bg-dayshift-sand { background-color: #DFD3C3 !important; }
.bg-dayshift-white { background-color: #FFFFFF !important; }

.text-dayshift-dark { color: #211C27 !important; }
.text-dayshift-coral { color: #E25B45 !important; }
.text-dayshift-ivory { color: #FAF8F5 !important; }
.text-dayshift-muted { color: #5E5868 !important; }
.text-dayshift-subtle { color: #857D90 !important; }

.border-dayshift-sand { border-color: #DFD3C3 !important; }
.border-dayshift-lavender { border-color: #EBE7F0 !important; }
.border-dayshift-coral { border-color: #E25B45 !important; }
.border-dayshift-dark { border-color: #211C27 !important; }

/* Timeline & Route Elements */
.timeline-track {
  position: relative;
}
.timeline-track::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: #E5DFD7;
}

.rhythm-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #E5DFD7;
  background: #FFFFFF;
}
.rhythm-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #DFD3C3;
}

/* Editorial badge */
.badge-editorial {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  background-color: #EBE7F0;
  color: #211C27;
}
.badge-editorial.coral {
  background-color: #FDEEEB;
  color: #C94632;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF8F5;
}
::-webkit-scrollbar-thumb {
  background: #DFD3C3;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #857D90;
}

/* Interactive Accordion / Timeline */
.timeline-step {
  cursor: pointer;
  transition: all 0.2s ease;
}
.timeline-step.active, .timeline-step:hover {
  border-color: #E25B45;
}

/* Clean links */
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: #E25B45;
}

/* Remove legacy blue overrides */
.text-primary, [class*="text-[#"] { color: var(--color-text-main); }
.bg-primary { background-color: var(--color-primary) !important; }
