/*
 * edtechvibes landing page styles.
 * All colors are here at the top: change them in one place (e.g. to match the poster).
 * Text colors are paired with backgrounds that pass WCAG AA contrast; recheck if you change them.
 */

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-display: swap;
  font-weight: 400 800;
  src: url('../fonts/baloo-2-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('../fonts/nunito-latin-wght-normal.woff2') format('woff2');
}

:root {
  color-scheme: light;

  /* Brand colors */
  --teal: #0B6E69;          /* deep teal: white text on it */
  --teal-bright: #2EC4B6;   /* decoration */
  --teal-soft: #DDF6F2;
  --coral: #FF7A5C;         /* dark text on it */
  --coral-soft: #FFE6DF;
  --yellow: #FFCB3D;        /* dark text on it */
  --yellow-soft: #FFF4CF;
  --purple: #5B2DA6;        /* white text on it */
  --purple-soft: #EFE8FF;

  /* Text and page */
  --ink: #1D1A3A;
  --ink-soft: #46425F;
  --paper: #FFFCF5;
  --white: #FFFFFF;
  --focus: #5B2DA6;

  --font-head: 'Baloo 2', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 1.25rem;
  --shadow: 0 0.35rem 0 rgba(29, 26, 58, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; margin: 0 0 0.5rem; }
h1 { font-size: clamp(2.5rem, 7vw + 0.5rem, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.5vw + 1rem, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1rem; }

a { color: var(--purple); font-weight: 700; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 0.4rem; }
.contact :focus-visible, .footer :focus-visible { outline-color: var(--yellow); }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding-inline: 1.25rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--yellow); color: var(--ink); padding: 0.75rem 1rem; border-radius: 0.75rem;
}
.skip-link:focus { top: 1rem; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.7rem 1.5rem;
  border: 3px solid var(--ink); border-radius: 999px;
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; line-height: 1.15;
  text-decoration: none; text-align: center;
  box-shadow: 0 0.25rem 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0.35rem 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 0.1rem 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn:active { transition: none; transform: none; } }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-yellow:hover, .btn-coral:hover { color: var(--ink); }
.btn-small { min-height: 2.9rem; padding: 0.45rem 1.1rem; font-size: 1.05rem; }
.btn-big { min-height: 3.75rem; padding: 0.85rem 2rem; font-size: 1.4rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }

/* ---- Top bar ---- */

