/* Rotary Club of Mandaluyong: "the annual".
   The club laid out like a printed annual. Type: Switzer throughout (light headlines, heavy cut-out hero).
   Colour: Rotary Royal Blue, Gold, Azure and Powder Blue in pure form. Two left edges organise every page:
   the margin (--m) and the axis (--m + --ax, 42% of the width). Titles, section labels and rails start
   on the margin; text, lists and forms start on the axis. Order of this file: tokens, base, header, home sections, inner pages,
   footer, entrances, breakpoints (1080px tablet, 760px phone). */

@font-face { font-family: 'Switzer'; font-weight: 100 900; font-display: swap; src: url('../fonts/switzer-var.woff2') format('woff2'); }

:root {
  --royal: #17458f; --gold: #f7a81b; --azure: #0067c8; --powder: #b9d9eb;
  --paper: #fff; --ink: #000; --soft: #54565a; --tone: #f2f1ee;
  --sans: 'Switzer', Arial, sans-serif; --serif: var(--sans);
  --bar: 72px;                           /* height of the navigation bar */
  --m: clamp(16px, 2.2vw, 32px);         /* page margin */
  --ax: 42vw;                            /* the axis */
  --s-xl: clamp(64px, 8.3vw, 128px);     /* titles */
  --s-l: clamp(34px, 3.6vw, 56px);       /* section headings */
  --s-m: clamp(20px, 1.6vw, 24px);       /* standfirst, lead text */
  --s-s: 17px;                           /* body */
  --s-xs: 14px;                          /* notes */
  --ease: cubic-bezier(.2, .7, 0, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--bar); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--s-s)/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--sans); font-weight: 400; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.visually-hidden, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--gold); padding: 10px 14px; font: 600 15px var(--sans); }
.skip:focus { top: 8px; }
.wrap { padding-inline: var(--m); }

