:root {
  color-scheme: light;
  --ink: #242018;
  --muted: #625a4b;
  --paper: #f9f7ee;
  --olive: #e8eadb;
  --purple: #412146;
  --lime: #e7f982;
  --line: #d6d0be;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
button, select { font: inherit; }
button, select, summary { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible, input:focus-visible + span {
  outline: 2px solid #8663a2; outline-offset: 4px;
}
.wrap { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.sr-only, input[type="radio"] {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.preview-strip { background: var(--purple); color: white; text-align: center; padding: .48rem 1rem; font-size: .875rem; }
.site-header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header { min-height: 5.1rem; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; gap: .65rem; align-items: center; font: bold 1.28rem/1.1 var(--serif); text-decoration: none; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 2.1rem; aspect-ratio: 1; border-radius: 50%; color: var(--lime); background: var(--purple); font-size: 1.25rem; }
nav { display: flex; gap: clamp(.75rem,3vw,2rem); }
nav a { text-decoration: none; font-weight: 650; font-size: .95rem; }
nav a:hover { text-decoration: underline; }
.language { position: relative; }
.language::after { content: ""; width: .4rem; height: .4rem; border-right: 2px solid; border-bottom: 2px solid; position: absolute; right: .9rem; top: 43%; transform: rotate(45deg); pointer-events: none; }
select { appearance: none; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 2rem; padding: .5rem 2.05rem .5rem .85rem; font-size: .9rem; }
.hero { display: grid; grid-template-columns: 1fr .95fr; gap: clamp(1.6rem,5vw,5.7rem); align-items: center; padding-block: clamp(2.5rem,7vw,6.4rem); }
.eyebrow { margin: 0 0 .85rem; font-size: .875rem; font-weight: 750; letter-spacing: .085em; text-transform: uppercase; }
h1, h2, h3, .phrase { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -.045em; line-height: .99; }
h1 { font-size: clamp(3.45rem,6.5vw,6.6rem); max-width: 10ch; }
h2 { font-size: clamp(2.65rem,5vw,4.5rem); }
h3 { font-size: clamp(2.1rem,4vw,3.4rem); }
p { margin: 0; }
.intro { color: var(--muted); font-size: clamp(1rem,1.5vw,1.17rem); max-width: 41ch; margin-block: 1.5rem 1.8rem; }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.9rem; border: 1px solid transparent; border-radius: 2rem; padding: .65rem 1rem; font-size: .9rem; line-height: 1.2; text-align: center; font-weight: 730; text-decoration: none; transition: background-color .18s, color .18s, border-color .18s; }
.primary { background: var(--purple); color: white; }
.primary:hover { background: #633766; }
.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.quiet:hover { background: var(--olive); border-color: #b1b49e; }
.hero-art { position: relative; overflow: hidden; min-height: clamp(21rem,38vw,29rem); border-radius: 1.2rem; background: #38203c; color: #f8edd3; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 56% 46%, #704a73, transparent 65%), linear-gradient(135deg,#422049,#281b2b); }
.art-label, .art-caption { position: absolute; inset-inline: 6%; font-size: .78rem; letter-spacing: .11em; font-weight: 700; }
.art-label { top: 7%; display: flex; justify-content: space-between; }
.art-label span, .art-caption span { color: var(--lime); }
.art-caption { bottom: 7%; text-align: center; }
.orbit { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border: 1px solid #dec0eb4a; border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-outer { width: 85%; }
.orbit-inner { width: 66%; }
.note { position: absolute; width: 54%; padding: 5.25%; border-radius: .85rem; box-shadow: 0 .8rem 2.2rem #21132153; }
.note span { display: block; font-size: clamp(.74rem,1.3vw,.9rem); font-weight: 700; margin-bottom: .55rem; }
.note b { display: block; font: 500 clamp(1.7rem,4.1vw,3.3rem)/1 var(--serif); letter-spacing: -.05em; white-space: nowrap; }
.note-back { top: 27%; left: 40%; transform: rotate(12deg); background: #f3bc98; color: #472749; }
.note-back i { display: inline-block; width: .5rem; height: .5rem; border: 1px solid; border-radius: 50%; margin: .65rem .25rem 0 0; }
.note-front { top: 41%; left: 12%; transform: rotate(-10deg); background: var(--lime); color: #292c16; }
.sound-bars { display: flex; align-items: center; gap: 4%; height: 1.45rem; margin-top: 1rem; }
.sound-bars i { background: currentColor; width: 3%; height: 36%; border-radius: 1rem; }
.sound-bars i:nth-child(3n) { height: 72%; }
.sound-bars i:nth-child(5n + 2) { height: 95%; }
.sound-bars i:nth-child(4n + 1) { height: 22%; }
.exams-section { background: var(--olive); padding-block: clamp(3rem,7vw,5.5rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.9rem; }
.section-heading > p { color: var(--muted); max-width: 28ch; }
.exam-layout { display: grid; grid-template-columns: 1fr 2.65fr; gap: 1rem; align-items: stretch; }
.tabs, .times { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: .5rem; }
.tabs legend, .times legend { margin-bottom: .6rem; font-size: .875rem; font-weight: 700; }
.tabs label, .times label { position: relative; min-width: 0; cursor: pointer; font-weight: 700; }
.tabs span, .times span { display: block; border-radius: .55rem; border: 1px solid #c6c8b4; padding: .65rem .85rem; transition: background-color .18s; }
.tabs span:hover, .times span:hover { background: #f4f4e7; }
.tabs input:checked + span, .times input:checked + span { background: var(--purple); color: white; border-color: var(--purple); }
.exam-panel { padding: clamp(1.25rem,4vw,2.5rem); border-radius: 1rem; background: var(--paper); min-width: 0; }
.exam-panel > p:not(.eyebrow), .conversation > div:first-child > p:not(.eyebrow), .language-card > p:not(.eyebrow) { margin-block: 1rem; max-width: 47ch; }
.exam-panel ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.05rem 0 1.4rem; padding: 0; list-style: none; }
.exam-panel li { background: var(--olive); border-radius: 2rem; padding: .29rem .7rem; font-size: .875rem; }
.lessons { padding-block: clamp(3rem,7vw,5.5rem); }
.conversation { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.4rem; background: var(--purple); color: white; padding: clamp(1.25rem,4vw,2.5rem); border-radius: 1rem; }
.conversation .button { background: var(--lime); color: var(--ink); }
.conversation .button:hover { background: #f2ffb0; }
.phrase-card { display: grid; align-content: center; gap: .65rem; background: #fff5dd; color: var(--ink); padding: clamp(1rem,3vw,1.8rem); border-radius: .65rem; }
.phrase { font-size: clamp(1.8rem,3.6vw,3rem); }
summary { font-weight: 700; color: var(--purple); margin-top: .25rem; }
details p { margin-top: .45rem; }
.lesson-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 1rem; }
.language-card { padding: clamp(1.25rem,4vw,2rem); border: 1px solid var(--line); border-radius: 1rem; }
.language-card:nth-child(2) { background: #fbefdf; }
.footer { border-top: 1px solid var(--line); padding-block: 1.5rem; }
.footer p { color: var(--muted); font-size: .9rem; }
dialog { padding: clamp(1.3rem,5vw,2.4rem); max-width: min(30rem,100% - 2rem); max-height: 90dvh; border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #21142799; }
dialog h2 { font-size: clamp(2.25rem,5vw,3.3rem); }
dialog > p:not(.eyebrow) { margin-top: .7rem; }
.booking-lesson { font-weight: 750; }
.times { margin-top: 1rem; }
.selection { font-weight: 700; color: var(--purple); }
.close { position: absolute; top: .55rem; right: .55rem; border: 0; border-radius: 50%; background: transparent; width: 2.5rem; height: 2.5rem; font-size: 1.5rem; color: var(--ink); }
.close:hover { background: var(--olive); }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2rem); }
  .hero, .conversation { grid-template-columns: 1fr; }
  .hero-art { min-height: clamp(18rem,64vw,26rem); }
  .note b { font-size: clamp(1.75rem,7vw,3.1rem); }
  .hero { padding-top: 2.75rem; }
  .section-heading { flex-direction: column; align-items: start; }
  .exam-layout { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 460px) {
  nav { display: none; }
  h1 { font-size: clamp(2.9rem,13vw,3.9rem); }
  .lesson-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