.topbar { background: var(--white); border-bottom: 3px solid var(--ink); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.wordmark {
  font-family: var(--font-head); font-size: 1.75rem; font-weight: 800; color: var(--teal);
  text-decoration: none; line-height: 1; padding: 0.6rem 0;
}
.wordmark span { color: var(--purple); }
.wordmark:hover { color: var(--teal); }

/* ---- Hero ---- */

.hero { background: var(--teal-soft); padding-block: 2.5rem 3rem; border-bottom: 3px solid var(--ink); overflow: hidden; }
.hero-grid { display: grid; gap: 1.5rem; align-items: center; }
.kicker {
  display: inline-block; margin-bottom: 0.9rem; padding: 0.3rem 0.9rem;
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 800; font-size: 1rem; color: var(--teal);
}
.kicker-coral { color: var(--ink); background: var(--coral-soft); }
.lead { font-size: clamp(1.2rem, 1vw + 1rem, 1.4rem); color: var(--ink-soft); max-width: 36rem; }
.hero-art svg { width: 100%; max-width: 26rem; height: auto; margin: 0 auto; }

/* SVG fills */
.f-teal { fill: var(--teal); } .f-teal-bright { fill: var(--teal-bright); } .f-coral { fill: var(--coral); }
.f-yellow { fill: var(--yellow); } .f-purple { fill: var(--purple); } .f-ink { fill: var(--ink); }
.f-white { fill: var(--white); } .f-soft { fill: var(--purple-soft); }
.s-ink { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.s-white { stroke: var(--white); stroke-width: 4; stroke-linecap: round; fill: none; }
.f-white.s-ink { fill: var(--white); }
.no-fill { fill: none; }

/* ---- Sections ---- */

.section { padding-block: 3.5rem; }
.section-tint-purple { background: var(--purple-soft); }
.section-tint-teal { background: var(--teal-soft); }
.section-tint-yellow { background: var(--yellow-soft); }
.section-lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 44rem; margin-bottom: 1.75rem; }
.note {
  max-width: 46rem; padding: 1rem 1.25rem; margin-top: 1.5rem;
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
}

/* What is vibe coding? */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.step {
  position: relative; padding: 1.25rem 1.25rem 1rem;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
}
.step p { margin: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; margin-bottom: 0.6rem; border: 3px solid var(--ink); border-radius: 50%;
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; line-height: 1;
}
.step-teal .step-num { background: var(--teal-bright); }
.step-coral .step-num { background: var(--coral); }
.step-yellow .step-num { background: var(--yellow); }
.callout {
  margin-top: 1.5rem; padding: 1.5rem;
  background: var(--purple); color: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
}
.callout h3 { font-size: 1.8rem; color: var(--yellow); }
.callout p { margin: 0; font-size: 1.2rem; max-width: 46rem; }

/* Why teachers? */
.idea-grid, .choice-grid, .workshop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.idea { padding: 1.25rem; background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.idea p { margin: 0; color: var(--ink-soft); }
.idea-icon { width: 3.25rem; height: 3.25rem; margin-bottom: 0.6rem; }

/* Example build */
.example-grid { display: grid; gap: 2rem; align-items: center; }
.checks { padding: 0; margin: 0 0 1rem; list-style: none; }
.checks li { position: relative; padding-left: 2.1rem; margin-bottom: 0.6rem; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 0.3rem; width: 1.3rem; height: 1.3rem;
  background: var(--teal-bright); border: 2px solid var(--ink); border-radius: 50%;
}
.example-shot { margin: 0; justify-self: center; max-width: 22rem; }
.example-shot img {
  border: 4px solid var(--ink); border-radius: 1.75rem; box-shadow: 0.6rem 0.6rem 0 var(--coral); background: var(--white);
}

/* Workshops */
.workshop {
  padding: 1.25rem 1.25rem 1.1rem; background: var(--white);
  border: 3px solid var(--ink); border-top-width: 0.75rem; border-radius: var(--radius); box-shadow: var(--shadow);
}
.accent-teal { border-top-color: var(--teal-bright); }
.accent-coral { border-top-color: var(--coral); }
.accent-purple { border-top-color: var(--purple); }
.accent-yellow { border-top-color: var(--yellow); }
.facts { margin: 0.25rem 0 0.9rem; display: grid; gap: 0.25rem; }
.facts div { display: flex; flex-wrap: wrap; gap: 0 0.5rem; }
.facts dt { font-weight: 800; min-width: 3.75rem; }
.facts dd { margin: 0; }
.workshop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.cal-links { margin: 0; font-size: 1rem; }
.cal-links a { display: inline-block; padding: 0.55rem 0.1rem; }
.cal-label { color: var(--ink-soft); }
.empty-card {
  max-width: 38rem; padding: 1.5rem; text-align: left;
  background: var(--white); border: 3px dashed var(--ink); border-radius: var(--radius);
}

/* Hosting */
.badge {
  display: inline-block; margin-bottom: 0.75rem; padding: 0.3rem 0.9rem;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 800; font-size: 1rem; transform: rotate(-2deg);
}
.choice { padding: 1.25rem; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.choice p { margin: 0; }
.choice-teal { background: var(--teal-soft); }
.choice-purple { background: var(--purple-soft); }
.choice-coral { background: var(--coral-soft); }

/* About me */
.about-grid { display: grid; gap: 1.5rem; align-items: center; }
.about-photo { width: 10rem; max-width: 100%; }
.about-photo svg, .about-photo img { width: 100%; height: auto; }
.about-photo img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid var(--ink); }
.about-name { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--teal); }
#about-text { max-width: 44rem; font-size: 1.2rem; }

/* Contact */
.contact { background: var(--purple); color: var(--white); border-top: 3px solid var(--ink); }
.contact .section-lead { color: var(--white); }
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact h2 { color: var(--yellow); }
.contact-address { margin: 1.25rem 0 0; font-size: 1.1rem; overflow-wrap: anywhere; }

/* Footer */
.footer { background: var(--ink); color: var(--white); padding-block: 1.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; }
.footer p { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.footer a { color: var(--yellow); display: inline-block; padding: 0.6rem 0; }
.footer a:hover { color: var(--white); }

/* ---- Wider screens ---- */

@media (min-width: 40rem) {
  .idea-grid, .workshop-list { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: auto 1fr; gap: 2.5rem; }
  .about-photo { width: 12rem; }
}
@media (min-width: 56rem) {
  .hero { padding-block: 4rem 4.5rem; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
  .section { padding-block: 5rem; }
  .steps, .choice-grid { grid-template-columns: repeat(3, 1fr); }
  .idea-grid { grid-template-columns: repeat(3, 1fr); }
  .example-grid { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; }
}

/* ---- Page not found ---- */
.notfound { min-height: 70vh; display: flex; align-items: center; padding-block: 3rem; background: var(--teal-soft); }
.notfound h1 { font-size: clamp(2.25rem, 5vw + 1rem, 3.5rem); }
