.society-page {
  --society-red: #ed1d25;
  --society-red-ink: var(--brand-accent-red);
  --society-yellow: var(--yellow);
  --society-gray: #f5f5f5;
  --society-muted: var(--muted);
  --society-radius: 20px;
  background: #fff;
  color: var(--ink);
}
html:has(.society-page) { scroll-behavior: smooth; }
.society-hero {
  padding-block: clamp(32px, 5vw, 64px);
  background: var(--society-gray);
}
.society-hero-grid, .society-opener, .society-profile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(28px, 6vw, 94px);
}
.society-hero h1 {
  font-family: var(--serif);
  font-size: min(10.65cqi, 3.65rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: .38em 0 .3em;
  color: var(--society-red);
  white-space: nowrap;
}
.society-hero h1 .society-brand-name { color: inherit; }
.society-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, min(42%, 385px));
  gap: clamp(12px, 1.5vw, 22px);
}
.society-hero-grid > :first-child { container-type: inline-size; }
.society-hero-subtitle {
  font: 400 clamp(1.4rem, 2.55vw, 2.35rem)/1.2 var(--serif);
  color: var(--ink);
  letter-spacing: -.025em;
}
.society-standfirst, .society-legacy-copy {
  color: var(--society-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
}
.society-hero .society-standfirst { color: var(--body-copy-slate); }
.society-standfirst { margin-top: 1rem; max-width: 47ch; }
.society-cta { margin-top: 1.6rem; }
.society-hero .society-cta { margin-top: 1.15rem; }
.society-crest-panel {
  display: grid;
  align-items: center;
  justify-items: end;
  padding-block: clamp(10px, 2.5vw, 32px);
}
.society-crest {
  display: block;
  width: min(100%, 385px);
  height: auto;
}
.society-hero .society-hero-photo {
  margin-top: clamp(22px, 3.2vw, 42px);
}
.society-hero .society-hero-photo img {
  border-radius: var(--society-radius);
}
.society-section { padding-block: clamp(42px, 6vw, 76px); }
.society-kicker {
  color: var(--section-label-red);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .105em;
}
.society-section-heading { text-align: center; margin-bottom: clamp(25px, 4vw, 52px); }
.society-page h2 {
  font: 400 clamp(1.95rem, 3.65vw, 3.4rem)/1.17 var(--serif);
  letter-spacing: -.025em;
  margin: .18em 0;
  text-wrap: balance;
}
.society-photo { margin: 0; min-width: 0; }
.society-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.society-photo:is(.society-hero-photo, .society-singing-photo) img {
  /* Match the frame of the Every Other Saturday panorama. */
  aspect-ratio: 765 / 401;
  object-fit: cover;
}
.society-image-note, .society-source {
  font-size: .77rem;
  line-height: 1.55;
  margin-top: .7rem;
  color: var(--society-muted);
}
.society-saturday { background: #fff; }
.society-saturday .society-section-heading {
  margin-bottom: clamp(20px, 3vw, 34px);
}
.society-saturday h2 {
  font-family: var(--serif);
  font-size: clamp(1.95rem, 3.65vw, 3.4rem);
  font-weight: 400;
  line-height: 1.12;
  margin: .35em 0 .2em;
}
.society-saturday-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--body-copy-slate);
}
.society-saturday .society-photo img {
  border-radius: var(--society-radius);
}
.society-opener {
  gap: clamp(18px, 2.3vw, 28px);
  margin-top: clamp(16px, 2vw, 24px);
}
.society-saturday .society-copy { font-size: clamp(1rem, 1.65vw, 1.2rem); }
.society-opener .society-copy > p { color: var(--body-copy-slate); }
.society-saturday-quote {
  border-left: 4px solid var(--society-yellow);
  margin-top: clamp(18px, 3vw, 28px);
  padding: clamp(14px, 2.1vw, 24px);
  background: var(--paper);
}
.society-saturday-quote p { color: var(--body-copy-slate); font-size: .83rem; }
.society-saturday-quote blockquote {
  margin: .5em 0 0;
  font-size: clamp(1.58rem, 3.6vw, 2.9rem);
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  line-height: 1.24;
  letter-spacing: -.02em;
}
.society-copy { min-width: 0; }
.society-copy p:not(.society-kicker) { line-height: 1.65; }
.society-copy p + p { margin-top: .8rem; }
.society-scenes {
  --scene-ink: #222222;
  --scene-light-text: #dfdfdf;
  --scene-brick: #96352d;
  --scene-brick-light: #f58d7e;
  padding-block: clamp(36px, 6vw, 76px);
  background: var(--society-gray);
  color: var(--scene-ink);
}
.society-scenes > .container {
  --story-gutter: clamp(20px, 4vw, 52px);
  position: relative;
  padding-inline-start: var(--story-gutter);
  background: #fff;
  border-radius: var(--society-radius);
}
.society-scenes > .container::before,
.society-scenes > .container::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: calc(var(--story-gutter) / 2 - 1.5px);
  width: 3px;
  border-radius: 3px;
  pointer-events: none;
}
.society-scenes > .container::before { background: #d9cdb6; }
.society-scenes > .container::after { background: var(--brand-section-yellow); }

@keyframes society-story-progress {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .society-scenes > .container { view-timeline-name: --society-story; }
    .society-scenes > .container::after {
      transform-origin: top;
      animation: society-story-progress 1ms linear both;
      animation-timeline: --society-story;
      animation-range: entry 48% exit 52%;
    }
  }
}

