/* Variables
   ========================================================================== */
:root {
  /* Color System */
  --color-primary: #0d6efd;

  /* Neutral Colors */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  /* Background Colors */
  --bg-neutral: #F9FAFB;
  --bg-warm: #FFFAF5;

  /* Typography */
  --typography-scale: 16px;
  --typography-size-1: calc(3 * var(--typography-scale));
  --typography-size-2: calc(2.25 * var(--typography-scale));
  --typography-size-3: calc(1.625 * var(--typography-scale));
  --typography-size-4: calc(1.25 * var(--typography-scale));
  --typography-size-5: calc(1 * var(--typography-scale));
  --typography-size-6: calc(.875 * var(--typography-scale));

  /* Layout */
  --corners-radius: 8px;
  --button-border-radius: 8px;
}

/* Theme: Light Blue
   ========================================================================== */
.theme-light-blue {
  --app-background: var(--bg-neutral);
  --color-brand: var(--color-primary);

  --typography-light: #FFFFFF;
  --typography-primary: var(--color-gray-800);
  --typography-secondary: var(--color-gray-600);

  --cards-background: #fff;
  --cards-border-color: transparent;
  --views-background: #F9F8F4;
}

/* Base Styles
   ========================================================================== */
body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Now Display", Helvetica, ui-sans-serif, system-ui, -apple-system, Arial, sans-serif;
  font-size: 14px;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  margin-top: 0;
}

h1 {
  font-size: 2.5rem;
  line-height: 3rem;
  margin-bottom: 1.5rem;
}

/* Layout Components
   ========================================================================== */
.page {
  background-color: var(--app-background);
  min-width: min-content;
  min-height: calc(100vh - 50px);
}

.page__title {
  text-align: center;
}

/* Navigation
   ========================================================================== */
.navbar-nav .nav-link {
  color: var(--color-gray-600);
}

.navbar-nav .nav-link:hover {
  color: var(--color-primary);
}

.navbar-nav .nav-link.active {
  color: var(--color-primary);
  font-weight: 500;
}

/* Forms
   ========================================================================== */
.form-signin {
  max-width: 500px;
  padding: 1rem;
}

.dropdown-menu {
  --bs-dropdown-font-size: 0.8rem;
  --bs-dropdown-item-padding-x: 0.8rem;
}

/* Progress Overlay
   ========================================================================== */
.progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1060;
}

.progress-overlay--hidden {
  display: none;
}

.progress-overlay__content {
  text-align: center;
}

.progress-overlay__spinner {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--color-gray-500);
}

.progress-overlay__message {
  font-size: 1.2rem;
  color: var(--color-gray-700);
}

/* Utilities
   ========================================================================== */
.hr-text {
  display: flex;
  align-items: center;
  text-align: center;
}

.hr-text::before,
.hr-text::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--color-gray-400);
}

.hr-text:not(:empty)::before {
  margin-right: .25em;
}

.hr-text:not(:empty)::after {
  margin-left: .25em;
}

/* Media Queries
   ========================================================================== */
@media (max-width: 768px) {
  .blog-post {
    font-size: 1rem;
  }

  .blog-post .lead {
    font-size: 1.1rem;
  }
}
