:root {
  /* Navy and stone are taken from the logo */
  --navy: #172941;
  --navy-2: #22395a;
  --stone: #ecebe7;
  --paper: #faf9f6;
  --brass: #85601a;
  --brass-light: #d9ae52;
  --ink: #141c28;
  --muted: #4f5866;
  --line: #cdd0d4;
  --on-navy: #c5cfdc;
  --on-navy-muted: #a3b2c7;
  --serif: "Literata Variable", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --header-height: 72px;
}
* {
  box-sizing: border-box;
}
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
/* Keep section headings clear of the fixed header when jumping to them */
section[id] {
  scroll-margin-top: var(--header-height);
}
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-variation-settings: "opsz" 72;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-variation-settings: "opsz" 60;
}
h3 {
  font-size: 1.3rem;
  font-variation-settings: "opsz" 24;
}
p {
  margin: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36em;
}

/* Header: stays at the top of the screen while scrolling */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 10px 0;
  background: var(--stone);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 20px -16px rgba(23, 41, 65, 0.45);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: block;
  flex-shrink: 0;
}
.brand img {
  width: auto;
  height: 50px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 6px 0;
  text-decoration: none;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current] {
  color: var(--ink);
}
.nav-links a[aria-current] {
  border-bottom-color: var(--brass);
}
.menu-toggle {
  display: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid var(--navy);
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
}
.btn-ghost:hover {
  background: rgba(23, 41, 65, 0.06);
}
.nav .btn {
  color: #fff;
  padding: 11px 18px;
}