.society-scene-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 14px;
  overflow: hidden;
}
.society-scene-dark {
  background: var(--scene-ink);
  color: var(--scene-light-text);
}
.society-scene-dark .society-scene-copy p:not(.society-kicker) {
  color: var(--scene-light-text);
}
.society-scene-copy {
  align-self: center;
  padding: clamp(24px, 4.4vw, 68px);
}
.society-scene-intro .society-scene-copy { container-type: inline-size; }
.society-scenes h2,
.society-scenes h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.17;
  letter-spacing: -.025em;
}
.society-scenes .society-scene-copy h2,
.society-scenes .society-scene-copy h3 {
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  margin: 0 0 .65em;
  color: #fff;
}
.society-scenes .society-scene-copy p {
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.55;
}
.society-scene-copy p + p { margin-top: .9em; }
.society-scenes .society-scene-copy .society-kicker {
  margin-bottom: 1.1rem;
  font-size: .76rem;
}
.society-scene-fence .society-kicker { color: var(--society-red); }
.society-scene-quote {
  font-family: var(--serif);
  color: #be392d;
  font-size: clamp(2rem, 4.8vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.035em;
  margin: .36em 0 .25em;
}
.society-scene-intro .society-scene-quote {
  font-size: min(clamp(2rem, 4.8vw, 4.5rem), 12.5cqi);
  white-space: nowrap;
}
.society-scene-photo, .society-profile > .society-photo { align-self: center; }
@media (min-width: 761px) {
  .society-scene-intro .society-scene-photo {
    position: relative;
    align-self: stretch;
  }
  .society-scene-intro .society-scene-photo img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
  }
}
.society-story-note {
  --story-note-space: clamp(20px, 3vw, 36px);
  position: relative;
  z-index: 1;
  padding: var(--story-note-space) clamp(4px, 1.2vw, 14px);
}
.society-story-note::before {
  --story-marker-size: clamp(18px, 3.2vw, 36px);
  content: "";
  position: absolute;
  inset-block-start: calc(var(--story-note-space) + .65rem + 5px - var(--story-marker-size) / 2);
  inset-inline-start: calc((var(--story-gutter) + var(--story-marker-size)) / -2);
  width: var(--story-marker-size);
  height: var(--story-marker-size);
  border-radius: 50%;
  background: #fff var(--story-crest, url('/assets/boys-pen-society-crest.png')) center / contain no-repeat;
}
.society-story-note p {
  line-height: 1.55;
  max-width: 72ch;
}
.society-story-note .society-story-line {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.35vw, 2rem);
  color: var(--scene-ink);
  line-height: 1.3;
  text-wrap: pretty;
}
.society-story-note p + p { margin-top: .45em; }
#society-story-turn .society-story-line + p { max-width: none; }
.society-story-ending .society-story-line:last-child { color: var(--scene-brick); }
.society-scene-shout .society-scene-quote {
  margin: 0 0 .5em;
  white-space: normal;
}
.society-scene-shout .society-scene-quote span {
  display: block;
  color: #fff;
  font-size: .72em;
}
.society-scenes .society-scene-dark .society-scene-shout .society-source {
  font-size: .77rem;
}
@media (max-width: 760px) {
  .society-scene-split { grid-template-columns: minmax(0, 1fr); }
  .society-scene-fence .society-scene-copy { padding-bottom: 1.5rem; }
}
.society-finale {
  padding-block: clamp(18px, 3.4vw, 44px);
  background: #fff;
}
.society-finale-panel {
  background: var(--society-gray);
  overflow: hidden;
  border-radius: var(--society-radius);
}
.society-finale-heading,
.society-finale-bridge {
  text-align: center;
  padding: clamp(24px, 3.5vw, 48px) clamp(16px, 4vw, 48px);
}
.society-finale h2,
.society-finale h3 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4.1vw, 4rem);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -.033em;
  margin: .28em 0;
}
.society-finale-italic { font-style: normal; line-height: 1.4; }
.society-finale-heading .society-finale-italic {
  font-size: clamp(1rem, 1.85vw, 1.4rem);
}
.society-terraces {
  --songs-dark: #222;
  --songs-light: #f7f4ee;
}
.society-terraces .society-finale-panel {
  overflow: clip;
}
.society-terraces h2,
.society-profile-copy h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -.025em;
}
.society-songs-intro {
  max-width: 92ch;
  margin-inline: auto;
  color: var(--body-copy-slate);
}
:is(.society-chant, .society-song-sheet) {
  background: var(--songs-dark);
  color: var(--songs-light);
}
.society-chant {
  text-align: center;
  padding: clamp(22px, 3.2vw, 42px) clamp(16px, 4vw, 44px);
}
.society-note {
  color: var(--society-red);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1;
}
.society-chant blockquote {
  display: grid;
  justify-items: center;
  gap: .35em;
  margin: .6em 0 .55em;
  white-space: normal;
  font: 700 clamp(1.45rem, 3.25vw, 2.8rem)/1.2 var(--sans);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.society-chant blockquote > strong { font-size: 1.25em; }
.society-lyric-line {
  display: inline-block;
  max-width: 100%;
  color: #dfdfdf;
  font-style: italic;
}
.society-lyric-line .society-brand-name,
.society-lyric-line .bill-shankly-name {
  color: var(--society-red);
}
.society-chant .society-lyric-line,
.society-verse-emphasis .society-lyric-line,
.society-verse-plea .society-lyric-line,
.society-verse-refrain .society-lyric-line { color: #fff; }
.society-scene-dark .society-brand-name { color: var(--scene-brick-light); }
.society-tune {
  font-size: .86rem;
  line-height: 1.55;
  color: #c8c5bf;
}
.society-finale-bridge {
  font: 700 clamp(1.4rem, 3.1vw, 2.6rem)/1.25 var(--sans);
  text-wrap: balance;
}
.society-finale-bridge p:first-child { color: var(--ink); }
.society-finale-bridge p + p { color: var(--society-red-ink); margin-top: .32em; }
.society-profile {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
}
.society-profile-copy {
  align-self: center;
  padding: clamp(24px, 4vw, 58px);
}
.society-profile-copy h3 { color: var(--society-red-ink); }
.society-profile-subtitle {
  color: var(--ink);
  font: 700 clamp(1.35rem, 2.4vw, 2.25rem)/1.25 var(--sans);
}
.society-profile-copy > p:not(.society-kicker):not(.society-profile-subtitle) {
  margin-top: .9em;
  line-height: 1.6;
  color: var(--body-copy-slate);
}
.society-song-sheet {
  padding: clamp(22px, 3vw, 40px) clamp(18px, 4vw, 48px);
  text-align: center;
}
.society-song-sheet .society-finale-heading { padding: 0 0 clamp(16px, 2.5vw, 28px); }
.society-song-sheet .society-finale-heading .society-kicker {
  color: var(--society-red);
  margin: .8rem 0 0;
  font: 600 .75rem/1.6 var(--sans);
  letter-spacing: .105em;
}
.society-verse + .society-note { margin-top: 1rem; }
.society-verse {
  margin: 0;
  white-space: normal;
  font-size: clamp(1rem, 1.65vw, 1.28rem);
  line-height: 1.65;
}
.society-verse-stanza {
  padding-block: clamp(12px, 2vw, 24px);
}
.society-verse-stanza:first-child { border-top: 1px solid #57534e; }
.society-verse-stanza p { white-space: normal; }
.society-verse-stanza p + p { margin-top: .45em; }
.society-verse-emphasis,
.society-verse-plea {
  font: 700 clamp(1.42rem, 3.25vw, 2.85rem)/1.22 var(--sans);
  text-wrap: balance;
}
.society-verse-plea { font-size: clamp(1.28rem, 2.85vw, 2.7rem); }
.society-verse-stanza .society-verse-refrain {
  font: 700 clamp(1.4rem, 2.85vw, 2.6rem)/1.2 var(--sans);
}
.society-verse-stanza .society-verse-final { font-size: clamp(1.65rem, 3.8vw, 3.5rem); }
.society-legacy {
  text-align: center;
  background: var(--brand-section-yellow);
  padding-block: clamp(34px, 4.8vw, 65px);
}
.society-legacy-panel {
  padding-inline: clamp(16px, 4vw, 48px);
  background: transparent;
}
.society-legacy-action h2 {
  margin: .45em 0;
}
.society-legacy-action .society-brand-name { color: var(--brand-red-on-yellow); }
.society-legacy-action .society-finale-italic { color: var(--ink); }
.society-legacy .society-legacy-copy { color: var(--ink); }
.society-legacy-crest {
  display: block;
  width: clamp(105px, 12vw, 150px);
  height: auto;
  margin: 1.25rem auto;
}
.society-legacy-copy { max-width: 92ch; margin: .75rem auto 0; }
.society-legacy-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.2rem;
}
.society-legacy-buttons [aria-disabled="true"] { cursor: default; transform: none; }

@media (max-width: 760px) {
  .society-hero-grid, .society-opener, .society-profile { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .society-hero h1 { font-size: min(10.1cqi, 3.65rem); }
  .society-hero-grid { gap: .9rem; }
  .society-crest-panel { order: -1; justify-items: center; padding-block: 8px; }
  .society-crest { width: min(76%, 315px); }
  .society-profile { gap: 0; }
  .society-legacy-buttons {
    display: grid;
    width: fit-content;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    margin-inline: auto;
  }
}
@keyframes society-arrive {
  from { opacity: .62; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .society-arrived {
    animation: society-arrive 520ms cubic-bezier(.2, .65, .3, 1) both;
  }
  .society-crest.society-arrived {
    animation-delay: 100ms;
  }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.society-page) { scroll-behavior: auto; }
  .society-page .button { transition: none; }
  .society-page .button:hover { transform: none; }
}
.society-page [data-society-text] { white-space: pre-line; }
.society-scene-intro .society-scene-quote [data-society-text] { white-space: inherit; }

