/* ---------- the series and their sessions: one set of components for every series page and session page ----------
   Sha, Nov 1, 2026: "we need to come up with a standard system across all current and archive sessions pages bc I dont
   want to have to rethink the design each time and risk things drifting ... when one thing gets changed on one page, if
   it is built from the same components as another page, the design of that other page should be updated to match too".

   This file is the one home of these components. Change one here and every page that uses it changes with it; a page's
   own <style> never restyles them (scripts/check-series.js fails the build if one does, if another stylesheet defines
   them, or if a page that uses them doesn't load this file). Each component's markup and where it's used: DESIGN.md §13.

   Loaded after /clearing/assets/session.css and /project.css (where a page loads it), before controls.css and links.css.

     THE SERIES ROW       .sess > li > a.s-row (.s-kicker, .s-title)   every session of a series, or every series
     THE SESSION HEADER   header.mast.session-head (eyebrow, h1, .lede, .cast, .notice, .ticket)
     THE TICKET           .ticket (.when, .where)                       the date and the place, as a ticket carries them
     THE SCHEDULE         .bill (.bill-when, .bill-who, .bill-theme, .bill-what)  the parts of an evening, a line each, as a programme
     A SESSION'S SECTION  .sec (.sec-kicker, .sec-text), .pull          a part of a session's page under a mono kicker
     THE PHOTOGRAPH       figure.s-photo (img, figcaption)              a picture of the room, the measure's width; .is-poster: a session's poster, at a poster's size
     THE PAIR, THE SHELF  .s-pair (two img), .s-shelf (img…)            an evening's poster beside its record's cover; the covers of its other records

   Every poster and cover sits in a button.lookat that opens it full-screen, as rhapsode's covers open (/look/look.js;
   data-big names the file it opens, up to 4000px). Sha, Nov 3, 2026: "should be able to click on and view the posters
   using same method as the album covers too".

   THE KICKER is one voice for all of them: IBM Plex Mono capitals, small and faint, over the thing it names (a row's
   number and date, a credit's role, an hour). Confluence one's, which Sha chose on Nov 1, 2026.

   PACE: on The Clearing's pages the header, its sections and the rows develop once the title lands (on /clearing/, which
   has no typed title, after the opening's stillness: type.js), as that series always has (DESIGN.md §1, principle 5);
   there they carry the class `develops`. Everywhere else they are in ink from the first frame.

   THE SPECIMEN (Sha chose it Nov 2, 2026, from three concepts toward a paper invite, round 2): every labeled list (the cast,
   the schedule) is a type specimen's ruled column, its labels flush right against one vertical hairline, what they name to
   the right (Fournier, Manuel typographique, vol. 2, 1766: each ornament's number, a vertical rule, the ornament); a session
   page's section titles stand over a rule, as the specimen's running head does. No divider above them: he chose none of six
   (Nov 2: "none"). Lineage: docs/experiments/confluence/paper-invite/research.md. */
:root{--s-label:4.6rem;}   /* the schedule's hour column: MEDITATION's width, so confluence one's two lists share one column (the cast sizes its own: below) */

/* a series title's size, which the rows' titles and a series page's own headings share */
:root{--s-title-size:clamp(1.7rem,6vw,2.3rem);}

/* ---------- the kicker ---------- */
.s-kicker,.cast .role,.bill-when,.sec-kicker{font-family:var(--label); font-weight:400; font-size:.62rem; line-height:1.5;
  letter-spacing:.14em; text-transform:uppercase; color:var(--faint);}

/* ---------- the series row ----------
   Each row is one session (on a series page) or one series (on /experiences/): its kicker, then its title. A hairline above
   and below every row (Sha, Nov 2, 2026, approving one row for every series list, framed as The Clearing's), the one
   place a hairline sits above a first part and below a last one. Hovering a row quiets the others (the recede, links.css).
   A row whose page doesn't exist yet is a <div class="s-row">, not a link.
   SIZE says rank, so the title's size follows the row's place on the page (Sha, Nov 2, 2026: "do 1."): at the top of a
   page, under its header, the rows are the page's largest parts, and their titles take a section's size; under a section
   title they are its items, and take an item's size. */
