/* ==========================================================================
   Main Stylesheet
   Visible Legal Marketing
   ========================================================================== */

/* Design system & layout */
@import 'variables.css';
@import 'layout.css';
@import 'components.css';

/* ==========================================================================
   Base / Reset
   ========================================================================== */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--charcoal);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------ */

h1, h2, h3, h4 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--charcoal);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

/* Responsive heading scale */
@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.375rem; }
}

p {
  margin-bottom: var(--space-md);
  line-height: var(--line-height-relaxed);
}

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

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

/* Prevent generic anchor hover from bleeding into buttons */
a.btn,
a.btn:hover {
  text-decoration: none;
}

a.btn:hover {
  color: var(--white);
}

/* ------------------------------------------------------------------
   Images
   ------------------------------------------------------------------ */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------------------------------------
   Lists
   ------------------------------------------------------------------ */

ul, ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
  line-height: var(--line-height-relaxed);
}

/* ------------------------------------------------------------------
   Focus styles (accessibility)
   ------------------------------------------------------------------ */

:focus-visible {
  outline: 3px solid var(--iva-accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------
   Selection
   ------------------------------------------------------------------ */

::selection {
  background-color: var(--primary-blue);
  color: var(--white);
}
