/* =============================================================
   MAIN.CSS — Sally Mills Consulting
   Global tokens, reset, typography, layout
   ============================================================= */

/* ──────────────────────────────────────────
   CUSTOM PROPERTIES
   ────────────────────────────────────────── */
:root {
  /* Brand colours */
  --c-primary:        #3B82F6;
  --c-secondary:      #60A5FA;
  --c-tertiary:       #1D4ED8;
  --c-navy:           #0A1628;
  --c-navy-deep:      #060F1E;
  --c-ground:         #F8F7F4;
  --c-surface:        #FFFFFF;
  --c-body:           #374151;
  --c-muted:          #9CA3AF;
  --c-border:         #E5E7EB;
  --c-on-dark:        #E8EDF5;
  --c-on-dark-dim:    rgba(232, 237, 245, 0.55);
  --c-on-dark-faint:  rgba(232, 237, 245, 0.35);

  /* Spacing (8px base unit) */
  --sp-1:   8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-12: 96px;

  /* Layout */
  --max-w:  1200px;
  --gutter:  48px;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Misc */
  --radius-sm: 4px;
  --radius-md: 8px;
  --duration:  150ms;
  --ease:      ease;
}

/* ──────────────────────────────────────────
   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);
  background-color: var(--c-ground);
  color: var(--c-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
}

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

ul, ol {
  list-style: none;
}

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

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

.highlight {
  color: var(--c-secondary)
}

/* ──────────────────────────────────────────
   CONTAINER
   ────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ──────────────────────────────────────────
   TYPOGRAPHY
   ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-navy);
  font-weight: 700;
}

p {
  line-height: 1.7;
}

/* ──────────────────────────────────────────
   UTILITIES
   ────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-1);
}

.section-heading {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--c-navy);
  margin-top: 6px;
}

.body-text {
  font-size: 16px;
  color: var(--c-body);
  line-height: 1.72;
}

.body-sm {
  font-size: 14px;
  color: var(--c-body);
  line-height: 1.7;
}

/* Visually hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-2);
  background: var(--c-primary);
  color: #fff;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  transition: top var(--duration) var(--ease);
  white-space: nowrap;
}

.skip-link:focus {
  top: var(--sp-2);
}

/* ──────────────────────────────────────────
   RESPONSIVE — narrow gutter on mobile
   ────────────────────────────────────────── */
@media (max-width: 767px) {
  :root {
    --gutter: 20px;
  }
}
