/* ══════════════════════════════════════════════
   DEAR FORWARD — GLOBAL STYLES
   Design tokens, reset, typography
   ══════════════════════════════════════════════ */

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

:root {
  --ink: #1a1410;
  --parchment: #f5f0e8;
  --cream: #faf7f2;
  --sepia: #8b6f47;
  --sepia-light: #c4a882;
  --sepia-pale: #ede4d4;
  --accent: #2d4a3e;
  --accent-light: #4a7c6a;
  --gold: #b8963e;
  --gold-light: #d4b06a;
  --white: #ffffff;
  --trust-blue: #1a3a5c;

  /* Status colors */
  --status-draft: #9a8878;
  --status-paid: #2d7a4f;
  --status-scheduled: #1a3a5c;
  --status-delivered: #b8963e;
  --status-cancelled: #8b3a3a;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 8rem;

  /* Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

h1 em, h2 em { font-style: italic; color: var(--accent); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent-light); }

/* ── FOCUS STYLES ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 200;
  font-size: 0.85rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── UTILITY CLASSES ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }
.text-sepia { color: var(--sepia); }
.text-accent { color: var(--accent); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.hidden { display: none !important; }

/* ── SECTION PATTERNS ── */
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 1rem;
  text-align: center;
}

.section-sub {
  text-align: center;
  font-size: 0.95rem;
  color: #6b5c4a;
  max-width: 50ch;
  margin: 0 auto 3rem;
  font-weight: 300;
  line-height: 1.75;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
