@font-face {
  font-family: Geist;
  src: url("geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --blue: #043480;
  --ink: #0e2450;
  --yellow: #ffd02a;
  --gold-pale: #ffe586;
  --muted: #405371;
  --line: #c9d2e2;
  --radius: 8px;
  --gutter: clamp(20px, 4.4vw, 76px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1rem/1.55 Geist, Arial, sans-serif; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .12em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #1769de; outline-offset: 4px; }
.hero a:focus-visible, .math a:focus-visible, .footer a:focus-visible { outline-color: var(--yellow); }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.symbols, .sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; top: 8px; left: 8px; z-index: 10; background: #fff; padding: .6rem 1rem; }
.container { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
[id] { scroll-margin-top: 1.5rem; }

.status { background: var(--gold-pale); font-size: .84rem; line-height: 1.35; }
.status .container { display: flex; align-items: center; gap: .55rem; min-height: 38px; padding-block: .45rem; }
.status svg { width: 1rem; height: 1rem; }
.status-divider { margin-inline: .26em; }
.header { position: relative; z-index: 2; background: white; }
.header-inner { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; flex: none; }
.school-logo { display: block; width: clamp(205px, 24vw, 315px); height: auto; }
.school-icon { display: block; width: 40px; height: 40px; padding: 3px; background: white; border-radius: 5px; }
.wordmark { font: 700 clamp(.93rem, 1.65vw, 1.33rem)/1 Georgia, serif; text-transform: uppercase; letter-spacing: .13em; }
.wordmark small { display: block; margin-top: .42rem; font: 500 .73rem/1.1 Geist, Arial, sans-serif; letter-spacing: .025em; text-transform: none; }
.desktop-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 41px); }
.desktop-nav a { font-weight: 650; text-decoration: none; white-space: nowrap; }
.desktop-nav a:hover { text-decoration: underline; }
.nav-contact { display: inline-flex; align-items: center; gap: .35rem; }
.nav-contact svg { width: 1.05rem; }
.mobile-nav { display: none; }

.hero { position: relative; overflow: hidden; background: var(--blue); color: #fff; }
.hero-inner { min-height: clamp(388px, 34.5vw, 514px); display: flex; align-items: center; position: relative; }
.hero-art { position: absolute; top: 0; bottom: 0; right: 0; width: 53%; height: 100%; object-fit: cover; object-position: center; mask-image: linear-gradient(90deg, transparent, black 22%); }
.hero-copy { width: 56%; padding-block: clamp(44px, 6vw, 82px); }
.hero h1 { font-size: clamp(2.65rem, 5.05vw, 5.05rem); line-height: .99; font-weight: 790; letter-spacing: -.058em; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero p { color: #f0f5ff; font-size: clamp(1.01rem, 1.53vw, 1.3rem); line-height: 1.45; margin-top: 1.35rem; max-width: 31rem; }
.hero-actions { display: flex; align-items: center; gap: clamp(14px, 2.35vw, 36px); margin-top: 1.7rem; }
.button, .text-link, .section-link { display: inline-flex; gap: .65rem; align-items: center; width: fit-content; font-weight: 730; }
.button { background: var(--yellow); color: var(--ink); text-decoration: none; border-radius: var(--radius); min-height: 48px; justify-content: center; padding: .68rem 1.05rem; }
.button:hover { background: #ffe16b; }
.text-link { text-decoration-thickness: 1px; }

.overview { display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); padding-block: clamp(34px, 3.7vw, 56px); }
h2 { font-size: clamp(2rem, 3.55vw, 3.4rem); letter-spacing: -.052em; line-height: 1.04; font-weight: 780; }
.intro { margin-top: .65rem; color: var(--muted); }
mark { padding: .02em .18em; background: var(--yellow); color: var(--ink); font-weight: 700; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.3vw, 19px); margin-top: 1.25rem; }
.course { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(.84rem, 1.6vw, 1.3rem); border: 1px solid var(--line); border-radius: var(--radius); }
.course-math { background: #fff9e3; border-color: #dac774; box-shadow: inset 0 3px var(--yellow); }
.course-icon { width: 2.1rem; height: 2.1rem; color: var(--blue); margin-bottom: .65rem; }
.course h3 { font-size: clamp(1.17rem, 1.9vw, 1.55rem); line-height: 1.05; letter-spacing: -.035em; max-width: 9ch; }
.course p { font-size: .91rem; line-height: 1.45; color: var(--muted); padding-block: .65rem .9rem; }
.course a { display: inline-flex; align-items: center; gap: .25rem; margin-top: auto; font-size: .83rem; font-weight: 700; }
.course a svg { width: .94rem; }
.section-link { margin-top: 1.25rem; }
.family { border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 44px); }
.visit { position: relative; background: var(--gold-pale); border-radius: var(--radius); padding: clamp(18px, 2.1vw, 28px); }
.visit h2, .faq h2 { font-size: clamp(1.7rem, 2.75vw, 2.45rem); }
.visit-icon { position: absolute; top: 22px; right: 22px; }
.visit p { margin-top: .45rem; line-height: 1.45; }
.visit p:first-of-type { font-weight: 700; }
.visit p + p { font-size: .93rem; }
.faq { margin-top: 1.45rem; }
.faq h2 { margin-bottom: .8rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .44rem; }
.faq summary, .mobile-nav summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 45px; padding: .56rem .78rem; font-weight: 700; line-height: 1.3; }
.faq summary:hover { background: #f4f7fd; border-radius: inherit; }
.faq summary svg { width: 1rem; height: 1rem; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 .78rem .8rem; color: var(--muted); font-size: .93rem; }

.math { background: var(--blue); color: #fff; }
.math-inner { padding-block: clamp(34px, 5vw, 70px); display: grid; grid-template-columns: 1fr auto; gap: 2.1rem; align-items: center; }
.math .year { color: var(--yellow); font-weight: 740; margin-bottom: .4rem; }
.math h2 + p { margin-top: .9rem; max-width: 55ch; color: #f0f5ff; }
.math .text-link { margin-top: 1rem; }
.hours { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 30px); }
.hours div { border-left: 1px solid #a4bbdf; padding-left: clamp(10px, 2vw, 28px); }
.hours dt { font-size: .9rem; }
.hours strong { display: block; color: var(--yellow); font-size: clamp(2.2rem, 4.8vw, 4.1rem); line-height: 1.06; letter-spacing: -.06em; }
.comparison { padding-block: clamp(34px, 5vw, 66px); }
.comparison table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; }
.comparison th, .comparison td { text-align: left; border-bottom: 1px solid var(--line); padding: .85rem .65rem; }
.comparison thead { background: #edf3ff; }
.comparison tbody tr:last-child { background: #fff8db; }
.footer { background: var(--ink); color: #fff; border-top: 4px solid var(--yellow); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; padding-block: 2.3rem; }
.footer h2 { font-size: 1.6rem; margin-bottom: .55rem; }
.footer address { margin-top: .65rem; font-style: normal; }
.footer a { display: block; width: fit-content; margin-top: .25rem; overflow-wrap: anywhere; }
.footer a svg { width: .95rem; vertical-align: middle; }

@media (max-width: 980px) {
  .overview { grid-template-columns: 1fr; }
  .family { display: grid; grid-template-columns: .9fr 1.1fr; border-left: 0; border-top: 1px solid var(--line); padding: 1.75rem 0 0; gap: 1.35rem; align-items: start; }
  .faq { margin-top: 0; }
  .course h3 { max-width: none; }
}
@media (max-width: 720px) {
  .status .container { justify-content: center; text-align: center; }
  .status svg { display: none; }
  .header-inner { min-height: 67px; }
  .hero { display: flex; flex-direction: column; }
  .hero-inner { min-height: auto; }
  .hero-copy { width: 100%; padding-block: 34px 14px; }
  .hero h1 { font-size: clamp(2.65rem, 10vw, 4rem); max-width: 13ch; }
  .desktop-break { display: none; }
  .hero p { margin-top: 1rem; }
  .hero-actions { margin-top: 1.2rem; }
  .hero-art { position: static; order: 1; width: 100%; height: min(67vw, 365px); object-position: 50% 52%; mask-image: linear-gradient(180deg, transparent, black 9%); }
  .family { grid-template-columns: 1fr; }
  .math-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 505px) {
  .hero-actions { align-items: stretch; flex-direction: column; gap: .65rem; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { align-self: center; min-height: 44px; }
  .course-grid { grid-template-columns: 1fr; gap: .65rem; }
  .course { display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: .8rem; }
  .course-icon { grid-row: span 3; width: 1.8rem; height: 1.8rem; margin-bottom: 0; }
  .course p { padding-block: .35rem .5rem; }
  .course a { min-height: 32px; }
  .comparison th, .comparison td { padding: .65rem .35rem; font-size: .76rem; line-height: 1.32; overflow-wrap: anywhere; }
  .comparison table { table-layout: fixed; }
  .comparison th:first-child, .comparison th:last-child { width: 31%; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.visit .section-link { margin-top: .85rem; font-size: .9rem; }
.path-details { margin-top: 1.5rem; }
.path-details .focus { padding: .1rem .78rem .45rem; }
.path-details .focus p { padding-left: 0; }
.school-life { background: #edf3ff; }
.school-life-inner { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(26px, 5vw, 64px); padding-block: clamp(34px, 5vw, 66px); }
.school-photo { margin: 0; }
.school-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.school-photo figcaption { margin-top: .5rem; color: var(--muted); font-size: .85rem; }
.life-grid { margin-top: 1rem; }
.life-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .15rem 1rem; border-bottom: 1px solid var(--line); padding-block: .6rem; text-decoration: none; }
.life-card:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.life-card p { grid-column: 1; color: var(--muted); font-size: .93rem; }
.life-card svg { grid-column: 2; grid-row: 1 / span 2; color: var(--blue); }
.school-code { margin-top: .45rem; }
.school-code button { margin-left: .35rem; padding: .24rem .55rem; border: 1px solid var(--yellow); border-radius: 4px; background: transparent; color: var(--yellow); font: inherit; cursor: pointer; }
.school-code button:hover, .school-code button:focus-visible { background: var(--yellow); color: var(--ink); }
.copy-status { color: var(--yellow); font-size: .88rem; }

@media (max-width: 720px) {
  .school-life-inner { grid-template-columns: 1fr; }
}

.page-hero { background: var(--blue); color: white; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.page-hero a { font-weight: 700; color: var(--yellow); }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.7rem, 5vw, 4.8rem); line-height: 1.03; letter-spacing: -.055em; margin-top: 1.3rem; }
.page-hero p { max-width: 44rem; font-size: 1.2rem; margin-top: 1rem; }
.page-content { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); column-gap: 4rem; padding-block: 3.5rem; }
.page-content h2 { grid-column: 1; font-size: 1.7rem; margin-top: 1.5rem; }
.page-content h2:first-child { margin-top: 0; }
.page-content p { grid-column: 1; max-width: 65ch; margin-top: .7rem; color: var(--muted); }
.page-content aside { grid-column: 2; grid-row: 1 / span 10; align-self: start; background: #fff1b7; padding: 1.5rem; border-radius: 8px; }
.page-content aside h2 { font-size: 1.35rem; margin: 0; }
.page-content aside a { color: var(--ink); font-weight: 700; }
.back-mobile { display: none; font-weight: 700; }
@media(max-width: 720px) {
 .page-content { display: block; padding-block: 2rem; }
 .page-content aside { margin-top: 2rem; }
 .back-mobile { display: block; }
}

.page-article { min-width: 0; }
.timetable-scroll { overflow-x: auto; margin-block: 1rem; }
.timetable { width: 100%; min-width: 24rem; border-collapse: collapse; font-size: .92rem; }
.timetable caption { text-align: left; font-weight: 700; margin-bottom: .5rem; }
.timetable th, .timetable td { padding: .55rem .45rem; border-bottom: 1px solid var(--line); text-align: center; }
.timetable th:first-child { text-align: left; }
.timetable thead { background: #edf3ff; }
.timetable tfoot { background: #fff1b7; font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .page-hero h1,
  .page-hero p {
    animation: enter-heading 420ms ease-out both;
  }

  .hero-art {
    animation: settle-artwork 680ms cubic-bezier(.2, .7, .3, 1) both;
  }

  .button,
  .faq summary,
  .school-code button {
    transition: background-color 160ms ease, color 160ms ease;
  }

  .course {
    transition: border-color 180ms ease, box-shadow 180ms ease;
  }

  .course:hover,
  .course:focus-within {
    border-color: var(--blue);
  }

  .course:not(.course-math):hover,
  .course:not(.course-math):focus-within {
    box-shadow: 0 4px 16px #0e245014;
  }

  .button svg,
  .section-link svg,
  .course a svg,
  .life-card svg {
    transition: transform 180ms ease;
  }

  .button:is(:hover, :focus-visible) svg,
  .section-link:is(:hover, :focus-visible) svg,
  .course a:is(:hover, :focus-visible) svg,
  .life-card:is(:hover, :focus-visible) svg {
    transform: translateX(3px);
  }

  .faq summary svg {
    transition: transform 180ms ease;
  }

  .faq details[open] > :not(summary) {
    animation: enter-answer 200ms ease-out both;
  }

  @keyframes enter-heading {
    from { opacity: .65; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes settle-artwork {
    from { opacity: .8; transform: scale(1.025); }
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes enter-answer {
    from { opacity: .65; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.visit-dates, .open-day-schedule { padding-inline-start: 1.2rem; }
.visit-dates li + li, .open-day-schedule li + li { margin-top: .4rem; }
.visit .section-link { display: flex; }
.page-article section + section { margin-top: 2rem; }
.page-article h3 { margin-top: 1.3rem; }
.open-day-schedule time { font-weight: 700; }
.booking-button { margin-top: 1rem; }

.activity-list { list-style: none; padding: 0; margin-top: 1.1rem; }
.activity-list .life-card { padding-block: .8rem; }
.activity-list .life-card h3 { margin: 0; }
.activity-list .life-card p { margin: 0; }
.activity-list .life-card span { grid-column: 2; grid-row: 1 / span 2; }
.content-list { padding-inline-start: 1.45rem; }
.content-list li + li { margin-top: .55rem; }
.info-note { padding: .9rem 1rem; background: #fff1b7; border-radius: 8px; }
.criteria-detail { margin-top: 1.2rem; border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1rem; }
.criteria-detail summary { cursor: pointer; font-weight: 700; }
.criteria-table { width: 100%; margin-top: .9rem; border-collapse: collapse; text-align: left; }
.criteria-table caption { text-align: left; margin-bottom: .4rem; font-weight: 650; }
.criteria-table th, .criteria-table td { padding: .45rem .35rem; border-bottom: 1px solid var(--line); }
@media (max-width: 940px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: var(--radius); }
  .mobile-nav summary:hover { background: #edf3ff; }
  .mobile-nav summary svg { width: 1.5rem; height: 1.5rem; }
  .mobile-nav nav { display: grid; position: absolute; top: 100%; left: 0; right: 0; padding: .35rem var(--gutter) .8rem; background: #fff; border-bottom: 1px solid var(--line); }
  .mobile-nav a { padding: .7rem .25rem; font-weight: 650; text-decoration: none; border-top: 1px solid var(--line); }
}

@media print {
  .status, .header, .page-hero a, .page-content aside, .footer, .skip { display: none; }
  .page-hero { background: white; color: black; padding-block: 1rem; }
  .page-hero h1 { font-size: 2rem; }
  .page-content { display: block; padding-block: 1rem; }
}
