/*
  chriswjohnston.ca — shared.css
  ═══════════════════════════════════════════════════════
  Single source of truth for tokens, resets, and any
  component used on 3+ pages.

  SOURCE FILE — edit here, never in docs/shared.css
  build_stage.py copies this to docs/ automatically.

  Last audit: 2026-04-10 (v6 rebuild)
  All classes defined here are actively used.
  Page-specific styles live in each file's <style> block.
  ═══════════════════════════════════════════════════════
*/

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Primary palette */
  --forest:    #2C4A3E;
  --pine:      #3D6B5E;
  --pine-mid:  #4a7a6c;
  --pine-lt:   #e8f0eb;

  /* Accent */
  --gold:      #b8922a;
  --gold-lt:   #fdf6e3;
  --warm:      #E8C98A;
  --rust:      #C06830;
  --rust-dk:   #A8552A;

  /* Neutrals */
  --ink:       #1c1c1c;
  --charcoal:  #1E2B2A;
  --body:      #3a3a3a;
  --muted:     #6e6e6e;
  --rule:      #d8d0c8;
  --bg:        #FAF7F0;
  --cream:     #FAF7F0;
  --sand:      #F2EAD3;
  --white:     #FFFFFF;
  --sky:       #A8D5E2;
  --water:     #5B9FAF;

  /* Typography */
  --font-display: 'Playfair Display', 'Lora', Georgia, serif;
  --font-body:    'Lato', 'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --nav-height: 60px;
  --max-width:  1100px;
  --section-pad: 5rem 2rem;
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── CONTAINER ─────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; }

/* ── BUTTONS ───────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--rust);
  color: var(--white);
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--rust-dk); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 0.9rem 2rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--warm); color: var(--warm); }

/* ── SECTION PRIMITIVES ────────────────────────────────── */
.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.5rem;
  display: block;
}
.section-label.light { color: var(--warm); }
.section-label.gold  { color: var(--gold); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-title.light { color: var(--white); }
.section-title em { font-style: italic; color: var(--pine); }
.section-title.light em { color: var(--warm); opacity: 0.8; }

.section-intro {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.82;
  color: #555;
  max-width: 640px;
}
.section-intro.light { color: rgba(255,255,255,0.72); }

/* ── CALLOUT BOX ───────────────────────────────────────── */
.callout {
  border-radius: 10px;
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.callout-icon { font-size: 1.5rem; flex-shrink: 0; }
.callout h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.callout p { font-size: 0.92rem; line-height: 1.75; color: var(--body); }

/* ── STAT ROWS ─────────────────────────────────────────── */
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--pine-lt);
  font-size: 0.82rem;
  gap: 1rem;
}
.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--body); line-height: 1.35; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.stat-value.good { color: var(--pine); }
.stat-value.bad  { color: #b83232; }

/* ── TAGS ──────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
}

/* ── TIMELINE ──────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; }
.timeline-row { display: grid; grid-template-columns: 130px 1fr; }
.timeline-date {
  padding: 12px 16px 12px 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
  position: relative;
}
.timeline-date::after {
  content: '';
  position: absolute;
  right: -4px; top: 18px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline-content {
  padding: 12px 0 12px 24px;
  border-left: 2px solid var(--rule);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--body);
}
.timeline-content strong { color: var(--ink); font-weight: 600; }
.timeline-content.highlight {
  border-left-color: var(--gold);
  background: var(--gold-lt);
  padding: 12px 12px 12px 20px;
  margin-left: 4px;
  border-radius: 0 4px 4px 0;
}
.timeline-content.outcome { border-left-color: #b83232; }
.timeline-row:last-child .timeline-content { border-left-color: transparent; }

/* ── STATUS HELPERS ────────────────────────────────────── */
.good      { color: var(--pine); }
.bad       { color: #b83232; }
.gold      { color: var(--gold); }
.highlight { background: var(--gold-lt); }
.outcome   { border-left-color: #b83232; }
.active    { color: var(--warm); }
.light     { color: var(--white); }

/* ── ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .timeline-row { grid-template-columns: 90px 1fr; }
}
@media (max-width: 640px) {
  .timeline-row { grid-template-columns: 1fr; }
  .timeline-date::after { display: none; }
  .timeline-content { border-left: none; padding-left: 0; padding-top: 2px; }
}
