/* Orbit Education — base layer. Reset + element defaults only. No components here. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
  color: var(--c-ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.125rem, 5.2vw, var(--fs-5xl)); font-weight: 700; }
h2 { font-size: clamp(1.625rem, 3.4vw, var(--fs-3xl)); }
h3 { font-size: clamp(1.1875rem, 2.1vw, var(--fs-xl)); }
h4 { font-size: var(--fs-md); }
h5 { font-size: var(--fs-base); }

p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-crimson);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--c-crimson-deep); }

ul, ol { margin: 0 0 var(--s-4); padding-left: var(--s-5); }
li { margin-bottom: var(--s-2); }

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

strong, b { font-weight: 600; }

hr {
  border: 0;
  height: 1px;
  background: var(--c-line);
  margin: var(--s-8) 0;
}

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

button { cursor: pointer; background: none; border: 0; padding: 0; }

table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
  border-radius: var(--r-xs);
}

::selection { background: var(--c-crimson); color: #fff; }

.u-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;
}

.u-skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: var(--z-toast);
  background: var(--c-crimson);
  color: #fff;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top var(--t-fast);
}
.u-skip-link:focus { top: var(--s-4); color: #fff; }

.u-nowrap { white-space: nowrap; }
.u-center { text-align: center; }
.u-mt-0 { margin-top: 0; }
.u-mb-0 { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .c-hero__slide { animation: none !important; opacity: 0; transform: none; }
  .c-hero__slide:first-child { opacity: 1; }
  .c-hero__orb { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