.sess{list-style:none; margin:clamp(2.2rem,6.5vw,3.2rem) 0 0; padding:0; border-top:1px solid var(--line);}
.sess > li{margin:0;}
.s-row{display:block; padding:clamp(1.25rem,3.8vw,1.8rem) 0; border-bottom:1px solid var(--line); -webkit-tap-highlight-color:transparent;}
.s-kicker{display:block; margin-bottom:.55rem;}
.s-title{display:block; font-family:var(--serif); font-weight:var(--w-head); font-size:var(--s-title-size); line-height:1.05;
  letter-spacing:-.01em; color:var(--ink);}
.mast.session-head + .sess,.section-t + .sess,.sec + .sess{margin-top:0;}   /* under a header, a title or a section that introduces them */
.section-t + .sess .s-row{padding:calc(var(--s-item) / 2) 0;}   /* project.css's spacing ladder: under a section title the page is a Project page */
.section-t + .sess .s-title{font-size:var(--type-item); line-height:1.15;}
.sess + .more{margin-top:var(--s-head);}   /* a link line under the list ("join the mailing list"), as under a Project list */
/* The Clearing's rows develop together once the title lands (type.js marks the page revealed) */
.typefx .sess.develops .s-kicker,.typefx .sess.develops .s-title{transition:color var(--t-develop) var(--ease-breath) var(--t-pause);}
.typefx:not(.revealed) .sess.develops .s-kicker,.typefx:not(.revealed) .sess.develops .s-title{color:var(--undeveloped);}

/* ---------- the session header ----------
   Confluence one's, as Sha chose it (Nov 1, 2026: "i like version 2"): the eyebrow (a session's number, where it has one),
   the title, the sentence first, then the credits as a cast between two hairlines, each role in the kicker over its
   names, then the evening's note, then the ticket. Every part but the title is optional. */
.mast.session-head{margin-bottom:clamp(2.2rem,5.5vw,2.6rem);}
.mast.session-head .eyebrow{font-size:.72rem; letter-spacing:.14em; line-height:1.5; margin:0 0 .55rem;}
.mast.session-head h1{margin:0 0 1rem;}
.mast.session-head .lede{font-size:1.12rem; line-height:1.6; color:var(--ink-2); margin:0; max-width:34rem;}
.mast.session-head .lede + .lede{margin-top:1rem;}
/* what follows the header starts at the header's own distance, not a section's */
.mast.session-head + .section-t,.mast.session-head + section > .section-t:first-child{margin-top:0;}
/* a session page's section titles, each over a rule that runs the measure: the specimen's running head (THE SPECIMEN) */
.mast.session-head ~ .section-t,.mast.session-head ~ section > .section-t{padding-bottom:.45rem; border-bottom:1px solid var(--line); max-width:34rem; margin-left:0; padding-left:0;}   /* the hairline starts at the column, so no lean room (project.css) */

/* the cast: a role and its names to a row, the role flush right against the label column's hairline (THE SPECIMEN). The
   column is as wide as the longest word among the page's roles (MEDITATION; CONVERSATION, with IN over it), shared by every
   row (subgrid); each row draws its stretch of the hairline, the stretches meeting across the gaps and reaching both rules.
   Sized by its own words, not a fixed width: Safari won't break a line of names a few pixels too long for a fixed column
   (measured Nov 2, 2026, iOS Safari: confluence one's music line ran 3px past the measure at 5.75rem). */
