/* schoolweb.page look "Rondebosch": traditional. The site opens like a well-made book.
   Home is a title page: the crest centred, the name over a short hairline, the town in spaced small caps under it, and the photo below as a print on a white
   mat. Inner pages open the same way, and every section head is centred over a small
   diamond between hairlines. Text runs in one centred column on ivory paper; tables keep
   only the hairlines between their rows. Rules stay few: the type and the centring carry
   the look. Figures are lining: in Garamond's
   old style a 1 reads as an I, and "Grade 1" and "R1,450" must not.
   The school colour is a ribbon along the top and the cloth of the closing section and
   footer, like a blazer. No rounded corners, no shadows, no washes.
   One family, EB Garamond (roman and italic, variable), with its own small caps. */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../../fonts/EBGaramond.49e1c5931874.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 500; font-display: swap;
  src: url("../../fonts/EBGaramondItalic.b29766d2e919.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: "EB Garamond", "Rare Latin", "EB Garamond fallback", "EB Garamond fallback noto", Georgia, serif;
  --sans: "EB Garamond", "Rare Latin", "EB Garamond fallback", "EB Garamond fallback noto", Georgia, serif;
  /* ivory paper, and white for the mat round a photo */
  --paper: #FBF9F4;
  --mat: #fff;
  --ink: #1C1B19;
  --muted: #5A554D;
  --line: #DDD7CB;
  /* --link is promised AA on white; a step darker keeps it AA on the ivory */
  --paper-link: var(--link);
  /* the cloth: the school colour, dark enough for white text at 7:1 */
  --cloth-line: currentColor;
  /* the text column, and the wider one for photos */
  --measure: 36rem;
  --wide: 70rem;
  --prose: 26em;
}
@supports (color: color-mix(in srgb, red, red)) { :root { --cloth-line: color-mix(in srgb, var(--on-deep) 30%, var(--deep)); } }
@supports (color: color-mix(in srgb, red, red)) { :root { --paper-link: color-mix(in oklab, var(--link) 86%, #000); } }
body { --link: var(--paper-link); background: var(--paper); font-size: 1.1875rem; line-height: 1.55;
  font-variant-numeric: proportional-nums; font-kerning: normal; }
h1, h2, h3 { font-weight: 500; letter-spacing: 0; line-height: 1.12; }
h3 { font-weight: 600; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

/* the ornaments. A section head sits over a small diamond between two hairlines; the
   title page has one short hairline under the town, an inner page's title none. */
.block > h2::after, .head2 > h2::after {
  content: ""; display: block; width: 120px; height: 10px; margin: 16px auto 0; color: var(--link);
  background:
    linear-gradient(currentColor, currentColor) 0 5px / 46px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 74px 5px / 46px 1px no-repeat,
    linear-gradient(to bottom right, transparent 50%, currentColor 50%) 55px 0 / 5px 5px no-repeat,
    linear-gradient(to bottom left, transparent 50%, currentColor 50%) 60px 0 / 5px 5px no-repeat,
    linear-gradient(to top right, transparent 50%, currentColor 50%) 55px 5px / 5px 5px no-repeat,
    linear-gradient(to top left, transparent 50%, currentColor 50%) 60px 5px / 5px 5px no-repeat;
}
.hero-text::after { content: ""; display: block; width: 6rem; height: 0; margin: 0 auto; border-top: 1px solid var(--deep); }

/* ---------- the header: a ribbon of the school colour, the name as a running head ---------- */
.top { min-height: 64px; background: var(--paper); border-top: 5px solid var(--deep); border-bottom: 0; }
.top .name { font-weight: 500; font-variant-caps: all-small-caps; letter-spacing: .08em; font-size: 1.3125rem; line-height: 1.15; }
.top .name.long { font-size: 1.125rem; letter-spacing: .05em; }
.top .menu { font-variant-caps: all-small-caps; letter-spacing: .1em; font-size: 1.25rem; font-weight: 500; }
.nav > nav { background: var(--paper); box-shadow: none; border-bottom: 1px solid var(--line); }
.nav > nav a { justify-content: center; font-size: 1.3125rem; font-weight: 400; border-color: var(--line); }
.nav > nav a[aria-current="page"] { font-weight: 600; }

/* Home: the header holds the crest alone, centred above the name; the name itself is
   the title page's, so the running head steps aside (still read out, not cut) */
.top:has(~ main > .opening) { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(max-content, 1fr); padding-left: 8px; border-bottom: 0; }
.top:has(~ main > .opening) .home { grid-column: 2; justify-content: center; padding-top: 14px; }
.top:has(~ main > .opening) .nav { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; }
.top:has(~ main > .opening) .name { position: absolute; top: 0; left: 0; right: 0; clip-path: inset(50%); }
.top:has(~ main > .opening) .logo { height: auto; max-height: 64px; max-width: 52vw; object-position: center; }
.top:has(~ main > .opening) .logo.alone { max-height: 56px; }
/* no crest: the ribbon and the menu, then the title straight away; with no menu either, the ribbon alone */
.top:has(~ main > .opening):not(:has(.logo, .nav)) { min-height: 0; padding-block: 0; }
/* the base sheet hides an empty header; here it stays, as the ribbon alone */
.top:has(.name.sr):not(:has(.logo, .nav)):has(~ main > .opening) { display: block; }
.top:has(.name.sr):not(:has(.logo, .nav)):has(~ main > .opening) > * { display: none; }
.top:has(~ main > .opening):not(:has(.logo)) ~ main .hero-text { padding-top: 28px; }

/* ---------- the title page ---------- */
.hero { display: flex; flex-direction: column; min-height: 0; overflow: visible; background: none; }
.hero-text { order: 1; padding: 22px var(--pad) 26px; background: none; color: var(--ink); text-align: center; }
.hero h1 { margin: 18px 0 0; color: var(--ink); text-shadow: none; font-size: 2.5rem; font-weight: 500; line-height: 1.06; letter-spacing: -.005em; text-wrap: balance; }
.hero h1.long { font-size: 1.875rem; line-height: 1.1; }
.hero .town { justify-content: center; margin: 8px 0 18px; color: var(--muted); font-size: 1.3125rem; font-weight: 500;
  font-variant-caps: all-small-caps; letter-spacing: .16em; text-wrap: balance; }
.hero h1:last-child { margin-bottom: 18px; }
.hero .town .ic { display: none; }
/* the photo: a print on a white mat, with a keyline */
.hero img { order: 2; position: static; width: calc(100% - 2 * var(--pad)); height: auto; margin: 0 auto; aspect-ratio: 3 / 2;
  padding: 7px; background: var(--mat); border: 1px solid var(--line); object-fit: cover; }
.hero.tall { min-height: 0; }
.hero.tall img { aspect-ratio: 1; }
.hero.bare { min-height: 0; }
.hero.bare .hero-text { padding: 34px var(--pad) 30px; color: var(--ink); }
.hero.bare h1 { color: var(--ink); }

/* ---------- the first facts, under the title ---------- */
.first { padding: 24px var(--pad) 12px; }
.status { justify-content: center; text-align: center; border-radius: 0; font-weight: 600; }
.status span, .first .status span { margin-left: 0; font-weight: 400; }
.lines { text-align: center; font-size: 1.125rem; line-height: 1.45; }
.btn { border-radius: 0; font-weight: 600; font-size: 1.1875rem; letter-spacing: .01em; }
.btn.main { box-shadow: inset 0 0 0 1px var(--edge); }
.btn.alt { background: transparent; box-shadow: inset 0 0 0 1px var(--link); }
.share { font-weight: 500; font-style: italic; }
.visit .share { justify-content: center; }

/* a date: a calendar leaf with a keyline, the month in small caps */
.tile { border-radius: 0; background: transparent; border: 1px solid var(--line); border-top: 3px solid var(--deep); color: var(--link); }
.tile small { font-size: 1.0625rem; font-weight: 500; font-variant-caps: all-small-caps; letter-spacing: .1em; }
.tile b { font-weight: 500; font-size: 1.875rem; }
.date h3, .date h2 { font-size: 1.3125rem; font-weight: 600; line-height: 1.2; }
.date p { font-style: italic; font-size: 1.0625rem; }
/* the leaf is frame enough: no box round it */
.next { border: 0; border-radius: 0; margin-top: 14px; padding: 0; }
.next .cal { font-weight: 500; }

/* ---------- sections: one centred column, the head centred over its ornament ---------- */
.block { padding: 44px var(--pad); }
.pair > .block + .block { padding-top: 0; }
.page-head + .block { padding-top: 32px; }
.block.band { background: none; }
.block > * { max-width: var(--measure); margin-inline: auto; }
.block > h2, .head2 > h2 { text-align: center; font-size: 2.125rem; }
.block > h2 + * { margin-top: 26px; }
.head2 { flex-direction: column; align-items: center; gap: 0; }
.head2 > a { margin-top: 8px; }
/* second#DES-75: See all and Add to my calendar take the italic of More about us and Read it */
.head2 > a, .next .cal, .block > .cal { font-weight: 500; font-style: italic; }
.head2 + * { margin-top: 22px; }
.more { display: flex; width: fit-content; margin-inline: auto; margin-top: 14px; font-weight: 500; font-style: italic; }
.lede { font-size: 1.3125rem; line-height: 1.55; }
/* text keeps within the column and within 54ch (about 65 letters of this face; MP-31).
   The 54ch are measured once, on the section in the text's own size, so the
   larger lede gets the same width and the same left edge as the paragraphs under it. */
@property --text-measure { syntax: "<length>"; inherits: true; initial-value: 576px; }
main .block.block { --text-measure: min(var(--measure), 54ch); }
main .block.block > :is(p, .text, .prose, .welcome) { max-width: min(var(--measure), 54ch); }
main .block.block > .lede { max-width: var(--text-measure); }
.note { max-width: 54ch; text-align: center; }
/* the welcome opens on a two-line initial in the school colour, when there is more than
   a line for it to sit in */
.intro .lede:not(:only-child)::first-letter { initial-letter: 2; margin-right: .1em; color: var(--link); font-weight: 500; }

/* figures: centred under a rule, each with its note in italic */
.facts { border-top: 0; text-align: center; }
.facts div { padding: 16px 8px 18px; border-bottom: 0; }
.facts div:nth-child(odd) { padding-right: 8px; }
.facts div:nth-child(even) { padding-left: 8px; }
.facts b { font-weight: 500; font-size: 1.5rem; }
.facts span { font-style: italic; font-size: 1.0625rem; }
.intro .facts { margin-top: 34px; }

/* tables as in a prospectus: hairlines between the rows, nothing round them */
.table, .list { border-top: 0; border-bottom: 0; }
.table div:last-child, .list li:nth-last-child(-n + 2):nth-child(odd), .list li:last-child { border-bottom: 0; }
.table dt { font-weight: 500; }
.table dd { font-weight: 500; font-size: 1.4375rem; font-variant-numeric: tabular-nums; }
.table dd small { font-family: var(--serif); font-style: italic; font-size: 1.0625rem; }
.table.plain dd { font-family: var(--serif); font-size: 1.1875rem; font-weight: 400; }
.table.plain dd small { margin-top: 0; }
/* names, days and terms part by space alone; only the fees keep hairlines */
.table.plain div, .list li, .items li, .items li:last-child, .steps li, .steps li:last-child, .doc, .docs li:last-child .doc { border: 0; }
#hours .table dt { font-weight: 400; }
#hours .table dd { color: var(--ink); white-space: nowrap; }
/* prose, tables and lists share one measure and one edge */
main .block.block > :is(.table, .list, .steps, .docs, .items, .dates, .rows, .facts, .letter) { max-width: min(var(--measure), 54ch); }
p, .lines, .date h3 { text-wrap: pretty; }
.list li { font-weight: 400; }
.note { font-style: italic; font-size: 1.0625rem; }
.block > p + .table { margin-top: 20px; }
.block > .cal { display: flex; width: fit-content; margin-inline: auto; margin-top: 12px; font-weight: 500; }
.block > .date { width: fit-content; }

.dates li, .dates li:last-child { border: 0; }
/* the cover's keyline is the only frame the newsletter needs */
.letter { padding: 0; border: 0; border-radius: 0; background: transparent; }
.letter svg { border-radius: 0; box-shadow: none; border: 1px solid var(--line); }
.block .letter h2 { font-size: 1.375rem; font-weight: 600; }
.letter h2 + p { margin-top: 2px; }
.letter span { font-weight: 500; font-style: italic; }

/* photos: prints on white mats */
.block > :is(.photos, .gallery, .more-photos) { max-width: var(--wide); }
.photos { gap: 12px; border-radius: 0; overflow: visible; }
.photos img, .gallery img { padding: 5px; background: var(--mat); border: 1px solid var(--line); border-radius: 0; }
.gallery { gap: 22px 12px; }
/* photos on Home: no empty cell, whatever the count */
.photos.n1 { grid-template-columns: 1fr; max-width: 40rem; }
.photos.n1 .wide, .photos.n4 .wide, .photos.n5 .wide { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
.photos.n5 { grid-template-columns: 1fr 1fr; }
.gallery figcaption { margin-top: 8px; font-style: italic; text-align: center; font-size: 1rem; }

/* the steps to apply: numerals in the school colour, no discs */
.steps li { border-color: var(--line); }
.steps li::before { content: counter(step) "."; place-items: start center; width: auto; min-height: 0; border-radius: 0;
  background: none; box-shadow: none; color: var(--link); font-size: 1.5rem; font-weight: 500; line-height: 1.1; }
.doc { border-color: var(--line); }
.doc .cover { border-radius: 0; box-shadow: none; border: 1px solid var(--line); }
.doc b { font-weight: 600; }
.doc small { font-style: italic; }

/* About: the principal's letter, signed in the centre */
.byline.solo { text-align: center; }
.byline b { font-weight: 600; font-size: 1.375rem; }
.byline span { font-style: italic; }
.welcome { margin-top: 22px; padding-left: 0; border-left: 0; }
.welcome p { font-size: 1.1875rem; line-height: 1.6; }
.items li { border-color: var(--line); }
.items .mark { border-radius: 0; background: none; border: 0; }
.items h3 { font-size: 1.3125rem; font-weight: 600; }
.items p.sub { font-style: italic; font-size: 1.0625rem; }

.visit address { font-size: 1.25rem; text-align: center; }
.visit .map { display: flex; width: fit-content; margin-inline: auto; font-weight: 500; }
.visit .hours { text-align: center; font-style: italic; }
.rows a { font-weight: 500; border-color: var(--line); }
.rows a small { font-style: italic; }
.campus { text-align: center; }
.campus .map { margin-inline: auto; }
.campus .grades { font-style: italic; color: var(--muted); }

/* an inner page opens like the title page, with the page's name between the rules. On a
   phone the title is a clear step above the 34 px section headings (second#DES-74). */
.page-head { padding: 34px var(--pad) 6px; background: none; border-bottom: 0; text-align: center; }
.page-head h1 { margin: 18px 0; font-size: 3rem; font-weight: 500; line-height: 1.06; letter-spacing: -.005em; }
.page-head + .first { padding-top: 28px; }
main > .first:not(.opening .first) { max-width: calc(min(var(--measure), 54ch) + 2 * var(--pad)); margin-inline: auto; }

/* ---------- the cloth: the closing section and the footer, in the school colour ---------- */
.block.close, .foot {
  --ink: var(--on-deep); --link: var(--on-deep); --muted: var(--on-deep); --line: var(--cloth-line);
  background: var(--deep); color: var(--on-deep);
}
@supports (color: color-mix(in srgb, red, red)) { .block.close, .foot { --muted: color-mix(in srgb, var(--on-deep) 82%, var(--deep)); } }
.block.close { text-align: center; }
.block.close > p { margin-inline: auto; }
.close .btn.main { background: var(--on-deep); color: var(--deep); box-shadow: none; }
.close .btn.alt { background: transparent; color: var(--on-deep); box-shadow: inset 0 0 0 1px var(--on-deep); }
.close .rows { text-align: left; }
.close :focus-visible, .foot :focus-visible { outline-color: var(--on-deep); }
/* the footer is a colophon: centred, a diamond over the name */
.foot { text-align: center; padding: 40px var(--pad) 30px; }
.foot::before { margin: 0 auto 22px; }
/* second#DES-34: the diamond the colophon promises, so the footer is set off from the
   closing section on the same cloth */
.foot::before { content: ""; display: block; width: 120px; height: 10px; color: var(--on-deep);
  background:
    linear-gradient(currentColor, currentColor) 0 5px / 46px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 74px 5px / 46px 1px no-repeat,
    linear-gradient(to bottom right, transparent 50%, currentColor 50%) 55px 0 / 5px 5px no-repeat,
    linear-gradient(to bottom left, transparent 50%, currentColor 50%) 60px 0 / 5px 5px no-repeat,
    linear-gradient(to top right, transparent 50%, currentColor 50%) 55px 5px / 5px 5px no-repeat,
    linear-gradient(to top left, transparent 50%, currentColor 50%) 60px 5px / 5px 5px no-repeat; }
.foot .who { justify-content: center; }
.foot .who b { font-weight: 500; font-size: 1.75rem; line-height: 1.1; text-wrap: balance; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 14px; margin-top: 16px; border: 0; }
/* the footer's links are a quiet line of plain roman under the name, not the header's
   small caps, and with no mark on the current page, so they do not read as a second menu */
.foot nav a { border: 0; font-weight: 400; font-size: 1.0625rem; color: var(--muted); }
.foot nav a:hover { color: var(--on-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.foot nav a[aria-current="page"] { text-decoration: none; }
.foot .small { margin-inline: auto; font-style: italic; font-size: .9375rem; }
.foot details summary { min-width: 44px; justify-content: center; font-style: italic; }

/* a one-page site: nothing between the photo and the cloth but paper */
main:not(:has(> .block, > .pair)) > .opening { padding-bottom: 28px; }

/* a narrow phone: a plain table stacks, the role under the name */
@media (max-width: 479px) {
  .hero .town { letter-spacing: .1em; }
  .table.plain div { display: block; }
  .table.plain dd { margin-top: 2px; text-align: left; white-space: normal; }
  #hours .table.plain dd { white-space: nowrap; }
}

/* ---------- desktop ---------- */
@media (min-width: 960px) {
  /* the header: the pages in small caps along the top, the name centred under them */
  .top, :is(.top:has(~ main > .opening)) { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 0 var(--pad); min-height: 0; }
  .top-links { order: -1; align-self: stretch; justify-content: center; gap: 8px; margin: 0; }
  .top-links a { padding: 0 16px; font-size: 1.25rem; font-weight: 500; color: var(--ink); font-variant-caps: all-small-caps; letter-spacing: .1em; }
  .top-links a[aria-current="page"]::after { left: 16px; right: 16px; bottom: 7px; height: 1px; border-radius: 0; background: var(--link); }
  .top .home { justify-content: center; padding: 14px 0 16px; }
  .top .name { flex: none; font-size: 1.625rem; text-align: center; }
  .top .name.long { flex-basis: auto; font-size: 1.375rem; }
  .top .logo { max-width: 240px; object-position: center; }
  .top:has(~ main > .opening) .home { padding: 20px 0 0; }
  .top:has(~ main > .opening) .logo { max-height: 88px; max-width: 420px; }
  /* the base sheet lets a crest beside a hidden name grow to 52vw; a wide one stays under the name's width */
  .top:has(~ main > .opening) .home:has(> .name.sr) .logo { max-width: min(420px, 52vw); }
  .top:has(~ main > .opening) .logo.alone { max-height: 76px; }
  .top:has(~ main > .opening):not(:has(.logo)) ~ main .hero-text { padding-top: 44px; }

  /* the title page across the top, then the print and the first facts side by side */
  .opening { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 56px; align-items: center;
    max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad) 64px; }
  .opening > .hero { display: contents; }
  .opening .hero-text { grid-column: 1 / -1; grid-row: 1; padding: 20px 0 32px; }
  .hero h1 { font-size: 4.25rem; margin-top: 8px; }
  .hero h1.long { font-size: 3rem; }
  .hero .town { font-size: 1.625rem; margin: 8px 0 20px; }
  .opening .hero img { grid-column: 1; grid-row: 2; width: 100%; padding: 9px; }
  /* the first facts sit beside the middle of the print, inside the first screen */
  .opening > .first { grid-column: 2; grid-row: 2; align-self: center; display: flex; flex-direction: column; align-items: stretch; padding: 0; border-bottom: 0; }
  .opening > .first > * { margin-top: 0; }
  .opening > .first > * + * { margin-top: 18px; }
  .opening > .first > .share { margin-top: 4px; align-self: center; }
  .first .status span { flex-basis: auto; margin-left: 0; }
  /* no photo: the facts sit centred under the title */
  .opening:has(> .hero.bare) > .first { grid-column: 1 / -1; width: 100%; max-width: 34rem; justify-self: center; }
  .hero.bare .hero-text { padding: 48px 0 52px; }

  main > .first:not(.opening .first) { display: block; padding: 36px var(--pad) 8px; border-bottom: 0; }
  .block > .campuses { max-width: 60rem; }
  .opening .hero.tall img { aspect-ratio: 4 / 3; }
  .first.touch .rows { margin-top: 18px; }
  .first.touch .share { display: flex; }

  .block { padding: 60px var(--pad); }
  .page-head + .block { padding-top: 44px; }
  .block > h2, .head2 > h2 { font-size: 2.625rem; }
  .block.intro.intro, .visit.visit, .block.close:not(.visit) { display: block; }
  /* the base sheet widens a welcome with fewer than three figures to 65ch; it keeps this look's column */
  main .block.block.intro.intro > * { max-width: min(var(--measure), 54ch); }
  main .block.block.intro.intro > .lede { max-width: var(--text-measure); }
  .intro .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
  .intro .facts div, .intro .facts div:nth-child(odd), .intro .facts div:nth-child(even) { padding: 18px 12px 20px; border-bottom: 0; border-left: 1px solid var(--line); }
  .intro .facts div:nth-child(3n + 1) { border-left: 0; }
  .intro .facts div:last-child:nth-child(odd) { grid-column: auto; }
  .intro .facts:not(:has(> :nth-child(3))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro .facts:not(:has(> :nth-child(3))) div:nth-child(2) { border-left: 1px solid var(--line); }
  /* four figures: two by two, not three and one left over */
  .intro .facts:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro .facts:has(> :nth-child(4):last-child) div:nth-child(odd) { border-left: 0; }
  .intro .facts:has(> :nth-child(4):last-child) div:nth-child(even) { border-left: 1px solid var(--line); }
  .facts b { font-size: 1.75rem; }
  .block.close > * { max-width: min(var(--measure), 54ch); }
  /* the status's own smaller text would make its 54ch narrower than the buttons' */
  .block.close > .status { max-width: var(--text-measure); }
  .visit .acts, .visit .rows { max-width: 34rem; }
  .visit.visit > .campuses { max-width: 60rem; }
  .visit .acts { margin-top: 18px; }
  .visit .rows { margin-top: 14px; }

  /* Coming up, then the newsletter under it, in the one text column */
  .pair { display: block; max-width: calc(var(--measure) + 2 * var(--pad)); margin: 0 auto; padding: 60px var(--pad); background: none; }
  .pair.band-wide { background: none; }
  .pair > .block { padding: 0; }
  .pair > .block + .block { padding-top: 44px; }

  .block > .photos { max-width: var(--wide); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .photos .wide { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }
  .block > .photos.n5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .photos.n5 .wide { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }
  .photos.n4 .wide { aspect-ratio: 5 / 2; }
  .block > .photos.n1 { grid-template-columns: 1fr; max-width: 48rem; }
  .block > .photos.two { grid-template-columns: 1fr 1fr; }
  .photos.two { grid-template-columns: 1fr 1fr; }
  .gallery { gap: 30px 16px; }

  /* inner pages: the same centred column */
  main:has(> .page-head) .block:has(> .gallery, > .list) > :not(.gallery, .list, .more-photos) { margin-inline: auto; }
  .page-head { padding-top: 56px; }
  .page-head h1 { font-size: 3.75rem; margin: 26px 0; }
  .list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .foot { display: block; padding: 56px var(--pad) 40px; }
  .foot .who b { font-size: 2.125rem; }
  .foot nav { margin-top: 18px; }
}

/* design-director#1: on a short phone screen the photo takes what the first screen leaves,
   so Call and WhatsApp stay on it (audit-public-css) */
@media (max-width: 599px) {
  :is(.hero, .hero.tall) img { max-height: max(120px, 100svh - 475px); }
}

/* editor-look#4: beside a wide logo the letter-spaced name broke mid-word. Its longest word
   is its least width, so it goes under the logo whole when they do not fit side by side
   (audit-public-css) */
@media (max-width: 959px) {
  .top .home > .logo ~ .name { flex-basis: min-content; }
}

/* editor-look#10: with a font choice that has no italic face, italic lines stay upright
   instead of a fake slant; the look's own fonts have real italics (audit-public-css) */
body { font-synthesis-style: none; }
