/* ============================================================
   Hitimu College — Base element defaults
   Applies tokens.css to bare HTML. Pattern mirrors
   ../../brand/tokens/base.css (SBK), Hitimu values/voice.
   ============================================================ */

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

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

/* Smooth cross-page transition where supported; no-op elsewhere.
   Chrome/Edge's default crossfade duration reads as an abrupt flash —
   slow it slightly and match the site's standard easing. */
@view-transition {
  navigation: auto;
}
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.32s;
    animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
  }
}

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--surface-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-heading);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

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

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

.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }

section { position: relative; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy-900); color: var(--white);
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px;
  transition: top var(--dur-base) var(--ease-standard);
}
.skip-link:focus { top: 12px; }

/* Scroll-reveal: visible by default; only animates when motion is OK and JS has run */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js-reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease-standard), transform 0.5s var(--ease-standard); }
  .js-reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
}

/* Header gains a soft shadow once the page has scrolled */
header.site-header { transition: box-shadow var(--dur-base) var(--ease-standard); }
header.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(11, 30, 66, 0.1); }

/* Small overline/eyebrow label helper */
.hc-overline {
  display: inline-block;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
}
