/* Starwonder for Educators: the homepage's layout and type, on a white theme. */
:root {
  --ed-bg: #ffffff;
  --ed-ink: #0d0f14;
  --ed-text: #2a2f3a;
  --ed-muted: #5c6373;
  --ed-faint: #8a909c;
  --ed-line: #e7e8ec;
  --ed-soft: #f5f6f8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--ed-bg);
  color: var(--ed-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* Same 90% column as the homepage (92% on phones) */
.ed-wrap { width: 90%; margin: 0 auto; }

/* ---- Header ---- */
.ed-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ed-header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ed-brand { display: flex; align-items: center; text-decoration: none; color: var(--ed-ink); }
.ed-brand img { height: 30px; width: auto; }
.ed-brand-text { display: none; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.ed-brand.no-logo .ed-brand-text { display: inline; }

/* ---- Buttons ---- */
.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font: 600 15px Inter, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.ed-btn-small { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.ed-btn-primary { background: var(--ed-ink); color: #ffffff; }
.ed-btn-primary:hover { background: #2b303b; }
.ed-btn-ghost { border: 1px solid #cfd2da; color: var(--ed-ink); }
.ed-btn-ghost:hover { border-color: var(--ed-ink); }
.ed-btn:focus-visible, .ed-brand:focus-visible, summary:focus-visible, .ed-footer a:focus-visible {
  outline: 2px solid var(--ed-ink);
  outline-offset: 3px;
}

/* ---- Hero: text left, drawing right ---- */
.ed-hero { padding: clamp(40px, 6vw, 88px) 0 0; }
.ed-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}
.ed-hero h1 {
  margin: 0;
  max-width: 13em;
  font-size: clamp(36px, 4.2vw, 68px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ed-ink);
  text-wrap: balance;
}
.ed-lede {
  margin: 28px 0 0;
  max-width: 34em;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--ed-muted);
}
.ed-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.ed-hero-art {
  margin: 0;
  justify-self: center; /* centred in its half: a little in from the right edge */
  width: min(100%, 560px, calc((100vh - 120px) * 0.8));
}
.ed-hero-art img { width: 100%; height: auto; mix-blend-mode: multiply; } /* lets the paper melt into the white page */

/* ---- Sections: large light heading left, content right (like the homepage) ---- */
.ed-section { padding: clamp(80px, 10vw, 150px) 0 0; }
.ed-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.ed-split > h2 {
  margin: 0;
  max-width: 9em;
  font-size: clamp(32px, 3.1vw, 52px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--ed-ink);
  text-wrap: balance;
}
h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; color: var(--ed-ink); }

/* Why it works: four points in a 2 x 2 grid */
.ed-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(28px, 4vw, 64px);
}
.ed-point p { margin: 0; font-size: 17px; color: var(--ed-muted); }

/* Ways to use it: three equal columns, each a drawing in the same 4:3 frame,
   then a title and a short text. */
.ed-section-title {
  margin: 0 0 clamp(40px, 5vw, 72px);
  font-size: clamp(32px, 3.1vw, 52px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--ed-ink);
}
.ed-ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.ed-way-art {
  margin: 0 0 24px;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
}
.ed-way-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  mix-blend-mode: multiply; /* lets the paper melt into the white page */
}
/* the board drawing is already wide, so it is shown whole instead of cropped */
.ed-way-art-contain img { object-fit: contain; }
.ed-way p { margin: 0; font-size: 17px; color: var(--ed-muted); max-width: 30em; }

/* FAQ: simple open/close rows */
.ed-faq details { border-bottom: 1px solid var(--ed-line); }
.ed-faq details:first-child { border-top: 1px solid var(--ed-line); }
.ed-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--ed-ink);
}
.ed-faq summary::-webkit-details-marker { display: none; }
.ed-faq summary::after {
  content: "+";
  flex: none;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: var(--ed-faint);
  transition: transform .2s;
}
.ed-faq details[open] summary::after { transform: rotate(45deg); }
.ed-faq details p { margin: -6px 0 22px; max-width: 40em; font-size: 17px; color: var(--ed-muted); }

/* Get in touch */
.ed-contact-body p { margin: 0 0 20px; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.55; letter-spacing: -0.015em; color: var(--ed-muted); }
.ed-contact-body .ed-btn { margin-top: 12px; }
.ed-contact-body .ed-email { margin: 14px 0 0; font-size: 15px; letter-spacing: 0; color: var(--ed-faint); }

/* ---- Closing drawing: edge to edge, sitting just above the footer ---- */
.ed-moon { margin: clamp(64px, 8vw, 120px) 0 0; }
.ed-moon img { width: 100%; height: auto; mix-blend-mode: multiply; }

/* ---- Footer: one quiet line ---- */
.ed-footer { padding: 8px 0 40px; }
.ed-footer p { margin: 0; font-size: 14px; color: var(--ed-faint); }
.ed-footer a { color: var(--ed-ink); text-decoration: underline; text-decoration-color: rgba(13,15,20,.3); text-underline-offset: 3px; }
.ed-footer a:hover { text-decoration-color: currentColor; }

/* ---- Tablets ---- */
@media (max-width: 860px) {
  .ed-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ed-hero-art { justify-self: center; width: min(100%, 480px); }
  .ed-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ed-split > h2 { max-width: none; }
}

/* ---- Phones ---- */
@media (max-width: 720px) {
  .ed-wrap { width: 92%; }
  html { scroll-padding-top: 76px; }
  .ed-header { height: 58px; }
  .ed-brand img { height: 26px; }
  .ed-hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .ed-lede { font-size: 17px; margin-top: 20px; }
  .ed-actions { margin-top: 28px; gap: 10px; }
  .ed-actions .ed-btn { flex: 1 1 140px; padding: 0 16px; }
  .ed-section { padding-top: 72px; }
  .ed-split > h2 { font-size: 30px; }
  .ed-points { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ed-point p, .ed-way p, .ed-faq details p { font-size: 16px; }
  .ed-section-title { font-size: 30px; }
  .ed-ways { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .ed-way-art { max-width: 420px; margin-bottom: 20px; }
  .ed-faq summary { font-size: 17px; padding: 18px 0; }
  .ed-contact-body p { font-size: 18px; }
  .ed-contact-body .ed-btn { width: 100%; }
  .ed-footer { padding: 8px 0 32px; }
  .ed-moon { margin-top: 56px; }
  .ed-footer p { font-size: 13px; }
}