/* Chit Chat Club: shared styles (redesign of 2026-12, from ~/hammond/ccc-design).
   Wallington appears only as rendered images (licence). Text is Lora; IM Fell SC is kept for a few short labels. */

@font-face { font-family: 'Lora'; src: url(../fonts/lora-v35-latin-regular.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Lora'; font-style: italic; src: url(../fonts/lora-v35-latin-italic.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Lora'; font-weight: 500; src: url(../fonts/lora-v35-latin-500.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Lora'; font-weight: 600; src: url(../fonts/lora-v35-latin-600.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Lora'; font-weight: 600; font-style: italic; src: url(../fonts/lora-v35-latin-600italic.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Fell SC'; src: url(../fonts/fell-pica-sc.woff2) format('woff2'); font-display: swap; }

:root {
  --ground: #140a03;        /* the room, after dark */
  --ground-2: #1d1007;
  --gilt: #c9a24c;
  --gilt-hi: #e6cc84;
  --gilt-lo: #6f5220;
  --vellum: #efe5cc;
  --text: #ede3cc;
  --text-soft: #c8bba0;

  --serif: 'Lora', Georgia, serif;
  --sc: 'Fell SC', 'Lora', Georgia, serif;

  --s-1: .833rem; --s0: 1rem; --s1: 1.2rem; --s2: 1.44rem; --s3: 1.728rem; --s4: 2.074rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 19px; -webkit-text-size-adjust: 100%; }
@media (max-width: 600px) { html { font-size: 17px; } }

body { margin: 0; font-family: var(--serif); line-height: 1.6; color: var(--text); background: var(--ground); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gilt-hi); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sc { font-family: var(--sc); letter-spacing: .03em; }

/* Ornaments: the club's SVGs as masks, so one file serves any colour */
.orn { display: inline-block; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.orn--hand { --src: url(../art/orn/hand.svg); width: 2em; height: 1.1em; vertical-align: middle; position: relative; top: .08em; }
.orn--rule { --src: url(../art/orn/rule-a.svg); width: min(20rem, 80%); height: 1rem; display: block; margin-inline: auto; }
.orn--fleuron { --src: url(../art/orn/fleuron.svg); width: 1.4rem; height: 1.8rem; display: block; margin-inline: auto; }
.orn--crest { --src: url(../art/orn/crest.svg); }
.orn--shield { --src: url(../art/orn/crest-shield.svg); }
.orn--fan { --src: url(../art/orn/fan.svg); }

/* Pointing-hand link: the club's arrow */
.hand-link { display: inline-flex; gap: .45em; align-items: center; text-decoration: none; font-style: italic; color: var(--gilt); }
.hand-link .orn { order: 2; transition: transform .2s ease; }
.hand-link:hover .orn, .hand-link:focus-visible .orn { transform: translateX(.3em); }
.hand-link:hover span, .hand-link:focus-visible span { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Navigation ---------- */
.rail {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem 2rem; flex-wrap: wrap;
  padding: .9rem clamp(1rem, 4vw, 3rem);
}
.rail--over { position: absolute; top: 0; left: 0; right: 0; background: rgba(10,5,1,.7); border-bottom: 1px solid rgba(201,162,76,.35); }
.rail__home { display: flex; align-items: center; gap: .6rem; min-height: calc(var(--s1) * 1.6); color: var(--gilt); text-decoration: none; }   /* height held for the home page, which shows the shield alone */
.rail__home .orn--shield { width: 1.15rem; height: 1.25rem; flex: none; }
.rail__home span { font-family: var(--sc); font-size: var(--s1); letter-spacing: .03em; }
.rail ul { display: flex; flex-wrap: wrap; gap: .2rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.rail li a { color: var(--gilt); font-style: italic; text-decoration: none; }
.rail li a:hover { color: var(--gilt-hi); text-decoration: underline; text-underline-offset: .25em; }
.rail li a[aria-current] { color: var(--text); }

/* Small screens: js/menu.js adds the trigger and the menu. 880px is where the links stop fitting on one line
   (the same number is in menu.js). Without JavaScript the links stay in the header and wrap. */
.menu-btn { display: none; width: 48px; height: 48px; margin: 0; padding: 0; place-items: center; border: 0; background: none;
  color: var(--gilt); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.menu-btn:hover { color: var(--gilt-hi); }
.menu-btn:focus-visible { outline-offset: -3px; }
@media (max-width: 880px) {
  .menu-btn { display: grid; }
  .rail > .menu-btn { margin-right: -12px; }   /* the bars, not the tap area, line up with the page edge */
}
@media (max-width: 880px) and (scripting: enabled) {
  .rail { flex-wrap: nowrap; min-height: calc(48px + .8rem); padding-block: .4rem; }
  .rail > ul { display: none; }
}
@media (max-width: 360px) { .rail__home span { font-size: 1.08rem; white-space: nowrap; } .rail { column-gap: .5rem; } }

.menu { position: fixed; inset: 0 0 0 auto; width: min(100vw, 24rem); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0;
  border: 0; border-left: 1px solid rgba(201,162,76,.3); color: var(--gilt); overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(ellipse 75% 60% at 50% 50%, rgba(13,6,2,.75), rgba(13,6,2,.1)), #0d0602 url(../art/wallpaper-damask.webp) center top / 620px auto;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.7,.2,1), overlay .28s allow-discrete, display .28s allow-discrete; }
.menu[open] { transform: none; }
.menu::backdrop { background: rgba(10,5,1,.7); opacity: 0; transition: opacity .28s, overlay .28s allow-discrete, display .28s allow-discrete; }
.menu[open]::backdrop { opacity: 1; }
@starting-style { .menu[open] { transform: translateX(100%); } .menu[open]::backdrop { opacity: 0; } }
@media (max-width: 600px) { .menu { width: 100vw; border-left: 0; } }
html:has(.menu[open]) { overflow: hidden; }
.menu__close { position: absolute; top: .4rem; right: calc(clamp(1rem, 4vw, 3rem) - 12px); }
.menu__nav { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; padding: 4rem 1.5rem; }
.menu__home { display: block; color: var(--gilt); }
.menu__home .orn--crest { display: block; width: 13rem; aspect-ratio: 374 / 197; }
.menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu li a { position: relative; display: inline-block; padding: .55rem .5rem; font-size: 1.75rem; line-height: 1.25; font-style: italic; text-decoration: none; }
.menu a:hover { color: var(--gilt-hi); }
.menu li a[aria-current] { color: var(--text); }
.menu li .orn--hand { position: absolute; right: 100%; top: 50%; width: 1.35em; height: .77em; transform: translateY(-50%); color: var(--gilt); }
@media (max-width: 360px) { .menu li a { font-size: 1.5rem; } }   /* room for the hand beside Former Members */
@media (max-height: 480px) { .menu__nav { gap: .8rem; padding-block: 1.2rem; } .menu__home .orn--crest { width: 8rem; } .menu li a { font-size: 1.35rem; padding-block: .25rem; } }
@media (prefers-reduced-motion: reduce) { .menu::backdrop { transition: none; } }

.rail--solid { border-bottom: 1px solid rgba(201,162,76,.2); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .5rem 1rem; color: var(--ground); background: var(--gilt-hi); border-radius: 0 0 3px 3px; }
.skip-link:focus { top: 0; }

/* ---------- Full-bleed photographic hero ---------- */
.hero { position: relative; display: grid; place-items: center; text-align: center; min-height: min(80vh, 780px); padding: 6rem 1rem 4rem; overflow: hidden; isolation: isolate; }
.hero--short { min-height: min(56vh, 520px); }
.hero > picture, .hero > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 55% 45% at 50% 48%, rgba(20,10,3,.72), rgba(20,10,3,.3) 75%), linear-gradient(rgba(20,10,3,.15), rgba(20,10,3,.15) 60%, var(--ground)); }
.hero h1 { margin: 0; }
.hero h1 img { margin: 0 auto; height: auto; filter: drop-shadow(0 2px 0 rgba(20,10,3,.8)) drop-shadow(0 6px 18px rgba(0,0,0,.85)); }
.hero__sub { margin: 1rem 0 0; font-family: var(--sc); font-size: var(--s1); color: var(--gilt-hi); letter-spacing: .04em; text-shadow: 0 1px 8px #000; }
.hero__sub .sep { color: var(--gilt); padding: 0 .5em; }
.hero__caption { position: absolute; right: clamp(1rem, 3vw, 2.5rem); bottom: 1.2rem; margin: 0; max-width: 24rem; text-align: right;
  font-size: var(--s-1); font-style: italic; color: var(--text-soft); text-shadow: 0 1px 6px #000; }
.hero__caption b { font-family: var(--sc); font-style: normal; font-weight: normal; color: var(--gilt); }
@media (max-width: 640px) { .hero__caption { position: static; text-align: center; margin-top: 2.5rem; } }

/* ---------- Damask wall, used once per page at most ---------- */
.wall { background: #1a1009 url(../art/wallpaper-1.webp) 0 0 / 1024px auto repeat; }
.wall--fine { background-size: 819px auto; }   /* the roster wallpapers: 2048px tiles at 80% */
.wall--trellis { background-color: #0d0602; background-image: url(../art/wallpaper-trellis.webp); background-size: 848px auto; }   /* home portraits: 942px tile at 90% */
.wall--damask { background: #0c0603 url(../art/damask-hero-large.webp) center / cover no-repeat; }
@media (max-width: 760px) { .wall--damask { background-image: url(../art/damask-hero-small.webp); } }

/* ---------- Section headings ---------- */
.section-title { text-align: center; margin: 0 0 .5rem; }
.section-title img { margin: 0 auto; height: auto; }
.section-lede { text-align: center; font-style: italic; margin: 0 auto 2.4rem; max-width: 32em; color: var(--text-soft); }

/* ---------- Portraits in frames ---------- */
.portrait { display: block; text-decoration: none; color: inherit; text-align: center; }
.portrait__frame { position: relative; aspect-ratio: var(--fw) / var(--fh); width: 100%; }
.portrait__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait__frame > .portrait__painting {
  inset: var(--t) var(--r) var(--b) var(--l);
  width: calc(100% - var(--l) - var(--r)); height: calc(100% - var(--t) - var(--b)); object-fit: cover;
}
/* No photo on file: the club crest in the frame instead of an empty frame */
.portrait__none { position: absolute; inset: var(--t) var(--r) var(--b) var(--l); display: grid; place-items: center;
  background: radial-gradient(ellipse at center, #2a1a0c, #120a05 75%); }
.portrait__none .orn--crest { width: 58%; aspect-ratio: 374 / 197; color: var(--gilt-lo); }
.portrait__frame > .portrait__gilt { z-index: 1; filter: drop-shadow(0 12px 16px rgba(0,0,0,.65)); transition: filter .2s; }
.portrait:hover .portrait__gilt, .portrait:focus-visible .portrait__gilt { filter: drop-shadow(0 12px 16px rgba(0,0,0,.65)) brightness(1.12); }
.portrait__name { text-shadow: 0 0 3px #000, 0 0 10px #000, 0 0 18px #000; }
.portrait__name { display: block; margin-top: .9rem; font-size: 1.6rem; line-height: 1.25; font-style: italic; color: var(--gilt); }   /* near the live site (about 31px) */
.portrait:hover .portrait__name { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Footer ----------
   As on the current site: the footer sits a layer behind the page. Ducreux runs off its top and left edges and
   the footer clips him, so he seems to slide under the content above; a soft shadow along the top edge helps. */
.foot { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(170px, 420px) 1fr; align-items: center; gap: 1rem 3rem;
  padding-right: clamp(1rem, 4vw, 3rem); background: #0d0602; color: var(--gilt);
  box-shadow: inset 0 14px 18px -10px rgba(0,0,0,.85); }
.foot__secret { display: block; margin: -14% 0 -4% -15%; }
.foot__secret img { width: 100%; height: auto; }
.foot__secret:focus-visible { outline-offset: -12px; }
.foot__body { padding: 2.5rem 0; text-align: center; }
.foot__body p { margin: .3rem 0; }
.foot__copy { font-size: var(--s2); }
.foot__body .hand-link { font-size: var(--s1); }
.foot__copy i { display: block; font-size: var(--s-1); color: var(--text-soft); }
@media (max-width: 640px) {
  .foot { grid-template-columns: 44% 1fr; gap: .5rem; padding-right: 1rem; }
  .foot__secret { margin: -16% 0 -6% -28%; }
  .foot__body { padding: 1.5rem 0; }
  .foot__copy { font-size: .95rem; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* ---------- Prose: About, Semi-Secret and other pages of running text ---------- */
.prose { max-width: 35rem; margin: 0 auto; font-size: 1.05rem; line-height: 1.7; color: var(--text); }
.prose p { margin: 0 0 1.05em; }
.prose a { color: var(--gilt-hi); text-decoration-color: rgba(201,162,76,.45); text-underline-offset: .18em; }
.prose h2, .prose h3, .prose h4 { color: var(--vellum); line-height: 1.3; text-wrap: balance; }
.prose h2 { font-size: var(--s3); font-weight: 500; text-align: center; margin: 0 0 1.2rem; }
.prose h3 { font-size: var(--s2); font-weight: 500; text-align: center; margin: 2.6rem 0 .8rem; }
.prose h4 { font-size: 1.05rem; font-weight: 600; font-style: italic; margin: 2rem 0 .6rem; }
.prose ol, .prose ul { padding-left: 1.6em; margin: 0 0 1.05em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--gilt); font-variant-numeric: lining-nums; }
.prose blockquote { margin: 1.4em 0; padding-left: 1.3em; border-left: 1px solid rgba(201,162,76,.45); color: var(--text-soft); font-size: .95em; }
.prose .dropcap::first-letter { float: left; font-size: 3.6em; line-height: .82; font-weight: 500; color: var(--gilt); padding: .06em .08em 0 0; }
.prose .signed { text-align: center; font-style: italic; color: var(--text-soft); }
@media (max-width: 1100px) and (min-width: 641px) { .foot { grid-template-columns: minmax(170px, 32vw) 1fr; } }

.prose--page { padding: 3.5rem 1.2rem 4.5rem; }
.prose--page h1 { color: var(--vellum); text-align: center; }