.cast{display:grid; grid-template-columns:min-content minmax(0,1fr); column-gap:1rem; row-gap:.55rem; margin:2rem 0 0; padding:.9rem 0;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.cast:first-child{margin-top:0;}
.cast > div{grid-column:1 / -1; display:grid; grid-template-columns:subgrid; align-items:baseline;}
.cast > div::before{content:""; grid-column:1; grid-row:1; justify-self:end; align-self:stretch; margin:-.275rem -.5rem -.275rem 0; border-right:1px solid var(--line);}
.cast > div:first-child::before{margin-top:-.9rem;}
.cast > div:last-child::before{margin-bottom:-.9rem;}
.cast .role{display:block; grid-column:1; grid-row:1; text-align:right;}
.cast .who{display:block; grid-column:2; grid-row:1; font-family:var(--serif); font-weight:var(--w-read); font-size:1.02rem; line-height:1.45; color:var(--ink-2);}
.cast .amp{color:var(--faint);}
.cast .who > a,.nw{white-space:nowrap;}   /* a name, and an evening's hours, kept whole on a line */

/* the evening's note: what a guest should know before they come */
.notice{font-family:var(--serif); font-style:italic; font-feature-settings:var(--serif-alts-italic); font-size:.98rem; line-height:1.55;
  color:var(--soft); margin:.9rem 0 0;}

/* ---------- the ticket ----------
   The date (and its hours) in the larger serif, the place in soft serif under it, a line each (Sha, Nov 1, 2026). On a
   series page that ran in one place, the place takes the larger line and its address goes under it (/clearing/, Sha,
   Nov 2, 2026). */
.ticket{margin:1.8rem 0 0;}
.ticket:first-child{margin-top:0;}
.ticket .when{font-family:var(--serif); font-weight:var(--w-head); font-size:clamp(1.25rem,4.2vw,1.5rem); line-height:1.3; color:var(--ink); margin:0;}
.ticket .where{font-family:var(--serif); font-weight:var(--w-read); font-size:1.02rem; line-height:1.6; color:var(--soft); margin:.3rem 0 0;}
.ticket + .more{margin-top:var(--s-head);}   /* a link line under the ticket (the about page's "rsvp"), as under the list */

/* The Clearing's header develops once its title lands, its links' underlines with it (session.css does its ledes) */
.typefx .mast.develops .cast .role,.typefx .mast.develops .cast .who,.typefx .mast.develops .cast .amp,
.typefx .mast.develops .notice,.typefx .mast.develops .ticket .when,.typefx .mast.develops .ticket .where{
  transition:color var(--t-develop) var(--ease-breath) var(--t-pause);}
.typefx .mast.develops:not(.typed) .cast .role,.typefx .mast.develops:not(.typed) .cast .who,.typefx .mast.develops:not(.typed) .cast .amp,
.typefx .mast.develops:not(.typed) .notice,.typefx .mast.develops:not(.typed) .ticket .when,.typefx .mast.develops:not(.typed) .ticket .where{
  color:var(--undeveloped);}
/* a credited name's color is its words' (and the ticket's place's, on /clearing/), so until the header settles its link develops only its underline (a color
   transition of its own would restart with every frame of theirs); once settled it answers like every link (links.css) */
.typefx .mast.develops:not(.settled) .cast .who > a,.typefx .mast.develops:not(.settled) .ticket a{transition:border-color var(--t-develop) var(--ease-breath) var(--t-pause);}
.typefx .mast.develops:not(.typed) .cast .who > a,.typefx .mast.develops:not(.typed) .ticket a{border-bottom-color:transparent;}
/* a section of The Clearing's develops with the header (its words, its photograph) */
.typefx .sec.develops .sec-kicker,.typefx .sec.develops .sec-text{transition:color var(--t-develop) var(--ease-breath) var(--t-pause);}
.typefx:not(.revealed) .sec.develops .sec-kicker,.typefx:not(.revealed) .sec.develops .sec-text{color:var(--undeveloped);}
.typefx .sec.develops .s-photo img{transition:opacity var(--t-develop) var(--ease-breath) var(--t-pause);}
.typefx:not(.revealed) .sec.develops .s-photo img{opacity:0;}
/* a session's poster develops with its header's words, as a section's photograph does with its own */
.typefx .mast.develops .s-photo img{transition:opacity var(--t-develop) var(--ease-breath) var(--t-pause);}
.typefx .mast.develops:not(.typed) .s-photo img{opacity:0;}

/* ---------- the schedule ----------
   An evening's parts as a printed programme lists them (Sha, Nov 2, 2026: "condense this a bit ... like a paper invite"):
   one line each, the hour in the kicker at the left, what happens beside it, a meditation's name in italics on the same
   line. A door (when the doors lock or reopen) is a quieter line. A part that says more (a performer's work, their
   instruments) carries it under its name, and stands a little apart from its neighbors. A part with no hour (/clearing/6/)
   is its name alone. Its line above says how the hours go; its note below says what comes after. With hours, the list is
   the specimen's ruled column: the hours flush right against one hairline (THE SPECIMEN). */
.bill{list-style:none; margin:0; padding:0; max-width:34rem;}
.bill:has(.bill-when){position:relative;}
.bill:has(.bill-when)::before{content:""; position:absolute; top:.15rem; bottom:.15rem; left:calc(var(--s-label) + .5rem); border-left:1px solid var(--line);}
.bill li + li{margin-top:.5rem;}
.bill li:has(> .bill-what,> .bill-gear) + li,.bill li + li:has(> .bill-what,> .bill-gear){margin-top:1.2rem;}
.bill li:has(> .bill-when){display:grid; grid-template-columns:var(--s-label) minmax(0,1fr); column-gap:1rem; align-items:baseline;}
.bill-when{text-align:right;}
.bill li:has(> .bill-when) > :not(.bill-when){grid-column:2;}
.bill-who{font-family:var(--serif); font-weight:var(--w-head); font-size:clamp(1.12rem,3.8vw,1.3rem); line-height:1.35;
  letter-spacing:-.005em; color:var(--ink);}
.bill-theme{font-style:italic; font-feature-settings:var(--serif-alts-italic); font-weight:var(--w-read); font-size:.9em; color:var(--soft); margin-left:.2em;}   /* a meditation's playlist, by name (Sha, Nov 1, 2026) */
.bill-theme::before{content:"\00B7"; font-style:normal; font-feature-settings:var(--serif-alts); color:var(--faint); margin-right:.45em; position:relative; top:.1em;}   /* lowered a touch, to sit at the middle of the words beside it as the eye sees them (Sha, Nov 2: "does the placement od the dots feel a lil too high"); set off from its meditation by the site's own dot (Sha, Nov 2, 2026, choosing it over leaders and a line to itself: "idk if we need to put some dot or symbol between one and acceptance") */
.bill .door .bill-who{font-weight:var(--w-read); font-size:.98rem; color:var(--soft);}
/* a schedule that names its playlists keeps each line on one line on any phone (Sha, Nov 2, 2026: "we need to have it be in
   one line on all phones. whether it's making the font size a bit smaller or whatever has to be done"): its names come down
   together, as far as the longest line (a meditation, its dot and its playlist: 13.3 of the names' ems, and a little over for Safari) needs, and its door
   lines with them; where there's room, nothing changes */
.bill:has(.bill-theme){container-type:inline-size;}
.bill:has(.bill-theme) > li{--who:min(clamp(1.12rem,3.8vw,1.3rem), calc((100cqi - var(--s-label) - 1rem) / 13.6));}
.bill:has(.bill-theme) .bill-who{font-size:var(--who); white-space:nowrap;}
.bill:has(.bill-theme) .door .bill-who{font-size:min(.98rem, calc(var(--who) * .875));}
.bill-what{font-family:var(--serif); font-weight:var(--w-read); font-size:.98rem; line-height:1.5; color:var(--soft); margin-top:.2rem; max-width:30rem;}
.bill-gear{font-family:var(--label); font-weight:400; font-size:.68rem; letter-spacing:.04em; color:var(--soft); margin-top:.35rem;}   /* a performer's instruments */
.bill-lede,.bill-note{font-family:var(--serif); font-style:italic; font-feature-settings:var(--serif-alts-italic); font-size:.98rem; line-height:1.55;
  color:var(--soft); margin:0; max-width:32rem;}
.bill-lede + .bill-lede{margin-top:.7rem;}   /* a second line about the evening (confluence one: the tea, then the hour; Sha, Nov 2, 2026) */
.bill-lede + .bill{margin-top:clamp(1.5rem,4.5vw,1.9rem);}   /* the line about the hours, apart from the schedule it explains */
.bill + .bill-note{margin-top:clamp(1.5rem,4.5vw,1.9rem);}

/* ---------- a session's section ----------
   A part of a page under a mono kicker (The Clearing's six and seven: the performance, the label; /clearing/: the system),
   each opening with a hairline; the guestbook's own hairline, or the rows', closes the last. */
.sec{border-top:1px solid var(--line); padding:clamp(1.5rem,4.5vw,2.1rem) 0;}
.sec-kicker{margin:0 0 1rem;}
.sec-text{font-family:var(--serif); font-weight:var(--w-read); font-size:1.02rem; line-height:1.68; color:var(--ink-2); margin:0 0 .9rem; max-width:32rem;}
.sec-text:last-child{margin-bottom:0;}
/* a quotation set apart, the only italic block on its page, centred between its hairline and the next: as far below its
   own as the next hairline stands below it (the session index's margin; the guestbook's until Nov 2, 2026) (Sha, Nov 2, 2026: "this quote is misaligned
   in the hairlines really badly"; it had sat flush under its hairline, with the guestbook's whole margin under it) */
.sec.pull{padding:clamp(2.6rem,8vw,4rem) 0 0;}
.pull blockquote{margin:0; font-family:var(--serif); font-style:italic; font-feature-settings:var(--serif-alts-italic); font-size:1.06rem;
  line-height:1.6; color:var(--ink-2); max-width:32rem;}
.pull cite{display:block; margin-top:.7rem; font-style:normal; font-feature-settings:var(--serif-alts);
  font-family:var(--label); font-weight:400; font-size:.6rem; text-transform:uppercase; letter-spacing:.16em; color:var(--faint);}

/* ---------- the session index ----------
   At the foot of every session page of a series, every session by its number, in the menu's voice: "one · two · three
   · four · five · six · seven", each a link to its page, the page you're on in ink and not a link (Sha, Nov 2, 2026: "a
   list of one two three four five six seven with a lil dot in between ech one? at the footer of these pages"; it
   replaced the previous / next pair). Its hairline stands as far below what's above it as the pull quote's padding
   (.sec.pull). Centered under the page (Sha, Nov 3, 2026: "this should be centered"). One line on a phone, down to 320px.
   Its hover: links.css. */
.s-index{display:flex; flex-wrap:wrap; align-items:baseline; justify-content:center; margin-top:clamp(2.6rem,8vw,4rem); padding-top:clamp(1.4rem,4vw,2rem);
  border-top:1px solid var(--line); font-family:var(--label); font-weight:400; font-size:.62rem; line-height:1.5; letter-spacing:.14em;
  text-transform:uppercase; color:var(--soft);}
.s-index a{position:relative; color:var(--soft);}
.s-index a::after{content:""; position:absolute; inset:-.95rem -.35rem;}   /* a 44px target around each word */
.s-index [aria-current]{color:var(--ink);}
.s-index .dot{color:var(--faint); padding:0 .45rem;}
@media (max-width:26rem){ .s-index{letter-spacing:.1em;} .s-index .dot{padding:0 .3rem;} }   /* one line on a phone */
@media (max-width:22.5rem){ .s-index{letter-spacing:.06em;} .s-index .dot{padding:0 .2rem;} }   /* ...down to 320px */
@media print{ .s-index{display:none;} }

/* ---------- the photograph ----------
   A picture of the room, as wide as the words' measure, its caption in the kicker under it (/clearing/: the room at Fugue
   with otissstudio's system). Its width and height attributes hold its place, so nothing moves when it arrives. */
.s-photo{margin:1.4rem 0 0; max-width:34rem;}
.s-photo img{display:block; width:100%; height:auto; background:var(--line);}
.s-photo.is-poster{max-width:22rem;}   /* a session's poster: at a poster's size, not the room's */
.s-photo figcaption{margin-top:.6rem; font-family:var(--label); font-weight:400; font-size:.6rem; line-height:1.6; letter-spacing:.14em;
  text-transform:uppercase; color:var(--faint);}

/* ---------- the pair and the shelf ----------
   An evening's poster and the cover of the record it was built around, side by side at one size, as wide as the measure
   ("Continuing Education", Sha, Nov 3, 2026: "we need to include every single album cover for the ones for whcih we
   listened to full albums"); under them, the covers of the other records played in full that night, five to a row. */
.s-pair{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; margin:1.4rem 0 0; max-width:34rem;}
.s-shelf{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.6rem; margin:.6rem 0 0; max-width:34rem;}
.s-pair img,.s-shelf img{display:block; width:100%; height:auto; aspect-ratio:1; object-fit:cover; background:var(--line);}
/* the hairline every picture in a pair or on a shelf wears, rhapsode's cover edge (ReleaseHero.tsx: a 1px line inside
   the picture, so it reads as a placed object on the paper; Sha, Nov 3, 2026: "need ot hav a border around albumscovers a small
   harline border") */
.s-pair img,.s-shelf img{outline:1px solid var(--line); outline-offset:-1px;}
/* one hairline between two evenings, not two (Sha, Nov 13, 2026: "another extra hairline in this page I think it looks too
   crowded"): an evening's credits end on the next evening's line, which closes them as it opens the next; the last
   evening keeps its own closing line */
.sec:has(> .s-pair):has(> .cast:last-child):has(+ .sec){padding-bottom:0;}
.sec:has(> .s-pair):has(+ .sec) > .cast:last-child{border-bottom:0;}
