:root {
  --paper: #f7f3ec;
  --paper-2: #efe8dc;
  --ink: #0f1f2e;
  --lake: #0d3e65;
  --lake-deep: #0a2a47;
  --maple: #d4212a;
  --maple-dark: #b01a22;
  --ember: #ffa266;
  --sky: #0094de;
  --muted: #55626b;
  --line: #ddd3c3;
  --white: #fffdf9;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--maple);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--maple);
  margin-bottom: 1.1em;
}
.eyebrow-light { color: var(--ember); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85em 1.5em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--maple); color: #fff; }
.btn-accent:hover { background: var(--maple-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-small { padding: .6em 1.2em; font-size: .95rem; background: var(--ink); color: var(--paper); }
.btn-small:hover { background: var(--lake); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--lake-deep);
}
.brand-mark { width: auto; height: 44px; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  text-decoration: none;
  font-size: .97rem;
  font-weight: 500;
  color: var(--ink);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--maple); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 500px at 88% 0%, rgba(212, 33, 42, .26), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(0, 148, 222, .16), transparent 65%),
    linear-gradient(160deg, var(--lake) 0%, var(--lake-deep) 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(64px, 9vw, 120px) clamp(120px, 15vw, 200px);
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--ember); }
.lede {
  font-size: 1.18rem;
  max-width: 58ch;
  color: rgba(255, 255, 255, .86);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2em; }

.skyline {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: clamp(110px, 16vw, 220px);
  color: #fff;
  opacity: .07;
}

/* Boarding pass */
.pass {
  display: flex;
  max-width: 440px;
  margin-left: auto;
  color: var(--ink);
  font-size: .9rem;
  transform: rotate(2.5deg);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35));
}
.pass-main {
  flex: 1;
  background: var(--white);
  border-radius: 18px 6px 6px 18px;
  padding: 22px 24px 24px;
}
.pass-stub {
  width: 64px;
  background: var(--white);
  border-left: 2px dashed var(--line);
  border-radius: 6px 18px 18px 6px;
  padding: 22px 16px;
  display: flex;
}
.pass-barcode {
  flex: 1;
  background: repeating-linear-gradient(
    to bottom,
    var(--ink) 0 3px, transparent 3px 5px,
    var(--ink) 5px 6px, transparent 6px 10px,
    var(--ink) 10px 14px, transparent 14px 16px
  );
  opacity: .85;
}
.pass-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--maple);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.pass-brand { display: inline-flex; align-items: center; gap: 8px; }
.pass-brand img { width: auto; height: 22px; }
.pass-route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding-block: 20px;
}
.pass-route small, .pass-fields dt {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pass-route strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--lake-deep);
}
.pass-route span { color: var(--muted); }
.pass-route > div:last-child { text-align: right; }
.pass-line { width: 100%; color: var(--maple); }
.pass-fields {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pass-fields dd { margin: 2px 0 0; font-weight: 600; }

/* Sections */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.split .section-head { margin-bottom: 0; }

/* Program cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.card-featured { background: var(--lake); border-color: var(--lake); color: #fff; }
.card-tag {
  align-self: flex-start;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--lake);
  margin-bottom: 22px;
}
.card-featured .card-tag { background: rgba(255, 255, 255, .14); color: #fff; }
.card h3 { font-size: 1.55rem; }
.card p { color: var(--muted); }
.card-featured p { color: rgba(255, 255, 255, .85); }


/* Support */
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.support-item { padding: 26px 0; border-top: 1px solid var(--line); }
.support-item h3 { font-size: 1.2rem; margin-bottom: .35em; }
.support-item p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Admissions */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 14px 0 14px 38px;
  border-top: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px; top: 1.15em;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--maple);
  border-bottom: 2.5px solid var(--maple);
  transform: rotate(-45deg);
}

.faq-title {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2em;
}
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--maple);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 40px; margin-bottom: 22px; }

/* Contact form */
.contact-direct { margin-top: 1.6em; color: var(--ink) !important; font-size: 1rem !important; }
.contact-direct a { font-weight: 600; text-decoration-color: var(--maple); text-underline-offset: 4px; word-break: break-word; }
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230f1f2e' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--lake);
  box-shadow: 0 0 0 3px rgba(13, 62, 101, .15);
}
.form-hint { margin: 14px 0 0; font-size: .88rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); font-size: .95rem; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-block: 56px 40px;
}
.footer-inner p { margin: 0; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 10px !important;
}
.footer-brand img { width: auto; height: 48px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-start; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 22px; font-size: .85rem; }
.footer-legal p { margin: 0; }

/* Error page */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 80px;
}
.error-page .btn { margin-top: 1em; }
.error-logo { width: auto; height: 96px; margin: 0 auto 28px; }

/* Responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .split .section-head { margin-bottom: 8px; }
  .pass { margin-inline: auto; transform: rotate(1.5deg); }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px clamp(20px, 4vw, 40px) 24px;
    box-shadow: 0 24px 40px rgba(18, 32, 43, .12);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 18px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand-name { font-size: 1rem; max-width: 11em; }
  .support-grid, .field-row { grid-template-columns: 1fr; }
  .pass { font-size: .8rem; }
  .pass-main { padding: 18px; }
  .pass-stub { width: 48px; padding: 18px 12px; }
  .pass-route strong { font-size: 1.8rem; }
  .pass-fields { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
