@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
  color-scheme: light;
  --ink: 24 37 56;
  --paper: 250 246 233;
  --paper-deep: 241 234 215;
  --blue: 47 78 216;
  --blue-deep: 31 54 163;
  --orange: 239 103 70;
  --lime: 211 224 91;
  --lavender: 218 217 247;
  --line: 24 37 56 / 16%;
  --muted: 96 103 110;
  --display: 'Fraunces', Georgia, serif;
  --body: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: rgb(var(--paper));
  color: rgb(var(--ink));
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgb(var(--orange)); outline-offset: 3px;
}
.skip-link { position: absolute; top: -60px; left: 18px; z-index: 10; background: rgb(var(--lime)); padding: 12px 18px; }
.skip-link:focus { top: 12px; }
.shell { width: min(1240px, calc(100% - 56px)); margin: 0 auto; }
.topline { height: 34px; background: rgb(var(--blue)); color: rgb(var(--paper)); display: flex; align-items: center; justify-content: center; font: 11px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.topline span { color: rgb(var(--lime)); margin-right: 8px; }
.nav-wrap { border-bottom: 1px solid rgb(var(--line)); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; letter-spacing: -.065em; font-size: 24px; }
.brand-mark { width: 35px; height: 35px; background: rgb(var(--orange)); border-radius: 50% 50% 48% 12%; display: grid; place-items: center; transform: rotate(-12deg); color: rgb(var(--ink)); }
.brand-mark svg { width: 21px; height: 21px; transform: rotate(12deg); }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: rgb(var(--blue)); }
.nav-cta { background: rgb(var(--ink)); color: rgb(var(--paper)) !important; padding: 12px 18px; border-radius: 3px; }

.hero { position: relative; overflow: hidden; min-height: 570px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; padding: 64px 0 75px; }
.hero-copy { position: relative; z-index: 1; padding: 16px 0 28px; }
.eyebrow { display: inline-flex; gap: 10px; align-items: center; font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--blue)); }
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; }
h1 { font-size: clamp(58px, 7.4vw, 104px); line-height: .91; letter-spacing: -.075em; margin: 23px 0 25px; max-width: 670px; font-weight: 700; }
h1 em { font-family: var(--display); font-weight: 600; color: rgb(var(--blue)); letter-spacing: -.065em; }
.hero-copy > p { max-width: 430px; font-size: 17px; line-height: 1.7; color: rgb(var(--muted)); margin: 0 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.button { border: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 51px; padding: 0 20px; border-radius: 3px; background: rgb(var(--blue)); color: rgb(var(--paper)); font-size: 14px; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px); background: rgb(var(--blue-deep)); }
.button svg { width: 17px; }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgb(var(--ink) / 45%); padding: 5px 0; }
.hero-art { position: relative; min-height: 425px; display: grid; place-items: center; }
.hero-orbit { position: absolute; width: min(100%, 500px); aspect-ratio: 1; border: 1px dashed rgb(var(--ink) / 22%); border-radius: 50%; transform: rotate(-15deg); }
.hero-orbit::before, .hero-orbit::after { content: ''; position: absolute; border: 1px solid rgb(var(--blue) / 18%); border-radius: 50%; inset: 11%; transform: rotate(38deg); }
.hero-orbit::after { inset: 23%; border-color: rgb(var(--orange) / 30%); transform: rotate(-35deg); }
.hero-core { position: relative; width: min(70%, 300px); aspect-ratio: 1; background: rgb(var(--lime)); border-radius: 50% 47% 45% 50%; display: grid; place-items: center; box-shadow: 17px 20px 0 rgb(var(--blue)); transform: rotate(8deg); }
.hero-core svg { width: 72%; height: 72%; overflow: visible; transform: rotate(-8deg); }
.float-note { position: absolute; background: rgb(var(--paper)); border: 1px solid rgb(var(--ink) / 18%); box-shadow: 5px 6px 0 rgb(var(--ink)); padding: 13px 16px; font: 11px var(--mono); letter-spacing: .04em; }
.float-note b { display: block; font: 700 22px var(--display); letter-spacing: -.03em; color: rgb(var(--blue)); margin-top: 2px; }
.note-one { top: 11%; right: 3%; transform: rotate(5deg); }
.note-two { bottom: 10%; left: 3%; transform: rotate(-5deg); background: rgb(var(--orange)); }
.note-two b { color: rgb(var(--ink)); }
.scribble { position: absolute; right: 6%; bottom: 4%; color: rgb(var(--blue)); font: italic 18px var(--display); transform: rotate(-10deg); }
.hero-sticker { position: absolute; top: 12%; left: 4%; width: 66px; height: 66px; border-radius: 50%; background: rgb(var(--orange)); display: grid; place-items: center; font: 11px var(--mono); text-align: center; line-height: 1.2; transform: rotate(-12deg); }

