/* =========================================================
   Page layouts for thediscussiongroup.es
   Lifted from the mockups in design/*.html; primavera.css holds the shared system.
   ========================================================= */

/* ---------- Markdown blocks: shared conventions ----------
   #### Label    -> kicker above a heading
   ## Heading    -> block heading
   A paragraph containing only a link -> button                         */
.block h4 { font-family: var(--f-ui); font-size: var(--t-ui); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--vermilion); margin: 0; }
.block p:last-child { margin-bottom: 0; }
.block .actions { margin: var(--s3) 0 0; }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: var(--s5); padding-top: var(--s5); padding-bottom: var(--s6); }
.hero__label { display: flex; justify-content: space-between; align-items: baseline; border-top: 4px double var(--ink); padding-top: .5rem; margin-bottom: var(--s4); }

.next { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s4); align-items: start; }
.next__img { display: block; aspect-ratio: 5 / 4; overflow: hidden; background: var(--night); }
.next__img img { width: 100%; height: 100%; object-fit: cover; }
.next h1 { font-size: var(--t-hero); line-height: .95; margin: .9rem 0 .7rem; overflow-wrap: break-word; }
.next h1 a { text-decoration: none; }
.next h1 a:hover { color: var(--carmine); }
.next__facts { font-family: var(--f-ui); font-size: .85rem; line-height: 1.7; margin: var(--s3) 0 var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.next__facts b { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; color: var(--muted); display: inline-block; width: 6.5rem; }

.aside { border-left: 1px solid var(--ink); padding-left: var(--s4); display: flex; flex-direction: column; gap: var(--s4); }
.soon { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; padding-bottom: var(--s4); border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.soon h3 { font-size: 1.5rem; margin: .25rem 0 .35rem; }
.soon p { font-size: 1.05rem; color: var(--muted); margin: 0; }
.soon .datestamp__day { font-size: 2.6rem; }
.tba { font-family: var(--f-display); font-size: 1.15rem; color: var(--vermilion); line-height: 1; border: 1px solid var(--vermilion); border-radius: 50%; width: 3.6rem; height: 3.6rem; display: grid; place-items: center; text-align: center; }
.tba span { font-family: var(--f-ui); font-size: .55rem; letter-spacing: .14em; display: block; margin-top: .15rem; }

.whatsapp { background: var(--grove); color: var(--vellum); padding: var(--s4); position: relative; overflow: hidden; }
.whatsapp::after { content: ""; position: absolute; inset: 0 0 auto auto; width: 120px; height: 100%; background: url("../img/primavera-venus-column.jpg") center 8% / cover; opacity: .35; mask-image: linear-gradient(to right, transparent, #000 70%); -webkit-mask-image: linear-gradient(to right, transparent, #000 70%); }
.whatsapp > * { position: relative; z-index: 1; max-width: 75%; }
.whatsapp h4 { color: var(--orange); }
.whatsapp h2 { font-size: 1.55rem; margin: .4rem 0 .5rem; }
.whatsapp p { font-size: 1.05rem; color: #d9d1bf; }
.whatsapp a { color: var(--vellum); }
.whatsapp .btn { border-color: var(--vellum); color: var(--vellum); }
.whatsapp .btn:hover { background: var(--vellum); color: var(--night); }
.aside-note { font-size: 1.05rem; color: var(--muted); }

.how { padding: var(--s6) 0; background: var(--parchment); }
.how__grid { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: var(--s5); }
.how__intro h2 { font-size: var(--t-h2); line-height: 1.08; margin-top: .6rem; }
.how__intro h2 em { color: var(--vermilion); }
.step__n { font-family: var(--f-display); font-size: 3.6rem; line-height: 1; color: var(--orange); }
.step h3 { font-size: 1.35rem; margin: .4rem 0 .5rem; }
.step p { font-size: 1.08rem; color: #3a362f; }



/* ---------- Event page ---------- */

.ev-head { display: grid; grid-template-columns: minmax(0, 1fr) 26rem; column-gap: var(--s6); row-gap: var(--s3); align-items: end; padding: var(--s5) 0 var(--s4); border-bottom: 4px double var(--ink); }
.ev-head .datestamp { justify-content: start; column-gap: .7rem; }
.ev-head .datestamp__day { font-size: 6.5rem; }
.ev-head .datestamp__month { font-size: .9rem; }
.ev-head h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .95; margin: .5rem 0 .2rem; overflow-wrap: break-word; }

/* Event body: text on the left, the artwork as a "plate" on the right.
   The picture is shown whole (never cropped), stays in view while reading, and links to a larger version. */
.ev-body { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--s6); padding: var(--s5) 0 var(--s6); }
.ev-body.has-plate { grid-template-columns: minmax(0, 1fr) 26rem; }
.ev-plate { margin: 0; position: sticky; top: 1.5rem; align-self: start; }
.ev-plate a { display: block; cursor: zoom-in; }
.ev-plate img { width: 100%; height: auto; max-height: 30rem; object-fit: contain; object-position: left top; }

/* Event details, set as plain text like the description */
.ev-details strong { font-weight: 600; }
.ev-details a { color: inherit; }
.ev-reserve { margin-top: var(--s4); }
.ev-reserve p { font-size: 1rem; color: var(--muted); }
.ev-reserve p:has(.btn) { margin-bottom: .6rem; }
.prose { max-width: var(--measure); font-size: 1.3rem; line-height: 1.55; overflow-wrap: break-word; }
.prose:not(.on-the-night):not(.ev-details):not(.ev-reserve) > p:first-of-type { font-size: 1.45rem; }
.prose:not(.on-the-night):not(.ev-details):not(.ev-reserve) > p:first-of-type::first-letter { float: left; font-family: var(--f-display); color: var(--vermilion); font-size: 4.6em; line-height: .78; padding: .08em .08em 0 0; }
.prose h2 { font-size: 1.7rem; margin: var(--s5) 0 var(--s3); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .3em; }
.prose blockquote { font-style: italic; border-left: 3px solid var(--vermilion); margin: var(--s4) 0; padding-left: var(--s4); }

.on-the-night { margin-top: var(--s5); }
.on-the-night h2 { font-size: 1.7rem; margin: 0 0 var(--s3); }

.ticket { position: sticky; top: 1.5rem; display: flex; flex-direction: column; border: 1px solid var(--ink); background: var(--vellum); }
.ticket > div { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--rule); }
.ticket > div:last-child { border-bottom: 0; }
.ticket dt { font-family: var(--f-ui); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ticket dd { margin: .15rem 0 0; font-size: 1.15rem; line-height: 1.35; }
.ticket dl { margin: 0; display: grid; gap: .9rem; }
.ticket .cta { background: var(--parchment); }
.ticket .cta .btn { width: 100%; justify-content: center; }
.ticket .cta p { font-size: .95rem; color: var(--muted); margin: .7rem 0 0; }
.ticket .door { background: var(--grove); color: var(--vellum); font-size: 1rem; }
.ticket .door dt { color: var(--orange); }

.runs { display: flex; gap: .3rem .8rem; flex-wrap: wrap; margin-top: .3rem; font-family: var(--f-ui); font-size: .8rem; }
.runs a { color: var(--muted); }
.runs strong { color: var(--vermilion); }

.related { padding: var(--s6) 0; background: var(--parchment); }

.recent { padding-block: var(--s6); }

/* ---------- Events page (/events/) ---------- */
.events .upcoming { padding-top: var(--s5); }
.home-upcoming .upcoming { padding-block: var(--s6) var(--s4); }
.home-intro .btn { margin-top: var(--s2); }
.past .past-divider { margin-bottom: var(--s2); padding-top: var(--s4); }
.upcoming .month:last-child { border-bottom: 0; }
.events .year-nav { border-top: 0; border-bottom-color: var(--rule); }
.events .year-head + .past .year-nav { padding-top: 0; }
.upcoming .section-head { margin-bottom: 0; border-top: 0; padding-top: 0; }
.row__side { text-align: right; }
.row__time { display: block; font-family: var(--f-display); font-size: 1.5rem; line-height: 1; }
.row__go { font-family: var(--f-ui); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--vermilion); white-space: nowrap; }
.row__go::after { content: " →"; }
.row--soon .row__day { color: var(--muted); }
.row--soon .row__thumb { background: none; border: 1px dashed var(--rule); }
.row--soon .row__tag { color: var(--vermilion); }
.row__soon-text p { margin: .3rem 0 0; color: var(--muted); font-size: 1.05rem; }

/* Featured next event, aligned to the month grid below (11rem date column) */
.feature { display: grid; grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s4); align-items: start; padding: var(--s4) 0 var(--s5); }
.feature__date { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.feature__day { font-family: var(--f-display); font-size: 6.5rem; line-height: .8; color: var(--vermilion); }
.feature__month { font-family: var(--f-display); font-size: 1.9rem; line-height: 1; margin-top: .6rem; }
.feature__wd { font-family: var(--f-ui); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; }
.feature__fig { margin: 0; }
.feature__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--night); }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.feature__img:hover img { transform: scale(1.03); }
.feature__body h3 { font-size: clamp(2.2rem, 3.6vw, 3.3rem); line-height: .98; margin: .6rem 0 .8rem; }
.feature__body h3 a { text-decoration: none; }
.feature__body h3 a:hover { color: var(--carmine); }
.feature__lede p { font-size: 1.2rem; line-height: 1.5; margin: 0 0 .7rem; }
.feature__facts { margin: var(--s3) 0 var(--s4); padding: var(--s2) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; gap: .25rem; }
.feature__facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s2); align-items: baseline; }
.feature__facts dt { font-family: var(--f-ui); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.feature__facts dd { margin: 0; font-size: 1.08rem; }
.upcoming__more { margin: 0; padding-top: var(--s3); border-top: 1px solid var(--rule); }

/* ---------- Past events ---------- */
.past { padding-bottom: var(--s6); scroll-margin-top: 0; }
.past-divider { display: flex; align-items: center; gap: var(--s4); padding-top: var(--s6); font-family: var(--f-ui); font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--vermilion); }
.past-divider::before, .past-divider::after { content: ""; flex: 1; border-top: 4px double var(--ink); }
.past-divider span::before, .past-divider span::after { content: "❧"; font-size: 1.1rem; letter-spacing: 0; margin: 0 .7em; color: var(--orange); }
.past-divider span::before { display: inline-block; transform: scaleX(-1); }
.arch-head .deck p { margin: 0 0 var(--s3); }

