/* ============================================
   Brand Theme: Grace Distributed
   ============================================ */

:root {
  /* Brand palette: warm + reverent (cream, deep navy, soft gold) */
  --color-primary: #1e3a5f;          /* deep navy */
  --color-primary-subtle: #eef2f7;
  --color-secondary: #b8893a;        /* soft gold */
  --color-secondary-subtle: #faf4e6;
  --color-accent: #8b3a3a;           /* burgundy for the Grace Ambassador highlight */

  --color-text: #1a1f2e;
  --color-text-muted: #5b6478;
  --color-bg: #ffffff;
  --color-bg-subtle: #faf7f2;        /* warm off-white */
  --color-bg-dark: #142033;
  --color-border: #e4e0d8;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Typography */
  --font-serif: "Georgia", "Source Serif Pro", "Iowan Old Style", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.75rem;
  --fs-5xl: 3.75rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px -10px rgba(15, 23, 42, 0.18);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);

  /* Layout */
  --container-max: 1180px;
  --header-height: 72px;
}

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

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
img, svg { max-width: 100%; display: block; }

::selection { background: var(--color-secondary); color: white; }

/* ============================================
   Utilities
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section { padding: var(--space-16) 0; }
.section--dark {
  background: var(--color-bg-dark);
  color: #f3eee2;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: white; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.lede {
  font-size: var(--fs-xl);
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 60ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  font-weight: 600;
  font-family: var(--font-sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-primary);
  color: white;
}
.btn--primary:hover {
  background: #16294a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: var(--color-secondary);
  color: white;
}
.btn--secondary:hover {
  background: #a07629;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover { background: var(--color-bg-subtle); }

.btn--outline-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.35);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.08); }

:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
