/* ============================================================================
   site-brand.css · the main pages on the blog's type and palette
   index, work, art, about and contact carry the same hook as the blog index
   (`is-post`, plus `is-site`) and load post.css, so Kallisto, the sheet and
   blueprint ink, the blue-deep accent and the hard edges all come from the
   one place the posts get them. This file only corrects what that layer did
   not anticipate on these pages: Fraunces-era italics that would synthesise
   an oblique in Kallisto, headings still set at the serif's weight, and the
   warm off-whites site.css hard-codes. Sizes and positions are left alone, so
   every pin, reveal, parallax, the beam and the veils behave as before.
   ========================================================================== */

/* The page behind the page: overscroll shows html, not body. */
html:has(body.is-site) { background: #f7f8f8; }

/* ------------------------------------------------------------ headings -- */
/* The blog's register: Kallisto at 900, caps, tight. Each heading keeps the
   size site.css gives it (the pinned stages are budgeted against them). */
.is-site .ch__title,
.is-site .tip__card strong,
.is-site .plan__step strong,
.is-site .guide__title strong,
.is-site .group__h,
.is-site .option__h,
.is-site .stakes__cost,
.is-site .slate__count {
  font-family: var(--sc-font-display);
  font-weight: 900;
  font-style: normal;
  font-variation-settings: normal;
  text-transform: uppercase;
  letter-spacing: -0.012em;
}
.is-site .ch__title { line-height: 0.95; }
.is-site .tip__card strong { font-size: clamp(1.02rem, 0.9rem + 0.45vw, 1.28rem); line-height: 1.02; }
.is-site .plan__step strong { font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.55rem); line-height: 1; margin-bottom: 0.5rem; }
.is-site .guide__title strong { font-size: 1.15rem; line-height: 1.05; letter-spacing: -0.005em; }
.is-site .group__h,
.is-site .option__h { line-height: 1; }

/* The chapter numeral: no italic to fake, so it reads as an index in the
   accent instead, a step down from the words. */
.is-site .ch__num {
  font-style: normal;
  font-weight: 900;
  font-size: 0.62em;
  color: var(--blue-deep);
  margin-right: 0.28em;
}

/* Emphasis inside display type was a serif italic; in Kallisto it is the
   accent colour, the same move as the blog index's "all the way in". */
.is-site .hero__h em,
.is-site .sc-display em,
.is-site .stakes__cost em {
  font-style: normal;
  color: var(--blue-deep);
}
/* The home's statement is long; a wider measure holds it to four lines. */
.is-site .ch--0 .hero__h { max-width: 19ch; }

.is-site .stakes__cost { line-height: 1; max-width: 20ch; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.7rem); }

