/* ==========================================================================
   verve of yours — Erasmus Mundus mentorship
   Palette and type come from Amina's own “MENTORSHIP / ERASMUS MUNDUS” poster:
   blush paper, crimson condensed caps, gold title, EU blue stars.
   ========================================================================== */

:root {
  --blush: #F6C4D8;
  --blush-deep: #EEA6C4;
  --paper: #FFF5F9;
  --crimson: #C3164C;
  --crimson-deep: #A10F3E;
  --wine: #3A0B1F;
  --wine-soft: #6B2A45;
  --eu: #1C3FAA;
  --eu-yellow: #FFCC00;
  --line: rgba(58, 11, 31, 0.14);

  --gold: linear-gradient(100deg, #6E4A12 0%, #B98A30 18%, #E3BC62 34%, #A87A26 52%, #6E4A12 68%, #D4A64C 84%, #82591B 100%);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-text: "Lora", Georgia, serif;

  /* Scale after Bringhurst: 14 · 18 · 21 · 24 · 36 · 48 · 72 */
  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.3125rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  --step-4: clamp(2.25rem, 1.5rem + 3vw, 3rem);
  --step-5: clamp(2.75rem, 1.4rem + 5.4vw, 4.5rem);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(88px, 11vw, 168px);
  --nav-h: 68px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 300ms;

  --paper-shadow: 0 1px 0 rgba(58, 11, 31, 0.06), 0 40px 80px -32px rgba(58, 11, 31, 0.45);
  --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 2 2'%3E%3Cpath d='M0,-1 L0.2245,-0.309 L0.951,-0.309 L0.3633,0.118 L0.5878,0.809 L0,0.382 L-0.5878,0.809 L-0.3633,0.118 L-0.951,-0.309 L-0.2245,-0.309 Z'/%3E%3C/svg%3E");

  color-scheme: light;
  interpolate-size: allow-keywords;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--blush);
  color: var(--wine);
  font: 400 var(--step-0)/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: inherit; }

p { margin: 0 0 1em; }

h1, h2, h3 { margin: 0; font-weight: 700; }

/* `hidden` must win over any component display rule (e.g. WhatsApp links before a number is set) */
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--eu);
  outline-offset: 3px;
  border-radius: 4px;
}
/* EU blue disappears on wine and crimson; switch to the EU yellow there */
.start :focus-visible,
.reviews :focus-visible,
.final :focus-visible,
.plan--poster :focus-visible,
.footer :focus-visible { outline-color: var(--eu-yellow); }

::selection { background: var(--crimson); color: var(--paper); }

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

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--wine);
  color: var(--paper);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform var(--duration) var(--ease-out);
}
.skip:focus-visible { transform: none; }

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

.h2 {
  font: 700 var(--step-5)/0.95 var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--crimson);
  text-wrap: balance;
}

.h3 {
  font: 600 var(--step-3)/1 var(--font-display);
  text-transform: uppercase;
  color: var(--crimson);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 34ch;
  margin-top: 24px;
}

/* Star bullets — the EU flag's star, reused as the list mark everywhere */
.stars-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stars-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.stars-list li:last-child { border-bottom: 0; }
.stars-list li::before {
  content: "";
  flex: none;
  width: 0.72em;
  height: 0.72em;
  background: var(--crimson);
  -webkit-mask: var(--star-mask) center / contain no-repeat;
  mask: var(--star-mask) center / contain no-repeat;
  translate: 0 0.06em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--crimson);
  color: var(--paper);
  font: 500 1.0625rem/1 var(--font-display);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.btn:hover { background: var(--crimson-deep); }
.btn:active { scale: 0.97; }

/* Crimson-deep, not crimson: small text on blush needs 4.5:1 */
.btn--ghost {
  background: transparent;
  color: var(--crimson-deep);
  box-shadow: inset 0 0 0 2px var(--crimson-deep);
}
.btn--ghost:hover { background: var(--crimson); color: var(--paper); }

.btn--paper { background: var(--paper); color: var(--crimson); }
.btn--paper:hover { background: var(--wine); color: var(--paper); }

.btn--small { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn--large { min-height: 64px; padding: 0 36px; font-size: 1.25rem; }

.round-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}
.round-btn svg { width: 22px; height: 22px; }
.round-btn:hover { background: var(--blush); color: var(--wine); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--gutter);
  transition: background-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.nav.is-solid {
  background: rgba(255, 245, 249, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.nav__brand {
  font: italic 500 1.375rem/1 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
}
.nav__brand span,
.footer__brand span { font-size: 0.72em; opacity: 0.7; }

.nav__links {
  display: flex;
  gap: clamp(16px, 2.2vw, 32px);
  font: 500 1rem/1 var(--font-display);
}
.nav__links a {
  white-space: nowrap;
  position: relative;
  padding: 8px 0;
  text-decoration: none;
}
.nav__links a::after {
  content: "";
  position: absolute;
  inset: auto 0 2px;
  height: 2px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 400ms var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__end { display: flex; align-items: center; gap: 12px; }

.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(58, 11, 31, 0.25);
}
.lang__btn {
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--wine);
  font: 500 0.875rem/1 var(--font-display);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}
.lang__btn[aria-pressed="true"] { background: var(--wine); color: var(--paper); }

/* Language swap: a brief fade so the change reads as one event.
   Nodes whose opacity GSAP drives are left out, so a CSS transition never chases a scrubbed value. */
.is-switching [data-i18n]:not([data-hero-fade], [data-letter-note]) { opacity: 0; }
[data-i18n]:not([data-hero-fade], [data-letter-note]) { transition: opacity 180ms ease; }

