/* Break Through Education — shared styles for About, Blog, posts and 404 */
:root {
  --bg: #FBFAFF; --ink: #17153B; --ink-2: #4E4B70;
  --violet: #5B4BFF; --violet-deep: #3A2DC9; --sun: #FFC93C;
  --mint: #7EE8C4; --pink: #FF8FAB; --sky: #5CC8FF; --orange: #FF8A4C;
  --lilac: #ECE9FF; --line: #E6E3F5;
  --display: Fredoka, Nunito, system-ui, sans-serif;
  --body: Nunito, system-ui, sans-serif;
  --stroke: 2.5px solid var(--ink);
  --gutter: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--violet-deep); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font: 600 16px var(--display); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { border-bottom: var(--stroke); background: var(--bg); position: relative; z-index: 5; }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 46px; height: 46px; border-radius: 14px; background: var(--violet); color: #fff; display: grid; place-items: center; font: 700 21px/1 var(--display); border: var(--stroke); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-8deg); flex: none; }
.logo-text { line-height: 1; }
.logo-text b { display: block; font: 700 22px/1 var(--display); }
.logo-text span { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink); font: 500 17px var(--display); padding: 9px 14px; border-radius: 12px; transition: background-color .2s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.nav a:not(.btn):hover { background: var(--lilac); transform: rotate(-3deg); }
.nav a[aria-current="page"] { background: var(--lilac); }
.nav .btn { margin-left: 10px; padding: 12px 18px; font-size: 16px; box-shadow: 0 4px 0 var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: 18px; font: 600 18px/1 var(--display); text-decoration: none; color: #fff; background: var(--violet); border: var(--stroke); box-shadow: 0 6px 0 var(--ink); cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.btn:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 9px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn-light, .btn-light:hover { background: #fff; color: var(--ink); }
.btn-sun, .btn-sun:hover { background: var(--sun); color: var(--ink); }
.btn svg, .icon { width: 20px; height: 20px; flex: none; }

/* Section bits */
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/1 var(--display); color: var(--ink); background: var(--sun); border: var(--stroke); border-radius: 999px; padding: 8px 16px 8px 12px; margin-bottom: 22px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg); }
.kicker svg { width: 18px; height: 18px; }
.pad { padding: clamp(72px, 10vw, 130px) 0; }
.section-title { font-size: clamp(36px, 5vw, 60px); font-weight: 700; }
.section-sub { font-size: 20px; color: var(--ink-2); margin-top: 18px; max-width: 56ch; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* Inner page hero */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 70px); background-color: var(--bg); background-image: linear-gradient(rgba(91,75,255,.07) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(91,75,255,.07) 1.5px, transparent 1.5px); background-size: 36px 36px; border-bottom: var(--stroke); }
.page-hero h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 700; max-width: 16ch; }
.page-hero .lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 56ch; margin-top: 24px; }
.doodle { position: absolute; font: 700 56px/1 var(--display); pointer-events: none; }
.breadcrumb ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font: 700 15px var(--body); color: var(--ink-2); }
.breadcrumb li { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.breadcrumb li + li::before { content: "/"; color: var(--pink); }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb li[aria-current] { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Cards */
.card { background: #fff; border: var(--stroke); border-radius: 28px; box-shadow: 6px 6px 0 var(--ink); }
.lift { transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s; }
.lift:hover { transform: translateY(-10px) rotate(-1deg); box-shadow: 10px 14px 0 var(--ink); }
.zoom { overflow: hidden; }
.zoom img { transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.zoom:hover img, .lift:hover .zoom img { transform: scale(1.07); }

/* Blog cards */
.post-grid { display: flex; flex-wrap: wrap; gap: 28px; }
.post-card { flex: 1 1 300px; min-width: 0; max-width: 100%; overflow: hidden; border-radius: 24px; }
.post-card > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.post-card .zoom { display: block; aspect-ratio: 16 / 9; border-bottom: var(--stroke); background: var(--lilac); }
.post-card img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h2, .post-card h3 { font: 600 22px/1.2 var(--display); }
.post-excerpt { color: var(--ink-2); font-size: 16px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 600 16px var(--display); color: var(--violet-deep); }
.more svg { width: 18px; height: 18px; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.post-card:hover .more svg { transform: translateX(5px); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 700 14px var(--body); color: var(--ink-2); margin: 0; }
.post-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta svg { width: 16px; height: 16px; color: var(--violet); }
.featured { display: flex; flex-wrap: wrap; overflow: hidden; margin-bottom: 40px; border-radius: 32px; text-decoration: none; color: var(--ink); }
.featured .zoom { flex: 1.2 1 420px; min-height: 300px; border-right: var(--stroke); }
.featured .zoom img { width: 100%; height: 100%; object-fit: cover; }
.featured .post-body { flex: 1 1 360px; padding: clamp(24px, 4vw, 48px); justify-content: center; }
.featured h2 { font: 700 clamp(28px, 3.4vw, 42px)/1.1 var(--display); }
@media (max-width: 760px) { .featured .zoom { border-right: 0; border-bottom: var(--stroke); } }

/* Single post */
.post-hero { padding-bottom: clamp(90px, 10vw, 130px); }
.post-hero h1 { font-size: clamp(36px, 5vw, 62px); max-width: 22ch; margin-top: 12px; }
.post-wrap { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }
.post-cover { margin: clamp(-90px, -8vw, -60px) 0 0; position: relative; z-index: 2; border: 3px solid var(--ink); border-radius: 28px; overflow: hidden; box-shadow: 8px 8px 0 var(--violet); aspect-ratio: 16 / 9; background: var(--lilac); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 720px; margin: clamp(40px, 6vw, 64px) auto 0; font-size: 19px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(28px, 3.2vw, 36px); margin-top: 1.8em; line-height: 1.15; }
.prose h3 { font-size: 24px; margin-top: 1.5em; line-height: 1.2; }
.prose a { color: var(--violet-deep); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose strong { font-weight: 800; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li p { margin: 0; }
.prose li::marker { color: var(--violet); font-weight: 800; }
.prose img { width: 100%; height: auto; border-radius: 20px; border: var(--stroke); margin: 1.6em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 2px solid var(--ink) !important; padding: 10px 12px !important; text-align: left; vertical-align: top; }
.prose th { background: var(--sun) !important; }
.prose td p, .prose th p { margin: 0; }
.post-cta { margin-top: clamp(48px, 7vw, 72px); background: var(--lilac); border: var(--stroke); border-radius: 28px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; box-shadow: 6px 6px 0 var(--ink); }
.post-cta .ic { width: 58px; height: 58px; border-radius: 18px; background: var(--sun); border: var(--stroke); display: grid; place-items: center; flex: none; }
.post-cta .ic svg { width: 28px; height: 28px; }
.post-cta > div { flex: 1 1 280px; }
.post-cta h2 { font-size: 26px; margin-bottom: 6px; }
.post-cta p { color: var(--ink-2); }
.post-nav { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 40px; }
.post-nav > * { flex: 1 1 260px; }
.post-nav a { display: grid; gap: 6px; padding: 18px 20px; border: 2px solid var(--ink); border-radius: 20px; text-decoration: none; color: var(--ink); background: #fff; transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s; }
.post-nav a:hover { transform: translateY(-4px); box-shadow: 4px 4px 0 var(--ink); }
.post-nav span { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--display); color: var(--violet-deep); }
.post-nav svg { width: 16px; height: 16px; }
.post-nav b { font: 600 18px/1.25 var(--display); }
.post-nav .next { text-align: right; justify-items: end; }

/* About */
.story { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 96px); }
.story-visual { flex: 1 1 420px; min-width: 0; position: relative; aspect-ratio: 1 / 1.05; max-width: 560px; }
.story-visual .main { position: absolute; top: 0; left: 0; width: 82%; height: 84%; border-radius: 36px; border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--mint); overflow: hidden; background: var(--lilac); }
.story-visual .small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: 28px; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--pink); overflow: hidden; transform: rotate(4deg); background: var(--lilac); }
.story-visual img { width: 100%; height: 100%; object-fit: cover; }
.sticker { position: absolute; top: 6%; right: 2%; background: var(--sun); border: var(--stroke); border-radius: 22px; padding: 14px 18px; font: 700 19px/1.15 var(--display); max-width: 180px; box-shadow: 4px 4px 0 var(--ink); }
.story-copy { flex: 1 1 440px; min-width: 0; }
.story-copy .lead { font-size: 22px; font-weight: 700; line-height: 1.45; margin-top: 22px; }
.story-copy p + p { margin-top: 16px; }
.story-copy p:not(.lead) { color: var(--ink-2); }
.founder { display: flex; align-items: center; gap: 16px; margin: 28px 0; padding: 16px 20px; background: #fff; border-radius: 20px; border: var(--stroke); box-shadow: 4px 4px 0 var(--ink); }
.founder .av { width: 56px; height: 56px; border-radius: 50%; background: var(--violet); color: #fff; border: 2px solid var(--ink); display: grid; place-items: center; font: 700 20px var(--display); flex: none; }
.founder b { display: block; font: 600 19px var(--display); }
.founder small { font-size: 15px; color: var(--ink-2); font-weight: 700; }
.values { display: flex; flex-wrap: wrap; gap: 22px; margin-top: clamp(40px, 5vw, 60px); }
.value { flex: 1 1 230px; min-width: 0; padding: 28px 24px; }
.value .ic { width: 54px; height: 54px; border-radius: 16px; border: var(--stroke); display: grid; place-items: center; margin-bottom: 16px; }
.value .ic svg { width: 26px; height: 26px; }
.value h3 { font-size: 23px; margin-bottom: 8px; }
.value p { color: var(--ink-2); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.chips li { border-radius: 999px; padding: 9px 18px; font: 600 16px var(--display); background: #fff; border: 2px solid var(--ink); transition: transform .35s cubic-bezier(.34,1.56,.64,1), background-color .25s; }
.chips li:hover { transform: rotate(-5deg) scale(1.08); background: var(--sun); }
.photo-strip { overflow: hidden; padding: 16px 0 24px; }
.photo-track { display: flex; gap: 24px; width: max-content; padding-left: 24px; animation: bt-marquee 60s linear infinite; }
.photo-track:hover { animation-play-state: paused; }
.photo-track figure { margin: 0; flex: none; width: 300px; height: 225px; border-radius: 24px; border: var(--stroke); box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.photo-track figure:nth-child(odd) { transform: rotate(-2deg); }
.photo-track figure:nth-child(even) { transform: rotate(2deg); }
.photo-track img { width: 100%; height: 100%; object-fit: cover; }
.quotes { background: var(--violet); color: #fff; border: var(--stroke); border-radius: 48px; padding: clamp(56px, 8vw, 100px) 0; margin: 0 clamp(8px, 1.5vw, 20px); }
.quotes .kicker { background: #fff; }
.quote-grid { display: flex; flex-wrap: wrap; gap: 22px; }
.quote-card { flex: 1 1 280px; min-width: 0; margin: 0; background: #fff; color: var(--ink); border: var(--stroke); border-radius: 24px; padding: 26px; box-shadow: 6px 6px 0 var(--ink); }
.quote-card blockquote { margin: 0 0 20px; font: 600 21px/1.3 var(--display); }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); font-weight: 700; }
.quote-card figcaption b { display: block; color: var(--ink); font: 600 17px var(--display); }
.quote-card .av { width: 44px; height: 44px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); display: grid; place-items: center; font: 700 18px var(--display); color: var(--ink); flex: none; }
.stars { display: flex; gap: 3px; margin-bottom: 14px; }
.stars svg { width: 20px; height: 20px; fill: var(--sun); stroke: var(--ink); stroke-width: 1.5; }
.area { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 72px); }
.area > div { flex: 1 1 420px; min-width: 0; }
.towns { flex: 1 1 420px; min-width: 0; list-style: none; margin: 0; padding: 28px; display: flex; flex-wrap: wrap; gap: 10px; background: var(--lilac); border: var(--stroke); border-radius: 32px; box-shadow: 6px 6px 0 var(--ink); }
.towns li { padding: 10px 18px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); font: 600 17px var(--display); }
.towns li.home { background: var(--violet); color: #fff; }

/* CTA + footer */
.cta-sec { padding: 0 clamp(8px, 1.5vw, 20px) clamp(60px, 8vw, 100px); }
.cta-band { position: relative; overflow: hidden; max-width: 1280px; margin: 0 auto; background: var(--orange); border: var(--stroke); border-radius: 40px; box-shadow: 8px 8px 0 var(--ink); padding: clamp(36px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; }
.cta-band p { font-size: 20px; margin-top: 14px; max-width: 44ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.site-footer { border-top: var(--stroke); background: #fff; padding: 56px 0 28px; overflow: hidden; }
.foot-top { display: flex; flex-wrap: wrap; gap: 40px; }
.foot-top > * { flex: 1 1 200px; min-width: 0; }
.foot-top > :first-child { flex: 1.5 1 260px; }
.foot-top p { color: var(--ink-2); font-size: 16px; max-width: 34ch; margin-top: 18px; }
.foot-h { font: 600 18px var(--display); margin-bottom: 14px; }
.foot-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 16px; line-height: 1.35; }
.foot-top a { color: var(--ink); text-decoration: none; }
.foot-top a:hover { color: var(--violet-deep); text-decoration: underline; }
.giant { margin-top: 44px; font: 700 clamp(56px, 13vw, 190px)/0.85 var(--display); letter-spacing: -0.03em; color: var(--lilac); white-space: nowrap; -webkit-text-stroke: 2.5px var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 2px dashed var(--line); font-size: 14px; color: var(--ink-2); font-weight: 700; }

/* Motion */
@keyframes bt-rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes bt-bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(var(--r, 0deg)); } }
@keyframes bt-marquee { to { transform: translateX(-50%); } }
.bt-rise { animation: bt-rise .9s cubic-bezier(.2,.8,.2,1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .32s; }
.bt-bob { animation: bt-bob 5s ease-in-out infinite; }
@supports (animation-timeline: view()) {
  .reveal { animation: bt-rise linear both; animation-timeline: view(); animation-range: entry 5% entry 55%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
