/* ============================================================
   CALVION TECHNOLOGIES
   base.css — Element-Level Styles
   ============================================================ */

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
}

/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

/* ── Body Text ── */
p {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
}

p + p {
  margin-top: var(--space-4);
}

/* ── Links ── */
a {
  transition: color var(--transition-fast);
}

/* ── Images ── */
img {
  height: auto;
  object-fit: cover;
  -webkit-touch-callout: none;
  user-select: none;
}

/* ── Horizontal Rule ── */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
}

/* ── Strong / Em ── */
strong {
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

em {
  font-style: italic;
}

p,
li {
  text-align: justify;
}

/* ── Responsive Type Scale ── */
@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-xl); }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
}
