/* ============================================================
   The Aeverest Report — Spacing, radius, shadow, layout tokens
   ============================================================ */

:root {
  /* ---- Spacing scale (4px base) ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* ---- Radii — soft, editorial (not pill-y) ---- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;   /* cards, photos, callouts */
  --radius-lg: 14px;   /* outer panels */
  --radius-pill: 999px;

  /* ---- Borders ---- */
  --border-hair: 1px solid var(--line);
  --border-strong: 1px solid var(--line-strong);
  --rule-accent: 3px solid var(--accent);   /* left rule on callouts */

  /* ---- Shadows — low, warm, never harsh ---- */
  --shadow-xs: 0 1px 2px rgba(22, 38, 63, 0.05);
  --shadow-sm: 0 1px 2px rgba(22, 38, 63, 0.05), 0 4px 10px -6px rgba(22, 38, 63, 0.18);
  --shadow-md: 0 1px 2px rgba(22, 38, 63, 0.05), 0 14px 30px -18px rgba(22, 38, 63, 0.30);
  --shadow-lg: 0 2px 4px rgba(22, 38, 63, 0.06), 0 26px 56px -34px rgba(22, 38, 63, 0.42);

  /* ---- Layout widths ---- */
  --w-article: 720px;    /* advertorial reading column */
  --w-prose: 640px;      /* tighter prose */
  --w-wide: 1120px;      /* marketing / native grids */
  --gutter: clamp(20px, 5vw, 64px);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.2, 1);
  --dur-fast: 130ms;
  --dur: 220ms;
  --dur-slow: 420ms;
}

/* ============================================================
   The Aeverest Report — Base element layer
   Sensible defaults so consumers get the brand "for free".
   ============================================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--w-regular);
}

/* Headlines default to the display serif */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-headline);
  font-weight: var(--w-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-head);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 var(--sp-5); text-wrap: pretty; }

a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, var(--accent-strong) 45%, transparent);
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--navy-800); text-decoration-color: currentColor; }

/* On the navy footer the global navy-800 hover is unreadable —
   use the brass-on-dark token and full opacity instead. */
.site-footer__link:hover { color: var(--gold-300); opacity: 1; }
.site-footer__tagline a:hover { color: var(--gold-300); }

strong, b { font-weight: var(--w-semibold); color: var(--text-strong); }
em { font-style: italic; }

hr {
  border: none;
  border-top: var(--border-hair);
  margin: var(--sp-8) 0;
}

::selection { background: var(--gold-200); color: var(--navy-900); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ---- Editorial helper classes ---- */
.tlr-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-label);
  font-weight: var(--w-medium);
}
.tlr-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-label);
}
.tlr-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  font-weight: var(--w-medium);
  color: var(--text-headline);
}
.tlr-lede {
  font-family: var(--font-display);
  font-size: var(--fs-lede);
  line-height: 1.45;
  color: var(--text-dek);
  font-weight: var(--w-regular);
}
.tlr-measure { max-width: var(--measure); }

/* Real images inside former placeholder frames */
.photo-ph > img { width: 100%; height: 100%; object-fit: cover; display: block; }