/* ---------- Archive ---------- */
.arch-head { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: var(--s6); align-items: end; padding: var(--s6) 0 var(--s4); }
.arch-head h1, .arch-head h2 { font-size: clamp(3rem, 6vw, 5.2rem); line-height: .9; margin-top: .6rem; }
.arch-head h1 em, .arch-head h2 em { color: var(--vermilion); white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 4px double var(--ink); }
.stats div { padding: .8rem .2rem 0; }
.stats b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--vermilion); }
.stats span { font-family: var(--f-ui); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.year-nav { position: sticky; top: 0; z-index: 5; background: var(--vellum); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: .8rem 0; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.year-nav .kicker { margin-right: .6rem; }
.chip { font-family: var(--f-ui); font-size: .78rem; font-weight: 600; letter-spacing: .06em; padding: .45em .95em; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; }
.chip:hover { background: var(--parchment); color: var(--ink); }
.chip[aria-current] { background: var(--ink); color: var(--vellum); }
.year-head { padding-block: var(--s5) var(--s4); display: flex; align-items: baseline; gap: var(--s4); flex-wrap: wrap; }
.year-head .kicker { flex-basis: 100%; }
.year-head h1 { font-size: clamp(3.5rem, 8vw, 6rem); line-height: .9; color: var(--vermilion); }
.year-head__count { margin: 0; font-family: var(--f-ui); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.year-pager { display: flex; justify-content: space-between; padding-block: var(--s5) var(--s6); font-family: var(--f-display); font-size: 1.8rem; }
.year-pager a { text-decoration: none; }
.year-pager a:hover { color: var(--carmine); }

.month { display: grid; grid-template-columns: 11rem minmax(0,1fr); gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 4rem; }
.month__name { font-size: 1.9rem; position: sticky; top: 4.2rem; align-self: start; }
.month__name span { display: block; font-family: var(--f-ui); font-size: .72rem; letter-spacing: .16em; color: var(--muted); margin-top: .3rem; }
.row { display: grid; grid-template-columns: 3.4rem 9.5rem minmax(0,1fr) auto; gap: var(--s4); align-items: center; padding: .9rem 0; text-decoration: none; color: var(--ink); border-top: 1px solid var(--rule); }
.month__rows .row:first-child { border-top: 0; }
.row__day { display: block; font-family: var(--f-display); font-size: 2.3rem; line-height: .9; color: var(--vermilion); }
.row__wd { font-family: var(--f-ui); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.row__thumb { aspect-ratio: 16/10; background: var(--grove); overflow: hidden; }
.row__thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: filter .3s, transform .4s; }
.row:hover .row__thumb img { filter: saturate(1.1); transform: scale(1.04); }
.row h3 { font-size: 1.45rem; transition: color .15s; }
.row:hover h3 { color: var(--carmine); }
.row__meta { display: flex; gap: .4rem 1rem; flex-wrap: wrap; margin-top: .35rem; align-items: baseline; }
.row__by { font-style: italic; color: var(--muted); font-size: 1.05rem; }
.row__tag, .row__rep { font-family: var(--f-ui); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.row__rep { color: var(--gold); }
.row.is-cancelled h3 { text-decoration: line-through; text-decoration-color: var(--muted); }

/* ---------- Generic page (About etc.) ---------- */
.page { padding-block: var(--s6); }
.page__head { border-bottom: 4px double var(--ink); padding-bottom: var(--s4); margin-bottom: var(--s5); }
.page__head h1 { font-size: clamp(3rem, 6vw, 5.2rem); line-height: .9; margin-top: .6rem; }
.page__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: var(--s6); align-items: start; }
.page__aside { position: sticky; top: var(--s4); }
.page__aside figure { margin: 0; }
.page__aside img { width: 100%; background: var(--night); }
@media (max-width: 900px) {
  .page__cols { grid-template-columns: 1fr; gap: var(--s5); }
  .page__aside { position: static; max-width: 26rem; }
}
.prose figure { margin: var(--s4) 0; }
.prose figure img { width: 100%; }

/* ---------- 404 ---------- */
.lost { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5); align-items: center; padding-block: var(--s6); }
.lost figure { margin: 0; }
.lost img { width: 220px; }
.lost .deck p { margin: 0; }
.lost h1 { font-size: var(--t-hero); }

@media (max-width: 1000px) {
  .hero, .next, .ev-body, .ev-head { grid-template-columns: 1fr; }
  .ev-head .datestamp { order: -1; }
  .ev-body.has-plate { grid-template-columns: 1fr; }
  .ev-plate { position: static; order: -1; margin-bottom: var(--s4); }
  .ev-plate img { max-height: 24rem; }
  .feature { grid-template-columns: 1fr; }
  .feature__date { flex-direction: row; align-items: baseline; gap: .6rem; }
  .feature__day { font-size: 3.4rem; }
  .feature__month { margin-top: 0; }
  .aside { border-left: 0; padding-left: 0; }
  .how__grid { grid-template-columns: 1fr 1fr; }
  .ticket { position: static; }
}
@media (max-width: 900px) {
  .arch-head, .month { grid-template-columns: 1fr; }
  .arch-head { gap: var(--s4); }
  .past-divider { gap: var(--s3); }
  .month__name { position: static; }
  .row { grid-template-columns: 3rem 6rem minmax(0,1fr); }
  .row__side { display: none; }
}
@media (max-width: 600px) {
  .how__grid { grid-template-columns: 1fr; }
  .lost { grid-template-columns: 1fr; }
  .ev-head .datestamp__day { font-size: 4.5rem; }
}

/* Small screens: primavera.css hides the nav; show it wrapped under the brand instead. */
@media (max-width: 900px) {
  .masthead__inner { flex-wrap: wrap; }
  .nav { display: flex; flex-wrap: wrap; margin-left: 0; width: 100%; gap: .6rem var(--s3); font-size: .74rem; }
  .nav .btn { padding: .55em 1em; }
}

/* ================================================================ About page */
.ab-group { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s6); align-items: start; padding-block: var(--s6) var(--s5); border-bottom: 4px double var(--ink); }
.ab-group h1 { font-size: clamp(3rem, 6.5vw, 5.6rem); line-height: .92; margin-top: .6rem; }
.ab-group h1 em { color: var(--vermilion); }
.ab-group__text p { font-size: 1.25rem; margin: 0 0 .7rem; }
.ab-group:has(.ab-group__img) { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .55fr); }
.ab-group__img figure { margin: 0; }
.ab-group__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; }
.ab-group__img figcaption { font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.ab-group__text p + p { font-size: 1.1rem; color: var(--muted); }
.ab-group:has(.home-next) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .75fr); gap: var(--s5); }
/* Home: the next event in the intro's third column */
.home-next { display: flex; flex-direction: column; gap: .55rem; text-decoration: none; color: var(--ink); }
.home-next__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--grove); margin-top: .2rem; }
.home-next__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.home-next:hover .home-next__img img { transform: scale(1.03); }
.home-next__date { font-family: var(--f-ui); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.home-next__date b { color: var(--vermilion); font-weight: 700; }
.home-next__title { font-family: var(--f-display); font-size: 1.7rem; line-height: 1.08; transition: color .15s; }
.home-next:hover .home-next__title { color: var(--carmine); }
.home-next__go { font-family: var(--f-ui); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--vermilion); }
.home-next__go::after { content: " →"; }

