/* ==========================================================================
   Luminar English — base.css
   Design tokens, reset, typography, utilities
   ========================================================================== */

:root {
  /* Brand */
  --red: #e31b23;
  --red-600: #d0161e;
  --red-700: #b5121b;
  --red-800: #8e0e15;
  --red-50: #fff4f5;
  --red-100: #ffe4e7;
  --red-200: #ffc9cf;
  --navy: #1b2a6b;
  --navy-700: #16215a;
  --logo-red: #b9121b; /* sampled from design/logo */

  /* Course themes */
  --blue: #2563eb;
  --blue-700: #1d4ed8;
  --blue-50: #eef4ff;
  --blue-100: #dce7ff;
  --purple: #7c3aed;
  --purple-700: #6d28d9;
  --purple-50: #f5f0ff;
  --purple-100: #e9ddff;
  --gold: #f5a700;
  --gold-50: #fff7e0;

  /* Neutrals */
  --ink: #1f2433;
  --text: #3a4050;
  --muted: #6b7280;
  --line: #f1d9dd;
  --white: #fff;
  --bg-soft: #fff7f8;

  /* Type */
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-script: "Dancing Script", "Brush Script MT", cursive;

  /* Shape */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
  --sh-sm: 0 2px 10px rgba(180, 20, 30, 0.06);
  --sh: 0 10px 30px rgba(180, 20, 30, 0.1);
  --sh-lg: 0 22px 50px rgba(180, 20, 30, 0.16);

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Theme helpers: change accent colour of any card/section with one class */
.theme-red {
  --c: var(--red);
  --c-700: var(--red-700);
  --c-50: var(--red-50);
  --c-100: var(--red-100);
  --c-grad: linear-gradient(135deg, #ff4b55 0%, #d0161e 100%);
}
.theme-blue {
  --c: var(--blue);
  --c-700: var(--blue-700);
  --c-50: var(--blue-50);
  --c-100: var(--blue-100);
  --c-grad: linear-gradient(135deg, #4f8bff 0%, #1d4ed8 100%);
}
.theme-purple {
  --c: var(--purple);
  --c-700: var(--purple-700);
  --c-50: var(--purple-50);
  --c-100: var(--purple-100);
  --c-grad: linear-gradient(135deg, #a26bff 0%, #6d28d9 100%);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll {
  overflow: hidden;
}
img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4,
h5,
p,
figure,
blockquote {
  margin: 0;
}
h1,
h2,
h3,
h4,
h5 {
  color: var(--ink);
  line-height: 1.2;
  font-weight: 800;
}
:focus-visible {
  outline: 3px solid rgba(227, 27, 35, 0.45);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Icons ---------- */
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.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;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--red);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}
.text-red {
  color: var(--red);
}
.text-navy {
  color: var(--navy);
}
.text-blue {
  color: var(--blue);
}
.text-purple {
  color: var(--purple);
}
.text-center {
  text-align: center;
}
.script {
  font-family: var(--font-script);
  font-weight: 700;
  line-height: 1.1;
}
.placeholder-note {
  /* small label shown on placeholder imagery during development */
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@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;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --header-h: 64px;
  }
  body {
    font-size: 15px;
  }
}