/* Hero */
.hero {
  padding: 48px 0 88px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: end;
}
.hero h1 {
  max-width: 15em;
}
.hero .lede {
  margin-top: 22px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* The two doors: the two tiers of tuition */
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: end;
}
.door {
  --r: 999px;
  border-radius: 50% 50% 10px 10px / var(--arch, 130px) var(--arch, 130px) 10px 10px;
  padding: 0 22px 26px;
  display: flex;
  flex-direction: column;
  min-height: 430px;
}
.door .column {
  width: 28%;
  aspect-ratio: 158 / 199;
  margin: 40px auto 28px;
}
.door-teacher {
  background: var(--navy);
  color: #fff;
  min-height: 470px;
}
.door-teacher .column {
  color: var(--brass-light);
}
.door-student {
  background: var(--paper);
  border: 1.5px solid var(--line);
}
.door-student .column {
  color: var(--brass);
}
.door h2 {
  font-size: 1.25rem;
  font-variation-settings: "opsz" 24;
}
.door p {
  font-size: 0.95rem;
  margin-top: 10px;
}
.door-teacher p {
  color: var(--on-navy);
}
.door-student p {
  color: var(--muted);
}
.door .price {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--serif);
  font-size: 1.05rem;
}
.door .price strong {
  font-size: 1.6rem;
  font-weight: 600;
}
@media (prefers-reduced-motion: no-preference) {
  .door {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .door-student {
    animation-delay: 0.12s;
  }
  @keyframes rise {
    from {
      transform: translateY(28px);
      opacity: 0;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
}

/* Sections */
section {
  padding: 88px 0;
}
.section-head {
  max-width: 40em;
  margin-bottom: 44px;
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
}
.band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Tuition list */
.tuition {
  border-top: 1.5px solid var(--ink);
}
.tuition-row {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 0.8fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.tuition-row p {
  color: var(--muted);
}
.tuition-row .who {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--brass);
  font-weight: 600;
}
.tuition-row .cost {
  text-align: right;
  font-family: var(--serif);
  font-size: 1.15rem;
}
.subjects {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.subjects h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.subjects p {
  color: var(--muted);
}

/* Tutors */
.founders {
  max-width: 46em;
}
.founders p {
  margin-top: 10px;
  color: var(--muted);
}
.student-tutors {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 46em;
}
.student-tutors p {
  margin-top: 10px;
  color: var(--muted);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: 20px;
  border-top: 1.5px solid var(--ink);
}
.steps li::before {
  content: counter(step);
  font: 500 2.4rem/1 var(--serif);
  color: var(--brass);
  display: block;
  margin-bottom: 14px;
}
.steps p {
  color: var(--muted);
  margin-top: 8px;
}

/* Reviews */
.reviews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
}
/* Common questions */
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}
.faq > div {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.faq h3 {
  font-size: 1.15rem;
}
.faq p {
  margin-top: 8px;
  color: var(--muted);
}
.review {
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}
.review blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.6;
}
.review figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contact */
.contact {
  background: var(--navy);
  color: #fff;
}
.contact .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact .section-head p {
  color: var(--on-navy);
}
.contact-details {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.contact-details li > span:first-child {
  display: block;
  font-size: 0.9rem;
  color: var(--on-navy-muted);
}
.contact-details a {
  color: #fff;
}
.join {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--on-navy);
}
.join h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
form {
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  padding: 32px;
  display: grid;
  gap: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
label .opt {
  font-weight: 400;
  color: var(--muted);
}
input,
select,
textarea {
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy);
  outline: 2px solid rgba(23, 41, 65, 0.2);
  outline-offset: 0;
}
input,
select {
  height: 48px;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234F5866' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 16px center;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.hidden {
  position: absolute;
  left: -9999px;
}
form .btn {
  justify-self: start;
}

/* Footer */
footer {
  padding: 32px 0;
  font-size: 0.95rem;
  color: var(--muted);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 32px;
  flex-wrap: wrap;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-contact a {
  color: var(--ink);
}

/* Responsive */
@media (max-width: 900px) {
  /* With JavaScript, the menu links fold away behind a menu button */
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .menu-toggle svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }
  .menu-icon-close,
  .menu-open .menu-icon-open {
    display: none;
  }
  .menu-open .menu-icon-close {
    display: inline;
  }
  .js .nav {
    gap: 10px;
  }
  .js .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 4px 24px 12px;
    background: var(--stone);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -18px rgba(23, 41, 65, 0.5);
  }
  .js .menu-open .nav-links {
    display: flex;
  }
  .js .nav-links li + li {
    border-top: 1px solid var(--line);
  }
  .js .nav-links a {
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 0;
  }
  .js .nav-links a[aria-current] {
    box-shadow: inset 3px 0 0 var(--brass);
    padding-left: 12px;
  }
  /* Without JavaScript, the links wrap onto their own line */
  html:not(.js) .site-header .wrap,
  html:not(.js) .nav {
    flex-wrap: wrap;
  }
  html:not(.js) .nav-links {
    gap: 18px;
    font-size: 0.95rem;
  }
  .hero {
    padding: 24px 0 64px;
  }
  .hero .wrap,
  .contact .wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .reviews,
  .faq,
  .subjects {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .tuition-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tuition-row .cost {
    text-align: left;
  }
  section {
    padding: 64px 0;
  }
}
@media (max-width: 520px) {
  .wrap {
    padding: 0 16px;
  }
  :root {
    --header-height: 62px;
  }
  .js .nav-links {
    padding: 4px 16px 12px;
  }
  .brand img {
    height: 40px;
  }
  .nav .btn {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  .doors {
    gap: 12px;
  }
  .door {
    --arch: 82px;
    min-height: 360px;
    padding: 0 14px 18px;
  }
  .door-teacher {
    min-height: 390px;
  }
  .door .column {
    margin: 30px auto 20px;
  }
  .door h2 {
    font-size: 1.08rem;
  }
  .door p {
    font-size: 0.88rem;
  }
  .door .price strong {
    font-size: 1.3rem;
  }
  .door .per {
    display: block;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  form {
    padding: 22px;
  }
}

/* Standalone message pages (thanks, 404) */
.message-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.message-page main {
  max-width: 32em;
  text-align: center;
}
.message-page img {
  margin: 0 auto 28px;
}
.message-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 14px;
}
.message-page p {
  color: var(--muted);
  margin-bottom: 28px;
}