/* Buttons and links. The arrow icon is Phosphor Icons, Light weight (MIT), used on the two join actions only. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 26px; border: 0; font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #fff; }
.btn:active { transform: translateY(1px); }
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.go { font: 600 17px/1 var(--sans); text-decoration: none; display: inline-flex; gap: .5em; padding: 12px 0; }
.go span { transition: transform .3s var(--ease); }
.go:hover span { transform: translateX(5px); }
.go:hover { color: var(--royal); }
.go.light { color: #fff; margin-top: 24px; }
.go.light:hover { color: var(--gold); }

/* ---------- Navigation bar: full width, solid, always there ---------- */
.bar { position: sticky; top: 0; z-index: 40; height: var(--bar); display: flex; align-items: center; gap: 40px; padding: 0 var(--m); background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.admin-bar .bar { top: var(--wp-admin--admin-bar--height, 32px); }
.lockup { --w: 132px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding: 0; text-decoration: none; }
.lockup img { width: var(--w); height: auto; }
.lockup-name { margin-right: calc(var(--w) * .4214); margin-top: calc(var(--w) * -.052); font: 400 calc(var(--w) * .107)/1 var(--sans); color: var(--royal); white-space: nowrap; }
.bar-nav { display: flex; gap: 34px; margin-left: auto; }
.bar-nav a { font: 500 16px/1 var(--sans); text-decoration: none; color: var(--ink); padding: 26px 0 23px; border-bottom: 3px solid transparent; transition: border-color .2s, color .2s; }
.bar-nav a:hover { color: var(--royal); }
.bar-nav a[aria-current] { border-color: var(--gold); }
.bar-join { min-height: 44px; padding: 0 22px; }
.bar-join:hover { background: var(--royal); color: #fff; }
.menu { display: none; margin-left: auto; }
.menu:not([open]) .menu-sheet { display: none; }

/* ---------- Hero: "Service Above Self" cut out of white paper, scroll-driven, pinned under the bar ---------- */
.hero { position: relative; height: calc(100svh - var(--bar)); min-height: 520px; }
.js .hero.motion { height: 250svh; }
.hero-stage { position: sticky; top: var(--bar); height: calc(100svh - var(--bar)); min-height: 0; overflow: hidden; isolation: isolate; background: #000; }
.admin-bar .hero-stage { top: calc(var(--bar) + var(--wp-admin--admin-bar--height, 32px)); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--img-s, 1.12)); transform-origin: 50% 60%; will-change: transform; }
.hero-knock { position: absolute; inset: 0; z-index: 1; background: #fff; color: #000; mix-blend-mode: screen; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--m); font: 700 min(21vw, 29svh)/.8 var(--sans); letter-spacing: -.05em; transform-origin: var(--ox, 50%) var(--oy, 50%); transform: scale(var(--s, 1)); }
.hero-knock span { display: block; }
.hero-knock span:nth-child(2) { padding-left: 1.3em; }
.hero-knock span:nth-child(3) { align-self: flex-end; }
.hero-knock i { font-style: normal; }
.hero-intro { position: absolute; z-index: 2; left: var(--m); right: var(--m); bottom: 24px; display: flex; justify-content: space-between; font: 600 15px/1 var(--sans); color: var(--ink); opacity: var(--intro, 1); }
.hero-shade { position: absolute; inset: 0; z-index: 2; background: rgba(0, 0, 0, .42); opacity: var(--copy, 0); }
.hero-copy { position: absolute; z-index: 3; left: var(--m); right: var(--m); bottom: clamp(48px, 9vh, 110px); color: #fff; opacity: var(--copy, 0); transform: translateY(calc((1 - var(--copy, 0)) * 40px)); pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero-copy h1 { font-size: var(--s-xl); font-weight: 300; max-width: 12ch; letter-spacing: -.045em; line-height: .92; }
.hero-lede { margin-top: 32px; max-width: 36ch; font: 400 var(--s-m)/1.45 var(--sans); }
.no-js .hero-knock, .no-js .hero-intro, .hero.still .hero-knock, .hero.still .hero-intro { display: none; }
.no-js .hero, .hero.still { --copy: 1; }

/* ---------- The mother club: statement tiles ---------- */
.board { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 38svh 38svh auto; gap: 8px; padding: 8px; }
.board > * { min-width: 0; overflow: hidden; }
.t-a { grid-column: 1 / 9; grid-row: 1 / 3; background: var(--royal); color: #fff; display: flex; align-items: flex-end; padding: 20px 24px; }
.t-a h2 { font: 500 var(--s-xl)/.86 var(--sans); letter-spacing: -.04em; }
.t-b { grid-column: 9 / 13; grid-row: 1; background: var(--powder); color: var(--royal); display: flex; align-items: flex-end; padding: 20px 24px; }
.t-b p { font: 200 var(--s-xl)/.8 var(--sans); letter-spacing: -.05em; }
.t-c { grid-column: 9 / 13; grid-row: 2; }
.t-c img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.t-d { grid-column: 1 / 13; grid-row: 3; display: grid; grid-template-columns: calc(var(--m) - 8px + var(--ax)) 1fr; padding: 40px 0 clamp(80px, 9vw, 140px); }
.t-d p { grid-column: 2; max-width: 56ch; padding-right: var(--m); font: 400 var(--s-m)/1.4 var(--sans); }

/* ---------- This year's work: one big story, two smaller, then a plain table ---------- */
.work { padding: clamp(96px, 10vw, 160px) var(--m); }
.work-head { display: grid; grid-template-columns: var(--ax) 1fr; align-items: end; margin-bottom: 48px; }
.work-head h2 { font-size: var(--s-l); }
.work-head p { font: 400 var(--s-m)/1.4 var(--sans); max-width: 36ch; }
.feats { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; }
.feats-side { display: grid; gap: 40px; align-content: start; }
.feat-link { display: block; text-decoration: none; color: inherit; }
.feat figure { overflow: hidden; background: var(--tone); }
.feat img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s var(--ease); }
.feat .no-photo { aspect-ratio: 3 / 2; }
.feat-link:hover img { transform: scale(1.03); }
.feat-meta { margin-top: 10px; font: 500 15px/1.3 var(--sans); color: var(--soft); }
.feat h3 { margin-top: 18px; font-size: clamp(24px, 2vw, 30px); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.feat-big h3 { font-size: clamp(30px, 3vw, 44px); }
.feat-dek { margin-top: 10px; font: 400 var(--s-s)/1.5 var(--sans); max-width: 52ch; }
.feat-link:hover h3 { color: var(--royal); }
.feats-side .feat-link { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.feats-side .feat figure { grid-row: 1 / 5; align-self: start; }
.feats-side .feat h3 { margin-top: 0; }
.work-all { margin-top: clamp(80px, 8vw, 120px); }
.work-all h3 { font-size: clamp(24px, 2vw, 30px); margin-bottom: 20px; }
.ptable { width: 100%; border-collapse: collapse; font: 400 15px/1.45 var(--sans); }
.ptable th, .ptable td { text-align: left; vertical-align: top; padding: 14px 24px 14px 0; border-top: 1px solid rgba(0, 0, 0, .12); letter-spacing: 0; }
.ptable thead th { font-weight: 600; color: var(--soft); border-top: 0; padding-bottom: 10px; }
.ptable tbody th { font-weight: 500; width: 22%; }
.ptable tbody th a { text-decoration: none; }
.ptable tbody th a:hover { color: var(--royal); text-decoration: underline; }
.ptable td:nth-child(2) { width: 46%; }
.ptable td:last-child, .ptable thead th:last-child { white-space: nowrap; padding-right: 0; }
.ptable td:last-child { color: var(--soft); }
.ptable tbody tr { transition: background .2s; }
.ptable tbody tr:hover { background: var(--tone); }
.ptable tbody tr[data-img] { cursor: pointer; }
/* Hover a project in the table: its photo follows the pointer. */
.hover-preview { position: fixed; left: 0; top: 0; z-index: 30; width: 340px; pointer-events: none; opacity: 0; visibility: hidden; transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(.96); transition: opacity .2s, visibility .2s, transform .12s linear; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
.hover-preview.show { opacity: 1; visibility: visible; }
.hover-preview img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- One figure owns the screen ---------- */
.figure { min-height: 92svh; background: var(--royal); color: #fff; display: grid; grid-template-columns: var(--ax) 1fr; grid-template-rows: auto 1fr auto auto; padding: clamp(56px, 7vw, 100px) var(--m) clamp(56px, 7vw, 96px); }
.figure h2 { grid-column: 2; font-size: var(--s-l); }
.figure .big { grid-column: 2; grid-row: 3; font: 200 clamp(180px, 23vw, 380px)/.8 var(--sans); letter-spacing: -.06em; color: var(--gold); margin-left: -.05em; }
.fig-cap { grid-column: 2; grid-row: 4; margin-top: 28px; max-width: 34ch; font-size: var(--s-s); }

/* ---------- A family of clubs ---------- */
.family { padding: clamp(120px, 12vw, 200px) var(--m); }
.fam-row { display: grid; grid-template-columns: var(--ax) 1fr; }
.facts { display: grid; gap: 20px; align-content: start; padding-right: 40px; font: 400 15px/1.4 var(--sans); }
.facts dt { color: var(--soft); }
.fam-text { max-width: 60ch; }
.fam-text h2 { font-size: var(--s-l); }
.fam-text p { margin-top: 28px; font: 400 var(--s-m)/1.4 var(--sans); }
.lists { margin-top: 120px; grid-template-columns: var(--ax) 1fr; row-gap: 48px; }
.lists h3 { grid-column: 1; font: 400 17px/1.3 var(--sans); letter-spacing: -.035em; }
.cols { columns: 2 280px; column-gap: 64px; font: 400 15px/1.4 var(--sans); }
.lists .cols { grid-column: 2; }
.cols li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; break-inside: avoid; }
.cols li span + span { color: var(--soft); }

/* ---------- The live thing: every year since 1963 ---------- */
.years { background: var(--tone); padding: clamp(100px, 10vw, 160px) var(--m); display: grid; grid-template-columns: var(--ax) 1fr; row-gap: 48px; }
.years-head { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: end; }
.years-head h2 { grid-column: 2; font-size: var(--s-l); }
.years-head p { grid-column: 1; grid-row: 1; padding-right: 40px; font-size: var(--s-s); max-width: 30ch; }
.shelf { grid-column: 1 / -1; display: flex; gap: 3px; height: 200px; align-items: flex-end; }
.shelf button { flex: 1 1 0; min-width: 0; height: 70%; border: 0; padding: 0; background: #d9d6cf; cursor: pointer; position: relative; transition: height .35s var(--ease), background .2s; }
.shelf button.has { height: 100%; background: var(--royal); }
.shelf button:hover { height: 100%; background: var(--azure); }
.shelf button[aria-pressed="true"] { height: 100%; background: var(--gold); }
.shelf button span { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); font: 500 15px var(--sans); color: var(--soft); white-space: nowrap; display: none; }
.shelf button.decade span, .shelf button[aria-pressed="true"] span { display: block; }
.shelf button:last-child span { left: auto; right: 0; transform: none; }
.shelf button[aria-pressed="true"] span { color: var(--ink); font-weight: 700; }
.year-read { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; margin-top: 40px; min-height: 160px; align-items: start; }
.year-n { grid-column: 1; font: 200 clamp(80px, 8.3vw, 128px)/.8 var(--sans); letter-spacing: -.05em; color: var(--royal); }
.year-t { grid-column: 2; font: 400 var(--s-m)/1.4 var(--sans); max-width: 40ch; }
.year-list { display: none; }
.year-list b { font-weight: 600; }
.no-js .shelf, .no-js .year-read, .no-js .years-head p { display: none; }
.no-js .year-list { display: block; grid-column: 2; columns: 2; }
.no-js .year-list li { break-inside: avoid; padding: 6px 0; }

/* ---------- From the club's albums ---------- */
.albums { padding-block: clamp(120px, 12vw, 200px); }
.albums-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; }
.albums-head h2 { font-size: var(--s-l); }
.albums-head p { font: 400 15px var(--sans); color: var(--soft); }
.row { display: flex; gap: 12px; height: 68svh; overflow-x: auto; scroll-snap-type: x proximity; padding-inline: 6vw; scroll-padding-inline: 6vw; scrollbar-width: none; cursor: grab; }
.row::-webkit-scrollbar { display: none; }
.mod { flex: none; height: 100%; scroll-snap-align: start; }
.mod img { width: 100%; height: 100%; object-fit: cover; }
.tall { aspect-ratio: 3 / 4; }
.wide { aspect-ratio: 16 / 10; }
.pair { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 4 / 6.15; }
.pair figure { min-height: 0; }

/* ---------- Close, inverted ---------- */
.close { min-height: 90svh; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(64px, 8vw, 120px) var(--m) 40px; }
.close h2 { font: 400 var(--s-xl)/.9 var(--sans); }
.close-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.close-foot p { font-size: var(--s-m); max-width: 34ch; }
.close .btn { min-height: 56px; padding: 0 34px; }

/* ---------- Footer: the name first ---------- */
.foot { background: var(--royal); color: #fff; padding: clamp(56px, 6vw, 96px) var(--m) 32px; }
.foot-name { font: 200 min(var(--s-xl), 7.4vw)/1 var(--sans); letter-spacing: -.045em; white-space: nowrap; }
.foot-row { display: grid; grid-template-columns: var(--ax) 1fr; margin-top: 72px; }
.places li a { font: 500 var(--s-m)/1.5 var(--sans); color: var(--gold); text-decoration: none; letter-spacing: -.02em; }
.places li a:hover { color: #fff; }
.foot-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-links h2 { font: 600 15px var(--sans); letter-spacing: 0; margin-bottom: 10px; color: var(--powder); }
.foot-links a { display: block; font: 400 15px/2 var(--sans); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; gap: 24px; margin-top: 96px; font: 400 15px var(--sans); color: rgba(255, 255, 255, .85); }
.foot-base a { text-decoration: none; }

/* ---------- Inner pages ---------- */
.inner main { padding-bottom: clamp(96px, 10vw, 160px); }
/* Every inner page opens the same way: the title on the margin, the lede on the axis below it. */
.page-head, .story-head { display: grid; grid-template-columns: var(--ax) 1fr; padding: clamp(64px, 8vw, 120px) var(--m) clamp(48px, 5vw, 80px); }
.page-head h1, .story-head h1 { grid-column: 1 / -1; max-width: 16ch; font-size: clamp(44px, 5.4vw, 84px); line-height: .98; }
.page-lede, .story-dek { grid-column: 2; margin-top: clamp(24px, 2.6vw, 40px); max-width: 44ch; font: 400 var(--s-m)/1.45 var(--sans); }

/* Labelled sections: the label on the margin (it stays in view while its section scrolls), the content on the axis. */
.sect, .enquire { display: grid; grid-template-columns: var(--ax) 1fr; }
.sects > .sect + .sect { margin-top: clamp(96px, 9vw, 144px); }
.sect > h2, .enquire-intro { grid-column: 1; align-self: start; justify-self: start; margin-right: 40px; }
.sects .sect > h2 { margin-top: 0; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; }
.sect-body { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
.sect-photo { grid-column: 1; margin: 40px 40px 0 0; }
.sect-wide, .sect > .credits, .sect-lists { grid-column: 1 / -1; margin-top: clamp(48px, 5vw, 72px); }
.sect-wide img { width: 100%; height: min(80svh, 52vw); object-fit: cover; }
.sect-photo figcaption, .sect-wide figcaption { margin-top: 10px; font: 400 14px/1.4 var(--sans); color: var(--soft); }
.sect > .credits { display: grid; grid-template-columns: var(--ax) 1fr; }
.sect > .credits li { padding: 0 40px 22px 0; }
.credits li:has(figure) { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; }
.credits figure img { width: 180px; height: 120px; object-fit: cover; }
.sect-lists { display: grid; }
.prose .sect-lists h3 { margin-top: 0; font-size: clamp(21px, 1.8vw, 26px); }
.sect-body > * + * { margin-top: 1.1em; }
.sect-body > p, .sect-body > ul:not(.cols), .sect-body > ol:not(.chron-list) { max-width: 62ch; }
.sect-body > .prose-photo { margin-block: 2em; }
.sect-body > .prose-photo:last-child { margin-bottom: 0; }
.lead-photo { margin: 0 var(--m) clamp(64px, 7vw, 112px); }
.lead-photo img { width: 100%; height: min(70svh, 46vw); object-fit: cover; }
.lead-photo figcaption, .story-photo figcaption { margin-top: 10px; font: 400 14px var(--sans); color: var(--soft); }

/* Projects archive */
/* The areas as an index in the rail, the projects on the axis. */
.plist { display: grid; grid-template-columns: var(--ax) 1fr; margin-inline: var(--m); }
.plist-side { position: sticky; top: calc(var(--bar) + 24px); align-self: start; padding-right: 40px; }
.filters { display: grid; justify-items: start; }
.filters button { display: inline-flex; align-items: baseline; gap: .45em; min-height: 44px; padding: 8px 0 5px; border: 0; border-bottom: 3px solid transparent; background: none; font: 400 var(--s-m)/1.2 var(--sans); letter-spacing: -.01em; color: var(--soft); cursor: pointer; transition: color .2s, border-color .2s; }
.filters button:hover { color: var(--royal); }
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.filters .n { font: 400 14px var(--sans); color: var(--soft); font-variant-numeric: tabular-nums; }
.count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.plist-main { min-width: 0; }
.rows { display: grid; gap: 8px; margin-top: -16px; }
.rows a { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; padding: 16px; margin: 0 -16px; text-decoration: none; color: inherit; transition: background .2s; }
.rows a:hover { background: var(--tone); }
.rows figure { overflow: hidden; background: var(--tone); }
.rows img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.rows .no-photo { aspect-ratio: 3 / 2; }
.rows h2 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.15; }
.rows p { margin-top: 6px; font: 400 var(--s-s)/1.5 var(--sans); max-width: 64ch; }
.rows .row-meta { font: 400 15px var(--sans); color: var(--soft); margin-top: 8px; }
.pager ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pager a, .pager span { display: block; padding: 12px 16px; background: var(--tone); font: 500 15px/1 var(--sans); text-decoration: none; }
.pager .current { background: var(--royal); color: #fff; }

/* One project */
.crumb { grid-column: 1; grid-row: 2; align-self: start; margin-top: clamp(24px, 2.6vw, 40px); font: 500 16px/1.45 var(--sans); }
.crumb a { color: var(--royal); text-decoration: none; }
.crumb a::before { content: '← '; }
.story-head h1 { max-width: 20ch; }
.story-photo { margin: 0 var(--m); }
.story-photo img { width: 100%; height: min(72svh, 56vw); object-fit: cover; }
.story-body { display: grid; grid-template-columns: var(--ax) 1fr; padding: clamp(48px, 5vw, 80px) var(--m) 0; }
.story-facts { display: grid; gap: 22px; align-content: start; padding-right: 48px; font: 400 15px/1.45 var(--sans); }
.story-facts dt { color: var(--soft); }
.story-facts dd { font-weight: 500; }
.story-text { grid-column: 2; grid-row: 1 / span 2; max-width: 62ch; }
/* More of the club's photos of the project, in the rail under the facts. */
.story-gallery { grid-column: 1; display: grid; gap: 12px; align-content: start; margin: 48px 48px 0 0; }
.story-gallery img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.ftable { margin-top: 48px; width: 100%; border-collapse: collapse; font: 400 15px/1.45 var(--sans); }
.ftable caption { text-align: left; font: 600 17px var(--sans); padding-bottom: 12px; }
.ftable th, .ftable td { text-align: left; padding: 12px 16px 12px 0; border-top: 1px solid rgba(0, 0, 0, .12); vertical-align: top; letter-spacing: 0; }
.ftable th { font-weight: 500; width: 40%; }
.next { display: grid; grid-template-columns: 1fr 360px; grid-template-rows: 1fr auto; gap: 12px 40px; margin: clamp(96px, 10vw, 160px) var(--m) 0; padding: 40px; background: var(--royal); color: #fff; text-decoration: none; }
.next-k { grid-column: 1; font: 500 17px var(--sans); color: var(--powder); }
.next-t { grid-column: 1; font: 500 clamp(32px, 3.6vw, 56px)/1.02 var(--sans); letter-spacing: -.025em; align-self: end; }
.next figure { grid-column: 2; grid-row: 1 / 3; overflow: hidden; background: rgba(255, 255, 255, .12); }
.next img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s var(--ease); }
.next .no-photo { aspect-ratio: 3 / 2; }
.next:hover img { transform: scale(1.04); }
.next:hover .next-t { color: var(--gold); }

/* Text written in the editor (project stories and plain pages) and the pages of the club's own text */
.story-text, .prose { font: 400 18px/1.65 var(--sans); overflow-wrap: break-word; }
.story-text .tags { font: 400 15px/1.6 var(--sans); color: var(--soft); overflow-wrap: anywhere; }
.story-text > * + *, .prose > * + * { margin-top: 1.1em; }
.story-text h2, .prose h2 { margin-top: 2em; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; }
.story-text h3, .prose h3 { margin-top: 1.6em; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.15; }
.story-text a, .prose a { color: var(--royal); text-underline-offset: .15em; }
.story-text a:hover, .prose a:hover { color: var(--azure); }
.story-text ul, .prose ul { list-style: disc; padding-left: 1.3em; }
.story-text ol, .prose ol { list-style: decimal; padding-left: 1.3em; }
.story-text li + li, .prose li + li { margin-top: .4em; }
.story-text blockquote, .prose blockquote { margin-left: 0; padding-left: 1.2em; border-left: 3px solid var(--gold); }
.story-text img, .prose img { height: auto; }
.story-text figure, .prose figure { margin-block: 1.6em; }
.story-text figcaption, .prose figcaption, .wp-caption-text { margin-top: 8px; font: 400 14px/1.4 var(--sans); color: var(--soft); }
.story-text table, .prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.story-text th, .story-text td, .prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-top: 1px solid rgba(0, 0, 0, .12); vertical-align: top; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.story-text::after { content: ''; display: block; clear: both; }
.story-note { color: var(--royal); font-weight: 500; }

.prose { display: grid; grid-template-columns: var(--ax) 1fr; padding: 0 var(--m); }
.prose > * { grid-column: 2; max-width: 62ch; }
.prose > .prose-wide { max-width: none; }
/* Plain pages: an editor heading goes to the margin, beside its first paragraph. */
.prose:not(.sects) > h2 { grid-column: 1; align-self: start; padding-right: 40px; }
.prose:not(.sects) > h2, .prose:not(.sects) > h2 + * { margin-top: clamp(56px, 6vw, 96px); }
.prose:not(.sects) > h2:first-child, .prose:not(.sects) > h2:first-child + * { margin-top: 0; }
.prose.sects { display: block; }
.prose.sects > .sect { max-width: none; }
.sect-body .cols { columns: 2 260px; column-gap: 48px; }
.chron-list li { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 10px 0; }
.chron-list li + li { margin-top: 0; }
.chron-list b { font-weight: 600; font-variant-numeric: tabular-nums; }
.prose .cols, .prose .chron-list, .prose .credits { list-style: none; padding: 0; }
.credits li { padding: 10px 0; font-size: 16px; line-height: 1.5; }
.credits li + li { margin-top: 0; }

/* Join page */
/* Three ways in as labelled rows; the enquiry is the same kind of row. */
.ways { margin: 0 var(--m); }
.ways > div { display: grid; grid-template-columns: var(--ax) 1fr; }
.ways > div + div { margin-top: clamp(88px, 8vw, 120px); }
.ways > div { grid-template-rows: auto 1fr; }
.way-photo { grid-column: 1; grid-row: 2; margin: 28px 40px 0 0; }
.way-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.ways h2 { grid-column: 1; grid-row: 1; align-self: start; justify-self: start; margin-right: 40px; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; }
.ways p { grid-column: 2; grid-row: 1; max-width: 44ch; font: 400 var(--s-m)/1.45 var(--sans); }
.ways .go { grid-column: 2; grid-row: 2; align-self: start; justify-self: start; margin-top: 8px; }
.enquire { margin: clamp(120px, 11vw, 176px) var(--m) 0; }
.enquire-intro h2 { font-size: var(--s-l); }
.enquire-intro p { margin-top: 16px; max-width: 30ch; }
.enquiry { display: grid; gap: 22px; }
.preview-note { padding: 12px 14px; background: var(--tone); font: 400 14px/1.4 var(--sans); color: var(--soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font: 500 15px var(--sans); padding: 0; }
.field input:not([type="radio"]), .field textarea { width: 100%; padding: 13px 14px; border: 1px solid rgba(0, 0, 0, .45); border-radius: 0; background: #fff; color: var(--ink); font: 400 17px/1.4 var(--sans); }
.field input:not([type="radio"]):focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.choices label { font: 400 17px var(--sans); display: flex; gap: 10px; align-items: center; min-height: 36px; }
.choices input { width: 18px; height: 18px; accent-color: var(--royal); margin: 0; }
.hint { font: 400 14px var(--sans); color: var(--soft); }
.error { font: 500 14px var(--sans); color: #b3261e; }
.error:empty { display: none; }
.form-status { padding: 14px; background: var(--powder); font: 500 16px/1.4 var(--sans); }

/* ---------- Entrances: the parts of each section rise in order, once ---------- */
.js [data-in] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 75ms); }
.js [data-in].in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  :root { --ax: 34vw; }
  .bar-nav, .bar-join { display: none; }
  .menu { display: block; }
  .menu summary { list-style: none; font: 600 16px var(--sans); padding: 12px 0; cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu-sheet { position: absolute; left: 0; right: 0; top: var(--bar); background: var(--royal); color: #fff; padding: 12px var(--m) 28px; display: grid; }
  .menu-sheet a { font: 500 34px/1.5 var(--sans); text-decoration: none; }
  .feats { grid-template-columns: 1fr; }
  .ptable td:nth-child(3), .ptable thead th:nth-child(3) { display: none; }
  .figure { min-height: 72svh; }
  .close { min-height: 64svh; }
  .hover-preview { display: none; }
  .next { grid-template-columns: 1fr; }
  .next figure { grid-column: 1; grid-row: auto; margin-top: 16px; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  :root { --m: 20px; --ax: 0px; --s-m: 18px; --s-l: 34px; --s-xl: 13vw; --bar: 64px; }
  .lockup { --w: 124px; }
  .menu-sheet a { letter-spacing: -.02em; }
  .hero-knock { font-size: min(23vw, 20svh); }
  .hero-knock span:nth-child(2) { padding-left: .5em; }
  .js .hero.motion { height: 200svh; }
  .board { grid-template-columns: 1fr 1fr; grid-template-rows: 46svh auto auto; gap: 6px; padding: 6px; }
  .t-a { grid-column: 1 / 3; grid-row: 1; padding: 16px; }
  .t-b { grid-column: 1; grid-row: 2; aspect-ratio: 1; padding: 14px; }
  .t-c { grid-column: 2; grid-row: 2; aspect-ratio: 1; }
  .t-d { grid-column: 1 / 3; display: block; padding: 20px 14px 72px; }
  .t-d p { padding: 0; }
  .work { padding-block: 72px; }
  .work-head { display: block; }
  .work-head p { margin-top: 12px; }
  .feats-side .feat-link { display: block; }
  .feats-side .feat h3 { margin-top: 14px; }
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable th, .ptable td { display: block; width: auto !important; }
  .ptable tr { padding: 14px 0; border-top: 1px solid rgba(0, 0, 0, .12); }
  .ptable th, .ptable td { border: 0; padding: 0; }
  .ptable td:nth-child(2), .ptable td:last-child { margin-top: 4px; }
  .figure { min-height: 70svh; display: flex; flex-direction: column; justify-content: space-between; }
  .figure .big { font-size: 46vw; margin-top: auto; }
  .fig-cap { max-width: none; width: 85%; }
  .family { padding-block: 72px; }
  .fam-row { display: flex; flex-direction: column; }
  .lists { display: block; margin-top: 56px; }
  .facts { order: 2; grid-template-columns: 1fr 1fr; font-size: 14px; }
  .fam-text { margin-bottom: 32px; }
  .lists h3 { margin: 40px 0 8px; }
  .cols { columns: 1; }
  .years { display: block; padding-block: 72px; }
  .years-head { display: block; }
  .years-head h2 { margin-bottom: 12px; }
  .shelf { margin: 32px calc(var(--m) * -1) 0; padding: 0 var(--m) 32px; overflow-x: auto; height: 180px; scrollbar-width: none; }
  .shelf button { flex: 0 0 22px; }
  .year-read { display: block; margin-top: 24px; }
  .year-n { margin-bottom: 14px; font-size: var(--s-xl); }
  .albums { padding-block: 72px; }
  .row { height: 62svh; gap: 8px; padding-inline: 20px; scroll-padding-inline: 20px; }
  .tall { width: 72vw; aspect-ratio: auto; }
  .pair { width: 64vw; aspect-ratio: auto; }
  .wide { width: 88vw; aspect-ratio: auto; height: 70%; align-self: center; }
  .close { min-height: 64svh; }
  .close-foot { flex-direction: column; align-items: stretch; }
  .close { padding-bottom: 88px; }
  .way-photo { margin: 20px 0 16px; }
  .close .btn { width: 100%; }
  .foot-name { font-size: var(--s-l); white-space: normal; }
  .foot-row { display: block; margin-top: 40px; }
  .foot-links { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .foot-base { margin-top: 56px; flex-direction: column; }
  .page-head, .story-head, .story-body, .prose, .enquire, .sect, .plist, .ways > div { display: block; }
  .page-head h1, .story-head h1 { font-size: clamp(40px, 11vw, 56px); }
  .page-lede, .story-dek { margin-top: 20px; }
  .sect > h2, .enquire-intro, .plist-side { position: static; margin-right: 0; padding-right: 0; }
  .sect-photo { margin: 24px 0 0; }
  .sect-wide { margin-inline: calc(var(--m) * -1); }
  .sect-wide img { height: 56svh; }
  .sect-wide figcaption { padding: 0 var(--m); }
  .sect > .credits li { padding-right: 0; }
  .credits li:has(figure) { grid-template-columns: 112px 1fr; }
  .credits figure img { width: 112px; height: 75px; }
  .crumb { margin-top: 20px; }
  .sect > h2 { margin-bottom: 20px; }
  .sects > .sect + .sect { margin-top: 64px; }
  .lead-photo { margin: 0 0 56px; }
  .lead-photo img { height: 56svh; }
  .lead-photo figcaption { padding: 0 var(--m); }
  .ways p { margin-top: 12px; }
  .filters { display: flex; gap: 8px; }
  .filters button { padding: 12px 16px; border-bottom: 0; background: var(--tone); color: var(--ink); font-size: 15px; }
  .filters button[aria-pressed="true"] { background: var(--royal); color: #fff; }
  .filters button[aria-pressed="true"] .n { color: var(--powder); }
  .rows { margin-top: 16px; }
  .prose > * + * { margin-top: 1.1em; }
  .enquire-intro { padding-right: 0; margin-bottom: 28px; }
  .field-row, .choices { grid-template-columns: 1fr; }
  .chron-list li { grid-template-columns: 5em 1fr; }
  .rows a { grid-template-columns: 112px 1fr; gap: 10px 16px; align-items: start; }
  .rows a > div { display: contents; }
  .rows h2 { grid-column: 1 / -1; grid-row: 1; }
  .rows figure { grid-row: 2; }
  .rows .row-meta { grid-column: 2; grid-row: 2; margin-top: 0; }
  .rows p:not(.row-meta) { display: none; }
  .filters { flex-wrap: wrap; }
  .story-photo { margin: 0; }
  .story-photo figcaption { padding: 0 var(--m); }
  .story-facts { grid-template-columns: 1fr 1fr; padding: 0 0 40px; }
  .story-gallery { grid-template-columns: 1fr 1fr; gap: 6px; margin: 48px calc(var(--m) * -1) 0; }
  .story-gallery figure:first-child { grid-column: 1 / -1; }
  .next { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-in] { transform: none; opacity: 1; }
}
