/* All visual styling lives here. No framework or build step is required. */
:root {
  color-scheme: light;
  --white: #ffffff;
  --blue: #0038b8;
  --gold: #ffd700;
  --red: #ff0000;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--white); color: var(--blue); font-family: var(--sans); font-size: 1rem; line-height: 1.7; }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 5.1vw, 4.7rem); }
h2 { font-size: clamp(2.2rem, 3.8vw, 3.5rem); }
h3 { font-size: 1.25rem; line-height: 1.4; letter-spacing: -.025em; }
p + p { margin-top: 1rem; }
::selection { background: var(--gold); color: var(--blue); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
.container { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 1rem; padding: .75rem 1rem; background: var(--white); z-index: 10; }
.skip-link:focus { top: 1rem; }
.site-header { background: var(--white); border-bottom: 1px solid var(--blue); }
.header-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1rem; }
.brand { display: block; flex-shrink: 0; }
.logo { width: 570px; height: 192px; object-fit: contain; object-position: left center; }
nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 2.4rem; margin-left: auto; }
nav a { text-decoration: none; font-size: 1.08rem; font-weight: 650; }
nav a:hover, .text-link:hover { color: var(--red); text-decoration: underline; }
.nav-contact { padding-block: .3rem; }
.hero { position: relative; display: block; padding-block: 8rem 5rem; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 650; font-size: .73rem; color: var(--red); margin-bottom: 1.2rem; }
.hero-copy > .eyebrow { position: absolute; top: 2.4rem; left: 50%; width: max-content; max-width: 100%; margin: 0; text-align: center; font-size: 1.9rem; line-height: 1.4; transform: translateX(-50%); }
h1 em { color: var(--red); font-weight: 400; }
.hero-description { color: var(--blue); max-width: 46rem; font-size: 1.2rem; margin-top: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem; padding: .9rem 1.35rem; border: 1px solid var(--red); border-radius: 6px; color: var(--white); background: var(--red); font-size: .95rem; font-weight: 600; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.button:hover { background: var(--blue); border-color: var(--blue); }
.text-link { font-size: .92rem; font-weight: 600; text-decoration: none; }
.hero-note { font-size: .82rem; color: var(--blue); margin-top: 1.8rem; }
.lesson-card { background: var(--white); border: 1px solid var(--blue); border-top: 8px solid var(--gold); border-radius: 14px; padding: 2rem; box-shadow: 12px 14px 0 var(--gold); }
.card-top { display: flex; align-items: center; gap: .6rem; font-size: .73rem; color: var(--blue); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.math-expression { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.2; margin-block: 2rem; letter-spacing: -.04em; }
.math-expression span { display: block; font-style: italic; color: var(--red); }
.learning-steps { list-style: none; padding: 0; margin: 0; }
.learning-steps li { display: flex; gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--blue); }
.step-number { font-size: .72rem; color: var(--red); padding-top: .2rem; }
.learning-steps strong { font-size: .9rem; font-weight: 650; }
.learning-steps p { font-size: .83rem; color: var(--blue); line-height: 1.6; margin-top: .25rem; }
.card-footer { margin-top: 1rem; font-size: .72rem; color: var(--blue); }
.section-divider { border-top: 1px solid var(--blue); }
.section { padding-block: 5rem; }
.section-heading { max-width: 650px; margin-bottom: 2.5rem; }
.section-heading-wide { max-width: 100%; }
#subjects-title { max-width: 46rem; margin-inline: auto; font-family: var(--sans); font-size: 1.2rem; font-weight: 400; line-height: 1.65; letter-spacing: 0; text-align: center; text-wrap: pretty; }
.large-section-label { width: 100%; text-align: center; font-size: 1.9rem; line-height: 1.4; }
.philosophy-label { text-transform: none; }
.philosophy-copy { max-width: 46rem; margin-inline: auto; }
.philosophy-copy p + p { margin-top: 1.25rem; }
.section-heading > p:last-child:not(.eyebrow) { color: var(--blue); margin-top: 1.2rem; }
.subject-grid { display: grid; grid-template-columns: minmax(0, 52rem); justify-content: center; gap: 3.5rem; }
.subject-section { border-top: 1px solid var(--blue); padding-top: 2rem; text-align: center; }
.subject-section h3 { font-size: clamp(1.8rem, 2.5vw, 2.45rem); }
.personalized-learning h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.subject-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: center; align-items: center; gap: clamp(1.1rem, 4vw, 3rem); width: min(100%, 27rem); margin: 1.5rem auto 1.7rem; }
.subject-media img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.subject-section > p { color: var(--blue); font-size: 1.05rem; margin: 0 auto; max-width: 38rem; }
.subject-section > .topic-invitation { margin-top: 1.25rem; }
.topic-list { list-style: none; padding: 0; margin: 1.5rem auto 0; max-width: 38rem; text-align: left; }
.topic-list li { border-top: 1px solid var(--blue); padding-block: .55rem; font-size: .88rem; }
.offering-list li { position: relative; padding-left: 1.25rem; }
.offering-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .38rem; height: .38rem; border-radius: 50%; background: var(--red); }
.offering-list strong { display: block; font-size: .95rem; }
.offering-list span { display: block; margin-top: .15rem; line-height: 1.55; }
.course-support { border-top: 1px solid var(--blue); border-bottom: 1px solid var(--blue); padding-block: .75rem; margin: 1.2rem auto 0; max-width: 38rem; font-size: .92rem; text-align: left; }
.video-shell { width: min(760px, 100%); aspect-ratio: 16 / 9; margin-top: 2.4rem; overflow: hidden; background: var(--white); }
.video-shell iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-note { max-width: 40rem; color: var(--blue); font-size: .95rem; margin-top: 1rem; }
.about-section { background: var(--white); border-block: 1px solid var(--blue); padding-block: 5rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; column-gap: 5rem; row-gap: 2.5rem; }
.about-label { grid-column: 1 / -1; margin-bottom: .25rem; }
.about-title { grid-column: 1 / -1; justify-self: center; text-align: center; font-size: clamp(2.4rem, 4.1vw, 3.75rem); }
.about-copy { grid-column: 1 / -1; justify-self: center; max-width: 46rem; }
.about-photo { grid-column: 1 / -1; justify-self: center; width: min(100%, 16rem); height: auto; border-radius: 8px; }
.about-copy p { color: var(--blue); }
.bio-link { text-decoration-thickness: 1px; text-decoration-color: currentColor; }
.bio-link:hover, .bio-link:focus-visible { color: var(--red); }
.about-link { grid-column: 1 / -1; justify-self: center; text-align: center; }
.approach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.approach-grid article { border-top: 1px solid var(--blue); padding-top: 1.5rem; }
.small-number { color: var(--red); font-size: .78rem; }
.approach-grid h3 { margin-top: 1rem; }
.approach-grid p { font-size: .93rem; color: var(--blue); margin-top: .7rem; }
.contact-section { background: var(--blue); color: var(--white); padding-block: 5rem; }
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 5rem; align-items: center; }
.contact-section .eyebrow { color: var(--gold); }
.contact-grid > div:not(.contact-card) > p:last-child { color: var(--white); max-width: 29rem; margin-top: 1.5rem; }
.contact-card { background: var(--white); color: var(--blue); border: 1px solid var(--gold); border-top: 8px solid var(--gold); border-radius: 10px; padding: 2rem; }
.contact-card p, .contact-card li { color: var(--blue); font-size: .92rem; }
.contact-card p { margin-top: .75rem; }
.contact-card ul { padding-left: 1.2rem; margin-block: 1rem 1.5rem; }
.contact-card .button { background: var(--red); color: var(--white); }
.contact-card .button:hover { background: var(--blue); border-color: var(--blue); }
.site-footer { padding-block: 1.7rem; }
.email-address { overflow-wrap: anywhere; }
.footer-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2.6rem; }
.footer-inner p, .footer-inner a { color: var(--blue); font-size: 1.2rem; margin: 0; }
@media (max-width: 900px) {
  .hero { gap: 2.5rem; padding-block: 4rem; }
  .hero-copy > .eyebrow { position: static; width: 100%; max-width: 100%; transform: none; letter-spacing: 0; }
  .about-grid, .contact-grid { gap: 2.5rem; }
  nav { gap: 1rem; }
  .approach-grid { gap: 1.5rem; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 2.5rem); }
  .header-inner { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .brand { max-width: 100%; }
  .logo { width: min(425px, 100%); height: auto; }
  nav { width: 100%; gap: .5rem 1.2rem; }
  nav a { font-size: .8rem; padding-block: .4rem; }
  .hero, .about-grid, .contact-grid, .subject-grid, .approach-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 2.25rem 3rem; gap: 2.8rem; }
  .lesson-card { box-shadow: 6px 8px 0 var(--gold); }
  .section, .about-section, .contact-section { padding-block: 3.5rem; }
  .about-grid, .contact-grid { gap: 2rem; }
  .subject-grid { gap: 2.5rem; }
  .contact-card { padding: 1.5rem; }
  .footer-inner { gap: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
