@font-face {
  font-family: Onest;
  src: url("./assets/onest.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fcf7ee;
  --white: #fffcf6;
  --ink: #1d2b37;
  --secondary: #48535c;
  --rust: #a63e23;
  --rust-dark: #87321c;
  --line: #e0d0bd;
  --focus: #235d59;
  font-family: Onest, "Avenir Next", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 88px)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 65px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -.065em;
}
.brand img { object-fit: contain; }
.profile-link {
  color: var(--rust);
  font-size: 14px;
  font-weight: 670;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.profile-link:hover { color: var(--rust-dark); }
.header-actions, .hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-actions { flex-wrap: wrap; }
.language-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.language-switch button {
  min-width: 39px;
  min-height: 36px;
  padding: 3px 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
}
.language-switch button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.language-switch button:hover:not([aria-pressed="true"]) { background: #f2e7d8; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 74px);
  align-items: center;
  padding-block: 36px 62px;
}
h1, h2, h3 { font-weight: 820; line-height: 1.02; letter-spacing: -.06em; }
h1 { font-size: clamp(42px, 5.25vw, 76px); }
.hero-intro {
  max-width: 41ch;
  margin: 21px 0 25px;
  color: var(--secondary);
  font-size: clamp(16px, 1.62vw, 19px);
}
.hero-picture {
  position: relative;
  align-self: stretch;
  aspect-ratio: 1.25;
  min-height: 390px;
  overflow: hidden;
  border-radius: 14px 96px 14px 14px;
  background: #e8dccb;
}
.hero-picture img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 50% 34%; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  padding: 12px 19px;
  border: 0;
  border-radius: 8px;
  background: var(--rust);
  color: #fffaf3;
  font-weight: 740;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--rust-dark); }
.button:disabled { opacity: .7; cursor: wait; }

.school-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 24px;
  margin-bottom: 34px;
  padding: clamp(20px, 4vw, 45px);
  border-left: 5px solid #ca744f;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  scroll-margin-top: 18px;
}
.school-copy h2 { font-size: clamp(29px, 3.6vw, 47px); }
.school-copy p { margin-top: 12px; max-width: 59ch; color: #e6ddd2; }
.school-action {
  background: #ffe4cd;
  color: #762f1b;
  text-align: center;
}
.school-action:hover { background: #fbd3b3; }
.school-action:focus-visible { outline-color: #ffe4cd; }

.inquiry {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(26px, 7vw, 100px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-block: 47px 63px;
  scroll-margin-top: 18px;
}
h2 { font-size: clamp(31px, 4vw, 55px); }
.inquiry-copy p { margin: 15px 0 18px; max-width: 40ch; color: var(--secondary); }
.inquiry-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: clamp(17px, 3.2vw, 32px);
}
.field { display: grid; gap: 6px; margin-block: 0 14px; font-size: 15px; font-weight: 680; }
.field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid #b5a18e;
  border-radius: 6px;
  background: #fffefa;
  font-size: 16px;
  font-weight: 470;
}
.field textarea { resize: vertical; }
.role-field > span { font-size: 18px; font-weight: 740; }
.role-field select { border-color: var(--rust); }
.school-selected {
  margin: -5px 0 15px;
  color: var(--rust-dark);
  font-size: 14px;
  font-weight: 680;
}
.field small {
  margin-left: 4px;
  font-size: .79em;
  font-weight: 550;
  color: var(--secondary);
}
.form-help { margin: -7px 0 14px; font-size: 13px; color: var(--secondary); }
.form-disclosure { margin: 11px 0 0; }
.form-error { margin: 0 0 12px; color: #922e21; font-size: 14px; font-weight: 670; }
.success h3 { font-size: 28px; }
.success p { margin-top: 12px; color: var(--secondary); }
.site-footer { border-top: 1px solid var(--line); color: var(--secondary); font-size: 13px; }

@media (max-width: 780px) {
  .wrap { width: calc(100% - 48px); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-block: 32px 35px; }
  h1 { font-size: clamp(35px, 10.25vw, 66px); }
  .hero-intro { margin-block: 15px 19px; }
  .hero-picture { min-height: 0; aspect-ratio: 1.52; border-top-right-radius: 58px; }
  .school-offer { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 24px; }
  .school-action { justify-self: start; }
  .inquiry { grid-template-columns: 1fr; gap: 20px; padding-block: 31px 40px; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 36px); }
  h1 { font-size: 34px; }
  .hero { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
