/* ==============================================
   ccMonet v2 Base Styles
   Reset + Typography + Global
   ============================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-gray-800);
  background: var(--surface-primary);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */

h1, .h1 {
  font-family: var(--font-sans);
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--color-gray-900);
}

h2, .h2 {
  font-family: var(--font-sans);
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--color-gray-900);
}

h3, .h3 {
  font-family: var(--font-sans);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-gray-900);
}

h4, .h4 {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: var(--leading-snug);
  color: var(--color-gray-900);
}

h5, .h5 {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--color-gray-900);
}

h6, .h6 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--color-gray-900);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}

p:last-child {
  margin-bottom: 0;
}

.text-lg {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

strong, b {
  font-weight: 700;
}

/* --- Links --- */
a:hover {
  color: var(--color-primary-500);
}

/* --- Selection --- */
::selection {
  background: var(--color-primary-100);
  color: var(--color-primary-900);
}

/* --- Focus --- */
:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

/* --- Responsive Typography --- */
@media (max-width: 1024px) {
  h1, .h1 { font-size: var(--text-5xl); }
  h2, .h2 { font-size: var(--text-4xl); }
  h3, .h3 { font-size: var(--text-3xl); }
}

@media (max-width: 768px) {
  h1, .h1 { font-size: var(--text-4xl); letter-spacing: var(--tracking-tight); }
  h2, .h2 { font-size: var(--text-3xl); letter-spacing: var(--tracking-tight); }
  h3, .h3 { font-size: var(--text-2xl); }
  h4, .h4 { font-size: var(--text-xl); }
}
