/* =============================================================
   Learnmedi — public teacher site styles.
   Every colour/font comes from theme CSS variables injected per
   site (--c-primary, --c-accent, --c-bg, --c-surface, --c-text,
   --c-muted, --font-heading, --font-body, --radius, --radius-btn).
   Editorial look adapted from tranhoangyen.com.
   ============================================================= */
:root {
  --c-primary: #1f4d3a; --c-accent: #c8793a; --c-bg: #fbf7f0; --c-surface: #fff; --c-text: #1d1b18; --c-muted: #6b645a;
  --font-heading: Georgia, serif; --font-body: system-ui, sans-serif; --radius: 18px; --radius-btn: 999px; --base-size: 17px;
  --line: color-mix(in srgb, var(--c-text) 12%, transparent);
  --soft: color-mix(in srgb, var(--c-primary) 8%, var(--c-bg));
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 12px 32px -14px rgba(0,0,0,.22);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.07), 0 30px 60px -24px rgba(0,0,0,.35);
  --w: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font: var(--base-size)/1.7 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--c-accent); font-weight: 400; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }
.container { width: min(100% - 32px, var(--w)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.muted { color: var(--c-muted); }
.small { font-size: .88rem; }

/* ---------- small type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font: 600 .74rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--c-accent); margin: 0 0 1.2rem; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.kicker { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent); font-weight: 600; margin-bottom: .5rem; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); }
.caption { color: var(--c-muted); font-size: .9rem; margin-top: .6rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.45em; border-radius: var(--radius-btn); border: 1.5px solid transparent; font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .6em 1em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: 0 10px 22px -12px var(--c-primary); }
.btn-secondary { background: var(--c-accent); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--c-primary); background: transparent; }
.btn-primary.on-dark, .on-dark .btn-primary.on-dark { background: #f6efe3; color: var(--c-primary); }
.btn-primary.on-dark:hover { background: #fff; }
.btn-ghost.on-dark { color: #f6efe3; border-color: rgba(246,239,227,.45); }
.btn-ghost.on-dark:hover { background: #f6efe3; color: var(--c-primary); }
.btn-outline .btn-primary { background: transparent; color: var(--c-primary); border-color: var(--c-primary); box-shadow: none; }
.btn-soft .btn-primary { background: color-mix(in srgb, var(--c-primary) 14%, transparent); color: var(--c-primary); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 1.4rem; }
.al-center .btn-row { justify-content: center; }
.al-right .btn-row { justify-content: flex-end; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--c-primary); border-bottom: 1.5px solid var(--c-accent); padding-bottom: 2px; }
.chip { display: inline-flex; align-items: center; padding: .35em .85em; border-radius: 999px; border: 1px solid var(--line); font-size: .82rem; text-decoration: none; background: transparent; color: inherit; cursor: pointer; font-family: inherit; }
.chip.is-on { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.badge { display: inline-flex; padding: .3em .8em; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; background: color-mix(in srgb, var(--c-accent) 16%, transparent); color: var(--c-accent); white-space: nowrap; }

/* ---------- header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--c-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-primary); color: #fff; font: 500 1.2rem/1 var(--font-heading); flex: none; }
.brand-logo { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font: 500 1.1rem/1.1 var(--font-heading); white-space: nowrap; }
.brand-text small { white-space: nowrap; }
.main-nav { flex-wrap: nowrap; }
.brand-text small { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); margin-top: 4px; }
.main-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav-link { position: relative; white-space: nowrap; padding: 9px 11px; text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--c-muted); border-radius: 10px; }
.nav-link:hover { color: var(--c-text); background: var(--soft); }
.nav-link.is-active { color: var(--c-primary); }
.nav-link.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--c-accent); }
.account { display: flex; align-items: center; gap: 4px; }
.muted-link { color: var(--c-muted); }
.acct-menu { position: relative; }
.acct-menu > summary { list-style: none; cursor: pointer; }
.acct-menu > summary::-webkit-details-marker { display: none; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--c-primary); color: #fff; font: 600 .85rem/1 var(--font-body); letter-spacing: .02em; border: 2px solid var(--c-bg); box-shadow: 0 0 0 1px var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; background: var(--c-surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; z-index: 60; }
.acct-pop a { padding: 9px 12px; border-radius: 9px; text-decoration: none; font-size: .92rem; }
.acct-pop a:hover { background: var(--soft); }
.acct-who { display: flex; flex-direction: column; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; line-height: 1.3; }
.acct-who small { color: var(--c-muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; }
.hdr-bold .acct-pop { color: var(--c-text); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-content: center; gap: 5px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { display: block; width: 20px; height: 2px; background: var(--c-text); border-radius: 2px; }
.mobile-nav nav { position: absolute; right: 0; top: 54px; width: min(84vw, 300px); background: var(--c-bg); border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.mobile-nav nav a { padding: 12px 14px; text-decoration: none; border-radius: 10px; }
.mobile-nav nav .account { flex-direction: column; align-items: stretch; }
@media (max-width: 1180px) { .main-nav { display: none; } .mobile-nav { display: block; } }
@media (max-width: 560px) { .header-inner > .account { display: none; } .brand-text small { display: none; } }
.hdr-centered .header-inner { flex-wrap: wrap; justify-content: center; }
.hdr-centered .brand { margin: 0 auto; }
.hdr-bold .site-header { background: var(--c-primary); color: #fff; border: 0; }
.hdr-bold .nav-link { color: rgba(255,255,255,.8); }
.hdr-bold .nav-link:hover, .hdr-bold .nav-link.is-active { color: #fff; background: rgba(255,255,255,.1); }
.hdr-bold .brand-mark { background: #fff; color: var(--c-primary); }
.hdr-bold .brand-text small { color: rgba(255,255,255,.7); }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--c-muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-text p { margin: 0; }
.footer-powered a { color: inherit; }

/* ---------- block frame ---------- */
.blk { position: relative; background: var(--blk-bg, transparent); color: var(--blk-fg, inherit); }
.blk-inner { width: min(100% - 32px, var(--w)); margin-inline: auto; }
.w-narrow > .blk-inner { --w: 760px; }
.w-normal > .blk-inner { --w: 1040px; }
.w-wide > .blk-inner { --w: 1240px; }
.w-full > .blk-inner { width: 100%; padding-inline: 16px; --w: 100%; }
.pad-none { padding: 0; } .pad-sm { padding: clamp(20px, 3vw, 32px) 0; } .pad-md { padding: clamp(40px, 6vw, 72px) 0; }
.pad-lg { padding: clamp(60px, 8vw, 104px) 0; } .pad-xl { padding: clamp(80px, 11vw, 140px) 0; }
.al-center { text-align: center; } .al-right { text-align: right; }
.al-center .eyebrow { justify-content: center; }
.has-bg-img { background-image: linear-gradient(rgba(0,0,0,var(--blk-overlay,.35)), rgba(0,0,0,var(--blk-overlay,.35))), var(--blk-img); background-size: cover; background-position: center; }
.on-dark:not(.has-fg) { color: #f7f3ea; }
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em { color: color-mix(in srgb, var(--c-accent) 55%, #fff); }
.on-dark .muted, .on-dark .eyebrow { color: rgba(255,255,255,.75); }
.on-dark .card, .on-dark .feature.card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: inherit; }
.on-dark .badge { background: rgba(255,255,255,.12); color: inherit; }
.on-dark .link-arrow { color: inherit; }
.is-hidden { opacity: .35; outline: 2px dashed var(--c-muted); }
.img-placeholder { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--c-text) 6%, transparent) 0 12px, color-mix(in srgb, var(--c-text) 3%, transparent) 12px 24px); border-radius: var(--radius); min-height: 180px; width: 100%; }
.course-ph { min-height: 100%; background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); }

