/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:        #FAF7F2;
  --warm-white:   #FFFDF9;
  --sand:         #F0EAE0;
  --sand-dark:    #D9D0C3;
  --navy:         #1B2A4A;
  --navy-light:   #2C4066;
  --navy-muted:   #3E5478;
  --terra:        #C4654A;
  --terra-light:  #D4806A;
  --terra-pale:   #F5E0D9;
  --green:        #3A7D5C;
  --green-pale:   #E2F0E8;
  --text:         #2E2E2E;
  --text-muted:   #6B6B6B;
  --text-light:   #9A9A9A;
  --border:       #E5DDD2;
  --shadow-sm:    0 1px 3px rgba(27,42,74,0.06);
  --shadow-md:    0 4px 12px rgba(27,42,74,0.08);
  --shadow-lg:    0 8px 30px rgba(27,42,74,0.10);
  --radius:       8px;
  --radius-lg:    12px;
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Typography ──────────────────────────────────────── */
html { font-size: 15px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.3;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-light);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--sand);
  color: var(--text);
}

.btn-terra {
  background: var(--terra);
  color: #fff;
}

.btn-terra:hover {
  background: var(--terra-light);
  box-shadow: var(--shadow-md);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Skip Link ──────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  font-size: 0.85rem;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ── Visually Hidden ───────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Error Toast ─────────────────────────────────────── */
.error-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  background: var(--terra, #C4654A);
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 9999;
}

.error-toast.visible {
  opacity: 1;
  pointer-events: auto;
}
