:root {
  --petrol: #07383f;
  --petrol-deep: #052e34;
  --gold: #eebc6a;
  --paper: #f7f4ea;
  --white: #fffdf7;
  --ink: #102c30;
  --muted: #455d5c;
  --line: #c8ccc0;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { display: block; max-inline-size: 100%; }
p, dl, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(2.3rem, 5.5vw, 4.25rem); line-height: 1.05; letter-spacing: -.045em; }
h3 { font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.12; letter-spacing: -.025em; }
a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; }
a, button, input { touch-action: manipulation; }
:focus-visible { outline: 3px solid #92540c; outline-offset: 4px; }
.hero :focus-visible, .supporters :focus-visible { outline-color: var(--gold); }
#main:focus { outline: none; }
.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.eyebrow { font-size: .72rem; font-weight: 750; letter-spacing: .155em; line-height: 1.4; text-transform: uppercase; }
.code { font: 600 .89rem/1.45 ui-monospace, "Courier New", monospace; overflow-wrap: anywhere; }
.skip { position: fixed; inset: .5rem auto auto .5rem; z-index: 2; padding: .65rem 1rem; background: var(--white); transform: translateY(-180%); }
.skip:focus { transform: none; }
.masthead { background: var(--paper); border-bottom: 1px solid #0a343522; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; min-height: 3.55rem; gap: 1rem; }
.wordmark, .masthead nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.wordmark { gap: .62rem; font: 400 1.05rem/1.15 var(--serif); }
.wordmark-arch, .faculty-mark { flex: none; width: .96rem; height: 1.23rem; border: 1px solid #99672d; border-radius: 50% 50% 0 0; }
.masthead nav { display: none; gap: 1.65rem; font-size: .85rem; }

.hero { position: relative; overflow: hidden; background: var(--petrol); color: var(--paper); }
.hero-inner { position: relative; isolation: isolate; min-height: 24rem; display: grid; align-items: center; }
.hero-copy { position: relative; z-index: 1; padding-block: 2.6rem 2.45rem; }
.hero-kicker { color: var(--gold); display: inline-flex; align-items: center; gap: .55rem; }
.hero-kicker::before { content: ""; background: var(--gold); width: 1.05rem; height: 1px; }
.hero h1 { font-size: clamp(3.25rem, 10.4vw, 7.55rem); line-height: .88; letter-spacing: -.075em; margin: .9rem 0 1.12rem; }
.title-dot { color: var(--gold); }
.subtitle { max-width: 26ch; font: 400 clamp(1.25rem, 4.4vw, 2.05rem)/1.16 var(--serif); color: #f4e7ca; }
.hero-date { display: flex; flex-wrap: wrap; align-items: center; column-gap: .55rem; font-size: .81rem; margin-block: 1.15rem 1rem; }
.hero-date span { color: var(--gold); }
.hero-preview { margin-top: .45rem; font-size: .75rem; color: #f4e7ca; }
.hero-art { position: absolute; z-index: -1; inset: 0 -35% 0 32%; display: grid; align-items: end; color: var(--gold); pointer-events: none; }
.hero-art svg { width: 100%; height: auto; max-height: 100%; opacity: .29; }
.hero-index { display: none; align-items: center; position: absolute; right: 1px; top: 2.75rem; gap: .45rem; font: 400 3.6rem/.75 var(--serif); }
.hero-index span { font: 700 .62rem/1.38 var(--sans); letter-spacing: .14em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.25rem; min-height: 46px; padding: .68rem 1.05rem; border: 1px solid transparent; border-radius: .18rem; font: 750 .9rem/1.35 var(--sans); text-decoration: none; cursor: pointer; }
.button-gold { color: var(--petrol-deep); background: var(--gold); }
.button-gold:hover { background: #f5d397; }
.button-teal { color: var(--white); background: var(--petrol); }
.button-teal:hover { background: #14515a; }
.button-outline { border-color: #68817e; color: var(--petrol); background: transparent; }
.button-outline:hover { background: #e6ebe1; }

.details { background: #efeadd; border-bottom: 1px solid var(--line); }
.details-grid { display: grid; padding-block: 1rem; }
.details-grid > div { display: grid; grid-template-columns: 7.05rem 1fr; padding-block: .8rem; gap: .45rem; }
.details-grid > div + div { border-top: 1px solid var(--line); }
.details dt { font-size: .66rem; text-transform: uppercase; font-weight: 750; letter-spacing: .13em; color: var(--muted); padding-top: .2rem; }
.details dd { margin: 0; font-size: .88rem; line-height: 1.45; }
.section { padding-block: clamp(3rem, 8vw, 6.1rem); }
.section-heading { max-width: 46rem; margin-bottom: 1.55rem; }
.section-heading .eyebrow, .flow-heading .eyebrow, .form-panel > .eyebrow { color: #795321; margin-bottom: .65rem; }
.section-heading > p:not(.eyebrow) { max-width: 55ch; color: var(--muted); margin-top: .85rem; }
.programme-grid, .faculty-grid, .fee-grid { display: grid; gap: .9rem; }
.programme-card { padding: 1.25rem; min-height: 12rem; background: var(--white); border: 1px solid var(--line); border-top: 2px solid #9b6c34; }
.programme-pm { background: #e8eee6; border-top-color: var(--petrol); }
.daypart { display: flex; align-items: center; gap: .75rem; font: 400 2.1rem/1 var(--serif); color: var(--petrol); margin-bottom: 1.1rem; }
.daypart span { font: 750 .65rem/1.1 var(--sans); text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }
.programme-card h3 + p, .faculty-grid h3 + p { margin-top: .5rem; color: var(--muted); }
.faculty { border-block: 1px solid var(--line); background: #f0ecdf; }
.faculty-grid { gap: 0 1.25rem; }
.faculty-grid article { display: flex; gap: 1rem; align-items: flex-start; border-top: 1px solid var(--line); padding: 1.05rem 0 .8rem; }
.faculty-mark { margin-top: .35rem; }
.faculty-grid h3 { font-size: 1.65rem; }
.faculty-grid h3 + p { font-size: .9rem; }
.fee-grid { max-width: 45rem; margin-bottom: 1.2rem; }
.fee-grid article { padding: .8rem 0; border-top: 1px solid var(--line); }
.fee-grid h3 { font-size: 1.25rem; }
.fee-grid strong { font: 400 2.25rem/1.5 var(--serif); letter-spacing: -.04em; }
.fee-base, .fee-grid article > p:last-child { font-size: .88rem; color: var(--muted); }
.supporters { background: var(--petrol); color: var(--paper); }
.supporters-inner { display: grid; gap: .75rem; padding-block: 1.65rem; }
.supporters .eyebrow { color: var(--gold); align-self: center; }
.supporters ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: .5rem 1.6rem; font: 400 1.25rem/1.45 var(--serif); }
.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding-block: 1rem; color: var(--muted); font-size: .82rem; }

.flow { max-width: 49rem; padding-block: 1.25rem 4rem; min-height: 67vh; }
.back { min-height: 44px; display: inline-flex; align-items: center; margin-bottom: .85rem; font-weight: 650; font-size: .89rem; }
.flow-heading { margin-bottom: 1.5rem; }
.flow-heading h1 { font-size: clamp(2.75rem, 8vw, 5.55rem); letter-spacing: -.06em; line-height: .97; }
.flow-heading h1 + p { color: var(--muted); margin-top: .9rem; max-width: 58ch; }
.panel { background: var(--white); border: 1px solid var(--line); padding: clamp(1rem, 4vw, 1.8rem); border-radius: .19rem; }
.panel + .panel { margin-top: 1rem; }
.panel h2 { font-size: clamp(1.6rem, 5vw, 2.35rem); }
.panel h2 + p { margin-top: .5rem; }
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
legend { padding: 0; font: 400 1.45rem/1.25 var(--serif); }
.legend-note { color: var(--muted); font-size: .86rem; margin-block: .23rem .65rem; }
.field-grid { display: grid; gap: .85rem 1rem; }
.field { min-width: 0; }
.field label { font-size: .9rem; font-weight: 700; display: block; margin-bottom: .25rem; }
.field input { display: block; width: 100%; min-width: 0; min-height: 46px; padding: .52rem .63rem; border: 1px solid #718781; border-radius: .15rem; background: #fff; color: var(--ink); }
.field input[type=file] { padding: .2rem; }
.field input::file-selector-button { border: 0; border-radius: .1rem; min-height: 44px; max-width: 100%; background: #e7eee7; color: var(--ink); padding-inline: .6rem; font: inherit; cursor: pointer; }
.consent { margin-top: 1.35rem; }
.privacy-notice { margin-top: .45rem; color: var(--muted); font-size: .9rem; white-space: pre-line; overflow-wrap: anywhere; }
.check { display: flex; align-items: center; gap: .65rem; min-height: 44px; width: fit-content; font-size: .89rem; cursor: pointer; margin-top: .5rem; }
.check input { accent-color: var(--petrol); margin: 0; width: 1.25rem; height: 1.25rem; flex: none; }
.form-panel button { margin-top: 1rem; }
.form-panel h2 { margin-bottom: 1rem; }
.error-summary, .field-error { color: #842f23; }
.error-summary { background: #fff2ec; border-left: 3px solid #842f23; padding: .65rem .9rem; margin-bottom: 1rem; }
.error-summary a { display: inline-flex; align-items: center; min-height: 44px; }
.error-summary ul { margin: .15rem 0 0; padding-left: 1.05rem; }
.field-error { margin-top: .3rem; font-size: .87rem; }
.field input[aria-invalid=true] { border: 2px solid #842f23; }
.payment-panel, .preview-panel { display: grid; gap: 1.2rem; align-items: center; }
.payment-panel + .button { margin-top: 1.2rem; }
.receipt { margin-top: .75rem; }
.receipt > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .6rem; align-items: baseline; border-top: 1px solid var(--line); padding: .48rem 0; }
.receipt dt { font-size: .88rem; }
.receipt dd { margin: 0; font-weight: 650; }
.receipt .total dd { font: 400 1.75rem/1.2 var(--serif); }
.payment-qr, .payment-placeholder { width: min(100%, 18rem); min-width: 0; background: #fff; border: 1px solid var(--line); padding: .6rem; }
.payment-qr { height: auto; }
.payment-placeholder { aspect-ratio: 1.47; display: grid; align-content: center; justify-items: center; background: #ecf0e7; color: var(--petrol); font: 400 1.75rem/1.1 var(--serif); border: 1px dashed #718781; }
.payment-placeholder span + span { font: 750 .65rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: .17em; }
.status-panel p + p { margin-top: .8rem; }
.status-panel .code { font-size: 1.18rem; }
.dashboard-head, .actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.dashboard-head .flow-heading { margin-bottom: .4rem; }
.admin-group { margin-top: 2rem; }
.admin-group h2 { font-size: clamp(1.7rem, 5vw, 2.7rem); margin-bottom: .65rem; }
.count { color: var(--muted); font: 650 .9rem/1.2 var(--sans); }
.admin-record { display: grid; gap: 1rem; overflow-wrap: anywhere; }
.admin-record h3 { margin-bottom: .3rem; }
.admin-record p { margin-top: .3rem; }
.review-form button { margin-top: .45rem; }
.muted { color: var(--muted); }

@media (min-width: 43rem) {
  .wrap { width: min(100% - 4rem, 72rem); }
  .flow { max-width: 49rem; }
  .masthead-inner { min-height: 4.25rem; }
  .masthead nav { display: flex; }
  .hero-inner { min-height: clamp(29rem, 58vw, 38rem); }
  .hero-copy { padding-block: 3.25rem; }
  .hero-date { font-size: .92rem; margin-block: 1.55rem 1.15rem; gap: .7rem; }
  .hero-art { inset: 0 0 0 50%; align-items: center; }
  .hero-art svg { opacity: .75; }
  .hero-index { display: flex; }
  .details-grid { grid-template-columns: 1.15fr 1fr .9fr; padding-block: 1.45rem; }
  .details-grid > div { display: block; padding: 0 1.15rem; }
  .details-grid > div:first-child { padding-left: 0; }
  .details-grid > div + div { border-top: none; border-left: 1px solid var(--line); }
  .details dt { margin-bottom: .45rem; }
  .programme-grid, .faculty-grid, .fee-grid, .field-grid, .admin-record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .programme-card { min-height: 14rem; padding: 1.65rem; }
  .faculty-grid article { padding-block: 1.35rem; }
  .supporters-inner { grid-template-columns: 9rem 1fr; }
  .wide { grid-column: 1 / -1; }
  .payment-panel { grid-template-columns: minmax(0, 1fr) minmax(0, .68fr); }
  .preview-panel { grid-template-columns: minmax(0, .6fr) minmax(0, 1fr); }
}
@media (min-width: 62rem) {
  .hero-art { inset-inline-start: 44%; }
  .hero-art svg { max-height: 91%; }
  .hero-copy { padding-block: 4.25rem; }
  .hero-kicker { font-size: .78rem; }
  .hero h1 { margin-top: 1.2rem; }
  .details-grid > div { padding-inline: 1.75rem; }
  .details dd { font-size: .95rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: enter .42s ease-out both; }
  .reveal { animation: enter .38s ease-out both; }
  @keyframes enter { from { opacity: .85; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
}
