/* =======================================================================
   Lingua Language Club — Stylesheet
   -----------------------------------------------------------------------
   Color system: brand colors are #00E8FC (teal), #E2A9F1 (purple),
   #FFDE59 (gold). Teal is the most saturated/attention-grabbing of the
   three, so it is used sparingly as a "signature" accent (logo, one
   hero moment). Purple is the lightest/softest, so it carries most of
   the repeated small UI accents (dots, borders, chips). Gold is kept
   for rare, transient highlights (hover states). This keeps the exact
   brand hues while avoiding a page that reads as uniformly loud.
   ======================================================================= */

:root {
  /* Neutrals */
  --cream: #F7F4EA;
  --cream-alt: #EFEAD9;
  --ink: #211D19;
  --ink-soft: #5B554C;
  --line: rgba(33, 29, 25, 0.14);
  --line-strong: rgba(33, 29, 25, 0.26);

  /* Brand colors (exact values — do not change without updating brand assets) */
  --teal: #00E8FC;
  --purple: #E2A9F1;
  --gold: #FFDE59;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --container: 1080px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

/* Utility for spacing tweaks without inline styles */
.mt-sm { margin-top: 12px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--purple);
  flex-shrink: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.9rem, 5vw, 2.7rem); margin-top: 0.5rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.4rem); }
p { color: var(--ink-soft); }
.lede { font-size: clamp(1.02rem, 2.4vw, 1.15rem); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  min-height: 44px; /* touch target */
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--purple);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 6px 0 #000;
}
.btn-primary:hover { background: var(--gold); }
.btn-primary:active { box-shadow: 0 2px 0 #000; transform: translateY(4px) scale(0.99); }

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.btn-sm { padding: 10px 18px; font-size: 0.85rem; min-height: 40px; }

/* ---------- Divider: passport perforation ---------- */
.perf {
  height: 1px;
  background-image: linear-gradient(to right, var(--line-strong) 60%, transparent 0%);
  background-position: top;
  background-size: 14px 1px;
  background-repeat: repeat-x;
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 234, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.brand {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
  background: var(--teal);
  padding: 3px 12px 5px;
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
}

.brand-logo {
  height: 56px;
  width: auto;
  max-height: 100%;
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 10vw, 90px);
  padding-bottom: clamp(56px, 10vw, 96px);
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  top: -60px;
  right: -140px;
  width: min(520px, 90vw);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}
.hero-blob-2 {
  position: absolute;
  bottom: -80px;
  left: -120px;
  width: min(320px, 60vw);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.postmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1.5px dashed var(--purple);
  transform: rotate(-8deg);
  margin-bottom: 22px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  font-size: 0.6rem;
  line-height: 1.5;
  text-align: center;
  background: rgba(247, 244, 234, 0.6);
}

.hero h1 {
  font-size: clamp(3.6rem, 15vw, 6.4rem);
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  text-shadow: clamp(3px, 0.8vw, 7px) clamp(3px, 0.8vw, 7px) 0 rgba(0, 232, 252, 0.6);
  margin-top: 6px;
}
.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 2vw, 0.85rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 14px;
}
.hero-tagline span { color: var(--purple); padding-inline: 6px; }

.hero-lede {
  margin-top: 22px;
  font-size: clamp(1.1rem, 3.4vw, 1.4rem);
  max-width: 20ch;
  color: var(--ink);
  font-weight: 500;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-actions .link-more {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--ink-soft);
  padding-bottom: 2px;
}
.hero-actions .link-more:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Generic section rhythm ---------- */
.section { padding-block: clamp(56px, 9vw, 96px); }
.section-alt { background: var(--cream-alt); }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 5vw, 44px); }
.section-head h2 { margin-top: 8px; }

/* ---------- Mission ---------- */
.mission-body { display: flex; flex-direction: column; gap: 16px; }
.mission-body p { font-size: 1.02rem; max-width: 60ch; }
.mission-callout {
  margin-top: 8px;
  padding: 20px 22px;
  border-left: 3px solid var(--purple);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: var(--ink);
  background: rgba(226, 169, 241, 0.12);
  border-radius: 0 12px 12px 0;
}

/* ---------- How it works: timeline ---------- */
.timeline { position: relative; margin-top: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 0;
  border-left: 1.5px dashed var(--line-strong);
}
.t-item { position: relative; padding-left: 46px; padding-bottom: 34px; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--cream);
  border: 2.5px solid var(--purple);
}
.t-time {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-weight: 700;
  background: rgba(226, 169, 241, 0.2);
  padding: 3px 10px;
  border-radius: 6px;
}
.t-item h3 { margin-top: 4px; }
.t-item p { margin-top: 6px; max-width: 50ch; }
.timeline-note {
  margin-top: 8px;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-soft);
  padding-left: 46px;
}

/* ---------- Languages: stamps ---------- */
.stamp-row { display: flex; flex-wrap: wrap; gap: 22px 26px; margin-top: 8px; }
.stamp {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--cream);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.stamp:hover { transform: scale(1.05) rotate(0deg) !important; }
.stamp small {
  display: block;
  margin-top: 5px;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}
.stamp.c1 { border-color: var(--teal); transform: rotate(-6deg); }
.stamp.c2 { border-color: var(--purple); transform: rotate(4deg); }
.stamp.c3 { border-color: var(--gold); transform: rotate(-3deg); }
.stamp.c4 { border-color: var(--purple); transform: rotate(5deg); }
.stamp.c5 {
  color: var(--ink-soft);
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
  font-size: 0.78rem;
  transform: rotate(-4deg);
}
.lang-note { margin-top: 26px; font-size: 0.95rem; }

/* ---------- Events ---------- */
.event-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 8px; }
.event-card {
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}
.section-alt .event-card { background: var(--cream); }
.event-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
}
.event-card.e1::before { background: var(--teal); }
.event-card.e2::before { background: var(--purple); }
.event-card.e3::before { background: var(--gold); }
.event-icon { width: 34px; height: 34px; margin-bottom: 16px; }
.event-card h3 { margin-bottom: 8px; }
.event-card p { font-size: 0.96rem; }
.cadence-badge {
  display: inline-block;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(226, 169, 241, 0.14);
  border: 1.5px dashed var(--purple);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- Who it's for ---------- */
.level-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.level-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.level-chip.filled {
  background: rgba(0, 232, 252, 0.3);
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- Location ---------- */
.location-inner { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.pin-badge { width: 56px; height: 56px; flex-shrink: 0; }

/* ---------- Contact ---------- */
.contact { background: #F8ECFC; }
.contact-grid { margin-top: 32px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.contact-card {
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.contact-card .cc-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-block;
  border-bottom: 2px solid var(--purple);
  padding-bottom: 4px;
  margin-bottom: 6px;
}
.contact-card .cc-value { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.contact-cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream-alt);
  color: var(--ink-soft);
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.site-footer .wrap { display: flex; flex-direction: column; gap: 8px; font-size: 0.82rem; }
.site-footer .foot-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--ink);
  background: var(--teal);
  padding: 1px 8px 3px;
  border-radius: 5px;
  font-size: 1.05rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stamp:hover { transform: none !important; }
}

/* ---------- Tablet / Desktop ---------- */
@media (min-width: 700px) {
  .wrap { padding-inline: 36px; }
  .event-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-card { flex-direction: column; align-items: flex-start; }
  .location-inner { flex-direction: row; align-items: center; }
}

@media (min-width: 1000px) {
  .hero-lede { max-width: 26ch; }
  .mission-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
  }
}
