/* ============================================================
   educators.world — "Chalk & Ink" design system
   ============================================================ */

:root {
  --ink:       #1F2A44;
  --chalk:     #F7F5F0;
  --white:     #FFFFFF;
  --teal:      #2A9D8F;   /* decorative only */
  --teal-dark: #1F7A70;   /* links, buttons, small accent text */
  --slate:     #5B6573;
  --line:      #E3E0D8;
  --tint:      #E8F2F0;
  --serif: "Source Serif 4", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { font-size: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

[id] { scroll-margin-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- utilities ---------- */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-size: 0.95rem;
}
.skip-link:focus { left: 0; }

.label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 1rem;
}
.label::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--teal);
  margin-bottom: 0.6rem;
}

.lede { font-size: 1.2rem; max-width: 46rem; }
.narrow { max-width: 46rem; }
.center { text-align: center; }
.small-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}

/* ---------- header ---------- */

.site-header {
  background: var(--chalk);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.wordmark:hover { text-decoration: none; }
.wm-teal { color: var(--teal); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a {
  color: var(--ink);
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  color: var(--teal-dark);
  text-decoration: none;
  border-bottom-color: var(--teal);
}
.site-nav a[aria-current="page"] {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #CBD3E0;
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer a { color: var(--white); }
.wordmark-footer { color: var(--white); font-size: 1.4rem; }
.tagline { font-size: 0.95rem; color: #A9B4C6; margin: 0.6rem 0 0; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #CBD3E0; font-size: 0.95rem; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }

.footer-email { font-weight: 600; color: var(--white); }
.footer-region { font-size: 0.9rem; color: #A9B4C6; margin: 0.6rem 0 0; }
.footer-address {
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #A9B4C6;
  margin-top: 1rem;
}
.footer-address span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #CBD3E0;
  margin-bottom: 0.2rem;
}
.contact-address { margin-top: 1.5rem; max-width: 26rem; }
.contact-address address { font-style: normal; color: var(--ink); line-height: 1.6; }
.formerly { font-size: 0.8rem; color: var(--slate); margin: 0.8rem 0 0; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  padding-bottom: 1.6rem;
  font-size: 0.85rem;
  color: #A9B4C6;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- sections ---------- */

.section { padding: 5rem 0; }
.section--white { background: var(--white); }
.section--chalk { background: var(--chalk); }
.section--tint { background: var(--tint); }
@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
}

/* ---------- hero ---------- */

.hero {
  padding: 6rem 0 5rem;
  background:
    radial-gradient(ellipse 60% 70% at 90% 10%, rgba(42, 157, 143, 0.14), transparent 70%),
    linear-gradient(rgba(31, 42, 68, 0.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(31, 42, 68, 0.045) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--chalk);
}
.page-hero {
  padding: 4.5rem 0 4rem;
  background: var(--chalk);
  border-bottom: 1px solid var(--line);
}
.hero p, .page-hero p { max-width: 44rem; font-size: 1.2rem; }

/* ---------- buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal-dark); color: var(--white); }
.btn-primary:hover { background: #18655D; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-secondary:hover { border-color: var(--teal-dark); color: var(--teal-dark); }

/* ---------- fact strip ---------- */

.facts {
  background: var(--chalk);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts-row { display: flex; flex-wrap: wrap; }
.fact {
  flex: 1 1 0;
  padding: 1.2rem 1rem;
  text-align: center;
  font-weight: 500;
  color: var(--ink);
  font-size: 0.95rem;
}
.fact + .fact { border-left: 1px solid var(--line); }
@media (max-width: 700px) {
  .fact { flex: 1 1 40%; }
  .fact:nth-child(odd) { border-left: none; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- grids & cards ---------- */

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem;
}
.card { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card:hover {
  transform: translateY(-2px);
  border-color: #CFE3DF;
  box-shadow: 0 10px 24px -14px rgba(31, 42, 68, 0.25);
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-link { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--teal-dark); }
.card-link::after { content: " →"; }

.statement {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 42rem;
  margin: 3rem auto 0;
  text-align: center;
}

/* ---------- steps (plan–teach–reflect–refine, engagement) ---------- */

.steps {
  display: flex;
  gap: 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.step {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
  flex: none;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.4rem;
  left: calc(50% + 1.8rem);
  right: calc(-50% + 1.8rem);
  height: 1.5px;
  background: var(--line);
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.step p { font-size: 0.95rem; margin-bottom: 0; }
@media (max-width: 700px) {
  .steps { flex-direction: column; }
  .step { flex-direction: row; align-items: flex-start; text-align: left; gap: 1rem; }
  .step::after { display: none; }
  .step-num { margin-bottom: 0; }
  .step h3 { margin-top: 0.45rem; }
}

/* ---------- rhythm list ---------- */

.rhythm { list-style: none; padding: 0; margin: 2rem 0 0; }
.rhythm li {
  border-left: 3px solid var(--teal);
  padding: 0.2rem 0 0.2rem 1.1rem;
  margin-bottom: 1.4rem;
}
.rhythm strong { display: block; color: var(--ink); }
.rhythm li > span { font-size: 0.98rem; }

/* ---------- timeline ---------- */

.timeline {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  border-left: 2px solid var(--teal);
}
.timeline li { padding: 0 0 1.6rem 1.5rem; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
}
.timeline .week { display: block; font-weight: 600; color: var(--ink); }

.note { font-size: 0.9rem; color: var(--slate); margin-top: -0.4rem; }

/* ---------- pills ---------- */

.pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 1.4rem 0 0;
}
.pills li {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); margin-top: 2rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--teal-dark);
  font-size: 1.4rem;
  font-weight: 400;
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.8rem 0 0; max-width: 44rem; }

/* ---------- CTA ---------- */

.cta { text-align: center; }
.cta p { max-width: 36rem; margin-left: auto; margin-right: auto; }
.cta .btn { margin-top: 0.6rem; }
.cta .note { margin-top: 1.4rem; }

/* ---------- misc ---------- */

.email-big {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--ink);
  font-weight: 700;
}
.email-big:hover { color: var(--teal-dark); text-decoration: none; }