/* ---------- prose ---------- */
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose a { color: var(--c-primary); }
.on-dark .prose a { color: inherit; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--c-accent); font-style: italic; }
.prose table { border-collapse: collapse; width: 100%; } .prose td, .prose th { border: 1px solid var(--line); padding: .5em .7em; }
.prose code { background: var(--soft); padding: .1em .35em; border-radius: 6px; font-size: .9em; }

/* ---------- hero ---------- */
.hero-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-split.reverse .hero-text { order: 2; }
.hero-centered { text-align: center; max-width: 860px; margin: 0 auto; }
.hero-centered .eyebrow, .hero-centered .tag-list, .hero-centered .btn-row { justify-content: center; }
.hero-title { margin-bottom: .3em; }
.hero-sub { font-size: 1.1rem; color: var(--c-muted); margin: 0 0 1rem; }
.on-dark .hero-sub { color: rgba(255,255,255,.75); }
.hero-quote { font: italic 400 clamp(1.1rem, 1.6vw, 1.35rem)/1.5 var(--font-heading); max-width: 34em; margin: 1.2rem 0; opacity: .92; }
.hero-centered .hero-quote { margin-inline: auto; }
.tag-list { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { padding: .4em .9em; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: 999px; font-size: .85rem; }
.hero-split { grid-template-columns: 1.15fr .85fr; }
.hero-title.two-lines { font-size: clamp(2.7rem, 6.6vw, 5.7rem); line-height: .98; letter-spacing: -.035em; font-weight: 400; margin-bottom: .2em; }
.hero-title .ln { display: block; }
.hero-title.two-lines + .hero-sub { font: italic 400 clamp(1rem, 2vw, 1.7rem)/1.2 var(--font-heading); color: color-mix(in srgb, var(--c-accent) 60%, #fff); margin: 0 0 1.6rem; }
.hero .tag-list { margin: 0 0 2rem; }
.hero .tag-list li { font-weight: 500; font-size: .84rem; background: color-mix(in srgb, currentColor 4%, transparent); border-color: color-mix(in srgb, currentColor 22%, transparent); }
.hero .hero-quote { padding-left: 1.2em; border-left: 2px solid color-mix(in srgb, var(--c-accent) 60%, #fff); margin: 0 0 2.4rem; font-size: clamp(1.15rem, 2.1vw, 1.5rem); }
.hero-photos { position: relative; aspect-ratio: 4 / 5; max-width: 470px; width: 100%; justify-self: end; }
.ph-main { position: absolute; right: 0; top: 0; width: 78%; height: 86%; border-radius: 22px 120px 22px 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.ph-small { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--blk-bg, var(--c-bg)); }
.ph-main img, .ph-small img, .ph-main .img-placeholder, .ph-small .img-placeholder { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.ph-small img { object-position: 50% 62%; }
.hero-photos:not(:has(.ph-small)) .ph-main { width: 100%; height: 100%; }
.float-badge { position: absolute; z-index: 2; padding: .7em 1em; border-radius: 999px; background: #f6efe3; color: var(--c-primary); font: 600 .7rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; box-shadow: var(--shadow); white-space: nowrap; }
.fb-0 { left: 4%; bottom: 47%; } .fb-1 { right: 4%; top: 6%; background: color-mix(in srgb, var(--c-accent) 45%, #fff); } .fb-2 { left: 40%; top: -4%; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } .hero-split.reverse .hero-text { order: 0; } .hero-photos { justify-self: center; max-width: 400px; } }

/* ---------- section head ---------- */
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 820px; }
.al-center .section-head { margin-inline: auto; }
.section-head.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; max-width: none; }
.section-head h1, .section-head h2, .section-head h3 { margin: 0; }
.section-head .prose { margin-top: 1rem; }
.section-head.split .prose { margin: 0; }
.blk-heading .section-head { margin-bottom: 0; }
@media (max-width: 760px) { .section-head.split { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.cols-1 { grid-template-columns: 1fr; } .cols-2 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); } .cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) { .cols-3, .cols-4, .cols-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4, .cols-5 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.card-body h3 { margin: 0 0 .35rem; }
.card-body .prose { font-size: .95rem; }
.card-body .meta { margin-top: auto; padding-top: .8rem; font-weight: 600; color: var(--c-primary); font-size: .9rem; }
.on-dark .card-body .meta { color: inherit; }
.card-body .btn { align-self: flex-start; margin-top: .9rem; }
.card-img { overflow: hidden; background: var(--soft); }
.card-img img, .card-img .img-placeholder { width: 100%; height: 100%; object-fit: cover; border-radius: 0; min-height: 0; }
/* book covers: whole cover, no crop, lifted on hover */
.book-covers .card { background: none; border: 0; overflow: visible; border-radius: 0; }
.book-covers .card-img.ratio-cover { aspect-ratio: 4/5; display: flex; align-items: flex-end; justify-content: center; background: none; overflow: visible; }
.book-covers .card-img.ratio-cover img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px 10px 10px 4px; box-shadow: var(--shadow); transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }
.book-covers a.card:hover { transform: none; box-shadow: none; }
.book-covers a.card:hover .card-img img { transform: translateY(-8px) rotate(-1.2deg); box-shadow: var(--shadow-lg); }
.book-covers .card-body { padding: 22px 4px 0; }
.book-covers .kicker { letter-spacing: .16em; }
.cards-more .btn-row { justify-content: center; margin-top: 48px; }
.ratio-portrait { aspect-ratio: 3/4; } .ratio-square { aspect-ratio: 1; } .ratio-landscape { aspect-ratio: 16/10; } .ratio-video { aspect-ratio: 16/9; }
.feature { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: inherit; }
.feature.card { padding: 26px; }
.feat-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--c-primary) 10%, transparent); color: var(--c-primary); margin-bottom: .6rem; }
.on-dark .feat-icon { background: rgba(255,255,255,.12); color: inherit; }
.feat-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.feature .prose { color: var(--c-muted); font-size: .95rem; }
.on-dark .feature .prose { color: rgba(255,255,255,.75); }
.feature .link-arrow { margin-top: auto; padding-top: .6rem; align-self: flex-start; border: 0; }
.feature.card { background: var(--c-bg); }
.features-numbered .feature { position: relative; min-height: 300px; padding: 30px 26px 26px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.features-numbered a.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.features-numbered .feat-num { font: italic 400 2.6rem/1 var(--font-heading); color: color-mix(in srgb, var(--c-accent) 55%, #fff); margin-bottom: auto; }
.features-numbered .feat-icon { position: absolute; right: 22px; top: 26px; width: 44px; height: 44px; background: none; color: var(--c-primary); margin: 0; }
.features-numbered .feat-icon svg { width: 44px; height: 44px; stroke-width: 1.2; }
.features-numbered h3 { margin: 28px 0 10px; color: var(--c-primary); }
.features-numbered .link-arrow { color: var(--c-primary); font-size: .88rem; }
.on-dark .features-numbered h3, .on-dark .features-numbered .feat-icon, .on-dark .features-numbered .link-arrow { color: inherit; }
@media (max-width: 600px) { .features-numbered .feature { min-height: 0; } }

/* rows (numbered list) */
.row-list { display: flex; flex-direction: column; }
.row-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: start; padding: 28px 0; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); text-decoration: none; color: inherit; transition: padding .25s; }
.row-item:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
a.row-item:hover { padding-left: 10px; }
.row-index { font: italic 400 1.6rem/1 var(--font-heading); opacity: .6; }
.row-main h3 { margin: 0 0 .3rem; }
@media (max-width: 640px) { .row-item { grid-template-columns: 1fr; gap: 8px; } }

/* media + text */
.media-text.no-img { grid-template-columns: minmax(0, 760px); }
.media-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .media-text { grid-template-columns: 1fr; } .media-text.img-left .mt-collage { order: 2; } }
.mt-collage { position: relative; display: grid; gap: 14px; }
.mt-collage.n-1 { grid-template-columns: 1fr; }
.mt-collage.n-2 { grid-template-columns: 1fr 1fr; }
.mt-collage.n-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mt-collage.n-3 .mt-img-0 { grid-row: span 2; }
.mt-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 200px; }
.mt-img img, .mt-img .img-placeholder { width: 100%; height: 100%; object-fit: cover; min-height: 200px; border-radius: 0; }
.mt-collage.n-1 .mt-img { aspect-ratio: 4/3; }
.promise { margin: 1.6rem 0 1.4rem; padding: 0; border: 0; }
.promise p { font: italic 380 clamp(1.5rem, 3.1vw, 2.4rem)/1.25 var(--font-heading); color: var(--c-primary); margin: 0; letter-spacing: -.01em; }
.promise p::before { content: '“'; display: block; font-size: 2.6em; line-height: .6; color: color-mix(in srgb, var(--c-accent) 55%, #fff); margin-bottom: .1em; }
.on-dark .promise p { color: inherit; }
.promise cite { display: block; margin-top: 1rem; font: italic 400 1.15rem var(--font-heading); color: var(--c-muted); }
.mt-text .lead, .mt-text .prose { color: color-mix(in srgb, var(--c-text) 85%, transparent); }
.mt-text > .btn-row .btn-ghost { border: 0; border-bottom: 1.5px solid var(--c-accent); border-radius: 0; padding: 0 0 2px; }
.mt-text > .btn-row .btn-ghost::after { content: ' →'; }
.mt-collage.n-3 .mt-img { min-height: 220px; }

/* cta */
.cta { display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; }
.cta h2 { margin-bottom: .3em; }
.cta.centered { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.cta.centered .eyebrow, .cta.centered .btn-row { justify-content: center; }
.cta .btn-row { margin: 0; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* figures / gallery / video */
.figure { margin: 0 auto; }
.figure.size-small { max-width: 360px; } .figure.size-medium { max-width: 640px; } .figure.size-large { max-width: 1000px; } .figure.size-full { max-width: none; }
.figure img.rounded { border-radius: var(--radius); }
.al-center .figure img { margin-inline: auto; }
.gallery { display: grid; gap: 14px; }
.gallery figure { margin: 0; }
.gallery img, .gallery .img-placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); min-height: 0; }
.gallery figcaption { font-size: .85rem; color: var(--c-muted); margin-top: .4rem; }
.gallery-masonry { display: block; columns: 3 220px; column-gap: 14px; } .gallery-masonry figure { break-inside: avoid; margin-bottom: 14px; } .gallery-masonry img { aspect-ratio: auto; }
.gallery-collage figure:nth-child(3n+1) img { aspect-ratio: 4/5; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* quotes, stats, timeline, faq, contact */
.quotes { display: grid; gap: 24px; }
.big-quote { margin: 0; padding: 0; }
.big-quote .prose { font: italic 400 clamp(1.3rem, 2.4vw, 2rem)/1.4 var(--font-heading); }
.big-quote cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; } .big-quote cite span { font-weight: 400; color: var(--c-muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.stat strong { display: block; font: 500 clamp(2.2rem, 4vw, 3.2rem)/1 var(--font-heading); color: var(--c-primary); }
.on-dark .stat strong { color: inherit; }
.stat span { color: var(--c-muted); }
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.tl-item.is-filtered { display: none; }
.tl-date { font-weight: 600; color: var(--c-accent); }
.tl-body h3 { font-size: 1.15rem; margin-bottom: .3rem; } .tl-body h3 a { text-decoration: none; }
.tl-body .badge { margin-bottom: .4rem; }
.tl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
@media (max-width: 600px) { .tl-item { grid-template-columns: 1fr; gap: 6px; } }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--c-surface); padding: 0 20px; }
.faq-item summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; }
.faq-item summary::after { content: '+'; float: right; font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .prose { padding-bottom: 18px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-lines { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-lines li { display: flex; gap: 12px; align-items: center; font-size: 1.05rem; }
.contact-lines svg { width: 22px; height: 22px; color: var(--c-accent); flex: none; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.divider-dots { border-top: 3px dotted var(--line); }
.divider-wave { height: 14px; border: 0; background: radial-gradient(circle at 10px -4px, transparent 10px, var(--line) 11px, transparent 12px) 0 0 / 20px 14px repeat-x; }
.spacer-sm { height: 24px; } .spacer-md { height: 56px; } .spacer-lg { height: 96px; } .spacer-xl { height: 150px; }
.more { margin-top: 28px; }

/* blog & course pages */
.post-cover img { border-radius: var(--radius); width: 100%; margin: 1.6rem 0; }
.post-body { font-size: 1.06rem; }
.draft-flag { display: inline-block; background: #fde68a; color: #713f12; padding: .3em .8em; border-radius: 8px; font-size: .8rem; font-weight: 700; }
.course-detail { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.course-buy { position: sticky; top: 96px; }
.course-cover img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.price-big { font: 500 2rem/1 var(--font-heading); margin: .2rem 0 1rem; color: var(--c-primary); }
.outline { display: flex; flex-direction: column; gap: 10px; }
.week { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; background: var(--c-surface); }
.week summary { cursor: pointer; }
.week ul { margin: .6rem 0 0; padding-left: 1.2rem; }
.outline-item { padding: .2rem 0; }
.outline-item .chip { margin-left: .5rem; font-size: .7rem; padding: .1em .6em; }
@media (max-width: 900px) { .course-detail { grid-template-columns: 1fr; } .course-buy { position: static; } }
.post-list-rows { display: flex; flex-direction: column; gap: 16px; }
.post-list-rows .card { flex-direction: row; } .post-list-rows .card-img { width: 260px; flex: none; }
@media (max-width: 640px) { .post-list-rows .card { flex-direction: column; } .post-list-rows .card-img { width: auto; } }

/* plain pages (errors) */
body.plain { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.plain-box { max-width: 520px; text-align: center; }
.empty-page { text-align: center; color: var(--c-muted); border: 2px dashed var(--line); border-radius: var(--radius); padding: 60px 20px; }

/* ---------- entrance animations ---------- */
.anim-ready [data-anim]:not([data-anim="none"]) .blk-inner { opacity: 0; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.anim-ready [data-anim="fade-up"] .blk-inner { transform: translateY(28px); }
.anim-ready [data-anim="zoom-in"] .blk-inner { transform: scale(.96); }
.anim-ready [data-anim="slide-left"] .blk-inner { transform: translateX(40px); }
.anim-ready [data-anim="slide-right"] .blk-inner { transform: translateX(-40px); }
.anim-ready [data-anim].is-in .blk-inner { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .anim-ready [data-anim] .blk-inner { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---------- studio preview hooks ---------- */
.is-preview [data-block-id] { cursor: pointer; }
.is-preview [data-block-id]:hover { outline: 2px dashed color-mix(in srgb, #3b82f6 70%, transparent); outline-offset: -2px; }
.is-preview [data-block-id].lm-selected { outline: 3px solid #3b82f6; outline-offset: -3px; }
.lm-tag { position: absolute; top: 6px; left: 6px; z-index: 5; background: #3b82f6; color: #fff; font: 600 11px/1 system-ui; padding: 5px 8px; border-radius: 6px; pointer-events: none; }

/* newsletter */
.subscribe-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; max-width: 520px; }
.cta.subscribe { grid-template-columns: 1fr 1fr; }
.cta.subscribe.centered { grid-template-columns: 1fr; }
.cta.subscribe.centered .subscribe-form { justify-content: center; margin: 0 auto; }
.subscribe-form input { flex: 1 1 200px; min-width: 0; padding: .85em 1.1em; border-radius: var(--radius-btn); border: 1.5px solid var(--line, #d9d2c5); background: var(--c-surface, #fff); color: var(--c-text); font: inherit; }
.subscribe-form input:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.subscribe-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.subscribe-msg { flex-basis: 100%; margin: 0; font-size: .92rem; min-height: 1.2em; }
.subscribe-msg.ok { color: var(--c-primary); } .subscribe-msg.err { color: #b3261e; }
@media (max-width: 760px) { .cta.subscribe { grid-template-columns: 1fr; } }
body.plain { min-height: 100vh; display: grid; place-items: center; background: var(--c-bg); color: var(--c-text); font-family: var(--font-body); padding: 24px; }
.plain-box { max-width: 520px; text-align: center; background: var(--c-surface); border-radius: var(--radius); padding: 40px 32px; box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.08)); }
.plain-box h1 { font-family: var(--font-heading); margin: .2em 0 .4em; }
.plain-box form { margin: 20px 0; }

.collection-year { grid-column: 1 / -1; }
.collection-table { width: 100%; border-collapse: collapse; }
.collection-table :is(th,td) { text-align: left; padding: .75rem; border-bottom: 1px solid var(--muted); }
.collection-timeline .card { border-inline-start: 3px solid var(--accent); }
