/* ==========================================================================
   Whitehall 2026 — Base (reset + default HTML element typography)
   Maps to Elementor: Site Settings / Atomic default element styles.
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---- Headings ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-primary);
}

h1, h2 {
  font-size: var(--fs-display);
  font-weight: var(--fw-medium);
  line-height: var(--lh-heading);
}

h3 {
  font-size: var(--fs-title);
  font-weight: var(--fw-light);
  line-height: var(--lh-tight);
}

h4 {
  font-size: var(--fs-subtitle);
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
}

h5 {
  font-size: var(--fs-lead);
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
}

h6 {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

/* ---- Text --------------------------------------------------------------- */
p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-purple-dark);
}

strong, b {
  font-weight: var(--fw-bold);
}

small {
  font-size: var(--fs-small);
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

blockquote {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: var(--fw-light);
  line-height: var(--lh-tight);
  color: var(--color-accent);
}

hr {
  height: 0;
  margin: 0;
  border: 0;
  border-top: var(--border-width) solid var(--color-rule);
}

address {
  font-style: normal;
}

/* ---- Forms -------------------------------------------------------------- */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* ---- Accessibility ------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  padding: var(--space-2) var(--space-3);
  background: var(--color-white);
  color: var(--color-black);
  transform: translateY(-100%);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
