/* ============================================================
   PIVOT AIDE TAX — BASE STYLES & TYPOGRAPHY
   ============================================================ */

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

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

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

[hidden] {
  display: none !important;
}

/* Shell / Container */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

/* Headings & Display Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.015em;
  line-height: 1.1;
  font-variation-settings: 'SOFT' 20;
}

h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 400;
}

h3 {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin: 0;
}

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 64ch;
}

.eyebrow {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
}

.eyebrow.dim {
  color: var(--ink-3);
}

.eyebrow.night {
  color: var(--gold);
}

.small {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-3);
}

.num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
