:root {
  color-scheme: light;
  --paper: #fff8e9;
  --white: #fffdfa;
  --ink: #232c25;
  --muted: #516052;
  --green: #28664d;
  --deep: #174633;
  --gold: #ffd34d;
  --line: #d8d3c2;
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  accent-color: var(--green);
  scrollbar-color: #91ab96 var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
img { display: block; max-width: 100%; }
p { margin: .55rem 0 1rem; max-width: 68ch; }
a { color: var(--deep); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #ab5218; outline-offset: 4px; }
::selection { color: var(--ink); background: var(--gold); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.028em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3.45rem, 9.5vw, 6rem); font-weight: 800; }
h2 { font-size: clamp(2.05rem, 4.6vw, 3.4rem); color: var(--deep); font-weight: 750; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.52rem); font-weight: 700; }
.wrap { inline-size: min(70rem, calc(100% - 3rem)); margin-inline: auto; }
.section { padding-block: clamp(3.25rem, 8vw, 6rem); }
.section[id], #fees, #family-portal { scroll-margin-top: 1.25rem; }
.muted { color: var(--muted); }
.skip { position: fixed; inset: .8rem auto auto .8rem; z-index: 2; padding: .7rem; transform: translateY(-180%); background: white; }
.skip:focus { transform: none; }

