/* "Plate": elegant, one sans (Manrope), light weights at large sizes against regular text.
   The page is the school's 5% tint (--band, which --link passes AA on); white sheets carry
   the alternating sections; the name sits on a white plate laid over the photo's lower edge.
   Hairlines in the school colour mark tables and titles; nothing else decorates. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../../fonts/Manrope.1591a77352bc.woff2") format("woff2"); }
@font-face { font-family: "Rare Latin"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../../fonts/NotoSansRare.746d07864173.woff2") format("woff2");
  unicode-range: U+0149, U+0300-036F, U+1E00-1EFF; }

:root {
  --serif: "Manrope", "Rare Latin", "Manrope fallback", system-ui, sans-serif;
  --sans: "Manrope", "Rare Latin", "Manrope fallback", system-ui, sans-serif;
  --page: var(--band);
  --sheet: #fff;
  --plate: var(--sheet);
  /* the closing plate and its field */
  --panel: var(--plate);
  --close-field: var(--field);
  --hair: #DADDE3;
  --line: var(--hair);
  --muted: #545B69;
  --ink: #1B1F2A;
  /* the field: a pale wash of the school colour, where there is no photo (and behind page titles) */
  --field: var(--accent-tint);
  --prose: 31.5em;
}
@supports (color: color-mix(in srgb, red, red)) { :root { --field: color-mix(in oklab, var(--accent) 14%, var(--band)); } }
@supports (color: color-mix(in srgb, red, red)) { :root { --hair: color-mix(in srgb, var(--accent) 22%, #DADDE3); } }
body { background: var(--page); font-size: 1.0625rem; line-height: 1.6; letter-spacing: .003em; font-feature-settings: "tnum" 0; }
h1, h2, h3 { font-weight: 360; letter-spacing: -.028em; line-height: 1.08; }
h3 { font-weight: 500; letter-spacing: -.012em; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

/* header: on the tint, a single hairline under it */
.top { background: var(--page); border-bottom: 1px solid var(--hair); }
.top .name { font-weight: 500; letter-spacing: -.015em; font-size: 1.125rem; }
.top .name.long { font-size: .9375rem; }
.top .menu { font-weight: 500; letter-spacing: .01em; }
.nav > nav { background: var(--sheet); box-shadow: 0 18px 30px rgb(20 25 40 / .10); border-bottom: 1px solid var(--hair); }
.nav > nav a { font-weight: 400; font-size: 1.25rem; letter-spacing: -.01em; }
/* the current page: a hairline under it, as along the top on a wide screen, not colour alone */
.nav > nav a[aria-current="page"] { font-weight: 600; text-decoration: underline 2px var(--link); text-underline-offset: 6px; }

/* the hero: the photo, and the name on a white plate laid over its lower edge */
.hero { display: block; min-height: 0; overflow: visible; background: none; }
.hero img { position: static; width: 100%; height: 62vw; min-height: 220px; }
/* on a phone the plate sits in by half the margin on both sides, its text on the content edge */
.hero-text { margin: -40px calc(var(--pad) / 2) 0; padding: 18px calc(var(--pad) / 2) 16px; background: var(--plate); color: var(--ink); }
.hero h1 { color: var(--ink); text-shadow: none; font-size: 2.25rem; font-weight: 400; line-height: 1.04; letter-spacing: -.035em; }
.hero h1.long { font-size: 1.6875rem; letter-spacing: -.025em; }
.hero .town { margin-top: 10px; font-size: .9375rem; font-weight: 500; letter-spacing: .015em; color: var(--muted); }
.hero .town .ic { color: var(--link); width: 16px; height: 16px; }
.hero.tall { min-height: 0; }
.hero.tall img { height: 72vw; }
/* no photo: the same plate over a field of the school colour; the field is a block of its own
   height, like a photo, and the plate overlaps its lower edge by the same amount */
.hero.bare { min-height: 0; padding-top: 0; background: none; }
.hero.bare::before { content: ""; display: block; height: 112px; background: var(--field); }
.hero.bare .hero-text { margin-top: -40px; padding-top: 18px; background: var(--plate); color: var(--ink); }
.hero.bare h1 { color: var(--ink); }

/* the first screen */
.first { padding: 18px var(--pad) 12px; }
.status { border-radius: 3px; font-weight: 600; min-height: 48px; padding: 9px 14px;
  display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: 10px; row-gap: 0; }
.status::before { width: 8px; height: 8px; align-self: center; }
.status span, .first .status span { grid-column: 2; margin-left: 0; justify-self: start; font-weight: 450; }
.lines { color: var(--ink); }
.btn { border-radius: 3px; font-weight: 600; letter-spacing: .005em; }
.btn.main { box-shadow: inset 0 0 0 1px var(--deep); }
.btn.alt { background: var(--sheet); box-shadow: inset 0 0 0 1px var(--link); }
.share { font-weight: 500; }

/* dates: the day as a light numeral in a hairline frame */
.tile { background: var(--sheet); border: 1px solid var(--hair); border-radius: 0; color: var(--link); }
.tile small { font-weight: 500; letter-spacing: .03em; font-size: .8125rem; }
.tile b { font-weight: 340; font-size: 2rem; letter-spacing: -.03em; margin-top: 2px; }
.date h3, .date h2 { font-family: var(--sans); font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; line-height: 1.3; }
.next { background: var(--sheet); border: 1px solid var(--hair); border-radius: 0; padding: 16px; }
.next .cal { font-weight: 500; }

/* sections: the tint by default, a white sheet where the site marks a band */
.block { padding: 48px var(--pad); }
.block.band { background: var(--sheet); }
.block h2 { font-size: 2.125rem; font-weight: 340; letter-spacing: -.035em; }
.block h2 + * { margin-top: 20px; }
.lede { font-size: 1.25rem; font-weight: 380; line-height: 1.55; letter-spacing: -.005em; }
.more, .head2 a, .visit .map, .block .cal { font-weight: 500; }

/* figures: large, over a hairline in the school colour; a step heavier than the headings,
   so amounts stay legible on a phone in the sun */
.facts { border-top: 1px solid var(--link); }
/* second#DES-58: More about us keeps a step from the figures' rule under it */
.intro .more + .facts { margin-top: 20px; }
.facts b { font-weight: 440; font-size: 1.75rem; letter-spacing: -.03em; line-height: 1.1; }
.facts span { font-size: .875rem; letter-spacing: .01em; }
.table { border-top: 1px solid var(--link); }
.table dt { font-weight: 500; }
.table dd { font-weight: 440; font-size: 1.625rem; letter-spacing: -.03em; font-feature-settings: "tnum" 1; }
.table dd small { letter-spacing: .01em; }
.table.plain dd { font-weight: 400; letter-spacing: 0; }
.list { border-top: 1px solid var(--link); }
.list li { font-weight: 400; }

/* the newsletter: no box, a row between two hairlines, like the dates */
.letter { padding: 16px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.letter svg { box-shadow: 0 1px 2px rgb(20 25 40 / .14); border-radius: 0; }
.block .letter h2 { font-size: 1.375rem; font-weight: 400; letter-spacing: -.02em; }
.letter span { font-weight: 600; }

/* photographs as plates: each on a white mat, like the name */
.photos { gap: 12px; border-radius: 0; overflow: visible; }
.photos img, .gallery img { border-radius: 0; padding: 6px; background: #fff; box-shadow: 0 1px 2px rgb(20 25 40 / .12); }
.gallery figcaption { letter-spacing: .01em; }

.visit address { font-size: 1.1875rem; font-weight: 350; }
.rows a { font-weight: 500; }

/* inner pages: the title on a white plate over a field of the school colour, as on Home */
.page-head { background: none; border: 0; padding: 0; }
.page-head::before { content: ""; display: block; height: 64px; background: var(--field); }
.page-head h1 { margin: -32px calc(var(--pad) / 2) 0; padding: 18px calc(var(--pad) / 2) 16px;
  background: var(--plate); font-size: 2.5rem; font-weight: 340; letter-spacing: -.035em; }
.steps li::before { font-family: var(--sans); font-weight: 400; font-size: 1.25rem; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--link); }
/* top and bottom only: the shared sheet's right padding holds the text to its measure */
.steps li { padding-top: 14px; padding-bottom: 14px; }
.doc .cover { border-radius: 0; }
.doc b { font-weight: 600; }
.byline b { font-weight: 400; font-size: 1.5rem; letter-spacing: -.02em; }
.welcome { border-left: 1px solid var(--link); padding-left: 22px; }
.welcome p { font-family: var(--sans); font-weight: 380; font-size: 1.1875rem; }
.items .mark { background: var(--sheet); border: 1px solid var(--hair); border-radius: 0; }
.block.band .items .mark { background: var(--page); }
.items h3 { font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; }

/* the footer: quiet, on the tint under a hairline, the name in ink */
.foot { --on-deep: var(--ink); background: var(--page); color: var(--ink); border-top: 1px solid var(--hair); }
.foot .who b { font-weight: 400; font-size: 1.375rem; letter-spacing: -.02em; }
/* the links are a plain list under the name: small, regular and softened, with no mark on
   the current page, so they do not read as a second menu */
.foot nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 12px; border-top: 0; }
.foot nav a { font-size: .9375rem; font-weight: 400; border-bottom: 0; color: var(--muted); }
.foot nav a:hover { color: var(--on-deep); text-decoration: underline; text-underline-offset: 3px; }
.foot nav a[aria-current="page"] { text-decoration: none; }
.foot :focus-visible { outline-color: var(--on-deep); }

@media (min-width: 960px) {
  .top { min-height: 80px; }
  .top .name { font-size: 1.25rem; }
  .top .name.long { font-size: 1.0625rem; }
  .top-links { gap: 2px; }
  .top-links a { font-weight: 450; color: var(--muted); letter-spacing: .01em; }
  .top-links a:hover { color: var(--ink); }
  .top-links a[aria-current="page"] { color: var(--ink); }
  .top-links a[aria-current="page"]::after { height: 1px; bottom: 4px; border-radius: 0; background: var(--link); }

  /* the photo's height follows its width, so a wide screen does not crop it to a letterbox,
     but leaves the first screen room for the buttons */
  .hero img { height: clamp(360px, min(36vw, 60vh), 640px); object-position: 50% 62%; }
  /* the plate's text starts on the content edge; the plate bleeds 48px past it, less where
     the margin is narrower, so 16px of photo always shows beside it */
  .hero-text { width: fit-content; min-width: min(640px, 100%); margin: -104px 0 0 calc(var(--side) - min(48px, var(--side) - 16px)); max-width: min(1040px, calc(100% - 2 * var(--side) + min(48px, var(--side) - 16px))); padding: 36px 64px 30px min(48px, var(--side) - 16px); }
  /* over a two-column first screen the plate is the status column plus its 48px bleed, so the
     plate and the status share both edges */
  .opening:not(:has(> .first > .next)) .hero-text { width: calc(100% - 2 * var(--side) - 420px - 64px + 2 * min(48px, var(--side) - 16px)); min-width: 0; padding-right: 32px; }
  .hero h1 { font-size: 4rem; font-weight: 300; letter-spacing: -.035em; }
  .hero h1.long { font-size: 3rem; letter-spacing: -.035em; }
  .hero .town { font-size: 1rem; margin-top: 14px; }
  .hero.tall img { height: clamp(400px, min(42vw, 64vh), 720px); }
  .hero.bare::before { height: 200px; }
  .hero.bare .hero-text { margin-top: -104px; padding-top: 36px; }
  .hero.bare h1 { font-size: 4rem; }
  .hero.bare h1.long { font-size: 3rem; }

  .first { padding: 36px var(--side) 48px; border-bottom: 1px solid var(--hair); }
  /* a page that ends on the first screen: the footer's rule is enough */
  main > .opening:last-child .first { border-bottom: 0; }
  .block { padding: 76px var(--side); }
  .block h2 { font-size: 3rem; }
  .pair { padding: 76px var(--side); }
  /* sheets follow the wide bands only, so the photos after the pair go back to the tint */
  .block.band:not(.band-wide) { background: none; }
  .block.band-wide, .pair.band-wide { background: var(--sheet); }
  /* the newsletter's top rule level with the dates' rule beside it */
  .pair > .block:last-child { padding-top: calc(3rem * 1.08 + 20px); }
  .block.intro { column-gap: 96px; }
  /* one or two facts still sit beside the welcome, not under it */
  .block.intro:not(:has(.facts > :nth-child(3))):has(> .facts) { display: grid; }
  .block.intro:not(:has(.facts > :nth-child(3))):has(> .facts) > * { max-width: none; }
  .facts b { font-size: 2.25rem; }
  .table dd { font-size: 2rem; }
  .page-head { padding: 0; }
  .page-head::before { height: 168px; }
  .page-head h1 { width: fit-content; min-width: min(640px, 100%); margin: -96px 0 0 calc(var(--side) - min(48px, var(--side) - 16px)); max-width: calc(100% - 2 * var(--side) + min(48px, var(--side) - 16px));
    padding: 36px 64px 30px min(48px, var(--side) - 16px); font-size: 4.5rem; font-weight: 300; letter-spacing: -.035em; }
  /* Contact's first block on the grid of the blocks under it: the buttons in the heading
     column, the rows beside them at the width of the address */
  .first.touch { grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); column-gap: 64px; }
  .first.touch .acts { grid-column: 1; grid-row: 1; margin-top: 0; }
  .first.touch .share { grid-column: 1; grid-row: 2; justify-self: start; }
  .first.touch .rows { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  /* inner pages: the home page's 1120 width; lists, tables and steps fill it in two columns */
  main:has(> .page-head) { --side: max(var(--pad), calc((100% - 1120px) / 2)); }
  main:has(> .page-head) .block:has(> .gallery, > .list) > :not(.gallery, .list, .more-photos) { margin-inline: 0; }
  main:has(> .page-head) :is(.steps, .items, .docs):has(> :nth-child(3)) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
  /* amounts and dates read down one column */
  main:has(> .page-head) .table { max-width: 640px; }
  main:has(> .page-head) .steps li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  main:has(> .page-head) .items li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  main:has(> .page-head) .docs li:nth-last-child(2):nth-child(odd) .doc { border-bottom: 1px solid var(--line); }
  main:has(> .page-head) .block > .note { max-width: 65ch; }
  /* the lede over the body in one column, so one text level has one size */
  .block.prose > * { max-width: 760px; }
  /* a heading and one text: the heading left, the text beside it, as in the principal's letter */
  main:has(> .page-head) .block:is(:has(> h2 + .text:last-child), :has(> h2 + .table:not(:has(> :nth-child(3))):last-child)) {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); column-gap: 64px; align-items: start; }
  main:has(> .page-head) .block:is(:has(> h2 + .text:last-child), :has(> h2 + .table:not(:has(> :nth-child(3))):last-child)) > :last-child { margin-top: 6px; }
  main:has(> .page-head) .visit:not(:has(> .acts, > .rows)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); }
  main:has(> .page-head) .visit:not(:has(> .acts, > .rows)) > h2 { grid-row: 1 / span 4; }
  main:has(> .page-head) .visit:not(:has(> .acts, > .rows)) > :not(h2) { grid-column: 2; }
  main:has(> .page-head) .visit:not(:has(> .acts, > .rows)) > address { margin-top: 6px; }
  .block:has(> .welcome) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); column-gap: 64px; align-items: start; }
  .block:has(> .welcome) > :not(.welcome) { grid-column: 1; }
  .block:has(> .welcome) > .welcome { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .foot { display: block; padding: 56px var(--side) 40px; }
  .foot .who b { font-size: 1.5rem; }
  .foot nav { margin-top: 12px; }
  /* Home's visit: the buttons beside the heading at their own height, the rows beside the address */
  .visit .acts { grid-row: 1; align-self: start; margin-top: 4px; }
  .visit .rows { grid-row: 2 / span 3; margin-top: 16px; }
  .visit > .share { justify-self: start; }
  /* Home's photos: a lead plate over two rows beside it, then a row of three; six or three
     photos fill the grid, two keep their pair */
  .photos:not(.two) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photos:not(.two) img { aspect-ratio: 4 / 3; }
  .photos:not(.two) .wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; }
}
/* the close: the contact on a plate over a field of the school colour, as the page opened.
   Two solid layers with hard edges, no wash. On a phone the plate is inset like the name's
   plate at the top, and ends above the footer, so its edges show (second#DES-56). */