.ab-host { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s6); padding-block: var(--s6) var(--s5); align-items: start; }
.ab-host h1, .ab-host h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: .95; margin: .6rem 0 .8rem; }
.ab-host__text p { font-size: 1.2rem; }
.ab-host__text p:first-child { font-family: var(--f-display); font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.3; margin-bottom: var(--s4); }
.ab-host figure { margin: 0; }
.ab-host figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

.ab-ledger ul { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 4px double var(--ink); margin: var(--s4) 0 0; padding: 0; list-style: none; }
.ab-ledger li { padding: .8rem .4rem 0 0; font-family: var(--f-ui); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.ab-ledger strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.5rem; line-height: 1; color: var(--vermilion); letter-spacing: 0; text-transform: none; margin-bottom: .3rem; }

.ab-story { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: var(--s6); padding-block: var(--s5) var(--s6); border-top: 1px solid var(--ink); }
.ab-prose { font-size: 1.28rem; }
.ab-prose h3 { font-size: 1.7rem; margin: var(--s5) 0 var(--s3); }
.ab-prose h3:first-child { margin-top: 0; }
.ab-prose ul { padding-left: 1.1rem; }
.ab-prose li { margin-bottom: .45rem; }
.ab-prose li::marker { color: var(--vermilion); }

.ab-links { border: 1px solid var(--ink); position: sticky; top: 1.5rem; }
.ab-links > div { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--rule); }
.ab-links > div:last-child { border-bottom: 0; }
.ab-links h4 { font-family: var(--f-ui); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .35rem; }
.ab-links p { font-size: 1rem; color: var(--muted); margin: .35rem 0 0; line-height: 1.4; }
.ab-links p.actions { margin: 0; }
.ab-links p.actions a { all: unset; cursor: pointer; display: block; font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; }
.ab-links p.actions a:hover { color: var(--carmine); }
.ab-links__mail { background: var(--grove); color: var(--vellum); }
.ab-links .ab-links__mail h4 { color: var(--orange); }
.ab-links .ab-links__mail p { color: #cfc7b4; }
.ab-links .ab-links__mail p.actions a { color: var(--vellum); font-family: var(--f-text); font-size: 1.3rem; }

.ab-gestures { padding-block: var(--s6); background: var(--parchment); }
.ab-gestures__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); counter-reset: g; }
.ab-gestures figure { margin: 0; counter-increment: g; }
.ab-gestures img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(.9); }
.ab-gestures figcaption { border: 0; padding: 0; display: flex; gap: .7rem; align-items: baseline; margin-top: .7rem; font-family: var(--f-text); font-style: italic; font-size: 1.15rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
.ab-gestures figcaption::before { content: counter(g, lower-roman) "."; font-family: var(--f-display); font-style: normal; font-size: 2rem; color: var(--orange); line-height: 1; }

.ab-interests { padding-block: var(--s6); }
.ab-obs ul { columns: 2; column-gap: var(--s6); column-rule: 1px solid var(--rule); list-style: none; padding: 0; margin: 0; }
.ab-obs li { break-inside: avoid; padding: .8rem 0; border-top: 1px solid var(--rule); color: var(--muted); font-size: 1.05rem; }
.ab-obs strong { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; display: block; line-height: 1.15; color: var(--ink); }

.ab-writing { padding-block: 0 var(--s6); }
.ab-writing ol { list-style: none; padding: 0; margin: 0; counter-reset: w; }
.ab-writing li { counter-increment: w; display: grid; grid-template-columns: 3rem 1fr auto; gap: var(--s3); align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.ab-writing li::before { content: counter(w, lower-roman) "."; font-family: var(--f-display); color: var(--orange); font-size: 1.4rem; }
.ab-writing li a { font-family: var(--f-display); font-size: 1.5rem; text-decoration: none; }
.ab-writing li a:hover { color: var(--carmine); }
.ab-writing li em { font-family: var(--f-ui); font-style: normal; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.ab-turn { padding-block: var(--s6); }
.ab-turn__box { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s5); align-items: center; }
.ab-turn img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--orange); }
.ab-turn h2 { font-family: var(--f-display); color: var(--vellum); font-size: var(--t-h2); margin: .4rem 0 .5rem; }
.ab-turn p { color: #cfc7b4; margin: 0; max-width: 36em; }

@media (max-width: 1000px) {
  .ab-group, .ab-group:has(.ab-group__img), .ab-group:has(.home-next), .ab-host, .ab-story, .ab-turn__box { grid-template-columns: 1fr; }
  .ab-group__img { max-width: 20rem; }
  .home-next { max-width: 26rem; }
  .ab-gestures__grid { gap: var(--s2); }
  .ab-obs ul { columns: 1; }
  .ab-ledger ul { grid-template-columns: 1fr 1fr; }
  .ab-links { position: static; }
}
@media (max-width: 600px) {
  .ab-gestures figcaption { font-size: .95rem; flex-direction: column; gap: .2rem; }
  .ab-writing li { grid-template-columns: 2rem 1fr; }
  .ab-writing li em { grid-column: 2; }
}

/* ================================================================ Series page (e.g. /satan/) */
.series-page { padding-bottom: var(--s6); }
.sr-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s6); align-items: center; padding-block: var(--s6); }
.sr-hero__img figure { margin: 0; }
.sr-hero__img img { width: 100%; filter: saturate(.85) contrast(1.05); }
.sr-hero__img .label { color: #b8b19f; }
.sr-hero__img .label em { font-family: var(--f-text); font-size: 1.05rem; color: var(--vellum); }
.series-page .kicker { color: var(--orange); }
.sr-hero h1 { font-family: var(--f-black); font-size: clamp(3.2rem, 7vw, 6rem); line-height: .9; color: var(--vellum); margin: .6rem 0 .4rem; }
.sr-hero__text p { font-style: italic; font-size: 1.45rem; line-height: 1.35; color: #cfc7b4; }
.sr-hero__note p { font-size: 1rem; color: #9a937f; }

.sr-parts h2 { color: var(--vellum); }
.sr-parts ol { list-style: none; margin: 0; padding: 0; }
.sr-part { display: grid; grid-template-columns: 16rem 4rem minmax(0, 1fr); gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--moss); align-items: start; }
.sr-part__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #1c2219; }
.sr-part__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: filter .2s; }
.sr-part__img:hover img { filter: none; }
.sr-part__n { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--orange); }
.sr-part h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; margin: 0 0 .5rem; color: var(--vellum); }
.sr-part h3 a { text-decoration: none; }
.sr-part h3 a:hover { color: var(--orange); }
.sr-part p { color: #cfc7b4; font-size: 1.1rem; line-height: 1.45; margin: 0 0 .8rem; max-width: 38em; }
.sr-part__runs { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-family: var(--f-ui); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #9a937f; }
.sr-part__runs a { color: #9a937f; text-decoration: none; border-bottom: 1px solid var(--moss); }
.sr-part__runs a:hover { color: var(--vellum); }
.sr-part__runs .sr-part__soon, .sr-part--coming .sr-part__runs span { color: var(--orange); border-color: var(--orange); }
.sr-part--coming .sr-part__img { border: 1px dashed var(--moss); background: none; }
.sr-part--coming h3 { color: #cfc7b4; font-style: italic; }
.sr-body { padding-top: var(--s5); }
.sr-body .prose { color: #cfc7b4; }

/* Strip on event pages that belong to a series */
.series-strip { padding-block: .9rem; border-bottom: 3px solid var(--orange); }
.series-strip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem var(--s5); }
.series-strip__name { display: flex; align-items: baseline; gap: .7rem; margin-right: auto; }
.series-strip__name span { font-family: var(--f-ui); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.series-strip__name a, .series-strip__name b { font-family: var(--f-black); font-weight: 400; font-size: 1.7rem; line-height: 1; color: var(--vellum); text-decoration: none; }
.series-strip__name a:hover { color: var(--orange); }
.series-strip__parts { display: flex; gap: .3rem; }
.series-strip__parts a, .series-strip__parts b { display: grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .4rem; border: 1px solid var(--moss); font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; text-decoration: none; color: #cfc7b4; }
.series-strip__parts a:hover { border-color: var(--orange); color: var(--orange); }
.series-strip__parts b { background: var(--orange); border-color: var(--orange); color: var(--night); }
.series-strip__all { font-family: var(--f-ui); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.series-strip__all::after { content: " →"; }
.series-strip__all:hover { color: var(--orange); }

@media (max-width: 1000px) {
  .sr-hero { grid-template-columns: 1fr; }
  .sr-part { grid-template-columns: 10rem 3rem minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .sr-part { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .sr-part__img { grid-column: 1 / -1; }
  .sr-part--coming .sr-part__img { display: none; }
  .sr-part__n { font-size: 2rem; }
  .series-strip__name a, .series-strip__name b { font-size: 1.35rem; }
}

/* Sticky navigation bar; anchored sections stop below it */
.masthead { position: sticky; top: 0; z-index: 50; }
html { scroll-padding-top: 7rem; }
@media (max-width: 600px) {
  /* Phones: one compact row, so the sticky bar doesn't eat the screen */
  html { scroll-padding-top: 4.5rem; }
  .masthead__inner { flex-wrap: nowrap; gap: var(--s2); padding-block: .6rem; }
  .brand { gap: .6rem; min-width: 0; }
  .emblem { width: 38px; height: 38px; }
  .wordmark { font-size: 1.3rem; line-height: 1; }
  .wordmark small { display: none; }
  .nav { width: auto; margin-left: auto; flex-wrap: nowrap; gap: var(--s2); letter-spacing: .04em; }
  .nav .btn { padding: .5em .85em; }
}
@media (max-width: 400px) {
  /* smaller phones: shrink the wordmark and menu a touch so they don't collide */
  .masthead__inner { padding-inline: var(--s3); }
  .wordmark { font-size: 1.12rem; }
  .nav { font-size: .7rem; gap: .45rem; letter-spacing: .02em; }
}

/* ---------- The Rabbit Hole ---------- */
.rh-head { padding-block: var(--s6) var(--s4); }
.rh-head h1 { font-size: clamp(3rem, 6vw, 5.2rem); line-height: .95; margin: .6rem 0 var(--s4); }
.rh-head__year { color: var(--vermilion); }
.rh-head__intro { max-width: var(--measure); font-size: 1.3rem; }
.rh-head__intro p { margin-bottom: .6em; }
.rh-nav { position: static; border-bottom-color: var(--rule); margin-bottom: var(--s3); }
.rh-nav__years { margin-left: auto; display: flex; gap: .4rem; }
.chip--year { border-color: var(--vermilion); color: var(--vermilion); }
.chip--year[aria-current] { background: var(--vermilion); border-color: var(--vermilion); color: var(--vellum); }
.rh-group { padding-block: var(--s5) var(--s4); border-bottom: 1px solid var(--rule); }
.rh-group__head { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; border-bottom: 4px double var(--ink); padding-bottom: var(--s3); margin-bottom: var(--s4); }
.rh-group__head h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.rh-group__head p { margin: 0; flex: 1; min-width: 14em; font-style: italic; color: var(--muted); }
.rh-group__count { margin-left: auto; font-family: var(--f-display); font-size: 2rem; line-height: 1; color: var(--vermilion); }
.rh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: var(--s5) var(--s4); }
.rh-card { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.rh-card__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grove); }
.rh-card__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform .5s ease, filter .5s; }
.rh-card:hover .rh-card__img img { transform: scale(1.03); filter: saturate(1.05); }
.rh-card__img.is-empty { display: flex; align-items: flex-end; padding: var(--s3); background: linear-gradient(135deg, var(--moss), var(--grove)); text-decoration: none; }
.rh-card__img.is-empty span { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.05; color: var(--flesh); overflow-wrap: anywhere; }
.rh-play { position: absolute; left: 50%; top: 50%; width: 3.2rem; height: 3.2rem; margin: -1.6rem 0 0 -1.6rem; border-radius: 50%; background: rgb(18 20 15 / .72); }
.rh-play::after { content: ""; position: absolute; left: 1.25rem; top: .95rem; border-style: solid; border-width: .65rem 0 .65rem 1.05rem; border-color: transparent transparent transparent var(--vellum); }
.rh-card:hover .rh-play { background: var(--vermilion); }
.rh-card h3 { font-size: 1.32rem; line-height: 1.15; overflow-wrap: anywhere; }
.rh-card h3 a { text-decoration: none; }
.rh-card h3 a:hover { color: var(--carmine); }
.rh-card__blurb { margin: 0; font-size: 1.05rem; line-height: 1.4; color: var(--muted); }
.rh-card__note { font-size: 1.05rem; line-height: 1.42; border-left: 2px solid var(--orange); padding-left: .8rem; overflow-wrap: anywhere; }
.rh-card__note p { margin: 0 0 .5em; }
.rh-card__note p:last-child { margin-bottom: 0; }
.rh-card__note blockquote { margin: 0 0 .5em; font-style: italic; color: var(--muted); }
.rh-card__note.is-clamped { max-height: 9.2em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.rh-more { align-self: flex-start; margin-top: -.2rem; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--f-ui); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--vermilion); }
.rh-more:hover { color: var(--carmine); }
.rh-card__tags { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-family: var(--f-ui); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.rh-card__tags span::before { content: "#"; opacity: .6; }
@media (max-width: 600px) {
  .rh-head { padding-top: var(--s5); }
  .rh-nav__years { margin-left: 0; }
  .rh-grid { gap: var(--s5); }
}

/* ---------- Members' gate (sign-up panel on gated pages) ----------
   <html class="gate-on"> is set in <head> when there's no dg_member cookie.
   Without it (members, or JavaScript off) everything shows and the panel stays hidden. */
.gate { display: none; }
html.gate-on .gated-rest { display: none; }
html.gate-on .gate, .gate.is-done { display: block; }
.gate { position: relative; margin-top: var(--s5); scroll-margin-top: var(--s5); }
html.gate-on .gate::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 18rem; pointer-events: none;
  margin-bottom: var(--s5); background: linear-gradient(rgb(245 238 224 / 0), rgb(245 238 224 / .85) 55%, var(--vellum)); }
.gate__box { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); background: var(--parchment);
  border-top: 4px double var(--ink); border-bottom: 1px solid var(--rule); }
.gate__img { margin: 0; padding: var(--s5) 0 var(--s4) var(--s5); }
.gate__img img { width: 100%; aspect-ratio: 731 / 413; object-fit: cover; box-shadow: 0 0 0 1px var(--rule); }
.gate__ask, .gate__done { padding: var(--s5) var(--s5) var(--s4); max-width: 44rem; }
.gate h2 { margin: .5rem 0 var(--s3); }
.gate p { max-width: var(--measure); }
.gate__form { margin-top: var(--s4); display: grid; gap: var(--s3); }
.gate__fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s3); }
.gate__fields label { display: grid; gap: .35rem; }
.gate__fields span { font-family: var(--f-ui); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gate__fields input { font: inherit; font-size: 1.1rem; padding: .6em .95em; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--vellum); color: var(--ink); width: 100%; min-width: 0; }
.gate__fields input:focus, .gate__check input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.gate__check { display: flex; gap: .65rem; align-items: flex-start; font-size: 1.02rem; line-height: 1.4; color: var(--muted); cursor: pointer; }
.gate__check b { font-weight: 600; color: var(--ink); }
.gate__check input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--vermilion); }
.gate__go { display: flex; align-items: center; gap: var(--s2) var(--s4); flex-wrap: wrap; }
.gate__go small { font-family: var(--f-ui); font-size: .78rem; color: var(--muted); }
.gate__go .btn[disabled] { opacity: .6; cursor: wait; }
.gate__error { margin: 0; font-family: var(--f-ui); font-size: .85rem; color: var(--carmine); }
.gate__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gate.is-done .gate__box { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); }
@media (max-width: 760px) {
  .gate__box, .gate.is-done .gate__box { grid-template-columns: 1fr; }
  .gate__img { padding: var(--s3) var(--s3) 0; }
  .gate__img .label { display: none; }
  .gate__ask, .gate__done { padding: var(--s4) var(--s3) var(--s4); }
  .gate__fields { grid-template-columns: 1fr; }
  html.gate-on .gate::before { height: 12rem; }
}
.api-page { padding-block: var(--s6); }
.gate--open { display: block; margin-top: var(--s4); }
/* After sign-up: the WhatsApp call to action, boxed so it can't be missed. The QR code shows only on
   large screens with a mouse, for people whose WhatsApp is on their phone. */
