/* ==========================================================================
   OCA Law — Base typography & elements
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); margin-top: 2.5rem; }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem); margin-top: 1.75rem; }
h4 { font-size: 1.1rem; margin-top: 1.25rem; }

p { margin-top: 1rem; }
p:first-child { margin-top: 0; }

p.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: var(--color-text-muted);
  line-height: 1.55;
}

strong { font-weight: 700; }

a {
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

article a:not(.button) {
  color: var(--navy-800);
  text-decoration: underline;
  text-decoration-color: var(--green-500);
  font-weight: 600;
}

article a:not(.button):hover {
  color: var(--color-accent-dark);
}

ul.bullet-list,
article ul,
article ol {
  list-style: disc;
  padding-left: 1.3em;
  margin-top: 1rem;
}

article ol { list-style: decimal; }

article li + li { margin-top: 0.5rem; }

article ul ul, article ol ol { margin-top: 0.5rem; }

blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--color-heading);
  font-size: 1.05em;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -50px;
  background: var(--navy-950);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

section {
  padding-block: clamp(2.5rem, 2rem + 2vw, 5rem);
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: var(--header-height);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent-dark);
}

@media (max-width: 768px) {
  .container { padding-inline: var(--gutter); }
}
