/* ==========================================================================
   MentorLab Education — base.css
   Variables, fonts, reset, global typography, layout primitives.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@100..900&display=swap');

:root {
  /* Colour */
  --paper: #f4f0e8;
  --paper-2: #ebe5d8;
  --paper-3: #e2dbc9;
  --ink: #191a17;
  --ink-soft: #3f4038;
  --muted: #6f6c62;
  --forest: #1e3a2f;
  --forest-deep: #14261f;
  --orange: #e97824;
  --orange-ink: #a84a0b;
  --orange-soft: #f3b77f;
  --line: rgba(25, 26, 23, 0.14);
  --line-light: rgba(244, 240, 232, 0.18);
  --white: #fbf9f4;

  /* Type */
  --font-display: "Outfit", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: clamp(3rem, 7.2vw, 7.2rem);
  --fs-h2: clamp(2.35rem, 5vw, 4.8rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.9rem);
  --fs-body: clamp(1rem, 1.05vw, 1.1rem);
  --fs-small: 0.8125rem;

  /* Layout */
  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(4.5rem, 9vw, 8rem);
  --header-height: 88px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

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

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

ul,
ol {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

em {
  font-style: italic;
}

::selection {
  background: var(--orange-soft);
  color: var(--ink);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--orange-ink);
  outline-offset: 4px;
}

.site-footer :focus-visible,
.cta :focus-visible {
  outline-color: var(--orange-soft);
}

/* Utilities */
.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--forest);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  transform: translateY(-150%);
  transition: transform 0.25s var(--ease);
}

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

/* Section heading system */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-ink);
}

.eyebrow--light {
  color: var(--orange-soft);
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

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

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--center .section-title {
  margin-inline: auto;
  max-width: 20ch;
}

.section-head--center .section-intro {
  margin-inline: auto;
  margin-top: 1.1rem;
  max-width: 52ch;
}

.section-head-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.section-title {
  font-size: var(--fs-h2);
  line-height: 0.98;
}

.section-title em {
  color: var(--orange-ink);
  font-weight: 350;
}

.section-intro {
  max-width: 44ch;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(30, 58, 47, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--forest);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.text-link:hover {
  color: var(--orange-ink);
  border-color: var(--orange-ink);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}