@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --paper: #fffdf4;
  --ink: #22263a;
  --muted: #4d556d;
  --rule: #dedbd8;
  --forest: #16543e;
  --navy: #203c76;
  --purple: #612b91;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
main { flex: 1; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: .98; }
h1 { font-size: clamp(4.15rem, 7.7vw, 8.5rem); letter-spacing: -.036em; }
h1 em { color: var(--purple); }
h2, .page-title { font-size: clamp(3.1rem, 5.4vw, 5.6rem); letter-spacing: -.024em; }
.lesson h2 { font-size: clamp(2rem, 3vw, 3rem); letter-spacing: -.015em; line-height: 1; }
section[id], article[id], main { scroll-margin-top: 24px; }
.shell { width: min(1320px, 89%); margin-inline: auto; }
.skip { position: absolute; z-index: 2; left: 1rem; top: -100px; padding: .7rem 1rem; background: white; }
.skip:focus { top: 1rem; }
.header { min-height: 87px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-grid; width: 54px; aspect-ratio: 1; flex: 0 0 auto; place-items: center; border-radius: 50%; }
.brand:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.brand-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d9e3ff url('/tck-classroom-hero.webp') no-repeat;
  background-size: 430% auto;
  box-shadow: inset 0 0 0 2px #fffdf4;
  transition: transform .2s ease;
}
.brand:hover .brand-avatar, .brand:focus-visible .brand-avatar { transform: translateY(-3px) rotate(-7deg); }
.avatar-home { background-position: 51.6% 54.2%; }
.avatar-lessons { background-position: 30.7% 18.7%; }
.avatar-videos { background-position: 79.6% 21.2%; }
.avatar-principles { background-position: 83.8% 70.3%; }
.avatar-about { background-position: 16.2% 71.7%; }
.avatar-shop { background-image: url('/tck-classroom-banner.webp'); background-size: 631% auto; background-position: 17.1% 2.5%; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(12px, 2.4vw, 36px); font-size: .88rem; font-weight: 700; }
nav a { text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; }
.shop-nav { border: 1px solid var(--rule); border-radius: 30px; padding: .44rem .9rem; }
.eyebrow { color: var(--purple); font-size: .73rem; font-weight: 700; letter-spacing: .125em; line-height: 1.3; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: 1fr .92fr; gap: 5.5%; align-items: center; padding-block: clamp(50px, 6.5vw, 104px); }
.hero h1 { margin: 16px 0 23px; max-width: 8.5ch; }
.lede { max-width: 45ch; font-size: clamp(1rem, 1.35vw, 1.22rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 1.15rem; align-items: center; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; background: var(--forest); color: #fbfaff; padding: .76rem 1.15rem; border: 1px solid var(--forest); border-radius: 4px; font-weight: 700; font-size: .88rem; text-decoration: none; }
.button:hover { background: #216b50; }
.text-link { font-size: .88rem; font-weight: 700; }
.hero-art { display: block; width: 100%; min-width: 0; height: auto; border-radius: 48% 48% 4px 4px / 35% 35% 4px 4px; }
.lessons { padding: clamp(46px, 6vw, 92px) 0; }
.section-head { margin-bottom: 34px; display: grid; grid-template-columns: 1fr minmax(260px, .58fr); align-items: end; gap: 20px; }
.section-head p { max-width: 41ch; color: var(--muted); }
.lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; align-items: start; }
.lesson { padding: clamp(18px, 2.3vw, 34px); border: 1px solid #25273824; border-radius: 4px; }
.sage { background: #d9f2e4; }
.blue { background: #dfedff; }
.lavender { background: #f0e1ff; }
.lesson .eyebrow { display: flex; align-items: baseline; justify-content: space-between; gap: .35rem; min-height: 25px; }
.lesson .eyebrow span { letter-spacing: .045em; white-space: nowrap; color: var(--muted); }
.lesson h2 { margin: 12px 0; }
.lesson > p:not(.eyebrow) { min-height: 3.25em; }
.lesson > .lesson-grade { min-height: 0; margin-top: .75rem; color: var(--muted); font-size: .86rem; font-weight: 700; }
#two-maps summary + p, #two-maps details > p + p { margin-top: .85rem; }
details { font-size: .93rem; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.25em; font-weight: 400; line-height: 1; }
details[open] > summary::after { content: '−'; }
.lesson details { margin-top: 17px; padding-top: 12px; border-top: 1px solid #25273838; }
.lesson ol { padding-left: 1.25em; }
.lesson li + li { margin-top: .6rem; }
.teacher, .exit { margin-top: .65rem; }
.video-band { background: var(--navy); color: #fcfaff; padding: clamp(55px, 7vw, 106px) 0; }
.video-group + .video-group { margin-top: clamp(28px, 4vw, 56px); }
.video-group > h2 { margin: 0 0 16px; font-size: clamp(1.55rem, 2.3vw, 2.1rem); }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.video-grid article > p { margin-top: 7px; color: #dbedeb; font-size: .93rem; }
.video-link { display: block; text-decoration: none; }
.video-link:hover h3, .video-link:focus-visible h3 { text-decoration: underline; }
.video-link:focus-visible { outline: 2px solid #fcfaff; outline-offset: 4px; }
.video-cover { position: relative; isolation: isolate; display: grid; place-items: center; aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; background: #425c80; }
.video-cover img { position: absolute; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.video-link:hover img { transform: scale(1.035); }
.play { z-index: 1; display: grid; place-items: center; width: 36px; aspect-ratio: 1; padding-left: 2px; border-radius: 50%; color: #173f30; background: #fcfaff; box-shadow: 0 2px 12px #20253955; font-size: .82rem; }
.video-grid h3 { margin: 10px 0 0; font: 400 clamp(1.15rem, 1.7vw, 1.5rem)/1.15 var(--serif); }
.out-arrow { display: inline-block; font-size: .8rem; width: .66em; height: .66em; border-top: 1px solid; border-right: 1px solid; position: relative; vertical-align: .14em; }
.out-arrow::before { content: ""; position: absolute; width: .83em; border-top: 1px solid; transform: rotate(-45deg); transform-origin: right; right: 0; top: 0; }
.approach, .about { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
.approach { padding-block: clamp(60px, 8.5vw, 125px); }
.approach .page-title, .about .page-title, .shop .page-title { margin: 12px 0 18px; }
.approach > div > p:not(.eyebrow), .about p:not(.eyebrow) { max-width: 49ch; color: var(--muted); }
.principles details { border-top: 1px solid var(--rule); padding: 15px 0; }
.principles details:last-child { border-bottom: 1px solid var(--rule); }
.principles summary { font-size: clamp(1rem, 1.5vw, 1.2rem); }
.principles p { margin-top: .55rem; max-width: 55ch; color: var(--muted); }
.about-band { background: #fff3c2; }
.about { padding-block: clamp(48px, 7vw, 95px) clamp(26px, 4vw, 48px); align-items: center; }
.about p + p { margin-top: 1rem; }
.about-contact { margin-top: 1.4rem; padding-top: 1.15rem; border-top: 1px solid var(--rule); }
.about-contact h2 { margin-bottom: .5rem; font-size: 1.9rem; }
.about-contact .text-link { display: inline-block; margin-top: .6rem; color: var(--forest); }
.about-photo {
  --portrait-size: clamp(116px, 14vw, 160px);
  display: block;
  width: var(--portrait-size);
  height: var(--portrait-size);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
}
.about-banner { padding-bottom: clamp(40px, 6vw, 78px); }
.about-banner img { display: block; width: min(100%, 720px); height: auto; margin-inline: auto; border-radius: 4px; }
.shop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: 58px; }
.shop .page-title { margin-bottom: 0; }
.footer { border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 24px; color: var(--muted); font-size: .84rem; }
.footer .brand { width: 44px; }
.footer-legal { gap: 8px 16px; }
.legal-page { max-width: 760px; padding-block: clamp(42px, 6vw, 80px); }
.legal-page .page-title { margin-bottom: 25px; }
.legal-page h2 { margin-top: 1.4em; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.legal-page h3 { margin-top: 1.35em; font-size: 1.4rem; }
.legal-page p, .legal-page address { margin-top: .75rem; }
.legal-page address { font-style: normal; }
.legal-page a { color: var(--forest); overflow-wrap: anywhere; }
.privacy-translation { margin-top: 2rem; border-top: 1px solid var(--rule); }

@media (max-width: 960px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson > p:not(.eyebrow) { min-height: 0; }
}
@media (max-width: 720px) {
  .header { min-height: auto; padding-block: 17px; align-items: flex-start; flex-direction: column; gap: 13px; }
  nav { gap: 10px 17px; }
  .shop-nav { padding: .18rem .6rem; }
  .hero, .approach, .about, .section-head { grid-template-columns: 1fr; gap: 20px; }
  .hero { padding-block: 45px; gap: 34px; }
  .hero h1 { font-size: clamp(4rem, 12vw, 6rem); max-width: 10ch; }
  .section-head { gap: 12px; }
  .shop { padding-block: 44px; }
}
@media (max-width: 500px) {
  .lesson-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .video-cover img, .brand-avatar { transition: none; }
  .brand:hover .brand-avatar, .brand:focus-visible .brand-avatar { transform: none; }
}

.lesson > .lesson-resources { min-height: 0; margin-top: .6rem; font-size: .93rem; }

@media (max-width: 385px) {
  .video-grid { grid-template-columns: 1fr; }
}
