/* ==========================================================================
   Base Styles & Design System Tokens
   ========================================================================== */

:root {
  --color-brand: #12324D;
  --color-brand-hover: #0C2439;
  --color-accent: #E8C46A;
  --color-bg: #F6F7F9;
  --color-surface: #FFFFFF;
  --color-text-main: #14181D;
  --color-text-muted: #5A6572;
  --color-text-subtle: #78828E;
  --color-border: #E3E7EB;
  --color-border-subtle: #EEF1F4;
  --color-border-focus: #12324D;
  --color-success: #1F7A4C;
  --color-success-bg: #EAF6EF;
  --color-warning: #A96A12;
  --color-warning-bg: #FFFBF2;
  --color-warning-border: #EBD9B4;
  --color-danger: #B42318;
  --color-danger-bg: #FEF3F2;
  --color-danger-border: #F2C8C3;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-slab: 'Roboto Slab', serif;
  --font-condensed: 'Oswald', sans-serif;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(16, 24, 40, 0.08), 0 2px 4px -2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 12px 32px -12px rgba(16, 24, 40, 0.18);
  --shadow-xl: 0 20px 48px -16px rgba(16, 24, 40, 0.28);

  --radius-sm: 6px;
  --radius-md: 9px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --transition-fast: 160ms ease;
  --transition-normal: 240ms ease;
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-brand-hover);
  text-decoration: underline;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection {
  background: #CFE0EE;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