/* --------------------------------------------------------------- labels -- */
/* Mono for every label and index, as on the posts. */
.is-site .contents__label,
.is-site .guide__h,
.is-site .slate__year,
.is-site .slate__label,
.is-site .credits__budget,
.is-site .dw__label,
.is-site .record strong {
  font-family: var(--sc-font-mono);
  font-size: 9px;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.is-site .contents__label { color: var(--blueprint); }
.is-site .guide__h,
.is-site .record strong { color: var(--blue-deep); }
.is-site .record strong { margin-right: 0.5em; }
.is-site .slate__year,
.is-site .credits__budget,
.is-site .dw__label { color: var(--quiet); }

.is-site .contents__list a i {
  font-family: var(--sc-font-display);
  font-weight: 700;
  font-style: normal;
  font-variation-settings: normal;
  font-size: 0.82em;
  color: var(--blue-deep);
}

/* "Plate I" was a serif italic: the posts' plate number instead. */
.is-site .plate__fig {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

/* Film titles on the light table and in the credits: small caps-forward
   Kallisto, one weight below the headings. */
.is-site .slate__title,
.is-site .credits__title {
  font-family: var(--sc-font-display);
  font-weight: 700;
  font-variation-settings: normal;
  text-transform: uppercase;
  letter-spacing: 0;
}
/* --ts / --ts-all: the film's and the whole table's title size (record.json). */
.is-site .slate__title { font-size: calc(clamp(0.7rem, 0.48rem + 0.42vw, 0.88rem) * var(--ts, 1) * var(--ts-all, 1)); line-height: 1.08; }
.is-site .credits__title { font-size: 0.86rem; line-height: 1.15; }

/* ------------------------------------------------------- quotes, ghosts -- */
/* The pull quote is a shout on blueprint, like the posts' tipped-in quotes. */
.is-site .pull {
  background: var(--blueprint);
  color: #ffffff;
  font-family: var(--sc-font-display);
  font-weight: 900;
  font-style: normal;
  font-variation-settings: normal;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: clamp(1rem, 0.86rem + 0.5vw, 1.3rem);
  line-height: 1.1;
}

/* Prints' closing note: the posts' blockquote, a shout with a cut-weight rule. */
.is-site .prints__note {
  font-family: var(--sc-font-display);
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem);
  line-height: 1.1;
  max-width: 26ch;
  color: var(--blueprint);
  border-left: 3px solid var(--blueprint);
  padding-left: var(--sc-5);
}

/* The verbs behind About's three paragraphs and the numerals behind the
   steps and cards: Kallisto in pale blueprint ink. */
.is-site .not__ghost {
  font-family: var(--sc-font-display);
  font-weight: 900;
  font-style: normal;
  font-variation-settings: normal;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.is-site .not__item strong {
  font-family: var(--sc-font-display);
  font-weight: 900;
  font-variation-settings: normal;
  text-transform: uppercase;
  font-size: 1em;
  letter-spacing: 0;
}
.is-site .tip__card::before,
.is-site .plan__step::before,
.is-site .credits__ghost,
.is-site .not__ghost {
  font-weight: 900;
  font-variation-settings: normal;
  color: rgba(2, 48, 71, 0.07);
}

/* ---------------------------------------------------------- the footer -- */
/* "Send a Message" beside the closing shout stays the small link it was. */
.is-site .foot__cta a.link {
  font-family: var(--sc-font-text);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--sc-t-sm);
  text-decoration-thickness: 1px;
}

/* --------------------------------------------------------------- colour -- */
/* site.css hard-codes a warm off-white on the cards and the light table;
   on the blog's cool sheet they read as cream. */
.is-site .tip__card,
.is-site .slate,
.is-site .clip__cap { --sc-surface: #ffffff; }
.is-site .slates { background: var(--paper); }
/* The table's ground is the darkest paper: the quiet grey measures 4.28:1 on
   it, so the reel's credit and captions take the second grey (7.8:1). */
.is-site .bionic__credit,
.is-site .bionic figcaption { color: var(--second); }
.is-site .table__vignette { background: radial-gradient(120% 92% at 50% 52%, transparent 66%, rgba(228, 231, 233, 0.78) 100%); }
.is-site .grid-layer--draw { --grid-ink: rgba(2, 48, 71, 0.08); }

/* The drawing's sunlight in the blog's amber rather than the old warm beige. */
.is-site .dw__light polygon { fill: #ffd000; opacity: 0.32; }
.is-site .dw__floor ellipse { fill: #ffd000; opacity: 0.4; }
.is-site .dw__floor ellipse + ellipse { opacity: 0.62; }
/* On the narrow crop the oculus label would run back over the opening, where
   the sun parks and tracks; on two lines it stays to the right of the sun. */
@media (max-width: 860px) {
  .is-site .dw__label--oc { white-space: normal; width: 16.5ch; text-align: right; line-height: 1.5; }
}

/* ------------------------------------------------------ record posters -- */
/* Each film slate shows its poster (assets/posters) edge to edge, in the
   same grid and through the same scatter and assembly. The cards are short
   strips on most screens, so the crop sits a third of the way down, where
   the faces usually are. Year and title ride on solid chips of sheet, so
   they read over any poster; the lead card keeps its type. The type-only
   display (record.json's display.posters false: the list is .slates--type)
   takes none of this and keeps the cards as they were before the posters. */
.is-site .slates:not(.slates--type) .slate:not(.slate--lead) { position: relative; padding: 0; background: var(--blueprint); }
.is-site .slate__poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The film's focal point (--fx, --fy) is the part that stays in frame, and
     its zoom grows around that same point, so the point never moves. */
  object-position: var(--fx, 50%) var(--fy, 30%);
  transform: scale(var(--zoom, 1));
  transform-origin: var(--fx, 50%) var(--fy, 30%);
}
.is-site .slates:not(.slates--type) .slate:not(.slate--lead) .slate__year,
.is-site .slates:not(.slates--type) .slate:not(.slate--lead) .slate__title {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  background: var(--sheet);
}
.is-site .slates:not(.slates--type) .slate:not(.slate--lead) .slate__year { padding: 0.28rem 0.4rem 0.22rem; color: var(--second); }
.is-site .slates:not(.slates--type) .slate:not(.slate--lead) .slate__title { padding: 0.3rem 0.4rem 0.26rem; }
/* The edge fade was paper over white cards; over pictures it only greys the
   outer posters, so it goes. */
.is-site .slates:not(.slates--type) ~ .table__vignette { display: none; }
/* Shorter cards below 1100px: the chips tighten so a three line title and
   its year still fit a 60px card. */
@media (max-width: 1100px) {
  .is-site .slates:not(.slates--type) .slate:not(.slate--lead) .slate__year { padding: 0.16rem 0.35rem 0.12rem; }
  .is-site .slates:not(.slates--type) .slate:not(.slate--lead) .slate__title { padding: 0.2rem 0.35rem 0.16rem; line-height: 1.04; }
}

/* -------------------------------------------------------- record: films -- */
/* What record.json sets, through the classes and custom properties that
   scripts/record-render.js writes. It writes only what differs from the
   defaults, so a film left alone gets none of them and looks as it did.
   On a film: --fx, --fy and --zoom (above), --ts and --ys, w4, r2,
   slate--no-title, slate--no-year, and slate--phone (on phones too: see
   the 700 block and phones turned sideways). On the list, for every film at once: --ts-all, --ys-all,
   slates--no-titles, slates--no-years, slates--type. */
.is-site .slate__year { font-size: calc(9px * var(--ys, 1) * var(--ys-all, 1)); }
.is-site .slate.w4 { grid-column: span 4; }
.is-site .slate.r2 { grid-row: span 2; }
/* Wider and taller slates would leave holes in a row that cannot take them;
   a later slate that fits moves up into the hole instead (as phones already
   do). The films as they ship fill every row exactly, so nothing moves. */
.is-site .slates { grid-auto-flow: dense; }
.is-site .slate--no-title .slate__title,
.is-site .slates--no-titles .slate__title,
.is-site .slate--no-year .slate__year,
.is-site .slates--no-years .slate__year { display: none; }
/* Without its year a title keeps its place at the foot of the slate. Phones
   centre the title and drop the year anyway, so they are left as they are. */
@media not all and (max-width: 700px) {
  .is-site .slate--no-year .slate__title,
  .is-site .slates--no-years .slate__title { margin-top: auto; }
}
/* The type-only display: no pictures. A lazy image that is not displayed is
   never fetched, so the posters cost nothing here. */
.is-site .slates--type .slate__poster { display: none; }

/* --------------------------------------------------------- record: reel -- */
/* "Watch the reel" (reel.html) sits at the right end of the title's
   row: the table's top padding down, one line of the title tall, the text
   on its foot. Out of flow, so the pinned stage keeps its budget. */
.is-site .table__reel {
  position: absolute;
  z-index: 5;
  right: var(--sc-gutter);
  top: clamp(2rem, 5vh, 3.25rem);
  height: calc(clamp(1.8rem, 1.2rem + 2vw, 3rem) * 0.95);
  display: flex;
  align-items: flex-end;
  margin: 0;
  font-size: var(--sc-t-sm);
  line-height: 1.2;
}
/* Under 360px the row holds 226px of title and 90px of label inside two
   20px gutters, so the full label would run into RECORD (at 320, WCAG's
   reflow width, it covers the last letters). There the label reads "The
   reel": "Watch" leaves the line for screen readers only, so the link's name
   stays "Watch the reel", and the link stays out of flow with its 44px
   tap height. */
@media (max-width: 359.98px) {
  .is-site .table__reel-watch {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap;
  }
  .is-site .table__reel-the { text-transform: capitalize; }
}

/* ---------------------------------------------------------------- 1100 -- */
/* Below 1100px the folio is a bar wearing the paper of the chapter under it;
   over the darkest paper the quiet grey falls to 4.28:1. */
@media (max-width: 1099.98px) {
  .is-site .folio { color: var(--second); }
}

/* ----------------------------------------------------------------- 700 -- */
@media (max-width: 700px) {
  .is-site .ch--0 .hero__h { max-width: none; }
  /* The light table fits one phone screen, so its rows are short: titles go
     to mixed case (caps run wider and wrap a line sooner), the cells give back
     a little padding, and nothing drops under 12px. */
  .is-site .slate__title { font-size: calc(12px * var(--ts, 1) * var(--ts-all, 1)); text-transform: none; letter-spacing: -0.01em; line-height: 1.02; }
  .is-site .slate { padding: 0.18rem 0.36rem; }
  .is-site .slate__count { font-size: 1.5rem; line-height: 0.9; }
  /* Poster cards: the chip gives back its padding so two lines fit 33px. */
  .is-site .slates:not(.slates--type) .slate:not(.slate--lead) { padding: 0; }
  .is-site .slates:not(.slates--type) .slate:not(.slate--lead) .slate__title { padding: 0.08rem 0.25rem 0.06rem; }
  .is-site .slates:not(.slates--type) .slate:not(.slate--lead) .slate__year { padding: 0.06rem 0.25rem; }
  /* "2012" keeps its year (the film is named after one): year and title side
     by side, since stacked they need more than a 28px card. A type-only card
     has room to stack them, as it did before the posters. */
  .is-site .slates:not(.slates--type) .slate--keep-year { flex-direction: row; align-items: center; justify-content: flex-start; gap: 3px; }
  .is-site .slates:not(.slates--type) .slate--keep-year .slate__year { margin-bottom: 0; }
  /* The two longest titles need three lines on the narrowest phones; held
     to the top, a cut takes the end of the title, never its first line. The
     type-only cards keep their padding and centre them, as they did before
     the posters, so both read in full. */
  .is-site .slates:not(.slates--type) .slate--long { justify-content: flex-start; }
  /* Phones show only the films marked for them in record.json (slate--phone),
     4 across, each in one cell whatever its desktop width and height: the
     lead keeps its own short row, and the films' rows share the rest of the
     stage equally. Twelve fill three rows of cells about as tall as a poster,
     so each shows nearly all of it, framed as on the desktop. The type-only
     cards take the same cells. A display:none poster is never fetched. The
     lead's row is max-content, not auto, so with no film on phones it stays
     a short row rather than stretching into a blank card. */
  .is-site .slates { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: max-content; grid-auto-rows: minmax(0, 1fr); }
  .is-site .slates .slate:not(.slate--lead) { grid-column: span 1; grid-row: span 1; }
  .is-site .slates .slate:not(.slate--lead):not(.slate--phone) { display: none; }
  /* A title chip sits at the foot of its poster, as on the desktop (site.css
     centres phone titles, which suited the old one-line strips, not posters
     the height of a hand). Title at top and keep year place their own. */
  .is-site .slates:not(.slates--type) .slate--phone:not(.slate--long):not(.slate--keep-year) { justify-content: flex-end; }
  /* The reel below the table is three frames across, so it grows with the
     width: the table gives it that height (two rows of 16:9 frames, the
     credit and the margins) and never less than the 13rem it had, so from
     414 to 700px wide the credit stays clear of the table's foot. */
  .is-site .table { padding-bottom: max(13rem, calc(5rem + (100vw - 2 * var(--sc-gutter) - 12px) * 0.375)); }
  /* The phone table starts under the folio bar and sets the title at 1.6rem. */
  .is-site .table__reel { top: calc(var(--folio-h) + 0.75rem); height: calc(1.6rem * 0.95); font-size: 0.85rem; }
}

/* ------------------------------------------------ phones turned sideways -- */
/* A phone on its side has a stage 360 to 430px tall. Wider than 700px it
   took the desktop table (every film, the reel keeping 13.5rem), narrower
   the phone one (the reel's two rows keeping 13rem), and either way the
   table was a sliver. Here the heading tightens to the phone's, the table
   takes the phone films (slate--phone) 6 across, two rows for twelve, under
   a one-line lead, and the reel runs as a single strip of six frames under
   it with the credit beside them. The strip holds still: riding up 25px
   with the scroll, as it does on the desktop, it would run into the table. */
@media (orientation: landscape) and (max-height: 500px) {
  .is-site .table { padding-top: calc(var(--folio-h) + 0.5rem); padding-bottom: calc(1.5rem + (100vw - 2 * var(--sc-gutter) - 8.25rem - 30px) * 0.09375); }
  .is-site .table__head { margin-bottom: var(--sc-3); }
  .is-site .table__head .ch__title { font-size: 1.6rem; }
  .is-site .table__reel { top: calc(var(--folio-h) + 0.5rem); height: calc(1.6rem * 0.95); font-size: 0.85rem; }
  .is-site .record { font-size: 0.85rem; line-height: 1.4; }
  .is-site .slates { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: max-content; grid-auto-rows: minmax(0, 1fr); gap: 3px; padding: 5px; }
  .is-site .slate--lead { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 0.6rem; padding: 0.3rem 0.6rem; }
  .is-site .slate__count { font-size: 1.5rem; line-height: 0.9; }
  .is-site .slate__label { margin-top: 0; }
  .is-site .slates .slate:not(.slate--lead) { grid-column: span 1; grid-row: span 1; }
  .is-site .slates .slate:not(.slate--lead):not(.slate--phone) { display: none; }
  .is-site .table__bionic { bottom: 0.75rem; flex-direction: row; align-items: flex-end; gap: 0.75rem; transform: none !important; }
  .is-site .bionic__credit { flex: 0 0 7.5rem; margin: 0; font-size: 0.66rem; line-height: 1.3; }
  .is-site .bionic { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .is-site .bionic figcaption { display: none; }
}