.site-header { background: #fff; border-bottom: 1px solid #eee9db; }
.header-inner { min-height: 5.35rem; display: flex; align-items: center; gap: 2rem; justify-content: space-between; }
.school { display: flex; align-items: center; gap: .75rem; text-decoration: none; font: 800 1.04rem/1.08 var(--display); }
.school img { flex: none; }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2rem); margin-left: auto; }
.site-header nav a, .portal { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover, .portal:hover { text-decoration: underline; }
.portal { border: 1px solid #afc1b2; border-radius: .4rem; padding-inline: .9rem; white-space: nowrap; }
.hero { background: var(--deep); color: var(--paper); }
.hero-inner { display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; gap: clamp(1rem, 6vw, 5rem); min-height: clamp(25rem, 43vw, 34rem); padding-block: clamp(2rem, 7vw, 5rem); }
.hero-copy p { max-width: 41ch; font-size: clamp(1.12rem, 2.5vw, 1.37rem); color: #f1eee0; margin: 1.1rem 0 1.65rem; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.actions, .booking-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.3rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; text-align: center; min-height: 3rem; padding: .7rem 1rem; border: 1px solid transparent; border-radius: .42rem; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none; line-height: 1.2; }
.button-gold { background: var(--gold); color: var(--ink); }
.button-gold:hover { background: #ffe27f; }
.button-green { background: var(--deep); color: white; }
.button-green:hover { background: var(--green); }
.button:disabled { opacity: .55; cursor: default; }
.fees-link { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .4rem; color: var(--paper); font-weight: 700; }
.hero-art { min-width: 0; position: relative; isolation: isolate; display: grid; place-items: center; justify-self: end; inline-size: min(100%, 22rem); aspect-ratio: 1; }
.art-ring { position: absolute; z-index: -1; inset: 8%; background: #245540; border: 1px solid #739579; border-radius: 50%; }
.hero-art img { width: 112%; max-width: none; height: auto; }

.inquiry-layout, .steps-layout { display: grid; grid-template-columns: minmax(14rem, .82fr) minmax(0, 1.3fr); gap: clamp(2rem, 8vw, 7rem); align-items: start; }
.section-intro > p { font-size: 1.14rem; margin-top: .85rem; }
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: .9rem; padding: clamp(1rem, 3vw, 2rem); }
.progress { display: flex; flex-wrap: wrap; gap: .3rem 1.35rem; list-style: none; padding: 0 0 1rem; margin: 0 0 1.25rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.progress [aria-current] { color: var(--deep); font-weight: 750; }
form { display: grid; gap: 1rem; }
label { display: block; font-weight: 700; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
input:not([type="checkbox"]), select, textarea { display: block; width: 100%; min-height: 2.9rem; border: 1px solid #89978a; border-radius: .35rem; background: #fff; color: var(--ink); font: inherit; font-weight: 400; padding: .55rem .6rem; margin-top: .25rem; }
textarea { resize: vertical; }
form > .button { justify-self: start; }
.form-note, .fee-note { font-size: .98rem; color: var(--muted); margin: 0; }
.text-button { border: 0; background: none; color: var(--deep); font: inherit; font-weight: 700; cursor: pointer; min-height: 2.75rem; padding: .35rem 0; text-decoration: underline; text-underline-offset: .2em; }
.text-button:disabled { opacity: .55; cursor: default; }
.flow-message { padding: .7rem .8rem; border-radius: .35rem; background: #ecf3e8; }
.flow-message.error { background: #fae7e2; color: #792f28; }
.confirmation .booking-actions { margin-top: 1rem; }

.fee-section { background: #f1efdf; border-block: 1px solid #e4dfcb; }
.fee-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .7rem 2rem; }
.fee-heading p { margin-bottom: 0; }
.fee-heading > label { min-inline-size: min(100%, 14rem); }
.fee-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1.25rem; }
.fee-plan { min-width: 0; padding: 1.1rem clamp(.9rem, 2.5vw, 1.5rem); border-inline-end: 1px solid #c5c9b6; }
.fee-plan:last-child { border-inline-end: 0; }
.fee-plan dl { margin: .9rem 0 0; font-variant-numeric: tabular-nums; }
.fee-plan dt { color: var(--muted); font-size: .93rem; }
.fee-plan dd { margin: 0 0 .65rem; font-size: 1.06rem; }
.fee-plan .total { font: 800 clamp(1.16rem, 2.3vw, 1.54rem)/1.2 var(--display); margin-bottom: 0; color: var(--deep); }
.fee-note { margin: 1rem 0; max-width: none; }

.admissions-steps { counter-reset: admissions; list-style: none; padding: 0; margin: 0; }
.admissions-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .85rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.admissions-steps li::before { counter-increment: admissions; content: counter(admissions); display: grid; place-items: center; inline-size: 1.85rem; block-size: 1.85rem; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 750; }
.admissions-steps p { margin-bottom: 0; }
.documents { border-block: 1px solid var(--line); }
.documents summary { cursor: pointer; font-weight: 750; color: var(--deep); padding-block: .85rem; }
.documents ul { padding-left: 1.2rem; margin-top: 0; }
.site-footer { background: var(--deep); color: var(--paper); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem 2rem; padding-block: 2rem; }
.footer-inner a { color: var(--paper); }
.footer-inner p { margin-block: .25rem .6rem; }

@media (max-width: 56rem) {
  .fee-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fee-plan:nth-child(2n) { border-inline-end: 0; }
  .fee-plan:nth-child(n + 3) { border-top: 1px solid #c5c9b6; }
}

@media (max-width: 43rem) {
  .wrap { inline-size: calc(100% - 2rem); }
  .header-inner { min-height: 4.5rem; gap: .75rem; }
  .site-header nav { display: none; }
  .school { gap: .5rem; font-size: .95rem; }
  .school img { width: 40px; height: 40px; }
  .portal { padding-inline: .6rem; font-size: .92rem; }
  .hero-inner { position: relative; min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 2.75rem 2.45rem; }
  .hero-copy { position: relative; z-index: 1; }
  .hero-copy h1 { padding-inline-end: 5rem; }
  .hero-copy p { max-width: 31ch; }
  .hero-art { position: absolute; inset: .55rem -.25rem auto auto; inline-size: clamp(5rem, 23vw, 8rem); }
  .actions { align-items: flex-start; gap: .55rem 1rem; }
  .inquiry-layout, .steps-layout, .field-pair { grid-template-columns: minmax(0, 1fr); }
  .inquiry-layout, .steps-layout { gap: 1rem; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .fee-plans { grid-template-columns: minmax(0, 1fr); }
  .fee-plan { border-inline-end: 0; }
  .fee-plan + .fee-plan { border-top: 1px solid #c5c9b6; }
  .fee-plan dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .65rem; align-items: baseline; }
  .fee-plan dd { margin: 0; text-align: end; }
}

@media (max-width: 23rem) {
  .hero-copy h1 { font-size: 2.75rem; }
}