.block.close { padding: 76px var(--pad) 68px;
  background: linear-gradient(var(--panel), var(--panel)) center top 40px / calc(100% - var(--pad)) calc(100% - 64px) no-repeat,
    linear-gradient(var(--close-field), var(--close-field)) 0 0 / 100% 72px no-repeat, var(--page); }
/* a status on its own: one line across the content, its link at the end */
.block > .status:only-child, .first > .status:only-child { max-width: none; }
@media (min-width: 960px) {
  .block.close { padding: 152px var(--side) 112px;
    /* centred, not placed by --side: on a wide screen --side holds a percentage, and a
       percentage in a background's position is not a share of the block's width */
    /* the plate ends above the footer, so the page shows under it */
    background: linear-gradient(var(--panel), var(--panel)) center bottom 40px / calc(100% - 2 * var(--side) + 2 * min(48px, var(--side) - 16px)) calc(100% - 136px) no-repeat,
      linear-gradient(var(--close-field), var(--close-field)) 0 0 / 100% 168px no-repeat, var(--page); }
  .block > .status:only-child, .first > .status:only-child { display: flex; justify-content: space-between; align-items: center; }
  .block > .status:only-child span, .first > .status:only-child span { flex-basis: auto; margin-left: auto; }
  .first:has(> .status:only-child) { display: block; }
  .block:has(> .status:only-child) { padding-top: 40px; padding-bottom: 40px; }
  /* a short block on Home (a welcome without figures, a visit with only rows): the heading left,
     the rest beside it, so a new site's first blocks do not leave half the screen empty */
  .block.intro.intro.intro:not(:has(> .facts)), .block.visit.visit.visit:not(:has(> address, > .acts)) {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); grid-template-rows: auto; column-gap: 64px; align-items: start; }
  .block.intro.intro.intro:not(:has(> .facts)) > h2, .block.visit.visit.visit:not(:has(> address, > .acts)) > h2 { grid-column: 1; grid-row: 1 / span 4; }
  .block.intro.intro.intro:not(:has(> .facts)) > :not(h2), .block.visit.visit.visit:not(:has(> address, > .acts)) > :not(h2) { grid-column: 2; max-width: 65ch; }
  .block.intro.intro.intro:not(:has(> .facts)) > :nth-child(2), .block.visit.visit.visit:not(:has(> address, > .acts)) > .rows { margin-top: 8px; grid-row: 1; }
  /* the closing plate of an inner page: the words left, the buttons and rows right */
  .block.close:not(.visit) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 64px; align-items: start; }
  .block.close:not(.visit) > * { grid-column: 1; }
  .block.close:not(.visit) > .acts { grid-column: 2; grid-row: 1; margin-top: 4px; max-width: none; }
  .block.close:not(.visit) > .rows { grid-column: 2; grid-row: 2 / span 2; max-width: none; }
  /* a heading and a dated card: the heading left, the card beside it */
  main:has(> .page-head) .block:has(> h2 + .next:last-child) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); column-gap: 64px; align-items: start; }
  main:has(> .page-head) .block:has(> h2 + .next:last-child) > .next { margin-top: 6px; max-width: none; }
}
/* hours on a phone: the times under their words, on one line, not squeezed into a column */
@media (max-width: 959px) {
  .table.plain div { display: block; }
  .table.plain dd { margin-top: 4px; text-align: left; }
}
/* a very narrow phone: one figure per line, so a long word never pushes the page sideways */
@media (max-width: 299px) {
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd), .facts div:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }

/* a fact such as "Classes of 20" stays on one line in a phone's half-width cell: the
   heavier weight steps down a size there (audit-public-css) */
@media (max-width: 479px) {
  .facts b { font-size: 1.5rem; }
}
