/* ==========================================================================
   WhyNotNow Foundation — Base Typography & Global Styles
   ========================================================================== */

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  background-color: var(--color-bg-canvas);
  overflow-x: hidden;
}

/* Headings */
h1, .h1 {
  font-family: var(--font-primary);
  font-size: clamp(32px, 5vw, var(--font-size-display));
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  letter-spacing: var(--letter-spacing-tight);
}

h2, .h2 {
  font-family: var(--font-primary);
  font-size: clamp(28px, 4vw, var(--font-size-5xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  color: var(--color-text-primary);
  letter-spacing: var(--letter-spacing-tight);
}

h3, .h3 {
  font-family: var(--font-primary);
  font-size: clamp(22px, 2.5vw, var(--font-size-3xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  color: var(--color-text-primary);
}

h4, .h4 {
  font-family: var(--font-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
}

h5, .h5 {
  font-family: var(--font-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
}

h6, .h6 {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
}

p {
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

p.lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
}

p.text-sm {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
}

p.text-xs {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-normal);
}

/* Text Colors */
.text-teal {
  color: var(--color-primary) !important;
}

.text-orange {
  color: var(--color-orange) !important;
}

.text-white {
  color: var(--color-text-white) !important;
}

.text-dark {
  color: var(--color-text-primary) !important;
}

.text-muted {
  color: var(--color-text-muted) !important;
}

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-premium);
}

a.link-teal {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

a.link-teal:hover {
  color: var(--color-primary-dark);
}

a.link-teal svg, a.link-teal img {
  transition: transform var(--duration-fast) var(--ease-premium);
}

a.link-teal:hover svg, a.link-teal:hover img {
  transform: translateX(4px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Selection Highlight */
::selection {
  background-color: rgba(44, 183, 176, 0.25);
  color: var(--color-text-primary);
}
