:root {
  --ink: #241644;
  --paper: #fffafa;
  --lavender: #d9c8ff;
  --purple: #542aad;
  --line: #dacfe4;
  font: 1rem/1.6 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #8057df; outline-offset: 4px; }
.site-header, main, footer { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.brand { font-size: 2rem; line-height: 1; font-weight: 850; letter-spacing: -.09em; }
.brand span { color: var(--purple); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs a { padding: 5px 12px; border-radius: 99px; font-weight: 650; }
.tabs a:hover, .tabs a[aria-current="page"] { background: #eadfff; }
main { min-height: 68vh; }
main > section[hidden] { display: none; }
main > section:not([hidden]) { animation: enter .42s ease-out both; }
.landing { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: clamp(24px, 6vw, 84px); padding-block: clamp(34px, 7vw, 92px); }
.label { color: var(--purple); font-weight: 700; }
h1, h2, p { margin-block-start: 0; }
h1 { margin-bottom: 20px; font-size: clamp(2.6rem, 6.5vw, 6.1rem); line-height: .99; letter-spacing: -.075em; }
.intro p:not(.label), .lead { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 42ch; }
.action, button { display: inline-block; padding: 10px 17px; border-radius: 99px; border: 1px solid transparent; background: var(--ink); color: white; font: inherit; font-weight: 700; cursor: pointer; }
.action:hover, button:hover { background: var(--purple); }
button[hidden] { display: none; }
.page { padding-block: clamp(34px, 7vw, 84px); max-width: 900px; }
.rows { margin-block: 28px 0; }
.rows > div { display: grid; grid-template-columns: .68fr 1fr; gap: 12px 30px; padding-block: 19px; border-top: 1px solid var(--line); }
dt, summary { font-weight: 750; }
dd { margin: 0; }
.sequence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-block: 32px; padding-inline-start: 24px; }
.sequence li { padding-inline: 7px; }
.sequence h2 { font-size: 1.2rem; }
details { padding-block: 16px; border-bottom: 1px solid var(--line); }
details p { margin: 8px 0 0; }
summary { cursor: pointer; }
footer { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 18px; font-weight: 700; }
footer span { font-weight: 500; }
@keyframes enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Animated midnight theme */
:root {
  --ink: #eefcf6;
  --paper: #071412;
  --lavender: #102b26;
  --purple: #81f2c8;
  --line: #31544b;
  color-scheme: dark;
}
body { position: relative; isolation: isolate; overflow-x: clip; }
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 24% 34%, #16674d63, transparent 58%),
              radial-gradient(ellipse at 78% 70%, #24357970, transparent 52%);
  animation: atmosphere 8s ease-in-out 3 alternate both;
}
.tabs a:hover, .tabs a[aria-current="page"] { background: #21473d; }
.action, button { background: #81f2c8; color: #09241d; }
.action:hover, button:hover { background: #bbffe6; }
main > section:not([hidden]) { animation: panel-in .56s cubic-bezier(.2,.7,.25,1) both; }
@keyframes panel-in {
  from { opacity: 0; transform: translate(22px, 12px) scale(.985); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes atmosphere {
  from { opacity: .6; transform: scale(1); }
  to { opacity: 1; transform: scale(1.2) translateX(4%); }
}



.classroom {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #102b26;
}
.classroom img {
  display: block;
  width: 100%;
  height: auto;
}
.classroom figcaption { padding: 12px 16px; }
.contact {
  padding: clamp(22px, 5vw, 46px);
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #102b26;
}
.contact p { max-width: 64ch; }
.contact p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .site-header, main, footer { width: calc(100% - 32px); }
  .landing, .rows > div, .sequence { grid-template-columns: 1fr; }
  .tabs a { padding-inline: 8px; }
}
