/* ==========================================================================
   Aeon Bloc: Base / Reset / Typography
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keeps anchor jumps (skip link, in-page scrollIntoView calls like the
     Contact page's category tabs) from landing underneath the now-fixed
     header by reserving that much space at the top of the scroll target. */
  scroll-padding-top: var(--header-height);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  /* Compensates for .site-header now being position: fixed (taken out of
     normal flow), so page content doesn't start underneath it. Uses the
     taller, unscrolled header height; the shrink-on-scroll state just
     leaves a little extra breathing room instead of a hard content jump. */
  padding-top: var(--header-height);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--color-black);
  margin: 0 0 var(--space-3);
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--space-3); color: var(--color-text-secondary); }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration-color: var(--color-gray-4);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }

ul, ol { margin: 0 0 var(--space-3); padding-left: 1.25em; color: var(--color-text-secondary); }

button { font-family: inherit; }

/* ---- Accessibility ---- */
:focus-visible {
  outline: 2px solid var(--color-gold-dark);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  z-index: 1000;
  border-radius: var(--radius-sm);
  transition: top var(--duration-base) var(--ease-standard);
}
.skip-link:focus { top: var(--space-3); }

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

/* ---- Layout utilities ---- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.reading-width { max-width: var(--max-width-reading); }

.section {
  padding-block: var(--space-8);
}
@media (max-width: 640px) {
  .section { padding-block: var(--space-6); }
}

.section--inverse {
  background: var(--color-black);
  color: var(--color-white);
}
.section--inverse h1,
.section--inverse h2,
.section--inverse h3 { color: var(--color-white); }
.section--inverse p { color: var(--color-gray-4); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin: 0 0 var(--space-2);
}
.section--inverse .eyebrow { color: var(--color-gold); }

.text-center { text-align: center; }

/* ---- Reveal-on-scroll (subtle, per AB-WEB-04/12 motion guidance) ---- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration-slow) var(--ease-standard),
              transform var(--duration-slow) var(--ease-standard);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
