@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/nunito-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: optional;
}
:root {
  --paper: #fbf8f0;
  --ink: #243f35;
  --muted: #4d6258;
  --line: #d3ded3;
  --green: #2b624b;
  --green-hover: #204c3a;
  --soft: #edf3e9;
  --white: #fff;
  --sans: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
}
.wrap {
  width: min(1060px, calc(100% - 64px));
  margin-inline: auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 30px/1.2 var(--serif);
  text-decoration: none;
  color: var(--ink);
}
.brand-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}
.brand small {
  display: block;
  margin-top: 5px;
  font: 13px/1.4 var(--sans);
  color: var(--muted);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 15px;
  font-weight: 600;
}
.nav a {
  padding-block: 8px;
  text-decoration: none;
  color: var(--ink);
}
.nav a:last-child {
  color: var(--green);
  text-decoration: underline;
}
.nav a:hover,
.text-link:hover {
  color: var(--green-hover);
  text-decoration: underline;
}
.hero {
  position: relative;
  padding-block: clamp(48px, 6vw, 76px) 50px;
}
.hero-intro {
  max-width: 800px;
}
.label {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}
h1 {
  font-size: clamp(42px, 5.7vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 0 0 24px;
  max-width: 15ch;
}
h2 {
  font-size: clamp(31px, 3.6vw, 43px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
h3 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
p {
  margin-block: 0 16px;
  max-width: 68ch;
}
p:last-child {
  margin-bottom: 0;
}
.hero-copy {
  font-size: 19px;
  color: var(--muted);
  max-width: 59ch;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 27px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  line-height: 1.4;
  padding: 13px 24px;
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.button:hover {
  background: var(--green-hover);
  color: #fff;
}
.button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.text-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  padding-block: 8px;
}
.note {
  font-size: 15px;
  color: var(--muted);
  margin-top: 22px;
  max-width: 66ch;
}
.teaching-background {
  position: relative;
  margin: 40px 0 0;
  padding: 28px 34px 28px 104px;
  border: 1px solid #cadcc7;
  background: var(--soft);
  border-radius: 18px;
}
.teaching-background .background-icon {
  position: absolute;
  left: 28px;
  top: 32px;
  width: 48px;
  height: 48px;
  color: var(--green);
}
.teaching-background .label {
  margin-bottom: 8px;
}
.teaching-background h2 {
  font-size: 27px;
  margin-bottom: 12px;
}
.teaching-background p {
  color: var(--muted);
  max-width: 83ch;
}
.section {
  padding-block: clamp(44px, 5.5vw, 64px);
}
#subjects {
  border-top: 1px solid var(--line);
}
.section-head {
  margin-bottom: 28px;
  max-width: 760px;
}
.section-head p {
  color: var(--muted);
}
.subjects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.subject {
  padding: 29px 30px 30px;
  border-radius: 18px;
  border: 1px solid #d7e2d1;
  background: #edf3e9;
}
.subject:nth-child(2) {
  background: #eaf2f6;
  border-color: #d4e2e9;
}
.subject:nth-child(3) {
  background: #fbede1;
  border-color: #eadbcd;
}
.subject:nth-child(4) {
  background: #f2efdf;
  border-color: #e3dfc9;
}
.subject-icon {
  width: 40px;
  height: 40px;
  color: var(--green);
  margin-bottom: 19px;
  display: block;
}
.subject:nth-child(2) .subject-icon {
  color: #3d6478;
}
.subject:nth-child(3) .subject-icon {
  color: #875136;
}
.subject:nth-child(4) .subject-icon {
  color: #6b693f;
}
.subject p {
  margin: 0;
  color: var(--muted);
}
#about {
  padding-top: 20px;
}
.about {
  border-top: 1px solid var(--line);
  padding-top: 54px;
}
.about-copy {
  max-width: 760px;
}
.about-copy p {
  color: var(--muted);
}
.tutor-note {
  margin-top: 32px;
}
.tutor-note > h2 {
  font-size: 27px;
  margin-bottom: 14px;
}
.credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.credentials li {
  padding-block: 17px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.credentials strong {
  display: block;
  font-weight: 750;
}
.credentials span {
  color: var(--muted);
}
.questions {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 28px;
}
.questions h3 {
  font-size: 25px;
}
.approach {
  background: var(--soft);
}
.approach-intro {
  max-width: 760px;
  margin-bottom: 28px;
}
.approach-intro p {
  color: var(--muted);
}
.process {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: session;
}
.process li {
  counter-increment: session;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 24px;
  padding-block: 24px;
  border-top: 1px solid #cbd9c7;
}
.process li::before {
  content: counter(session, decimal-leading-zero);
  color: var(--green);
  font: 24px/1.4 var(--serif);
}
.process h3 {
  font-size: 25px;
  margin-bottom: 8px;
}
.process p {
  margin: 0;
  color: var(--muted);
  max-width: 80ch;
}
#small-groups {
  padding: 28px 32px;
  border: 1px solid #d6dfcb;
  border-radius: 18px;
  background: #fbf8f0;
  margin-top: 26px;
}
#small-groups p {
  color: var(--muted);
  max-width: 80ch;
}
.contact {
  padding-block: clamp(44px, 5.5vw, 72px);
}
.contact-grid {
  max-width: 860px;
}
.contact-copy {
  margin-bottom: 30px;
}
.contact-copy p {
  color: var(--muted);
}
.contact-meta {
  padding-left: 18px;
  border-left: 3px solid #8da888;
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
  max-width: 64ch;
}
.form {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.form h3 {
  font-size: 28px;
}
.form-intro {
  color: var(--muted);
  font-size: 16px;
  margin: 12px 0 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: end;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  line-height: 1.4;
  font-size: 15px;
  font-weight: 700;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  line-height: 1.5;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid #7b8c7b;
  border-radius: 9px;
  min-height: 48px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.form button {
  margin-top: 24px;
}
.form-note {
  color: var(--muted);
  font-size: 14px;
  margin: 16px 0 0;
}
.form-status {
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid #a83b26;
  border-radius: 8px;
  color: #813322;
  background: #fff2ed;
  font-size: 15px;
}
[hidden] {
  display: none !important;
}
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer a {
  padding-block: 6px;
}
:focus-visible {
  outline: 3px solid #8c5424;
  outline-offset: 4px;
}
main:focus {
  outline: none;
}
.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  background: #fff;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  transform: none;
}
.thank-you {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.confirmation {
  width: min(680px, calc(100% - 40px));
  margin-block: 48px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid #cadcc7;
  border-radius: 22px;
  background: var(--soft);
}
.confirmation > svg {
  width: 48px;
  height: 48px;
  color: var(--green);
  margin-bottom: 24px;
}
.confirmation h1 {
  font-size: clamp(34px, 5vw, 48px);
  max-width: 20ch;
}
.confirmation p {
  color: var(--muted);
}
.confirmation .button {
  margin-top: 12px;
}
@media (max-width: 850px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .topbar {
    flex-wrap: wrap;
    gap: 18px;
  }
  .nav {
    gap: 8px 20px;
  }
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .topbar {
    align-items: start;
    padding-block: 20px 12px;
    gap: 14px;
  }
  .brand {
    font-size: 27px;
  }
  .nav {
    width: 100%;
    gap: 4px 18px;
    font-size: 14px;
  }
  .hero {
    padding-block: 38px 40px;
  }
  .hero-copy {
    font-size: 18px;
  }
  .label {
    font-size: 11px;
  }
  .teaching-background {
    padding: 24px;
    margin-top: 30px;
  }
  .teaching-background .background-icon {
    position: static;
    margin-bottom: 16px;
    width: 38px;
    height: 38px;
  }
  .subjects,
  .credentials,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .subject {
    padding: 25px;
  }
  .subject-icon {
    margin-bottom: 16px;
  }
  .about {
    padding-top: 40px;
  }
  .process li {
    grid-template-columns: 32px 1fr;
    gap: 14px;
  }
  .process h3 {
    font-size: 23px;
  }
  #small-groups {
    padding: 24px;
  }
  .form {
    padding: 24px 20px;
  }
  .field.full {
    grid-column: auto;
  }
  .footer {
    align-items: start;
  }
  .footer > span {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
}
