:root {
  --apg-ground: #E7F1FB;
  --apg-ink: #2C2A1C;
  --apg-olive: #7D7631;
  --apg-pink: #E2C1D7;
  --apg-white: #FFFFFF;
  --apg-display: 'Racing Sans One', Georgia, serif;
  --apg-text: 'Fenix', Georgia, serif;
}
* { box-sizing: border-box; }
html { background: var(--apg-ground); scroll-padding-top: 28px; }
body { margin: 0; color: var(--apg-ink); font-family: var(--apg-text); font-size: 20px; line-height: 1.5; }
::selection { background: var(--apg-pink); color: var(--apg-ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible { outline: 3px solid var(--apg-ink); outline-offset: 5px; background: var(--apg-pink); }
img, svg { max-width: 100%; }
i[data-lucide] { display: inline-flex; flex: 0 0 22px; width: 22px; height: 22px; font-style: normal; }
svg[data-lucide], i[data-lucide] svg { width: 22px; height: 22px; flex-shrink: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--apg-display); font-weight: 400; line-height: 1.06; }
h1 { font-size: 58px; letter-spacing: -.8px; text-wrap: balance; }
h2 { font-size: 36px; text-wrap: balance; }
h3 { font-size: 26px; }
p + p { margin-top: 19px; }
.apg-skip { position: absolute; z-index: 30; left: 18px; top: -80px; padding: 9px 18px; background: var(--apg-white); }
.apg-skip:focus { top: 14px; }
.apg-fold-header { height: 132px; position: relative; margin: auto; border-top: 6px solid var(--apg-olive); }
.apg-fold { position: absolute; width: 79px; height: 104px; top: -6px; left: calc(50% - 39px); background: var(--apg-pink); clip-path: polygon(0 0,100% 0,100% 78%,72% 100%,0 100%); }
.apg-fold::after { content: ''; width: 22px; height: 22px; position: absolute; right: 0; bottom: 0; background: var(--apg-olive); clip-path: polygon(0 0,100% 0,0 100%); }
.apg-spine-nav { position: absolute; top: 5px; right: calc(50% + 48px); width: 110px; display: grid; gap: 4px; text-align: right; font-size: 18px; line-height: 1.15; }
.apg-spine-nav a { justify-self: end; text-decoration: none; padding: 2px 7px; }
.apg-spine-nav a:hover { background: var(--apg-white); box-shadow: 4px 4px 0 var(--apg-olive); transform: translate(-2px,-2px); }
.apg-brand { position: absolute; left: 50%; top: 85px; transform: translateX(-50%); font-family: var(--apg-display); font-size: 33px; white-space: nowrap; line-height: 1.15; text-decoration: none; }
.apg-brand:hover { text-decoration: underline; text-underline-offset: 7px; }
/* A field photograph runs behind the entire opening. The copy is a pair of
   opaque programme bands; the unequal cut edge exposes the photo shoulders. */
.apg-opening { display: grid; grid-template-columns: minmax(0,1fr); position: relative; isolation: isolate; }
.apg-photo { background-color: var(--apg-olive); background-position: center; background-size: cover; }
.apg-hero-background { position: absolute; inset: 0; z-index: -1; background-position: center 71%; }
.apg-title-ground { grid-row: 1; background: var(--apg-ground); padding: 15px 5.5% 57px; clip-path: polygon(0 0,100% 0,100% 69%,84% 69%,84% 87%,72% 87%,72% 100%,29% 100%,29% 83%,14% 83%,14% 100%,0 100%); }
.apg-title-ground h1 { max-width: 1210px; margin: auto; font-size: 64px; }
.apg-scene-first { grid-row: 2; position: relative; }
.apg-panorama { height: 260px; width: 100%; }
.apg-pennant { position: absolute; width: 180px; height: 68px; left: 5.5%; top: -23px; z-index: 2; }
.apg-scene-first figcaption { position: absolute; bottom: 0; left: 0; max-width: 76%; font-size: 16px; line-height: 1.35; padding: 11px 35px 0 max(5.5vw,20px); background: var(--apg-ground); clip-path: polygon(0 0,calc(100% - 20px) 0,100% 100%,0 100%); }
.apg-welcome { grid-row: 3; padding: 17px 5.5% 0; background: var(--apg-ground); font-size: 22px; line-height: 1.3; }
.apg-welcome p { max-width: 1260px; margin: auto; }
/* The mention stays an open full-width gutter. No border, card, hover or control. */
.apg-programme-gutter { grid-row: 4; padding: 17px 5.5% 30px; background: var(--apg-ground); }
.apg-gutter-label { max-width: 1260px; margin: 0 auto 6px; font-family: var(--apg-display); font-size: 25px; line-height: 1.2; }
.apg-prescription-mention { max-width: 1260px; margin: 0 auto; font-size: 18px; line-height: 1.4; }
.apg-reading-anchors { display: flex; gap: 0; flex-wrap: wrap; padding: 0 5.5%; background: var(--apg-olive); color: var(--apg-white); }
.apg-reading-anchors a { display: inline-flex; gap: 13px; align-items: center; padding: 15px 31px 17px 0; margin-right: 32px; font-size: 20px; text-decoration: none; }
.apg-reading-anchors a:hover { transform: translateY(-3px); box-shadow: 0 4px 0 var(--apg-white); }
.apg-reading-anchors a:focus-visible { color: var(--apg-ink); }
.apg-reading-anchors span { font-family: var(--apg-display); font-size: 38px; line-height: 1; }
.apg-reading-anchors i, .apg-reading-anchors svg { margin-left: 10px; }
.apg-photo-reel { position: relative; isolation: isolate; }
.apg-stationary-scene { position: sticky; top: calc(50vh - 155px); height: 310px; margin-bottom: -310px; z-index: -1; background-position: center 70%; }
.apg-reel-passage { position: relative; padding: 69px 5.5% 68px; background: var(--apg-ground); z-index: 1; }
.apg-reel-passage::before { content: ''; position: absolute; top: 0; left: 14%; width: 15%; height: 16px; background: var(--apg-olive); }
.apg-reel-passage:nth-of-type(2) { background: var(--apg-white); }
.apg-reel-passage:nth-of-type(3)::before { left: 72%; width: 12%; }
.apg-passage-heading { position: relative; display: flex; gap: 28px; align-items: center; max-width: 1260px; margin: auto auto 30px; }
.apg-chapter-number { font-family: var(--apg-display); color: var(--apg-olive); font-size: 142px; line-height: .85; min-width: 80px; margin-top: -15px; transform: rotate(-5deg); }
.apg-passage-heading h2 { max-width: 930px; font-size: 49px; }
.apg-reel-prose { max-width: 960px; margin: 0 auto; font-size: 23px; line-height: 1.55; }
.apg-reel-prose a, .apg-essay-section a { text-decoration-color: var(--apg-olive); text-decoration-thickness: 2px; }
.apg-reel-prose a:hover, .apg-essay-section a:hover { background: var(--apg-white); box-shadow: 0 3px 0 var(--apg-olive); }
.apg-reel-window { height: 330px; position: relative; }
.apg-phone-scene { display: none; }
/* Short photographic interludes carry the same square, offset programme cuts. */
.apg-inner-heading { margin: 16px auto 34px; max-width: 1400px; padding: 0 5.5%; }
.apg-inner-heading h1 { max-width: 1150px; }
.apg-inner-deck { max-width: 870px; font-size: 24px; line-height: 1.35; margin-top: 23px; }
.apg-inner-scene { position: relative; margin: 0 0 46px; padding-top: 14px; }
.apg-inner-scene::before { content: ''; position: absolute; left: 5.5%; top: 0; width: 122px; height: 32px; background: var(--apg-olive); z-index: 1; clip-path: polygon(0 0,100% 0,82% 50%,100% 100%,0 100%); }
.apg-inner-photo { height: 270px; width: 94.5%; margin-left: auto; background-position: center 64%; box-shadow: -15px 15px 0 var(--apg-olive); clip-path: polygon(0 0,100% 0,100% 100%,13% 100%,13% 93%,0 93%); }
.apg-inner-scene figcaption { width: 88%; max-width: 1230px; margin: 14px 5.5% 0 6.5%; padding-left: 12px; border-left: 3px solid var(--apg-olive); font-size: 16px; line-height: 1.4; }
.apg-owner-essay { max-width: 1260px; margin: 0 auto 80px; padding: 0 5.5%; counter-reset: apg-section; }
.apg-essay-section { position: relative; max-width: 820px; margin: 0 auto; padding: 28px 0 24px; counter-increment: apg-section; }
.apg-essay-section::before { content: counter(apg-section, decimal-leading-zero); position: absolute; top: 27px; right: calc(100% + 31px); font-family: var(--apg-display); font-size: 43px; line-height: 1; color: var(--apg-olive); }
.apg-essay-section + .apg-essay-section { border-top: 3px solid var(--apg-olive); }
.apg-essay-section h2 { margin-bottom: 22px; }
.apg-essay-section p { font-size: 22px; line-height: 1.57; }
.apg-table-space { margin: 34px -7vw; padding: 0 0 11px 11px; background: var(--apg-olive); box-shadow: 9px 9px 0 var(--apg-pink); transform: rotate(-.6deg); }
.apg-comparison-table { border-collapse: collapse; width: 100%; font-size: 19px; line-height: 1.4; text-align: left; background: var(--apg-white); transform: rotate(.6deg); }
.apg-comparison-table th { font-weight: 400; font-family: var(--apg-display); font-size: 22px; background: var(--apg-olive); color: var(--apg-white); }
.apg-comparison-table td, .apg-comparison-table th { padding: 18px 20px; vertical-align: top; }
.apg-comparison-table tbody tr + tr { border-top: 2px solid var(--apg-ground); }
.apg-comparison-table td:first-child { font-family: var(--apg-display); min-width: 112px; }
.apg-reading-end { position: relative; padding: 48px 5.5% 52px; background: var(--apg-olive); color: var(--apg-white); }
.apg-reading-end::before { content: ''; width: 140px; height: 24px; position: absolute; top: -23px; right: 16%; background: var(--apg-olive); clip-path: polygon(0 100%,20% 0,100% 0,100% 100%); }
.apg-reading-end p { font-family: var(--apg-display); font-size: 43px; margin-bottom: 26px; }
.apg-page-choices { display: flex; flex-wrap: wrap; gap: 14px 37px; max-width: 1260px; }
.apg-page-choices a { font-size: 22px; display: inline-flex; align-items: center; gap: 11px; padding: 5px 0; }
.apg-page-choices a:hover { transform: translateY(-3px); box-shadow: 0 4px 0 var(--apg-white); }
.apg-page-choices a:focus-visible { color: var(--apg-ink); }
.apg-colophon { padding: 38px 5.5% 30px; background: var(--apg-ground); }
.apg-colophon-links { display: flex; flex-wrap: wrap; gap: 27px; margin-bottom: 22px; font-size: 18px; }
.apg-guide-sentence { max-width: 890px; font-size: 18px; }
.apg-copyright { font-size: 16px; margin-top: 15px; }
.apg-not-found { min-height: 45vh; padding: 30px 5.5% 80px; }
.apg-not-found p { margin-top: 25px; max-width: 680px; }
@media (min-width: 1600px) {
  .apg-title-ground, .apg-welcome, .apg-programme-gutter { padding-left: max(5.5%, calc((100vw - 1260px) / 2)); padding-right: max(5.5%, calc((100vw - 1260px) / 2)); }
}
@media (max-width: 1050px) and (min-width: 761px) {
  .apg-title-ground h1 { font-size: 54px; }
  .apg-panorama { height: 230px; }
  .apg-essay-section::before { right: calc(100% + 15px); font-size: 30px; }
  .apg-owner-essay { padding: 0 9%; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 16px; }
  body { font-size: 18px; }
  h1 { font-size: 33px; line-height: 1.08; letter-spacing: -.25px; }
  h2 { font-size: 29px; }
  .apg-fold-header { height: 85px; border-top-width: 4px; }
  .apg-fold { top: -4px; height: 70px; width: 49px; left: calc(50% - 24px); }
  .apg-fold::after { width: 15px; height: 15px; }
  .apg-spine-nav { top: 0; right: calc(50% + 31px); width: 82px; gap: 2px; font-size: 16px; line-height: 1; }
  .apg-spine-nav a { padding: 0 7px; }
  .apg-brand { top: 54px; font-size: 23px; }
  .apg-title-ground { grid-row: 1; padding: 10px 20px 16px; clip-path: none; }
  .apg-title-ground h1 { font-size: 26px; line-height: 1.1; letter-spacing: -.2px; text-wrap: balance; }
  .apg-welcome { grid-row: 2; padding: 0 20px; font-size: 18px; line-height: 1.3; }
  .apg-programme-gutter { grid-row: 3; padding: 16px 20px 24px; }
  .apg-gutter-label { font-size: 22px; margin-bottom: 9px; }
  .apg-prescription-mention { font-size: 17px; line-height: 1.4; }
  .apg-scene-first { grid-row: 4; padding-top: 0; }
  .apg-hero-background { display: none; }
  .apg-panorama { height: 70px; background: url("programme-panorama.webp") center 69% / cover; clip-path: polygon(0 29%,14% 29%,14% 4%,29% 4%,29% 29%,72% 29%,72% 15%,84% 15%,84% 29%,100% 29%,100% 100%,0 100%); }
  .apg-pennant { width: 90px; height: 34px; left: 20px; top: -13px; }
  .apg-scene-first figcaption { position: relative; margin: 0; max-width: none; padding: 8px 20px 14px; font-size: 16px; line-height: 1.35; clip-path: none; }
  .apg-reading-anchors { gap: 0 15px; padding: 13px 20px 17px; }
  .apg-reading-anchors a { margin: 0; padding: 3px 0; font-size: 17px; gap: 8px; }
  .apg-reading-anchors span { font-size: 25px; }
  .apg-reading-anchors i, .apg-reading-anchors svg { margin-left: 0; width: 17px; height: 17px; flex-basis: 17px; }
  .apg-stationary-scene, .apg-reel-window { display: none; position: static; }
  .apg-phone-scene { display: block; height: 108px; width: 100%; background-position: center 70%; }
  .apg-reel-passage { padding: 42px 20px 39px; }
  .apg-reel-passage::before { height: 10px; }
  .apg-passage-heading { gap: 17px; margin-bottom: 25px; align-items: start; }
  .apg-chapter-number { font-size: 75px; min-width: 37px; margin-top: -5px; }
  .apg-passage-heading h2 { font-size: 30px; }
  .apg-reel-prose { font-size: 20px; line-height: 1.5; }
  .apg-inner-heading { padding: 14px 20px 0; margin: 0 auto 22px; }
  .apg-inner-deck { margin-top: 18px; font-size: 20px; }
  .apg-inner-photo { height: 157px; width: calc(100% - 20px); }
  .apg-inner-scene { margin-bottom: 22px; }
  .apg-inner-scene::before { left: 20px; width: 87px; height: 25px; }
  .apg-inner-scene figcaption { width: auto; margin: 10px 20px 0 32px; padding-left: 10px; }
  .apg-owner-essay { padding: 0 20px; margin-bottom: 44px; }
  .apg-essay-section { padding: 24px 0 22px; }
  .apg-essay-section::before { position: static; display: block; font-size: 29px; margin-bottom: 13px; }
  .apg-essay-section h2 { margin-bottom: 18px; }
  .apg-essay-section p { font-size: 20px; line-height: 1.5; }
  .apg-table-space { margin: 28px 0; padding: 0 0 7px 5px; box-shadow: 4px 4px 0 var(--apg-pink); transform: none; }
  .apg-comparison-table { font-size: 16px; line-height: 1.35; table-layout: fixed; transform: none; }
  .apg-comparison-table th { font-size: 18px; }
  .apg-comparison-table td, .apg-comparison-table th { padding: 13px 7px; overflow-wrap: anywhere; }
  .apg-comparison-table th:first-child { width: 23%; }
  .apg-comparison-table td:first-child { min-width: 0; }
  .apg-reading-end { padding: 31px 20px 37px; }
  .apg-reading-end::before { width: 80px; height: 18px; top: -17px; }
  .apg-reading-end p { font-size: 31px; }
  .apg-page-choices { gap: 11px 25px; }
  .apg-page-choices a { font-size: 20px; gap: 9px; }
  .apg-colophon { padding: 29px 20px; }
  .apg-colophon-links { gap: 15px 23px; }
  .apg-not-found { padding: 25px 20px 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .apg-stationary-scene, .apg-reel-window { display: none; position: static; }
  .apg-phone-scene { display: block; height: 110px; background-position: center 70%; }
}

.apg-photo-programme-panorama { background-image: url("programme-panorama.webp"); }
.apg-photo-chalk-wheel { background-image: url("chalk-wheel.webp"); }
.apg-photo-blue-folds { background-image: url("blue-folds.webp"); }
.apg-photo-extra-line { background-image: url("extra-line.webp"); }
.apg-photo-level-ground { background-image: url("level-ground.webp"); }
.apg-photo-programme-bench { background-image: url("programme-bench.webp"); }
.apg-photo-pavilion-light { background-image: url("pavilion-light.webp"); }
.apg-photo-og-default { background-image: url("og-default.webp"); }