.manifesto { background: rgb(var(--blue)); color: rgb(var(--paper)); padding: 27px 0; overflow: hidden; }
.manifesto-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.manifesto strong { font-family: var(--display); font-size: clamp(20px, 2.7vw, 32px); font-weight: 600; letter-spacing: -.03em; }
.manifesto .tag { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: rgb(var(--lime)); white-space: nowrap; }
.manifesto .symbols { font-size: 24px; color: rgb(var(--orange)); letter-spacing: .2em; }

.catalog { padding: 102px 0 105px; }
.section-heading { display: flex; justify-content: space-between; gap: 35px; align-items: end; margin-bottom: 34px; }
.section-heading h2 { font-size: clamp(42px, 5vw, 64px); line-height: .99; letter-spacing: -.065em; margin: 13px 0 0; }
.section-heading h2 em { color: rgb(var(--blue)); font-family: var(--display); font-weight: 600; }
.section-heading p { max-width: 285px; font-size: 14px; line-height: 1.65; color: rgb(var(--muted)); margin: 0 0 5px; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid rgb(var(--line)); border-bottom: 1px solid rgb(var(--line)); padding: 15px 0; margin-bottom: 30px; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-chip { background: transparent; border: 1px solid rgb(var(--ink) / 20%); border-radius: 30px; padding: 9px 13px; cursor: pointer; font-size: 12px; color: rgb(var(--ink)); transition: background .2s ease, color .2s ease, border .2s ease; }
.filter-chip:hover, .filter-chip[aria-pressed="true"] { background: rgb(var(--ink)); color: rgb(var(--paper)); border-color: rgb(var(--ink)); }
.search-box { position: relative; flex: 0 0 240px; }
.search-box svg { width: 17px; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: rgb(var(--muted)); }
.search-box input { width: 100%; border: 1px solid rgb(var(--ink) / 20%); background: transparent; min-height: 39px; padding: 0 12px 0 39px; border-radius: 3px; font-size: 13px; color: rgb(var(--ink)); }
.search-box input::placeholder { color: rgb(var(--muted)); }
.course-count { font: 11px var(--mono); color: rgb(var(--muted)); margin: 0 0 15px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.course-card { border: 1px solid rgb(var(--ink) / 18%); background: rgb(var(--paper)); display: flex; flex-direction: column; min-height: 354px; cursor: pointer; position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.course-card:hover { transform: translateY(-6px); box-shadow: 7px 8px 0 rgb(var(--ink)); }
.course-card:focus-visible { outline: 3px solid rgb(var(--orange)); outline-offset: 4px; }
.course-art { height: 168px; overflow: hidden; position: relative; display: grid; place-items: center; background: var(--art-bg, rgb(var(--lavender))); }
.course-art img { width: 100%; height: 100%; object-fit: cover; }
.course-art svg { width: 88%; height: 88%; }
.course-art .art-index { position: absolute; top: 13px; left: 15px; font: 10px var(--mono); letter-spacing: .1em; z-index: 1; }
.course-body { padding: 19px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: rgb(var(--blue)); text-transform: uppercase; font: 10px var(--mono); letter-spacing: .06em; }
.course-card h3 { font-size: 23px; line-height: 1.12; letter-spacing: -.04em; margin: 14px 0 8px; }
.course-card p { font-size: 13px; color: rgb(var(--muted)); line-height: 1.55; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid rgb(var(--line)); display: flex; align-items: center; justify-content: space-between; font: 10px var(--mono); color: rgb(var(--muted)); }
.card-arrow { color: rgb(var(--blue)); font-size: 19px; }
.loading-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skeleton { border: 1px solid rgb(var(--ink) / 12%); height: 350px; background: linear-gradient(110deg, rgb(var(--paper-deep)), rgb(var(--paper)) 40%, rgb(var(--paper-deep)) 70%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }
.catalog-message { grid-column: 1/-1; text-align: center; border: 1px dashed rgb(var(--ink) / 28%); padding: 55px 20px; color: rgb(var(--muted)); }
.catalog-message h3 { font: 600 31px var(--display); color: rgb(var(--ink)); margin: 0 0 10px; }
.catalog-message p { margin: 0 auto 18px; max-width: 420px; line-height: 1.6; }
.catalog-message button { background: transparent; border: 0; color: rgb(var(--blue)); text-decoration: underline; cursor: pointer; font-weight: 700; }

.method { background: rgb(var(--paper-deep)); padding: 87px 0 92px; }
.method-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9%; align-items: start; }
.method-intro { position: sticky; top: 24px; }
.method-intro h2 { font-size: clamp(43px, 5vw, 62px); line-height: .95; letter-spacing: -.065em; margin: 16px 0; }
.method-intro h2 em { font-family: var(--display); color: rgb(var(--blue)); }
.method-intro p { max-width: 330px; color: rgb(var(--muted)); line-height: 1.7; font-size: 14px; }
.steps { border-top: 1px solid rgb(var(--ink) / 22%); }
.step { padding: 23px 0 25px; border-bottom: 1px solid rgb(var(--ink) / 22%); display: grid; grid-template-columns: 48px 1fr; gap: 20px; }
.step-num { font: 12px var(--mono); color: rgb(var(--blue)); padding-top: 5px; }
.step h3 { margin: 0 0 7px; font-size: 21px; letter-spacing: -.04em; }
.step p { margin: 0; max-width: 490px; color: rgb(var(--muted)); font-size: 13px; line-height: 1.65; }

.download { padding: 105px 0; }
.download-panel { background: rgb(var(--orange)); padding: 54px 7%; display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: center; position: relative; overflow: hidden; }
.download-panel::after { content: 'π'; position: absolute; right: 27%; top: -100px; font: 330px var(--display); color: rgb(var(--paper) / 22%); transform: rotate(15deg); pointer-events: none; }
.download-copy { position: relative; z-index: 1; max-width: 565px; }
.download-copy .eyebrow { color: rgb(var(--ink)); }
.download-copy h2 { font-size: clamp(38px, 5vw, 58px); letter-spacing: -.065em; line-height: .98; margin: 14px 0 14px; }
.download-copy p { margin: 0; max-width: 440px; line-height: 1.6; font-size: 14px; }
.store-badges { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 11px; min-width: 190px; }
.store-badge { min-height: 57px; padding: 8px 13px; display: flex; align-items: center; gap: 12px; background: rgb(var(--ink)); color: rgb(var(--paper)); text-decoration: none; border: 1px solid rgb(var(--ink)); }
.store-badge svg { width: 25px; height: 25px; flex: none; }
.store-badge small, .store-badge strong { display: block; }
.store-badge small { font: 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .72; }
.store-badge strong { font-size: 14px; margin-top: 2px; }
.store-badge.soon { background: transparent; color: rgb(var(--ink)); cursor: default; }

footer { background: rgb(var(--ink)); color: rgb(var(--paper)); padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
footer .brand-mark { background: rgb(var(--lime)); }
footer .brand { font-size: 20px; }
.footer-note { font: 10px var(--mono); color: rgb(var(--paper) / 64%); }
.admin-link { font: 11px var(--mono); color: rgb(var(--lime)); text-decoration: none; }
.admin-link:hover { text-decoration: underline; }

.dialog-backdrop { position: fixed; inset: 0; z-index: 20; background: rgb(var(--ink) / 62%); display: grid; place-items: center; padding: 22px; opacity: 0; transition: opacity .2s ease; }
.dialog-backdrop.open { opacity: 1; }
.course-dialog { padding: 0; border: 0; background: rgb(var(--paper)); color: rgb(var(--ink)); width: min(760px, 100%); max-height: min(88vh, 820px); overflow: auto; box-shadow: 10px 12px 0 rgb(var(--lime)); transform: translateY(12px); transition: transform .2s ease; }
.course-dialog[open] { transform: translateY(0); }
.course-dialog::backdrop { background: rgb(var(--ink) / 66%); }
.dialog-head { background: rgb(var(--blue)); color: rgb(var(--paper)); padding: 30px 36px 28px; position: relative; }
.dialog-close { position: absolute; right: 18px; top: 18px; border: 1px solid rgb(var(--paper) / 50%); background: transparent; color: rgb(var(--paper)); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 19px; }
.dialog-close:hover { background: rgb(var(--paper)); color: rgb(var(--blue)); }
.dialog-head .eyebrow { color: rgb(var(--lime)); }
.dialog-head h2 { font-size: clamp(32px, 5vw, 50px); line-height: 1; letter-spacing: -.06em; margin: 18px 45px 11px 0; }
.dialog-head p { margin: 0; max-width: 590px; font-size: 14px; line-height: 1.6; color: rgb(var(--paper) / 82%); }
.dialog-content { padding: 28px 36px 36px; }
.dialog-meta { display: flex; gap: 20px; font: 10px var(--mono); color: rgb(var(--blue)); text-transform: uppercase; margin-bottom: 26px; }
.curriculum-title { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }
.module { border-top: 1px solid rgb(var(--line)); padding: 16px 0; }
.module:last-child { border-bottom: 1px solid rgb(var(--line)); }
.module-head { display: flex; align-items: baseline; gap: 12px; }
.module-order { color: rgb(var(--blue)); font: 10px var(--mono); }
.module h3 { margin: 0; font-size: 17px; letter-spacing: -.03em; }
.lesson-list { list-style: none; margin: 13px 0 0 24px; padding: 0; }
.lesson { padding: 10px 0; border-top: 1px solid rgb(var(--ink) / 8%); display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 13px; }
.lesson-main { min-width: 0; }
.lesson-title { font-weight: 600; }
.lesson-note { color: rgb(var(--muted)); line-height: 1.55; margin-top: 6px; white-space: pre-wrap; font-size: 12px; }
.lesson video { width: min(100%, 390px); margin-top: 10px; display: block; }
.lesson-time { flex: none; color: rgb(var(--muted)); font: 10px var(--mono); }
.no-curriculum { color: rgb(var(--muted)); font-size: 13px; font-style: italic; padding: 16px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .hero { min-height: 490px; grid-template-columns: 1.04fr .96fr; }
  h1 { font-size: clamp(55px, 8vw, 78px); }
  .course-grid, .loading-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .catalog-tools { align-items: flex-start; flex-direction: column; }
  .search-box { flex-basis: auto; width: min(100%, 380px); }
  .method-layout { gap: 5%; }
}
@media (max-width: 650px) {
  .shell { width: min(100% - 36px, 500px); }
  .topline { height: 30px; font-size: 9px; }
  .nav { min-height: 66px; }
  .nav-links { gap: 15px; font-size: 12px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 10px 13px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding: 48px 0 36px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(59px, 17vw, 84px); max-width: 520px; margin: 18px 0 19px; }
  .hero-copy > p { font-size: 15px; max-width: 370px; }
  .hero-art { min-height: 330px; margin-top: 10px; }
  .hero-orbit { width: 310px; }
  .hero-core { width: 195px; box-shadow: 12px 14px 0 rgb(var(--blue)); }
  .float-note { padding: 10px 12px; }
  .float-note b { font-size: 18px; }
  .note-one { right: 0; top: 6%; }
  .note-two { left: 0; bottom: 3%; }
  .hero-sticker { left: 0; top: 7%; width: 54px; height: 54px; font-size: 9px; }
  .scribble { right: 0; bottom: 0; }
  .manifesto-inner { gap: 13px; }
  .manifesto .symbols { display: none; }
  .manifesto .tag { font-size: 9px; }
  .catalog { padding: 70px 0 76px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading h2 { font-size: 48px; }
  .section-heading p { margin-top: 14px; }
  .catalog-tools { gap: 14px; }
  .filters { gap: 6px; }
  .filter-chip { font-size: 11px; padding: 8px 10px; }
  .course-grid, .loading-grid { grid-template-columns: 1fr; gap: 16px; }
  .course-card { min-height: 330px; }
  .course-art { height: 176px; }
  .method { padding: 68px 0; }
  .method-layout { display: block; }
  .method-intro { position: static; margin-bottom: 35px; }
  .method-intro h2 { font-size: 48px; }
  .step { grid-template-columns: 35px 1fr; gap: 12px; }
  .download { padding: 70px 0; }
  .download-panel { display: block; padding: 35px 24px; }
  .download-copy h2 { font-size: 43px; }
  .store-badges { flex-direction: row; flex-wrap: wrap; margin-top: 25px; }
  .store-badge { min-width: 165px; flex: 1; }
  .download-panel::after { right: -30px; top: -55px; }
  .footer-inner { align-items: flex-start; flex-wrap: wrap; }
  .footer-note { order: 3; width: 100%; }
  .dialog-backdrop { padding: 12px; }
  .course-dialog { max-height: 94vh; }
  .dialog-head { padding: 27px 22px 22px; }
  .dialog-content { padding: 23px 22px 28px; }
  .dialog-meta { flex-wrap: wrap; gap: 8px 15px; }
  .lesson-list { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
