/* ===================================================================
   FirmForte — Base
   -------------------------------------------------------------------
   Reset, default typography, container, utility classes.
   Almost never needs to change.
   =================================================================== */

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 500;
  color: var(--ink);
}
h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: clamp(22px, 2vw, 28px); }
h4 { font-size: 18px; font-weight: 600; }
h5 { font-size: 14px; font-weight: 600; }

/* ---------- Serif accent ---------- */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: var(--section-py) 0; position: relative; }
@media (max-width: 768px) {
  section { padding: var(--section-py-mobile) 0; }
}

/* ---------- Focus styles (a11y) ---------- */
:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Selection ---------- */
::selection {
  background: var(--accent);
  color: var(--ink);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
