:root {
  color-scheme: dark;
  --night: #2a1d43;
  --deep: #221634;
  --line: #655777;
  --paper: #f2efe9;
  --muted: #d6cedd;
  --ink: #2a1d43;
  --serif: Georgia, "Times New Roman", serif;
  font-family: system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--paper); line-height: 1.55; }
a { color: inherit; text-underline-offset: .2em; }
button, select { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 1.5rem; }
.wrap { width: min(100% - 3.5rem, 72rem); margin-inline: auto; }
.skip { position: absolute; top: 1rem; left: 1rem; z-index: 2; transform: translateY(-180%); padding: .65rem 1rem; background: var(--paper); color: var(--ink); }
.skip:focus { transform: none; }
.site-header { min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid var(--line); }
.wordmark { font: 1.35rem var(--serif); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.75rem, 3vw, 2.25rem); }
nav a { text-decoration: none; font-size: .94rem; }
nav a:hover, .site-footer a:hover { text-decoration: underline; }
.nav-book { border: 1px solid #8a7b9d; padding: .48rem .9rem; border-radius: .25rem; }
.hero { min-height: 37rem; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 8vw, 6.5rem); }
.eyebrow { margin: 0 0 1rem; color: var(--muted); font-size: .875rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1.5rem; font: 400 clamp(3.45rem, 8vw, 7.3rem)/.94 var(--serif); letter-spacing: -.065em; }
h1 em { display: block; font-size: .84em; margin-top: .13em; }
h2 { font: 400 clamp(2.15rem, 4vw, 3.3rem)/1.05 var(--serif); letter-spacing: -.035em; }
h3 { line-height: 1.3; }
.lead { margin-bottom: .6rem; font-size: clamp(1.12rem, 2vw, 1.4rem); font-weight: 650; }
.hero-detail { max-width: 33rem; color: var(--muted); }
.underlined { display: inline-block; margin-top: .6rem; font-weight: 650; }
.agenda { min-width: 0; padding: clamp(1.45rem, 3.5vw, 2.6rem); border: 1px solid var(--line); border-radius: .45rem; background: var(--deep); }
.agenda h2 { margin-bottom: 1.65rem; }
label { display: block; margin-bottom: .5rem; font-size: .94rem; font-weight: 650; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; top: 45%; right: 1.1rem; width: .45rem; height: .45rem; border-right: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(45deg) translateY(-30%); pointer-events: none; }
select { width: 100%; appearance: none; border: 1px solid #8a7b9d; border-radius: .25rem; padding: .8rem 2.65rem .8rem .8rem; background: var(--night); color: var(--paper); text-overflow: ellipsis; }
.agenda-result { margin-top: 1.25rem; color: var(--muted); overflow-wrap: anywhere; }
.agenda-result p { margin: 0 0 .6rem; }
.agenda-result .status { color: var(--paper); font-weight: 650; }
.button { display: inline-block; margin-top: .45rem; padding: .7rem 1rem; background: var(--paper); color: var(--ink); border-radius: .25rem; text-decoration: none; font-weight: 700; }
.button:hover { background: #e2d8e8; }
.light { color-scheme: light; background: var(--paper); color: var(--ink); }
.catalogue { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-heading { padding-bottom: 1.45rem; border-bottom: 1px solid #aaa1ad; }
.section-heading h2 { margin-bottom: .75rem; }
.section-heading p { margin: 0; }
.subject-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.3rem); padding-top: 2.2rem; }
.subject-group h3 { font: 400 1.55rem/1.2 var(--serif); }
.subject-group ul { list-style: none; padding: 0; margin: 0; }
.subject-group li { border-top: 1px solid #c8c0c6; }
.subject-group li > button { width: 100%; padding: .75rem 0; text-align: left; font-weight: 550; }
.subject-group button { background: transparent; border: 0; cursor: pointer; }
.subject-group button:hover { text-decoration: underline; }
.subject-group .grouped { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .52rem 0; font-weight: 550; }
.grouped div { white-space: nowrap; }
.grouped button { border: 1px solid #918397; min-width: 2.25rem; min-height: 2.25rem; margin-left: .25rem; border-radius: .2rem; }
.grouped button:hover { background: #e4dae8; }
.process { padding-block: clamp(3.5rem, 8vw, 6rem); }
.process ol { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1.15rem,3vw,2.5rem); }
.process li { padding-top: 1rem; border-top: 1px solid var(--line); }
.process h3 { margin-bottom: .55rem; }
.process p { color: var(--muted); margin-bottom: 0; }
.process-intro { max-width: 65ch; display: grid; gap: .85rem; }
.process-intro strong { color: var(--paper); }
.team { padding-block: clamp(3.5rem, 8vw, 6rem); }
.team-intro { max-width: 65ch; }
.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.25rem 2.5rem;
  margin-top: 1.75rem;
}
.team-portrait {
  display: block;
  width: min(100%, 12rem);
  height: auto;
  margin-bottom: 1rem;
  border: 1px solid #c9bad4;
  border-radius: .5rem;
  background: #ddd1e9;
}
.team-members h3 { margin-bottom: .4rem; font: 400 1.55rem/1.2 var(--serif); }
.team-members p { margin-bottom: 0; }
.site-footer { padding-block: 1.45rem 2rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer p { margin-bottom: 0; }
@media (max-width: 48rem) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .subject-grid, .process ol { grid-template-columns: 1fr; }
}
@media (max-width: 34rem) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { display: block; padding-block: 1rem; }
  nav { margin-top: .8rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#grammar-booking h3 { margin-bottom: .75rem; }
.schedule-summary { margin: .75rem 0; color: var(--muted); font-size: .9rem; }
#subject-inquiry {
  margin-block: 1.25rem;
  padding: .8rem 1rem;
  border: 1px solid #8a7b9d;
  border-radius: .25rem;
}
#subject-inquiry summary { cursor: pointer; font-weight: 650; }
#booking-form { margin-top: 1.25rem; }
:is(#booking-form, #inquiry-form) label { margin-top: .8rem; }
:is(#booking-form, #inquiry-form) input, #inquiry-form textarea {
  width: 100%;
  padding: .7rem .8rem;
  color: var(--paper);
  font: inherit;
  background: var(--night);
  border: 1px solid #8a7b9d;
  border-radius: .25rem;
}
:is(#booking-form, #inquiry-form) button { border: 0; cursor: pointer; }
:is(#booking-form, #inquiry-form) button:disabled { opacity: .7; }
#inquiry-form textarea { resize: vertical; }
#checkout-message, #inquiry-message { margin: .75rem 0 0; }
#checkout-message:empty, #inquiry-message:empty, #booking-note:empty { display: none; }
