/* ============================================================
   Bound by Sarah — Design Tokens
   v1.0 — Foundation
   ============================================================ */

:root {
  /* ----- Brand Colors ----- */
  --olive: #6B7355;
  --olive-dark: #4A5240;
  --olive-light: #8A9377;
  --olive-tint: #D8DCD0;

  --sand: #E8DDD0;
  --sand-deep: #D4C4B0;
  --sand-tint: #F2EBE0;

  --deep-sea: #1F3A3A;
  --deep-sea-light: #2F5050;
  --deep-sea-tint: #C5D0D0;

  --terracotta: #C97B5C;
  --terracotta-dark: #A05E45;
  --terracotta-tint: #ECCFC2;

  --sunlight: #F4E4C1;
  --sunlight-deep: #E8D29B;

  --lime-white: #FAF7F2;
  --ink: #1A2424;
  --ink-soft: #4A5454;
  --ink-mute: #7A8484;

  --line: rgba(31, 58, 58, 0.18);
  --line-soft: rgba(31, 58, 58, 0.08);
  --line-strong: rgba(31, 58, 58, 0.32);

  /* ----- Semantic ----- */
  --bg: var(--lime-white);
  --bg-section: var(--sand);
  --bg-deep: var(--deep-sea);
  --text: var(--ink);
  --text-muted: var(--ink-soft);
  --primary: var(--deep-sea);
  --accent: var(--terracotta);
  --support: var(--olive);

  /* ----- Typography ----- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Geist', system-ui, sans-serif;
  --font-script: 'Caveat', cursive;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Type scale */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 19px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  --text-4xl: 48px;
  --text-5xl: 64px;
  --text-6xl: 84px;
  --text-7xl: 96px;

  /* Tracking */
  --tracking-tight: -0.04em;
  --tracking-snug: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.1em;
  --tracking-widest: 0.18em;

  /* ----- Spacing ----- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 120px;

  /* ----- Radius ----- */
  --radius-none: 0;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;

  /* ----- Shadows ----- */
  --shadow-xs: 0 1px 3px rgba(31, 58, 58, 0.08);
  --shadow-sm: 0 4px 12px rgba(31, 58, 58, 0.08);
  --shadow-md: 0 12px 32px -10px rgba(31, 58, 58, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.3), 0 18px 36px -18px rgba(0, 0, 0, 0.2);

  /* ----- Layout ----- */
  --container: 1280px;
  --container-pad: 32px;

  /* ----- Motion ----- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;
}

/* ============================================================
   Base / Reset
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: var(--text-md);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 350;
  color: var(--deep-sea);
  letter-spacing: var(--tracking-snug);
  font-variation-settings: "opsz" 144;
  line-height: 1.05;
}

em {
  font-style: italic;
  color: var(--terracotta);
}

/* ============================================================
   Grain (subtle, opt-in)
   ============================================================ */
.has-grain::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* ============================================================
   Utility Primitives
   ============================================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}

.script {
  font-family: var(--font-script);
  font-weight: 500;
  color: var(--deep-sea);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
}
