* {
  box-sizing: border-box;
}

:root {
  --motion-fast: 160ms;
  --motion-base: 260ms;
  --motion-slow: 420ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  transition:
    background-color var(--motion-base) ease,
    color var(--motion-base) ease;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

code,
pre,
.brand,
.eyebrow,
.terminal-body,
.module-index,
.task-hours,
.difficulty {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

code {
  color: var(--code-inline);
}

pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--code-bg);
  color: var(--code-text);
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre;
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-base) ease,
    color var(--motion-base) ease;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.15;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.055em;
}

h3 {
  letter-spacing: -0.025em;
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.eyebrow {
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-refresh {
  animation: content-refresh var(--motion-slow) var(--ease-out) both;
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes content-refresh {
  from {
    opacity: 0.35;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .section {
    padding: 3.5rem 0;
  }

  h1 {
    letter-spacing: -0.065em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}
