/* Shared styles. Static site: no framework, external font, or build step. */
:root {
  color-scheme: light;
  --bg: #f8f7f3;
  --surface: #ffffff;
  --ink: #252436;
  --muted: #656372;
  --line: #e4e2e9;
  --purple: #604bd1;
  --purple-dark: #4f3bb5;
  --purple-soft: #efebfc;
  --green: #246453;
  --green-soft: #e8f3ee;
  --radius: 24px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 24px; height: 24px; flex-shrink: 0; }
p, h1, h2, h3 { margin: 0; }
sup { font-size: 0.65em; line-height: 0; }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
a:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
main:focus { outline: none; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 20; padding: 12px 20px; border-radius: 10px; background: var(--ink); color: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 25px; font-weight: 800; letter-spacing: -1px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-content: center; position: relative; border-radius: 12px; background: var(--purple); color: white; font-size: 26px; line-height: 1; letter-spacing: -2px; padding-bottom: 4px; }
.brand-mark span { position: absolute; right: 7px; bottom: 5px; color: #d4cbff; font-size: 22px; }
.brand-dot { color: var(--purple); }
.main-nav { display: flex; padding: 5px; gap: 4px; background: #eeede9; border: 1px solid #e9e7e4; border-radius: 14px; }
.main-nav a { min-height: 40px; display: flex; align-items: center; padding: 7px 21px; color: var(--muted); font-size: 14px; font-weight: 600; border-radius: 10px; }
.main-nav a:hover { color: var(--purple-dark); }
.main-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: 0 2px 5px #25243609; }
.level-badge { background: #eeede9; border: 1px solid #e2e0da; border-radius: 8px; padding: 6px 12px; white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: 0.4px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 72px; padding: 64px 0 68px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--purple-dark); font-size: 10px; line-height: 1.6; letter-spacing: 1.65px; font-weight: 750; }
.eyebrow-line { width: 22px; height: 2px; background: var(--purple); }
.hero h1 { margin-top: 23px; font-size: clamp(52px, 5.5vw, 72px); line-height: 1.045; letter-spacing: -3.3px; font-weight: 780; }
.accent-word { color: var(--purple); position: relative; display: inline-block; }
.accent-word::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 100%; height: 7px; border-top: 3px solid #c3b7f2; border-radius: 50%; transform: rotate(-3deg); }
.hero-description { margin: 29px 0 25px; max-width: 395px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; border-radius: 11px; padding: 13px 21px; font-size: 13px; font-weight: 650; line-height: 1.5; transition: background 150ms, transform 150ms; }
.button svg { width: 19px; height: 19px; }
.button-primary { color: white; background: var(--purple); box-shadow: 0 4px 9px #604bd118; }
.button-primary:hover { background: var(--purple-dark); transform: translateY(-2px); }
.hero-note { display: flex; align-items: center; gap: 7px; margin-top: 13px; font-size: 11px; color: var(--muted); }
.hero-note span { color: var(--green); font-size: 13px; }
.hero-art { background: #ece8f8; border: 1px solid #e2dcf2; padding: 23px; border-radius: 28px; transform: rotate(1.5deg); }
.art-heading { display: flex; align-items: center; gap: 7px; color: #625784; font-size: 8px; font-weight: 700; letter-spacing: 1px; padding: 0 2px 19px; }
.art-dot { width: 6px; height: 6px; border-radius: 50%; background: #8470c8; }
.art-star { margin-left: auto; font-size: 19px; line-height: 1; }
.graph-paper { overflow: hidden; padding: 22px 18px 16px; background: #fefdfd; border: 1px solid #e8e3f0; border-radius: 16px; box-shadow: 0 10px 18px #64509109; transform: rotate(-3deg); }
.graph-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #4a425e; font-size: 12px; font-weight: 650; }
.graph-index { font-size: 10px; color: #82768f; font-weight: 400; }
.function-graph { width: 100%; height: auto; margin: 15px 0 5px; }
.graph-footer { border-top: 1px solid #ece9f0; padding-top: 13px; color: #625a74; font-size: 10px; display: flex; align-items: center; gap: 8px; }
.small-check { display: inline-grid; place-items: center; width: 17px; height: 17px; background: #e7f3ec; color: var(--green); border-radius: 50%; }
.art-bottom { display: flex; align-items: center; gap: 10px; margin: 23px 2px 0; }
.art-mini-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #f7f4ff; color: var(--purple); }
.art-mini-icon svg { width: 21px; height: 21px; }
.art-bottom p { font-size: 11px; line-height: 1.7; color: #706385; }
.art-bottom strong { color: #514262; font-weight: 650; }
.art-scribble { margin-left: auto; color: #8c7ca6; font: italic 22px Georgia, serif; transform: rotate(-10deg); }
.pathways { padding-top: 25px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading .eyebrow { font-size: 9px; letter-spacing: 1.4px; color: var(--muted); }
.section-heading h2 { margin-top: 8px; font-size: 28px; letter-spacing: -0.85px; line-height: 1.3; }
.section-heading > p { color: var(--muted); font-size: 11px; line-height: 1.8; text-align: right; }
.pathway-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pathway-card { display: flex; flex-direction: column; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 19px; transition: transform 160ms, border-color 160ms, box-shadow 160ms; }
.pathway-card:hover { transform: translateY(-4px); border-color: #b5a8e2; box-shadow: 0 12px 25px #34266008; }
.exercises-card:hover { border-color: #93b7a6; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 21px; }
.icon-box { width: 48px; height: 48px; display: inline-grid; place-items: center; color: var(--purple); background: var(--purple-soft); border: 1px solid #e5ddfc; border-radius: 13px; }
.card-number { color: #777180; font-size: 13px; font-weight: 500; letter-spacing: 1px; }
.card-eyebrow { font-size: 8px; letter-spacing: 1.5px; font-weight: 750; color: var(--purple-dark); }
.pathway-card h3 { margin-top: 7px; font-size: 27px; line-height: 1.25; letter-spacing: -0.7px; }
.card-description { margin-top: 12px; margin-bottom: 25px; max-width: 380px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 17px; margin-top: auto; border-top: 1px solid #efedf3; color: var(--purple-dark); font-size: 12px; font-weight: 700; }
.round-arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--purple-soft); }
.round-arrow svg { width: 17px; height: 17px; }
.exercises-card .icon-box, .exercises-card .round-arrow { color: var(--green); background: var(--green-soft); border-color: #dcebe3; }
.exercises-card .card-eyebrow, .exercises-card .card-bottom { color: var(--green); }
.encouragement { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 29px 0 37px; color: var(--muted); font-size: 11px; }
.encouragement strong { color: #4e4a59; font-weight: 600; }
.encouragement-icon { color: #8971ad; }
.encouragement-icon svg { width: 20px; height: 20px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; padding-block: 19px; color: var(--muted); font-size: 10px; }
.footer-inner strong { margin-right: 10px; color: var(--ink); font-size: 17px; font-weight: 750; letter-spacing: -0.6px; }
/* Shared starter pages */
.section-page { padding-top: 29px; padding-bottom: 45px; min-height: calc(100vh - 177px); }
.breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.breadcrumb a:hover, .back-link:hover { color: var(--purple-dark); }
.page-intro { margin: 34px 0 34px; }
.page-intro h1 { margin: 8px 0 12px; font-size: clamp(38px, 5vw, 58px); line-height: 1.15; letter-spacing: -2px; }
.title-dot { color: var(--purple); }
.page-intro > p:last-child { max-width: 610px; font-size: 15px; color: var(--muted); line-height: 1.8; }
.section-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 25px; align-items: stretch; }
.empty-state { display: flex; flex-direction: column; align-items: flex-start; padding: 39px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-icon { width: 55px; height: 55px; margin-bottom: 24px; }
.empty-icon svg { width: 28px; height: 28px; }
.status-label { margin-bottom: 12px; padding: 4px 9px; border: 1px solid #e5e2ed; border-radius: 6px; background: #f6f5f9; color: #696276; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.empty-state h2 { font-size: 29px; line-height: 1.25; letter-spacing: -0.8px; }
.empty-description { max-width: 460px; margin: 16px 0 25px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.empty-state .button { margin-top: auto; }
.method-panel { padding: 33px 30px; background: var(--purple-soft); border: 1px solid #e4dcf5; border-radius: var(--radius); }
.method-spark { display: inline-block; color: var(--purple); margin-bottom: 16px; }
.method-panel h2 { font-size: 22px; letter-spacing: -0.5px; }
.method-intro { margin: 8px 0 26px; font-size: 13px; color: #69617c; }
.method-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.method-steps li { display: flex; align-items: flex-start; gap: 13px; }
.step-number { display: grid; place-items: center; flex-shrink: 0; width: 29px; height: 29px; background: #faf8ff; color: var(--purple-dark); border-radius: 8px; font-size: 10px; font-weight: 700; }
.method-steps h3 { font-size: 13px; font-weight: 700; }
.method-steps p { margin-top: 3px; color: #69617c; font-size: 12px; line-height: 1.6; }
.back-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 24px; font-size: 12px; color: var(--muted); }
.exercises-page .eyebrow, .exercises-page .title-dot { color: var(--green); }
.exercises-page .empty-icon { color: var(--green); background: var(--green-soft); border-color: #dcebe3; }
.exercises-page .method-panel { background: var(--green-soft); border-color: #d6e7dd; }
.exercises-page .method-spark, .exercises-page .step-number { color: var(--green); }
.exercises-page .step-number { background: #f8fffa; }
.exercises-page .method-intro, .exercises-page .method-steps p { color: #516f60; }
.exercises-page .button-primary { background: var(--green); box-shadow: none; }
.exercises-page .button-primary:hover { background: #194b3d; }
@media (min-width: 1450px) { .hero { gap: 90px; } }
@media (max-width: 950px) {
  .hero { gap: 35px; padding-top: 50px; }
  .hero h1 { font-size: 58px; }
  .hero-art { padding: 18px; }
  .graph-heading { font-size: 10px; }
  .art-heading { font-size: 7px; letter-spacing: 0.6px; }
  .art-scribble { display: none; }
  .empty-state { padding: 29px; }
  .method-panel { padding: 29px 23px; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 85px; gap: 14px; }
  .brand { font-size: 22px; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .main-nav a { padding: 7px 13px; font-size: 12px; }
  .level-badge { display: none; }
  .hero { grid-template-columns: 1fr; gap: 39px; padding: 39px 0 43px; }
  .hero-copy { max-width: 500px; }
  .hero h1 { font-size: 64px; }
  .hero-description { max-width: 390px; }
  .hero-art { width: min(100% - 14px, 450px); justify-self: center; padding: 22px; }
  .art-heading { font-size: 8px; }
  .graph-heading { font-size: 12px; }
  .art-scribble { display: block; }
  .section-heading > p { display: none; }
  .section-heading h2 { font-size: 26px; }
  .pathway-grid { grid-template-columns: 1fr; gap: 16px; }
  .pathway-card { padding: 25px; }
  .card-description { max-width: 100%; }
  .encouragement { align-items: flex-start; padding-block: 25px; font-size: 11px; }
  .encouragement strong { display: block; margin-bottom: 3px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 6px; padding-block: 22px; }
  .section-page { padding-top: 18px; min-height: calc(100vh - 190px); }
  .page-intro { margin-top: 25px; }
  .section-grid { grid-template-columns: 1fr; gap: 20px; }
  .page-intro h1 { font-size: 47px; }
  .empty-state { padding: 30px 25px; }
  .empty-state h2 { font-size: 28px; }
  .method-panel { padding: 27px 25px; }
  .method-steps { gap: 21px; }
}
@media (max-width: 390px) {
  .container { width: calc(100% - 32px); }
  .header-inner { gap: 8px; }
  .brand { gap: 6px; font-size: 20px; }
  .brand-mark { display: none; }
  .main-nav { padding: 3px; gap: 1px; }
  .main-nav a { padding: 7px 10px; }
  .hero h1 { font-size: 57px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .hero-art { padding: 17px; }
  .art-heading { font-size: 6px; }
  .graph-paper { padding-inline: 13px; }
  .graph-heading { font-size: 10px; }
  .graph-footer { font-size: 8px; }
  .art-bottom p { font-size: 9px; }
  .page-intro h1 { font-size: 39px; }
  .empty-state h2 { font-size: 25px; }
  .button { gap: 12px; padding-inline: 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .pathway-card:hover, .button-primary:hover { transform: none; }
}
/* The shared header serves both STMG levels. Keep the level in page context. */
.level-badge { display: none; }