.gate__next { margin-top: var(--s4); padding: var(--s4); display: flex; gap: var(--s4); align-items: center;
  background: var(--vellum); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--vermilion); }
.gate__next-text { flex: 1; }
.gate__next h3 { margin: .35rem 0 .5rem; font-size: 1.6rem; }
.gate__next p { margin: 0 0 var(--s3); }
.gate__qr { display: none; margin: 0; flex: none; width: 10rem; text-align: center; }
.gate__qr svg { display: block; width: 100%; height: auto; box-shadow: 0 0 0 1px var(--rule); }
.gate__qr figcaption { margin-top: .5rem; font-family: var(--f-ui); font-size: .75rem; line-height: 1.35; color: var(--muted); }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) { .gate__qr { display: block; } }
@media (max-width: 760px) { .gate__next { padding: var(--s3); box-shadow: 4px 4px 0 var(--vermilion); } }
.join { padding-bottom: var(--s6); }
html.member .nav__join { display: none; }
/* Home, single column (≤1000px): the "Next event" card in the intro already shows the next event, so drop
   its repeat in "Coming up"; if nothing else is coming up, drop the whole section. */
@media (max-width: 1000px) {
  .home-upcoming.has-next .feature, .home-upcoming.has-next .upcoming__more { display: none; }
  .home-upcoming.has-next.is-single { display: none; }
}
