/* ============================================================
   MORE DAYS STUDIO — Design System
   Typography, colour, spacing, reset, layout primitives
   ============================================================ */

:root {
  /* Typography */
  --ff: 'Inter', -apple-system, system-ui, sans-serif;

  /* Colours */
  --brand-red: #dc2626;
  --brand-red-hover: #b91c1c;
  --dark-slate: #131b2e;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --green: #10b981;
  --amber: #f59e0b;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --white: #fff;

  /* Semantic text tokens — dark surfaces */
  --text-on-dark-secondary: #94a3b8;
  --text-on-dark-muted: #cbd5e1;
  --text-on-dark-link-red: #f87171;
  --text-on-dark-accent-red: #ef4444;

  /* Semantic text tokens — light surfaces */
  --text-label: #6b7280;

  /* Spacing */
  --max: 1140px;
  --narrow: 720px;
  --nav-height: 64px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: rgba(220, 38, 38, 0.12); }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
  html { scroll-behavior: auto; }
}

body {
  font: 400 16px/1.65 var(--ff);
  color: var(--dark-slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Typography scale ---- */
h1, h2, h3, h4 { color: var(--dark-slate); }

h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

p { max-width: 660px; }

a { color: inherit; }

/* ---- Focus styles ---- */
:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

img { max-width: 100%; height: auto; display: block; }

/* ---- Layout primitives ---- */
.s-pad { padding: 112px 48px; }
.s-pad-sm { padding: 80px 48px; }
.s-inner { max-width: var(--max); margin: 0 auto; }
.s-narrow { max-width: var(--narrow); margin: 0 auto; }
.s-bg { background: var(--slate-50); }
.s-dark { background: var(--dark-slate); color: var(--white); }

/* ---- Section typography ---- */
.s-kicker {
  font: 500 11px/1 var(--ff);
  color: var(--brand-red);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.s-heading {
  font: 700 36px/1.15 var(--ff);
  color: var(--dark-slate);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.s-body {
  font: 300 18px/1.7 var(--ff);
  color: var(--slate-500);
  margin-bottom: 56px;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fillSegment {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes scanSweep {
  0% { left: -80px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% + 80px); opacity: 0; }
}
@keyframes dashedPulse {
  0% { border-color: rgba(220, 38, 38, 0.25); }
  50% { border-color: rgba(220, 38, 38, 0.5); }
  100% { border-color: rgba(220, 38, 38, 0.25); }
}

/* Scroll-triggered fade-in */
.fade-in-element {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  h1 { font-size: 42px; }
  h2 { font-size: 30px; }
  .s-heading { font-size: 30px; }
}

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .s-heading { font-size: 28px; }
  .s-pad { padding: 72px 28px; }
  .s-pad-sm { padding: 56px 28px; }
}
