/* impromptu.css — the showcase in the site's own clothes.

   The framework draws the parts (fields, buttons, lists, the media
   grid); this file is the identity over them, the same two colours,
   the same face and the same masthead as public/index.html, so moving
   from the homepage to the showcase does not feel like leaving it.

   The showcase is the poster's flip side: ink on paper, where the
   homepage is paper on ink. Everything below says --ground and
   --figure rather than naming a colour, so the flip is these two lines.
   The layout is pinned to light in layout.html, so only the theme's
   light half is ever resolved. Every colour here is ink, paper or ink at
   an alpha: the identity has no third hue, and the one exception is a
   field's error line, which has to be unmistakable. */

:root[data-theme="light"] {
  --ink: #141414;
  --paper: #f4f3ef;
  --ground: var(--paper);
  --figure: var(--ink);
  --well: #e8e7e2;
  /* .66, not lower: at .6 the dim label on the well (a seg-tab's
     track) measured 4.49:1, under AA's 4.5. */
  --dim: rgba(20, 20, 20, .66);
  --hair: rgba(20, 20, 20, .14);
  --edge: rgba(20, 20, 20, .3);

  --gut: round(clamp(20px, 4vw, 56px), 4px);
  /* 20px on a phone: at 22 the wordmark and the masthead's button no
     longer fit one row at 390px. */
  --brand: clamp(20px, 2.4vw, 34px);
  /* The type scale: eight steps, each growing from a 390px phone to a
     1360px desktop and holding still beyond. Every size on a page is one
     of these; tokens_test.go fails a stylesheet that sets any other.
     Desktop is never smaller than phone: the framework's own sizes are
     dense app sizes (14px body on a desktop), pointed at the scale below.
     12px floor: at 11 a phone's labels and back links read as fine print. */
  --t-micro: clamp(12px, 11.60px + 0.103vw, 13px);
  --t-small: clamp(13px, 12.20px + 0.206vw, 15px);
  --t-body: clamp(16px, 15.20px + 0.206vw, 18px);
  --t-lead: clamp(18px, 16.39px + 0.412vw, 22px);
  --t-h3: clamp(21px, 18.19px + 0.722vw, 28px);
  --t-h2: clamp(26px, 20.37px + 1.443vw, 40px);
  --t-h1: clamp(32px, 20.74px + 2.887vw, 60px);
  --t-display: clamp(36px, 19.92px + 4.124vw, 76px);
  /* The gallery's headline: display, but never more than a tenth of the
     screen's height, so two lines of it leave room for work under it. */
  --t-hero: min(var(--t-display), 10svh);
  /* The baseline: every line is a whole number of 4px steps, so text
     and the spacing (also in 4s) share one grid. Big type sets tighter. */
  --lh-micro: round(nearest, calc(var(--t-micro) * 1.33), 4px);
  --lh-small: round(nearest, calc(var(--t-small) * 1.45), 4px);
  --lh-body: round(nearest, calc(var(--t-body) * 1.5), 4px);
  --lh-lead: round(nearest, calc(var(--t-lead) * 1.4), 4px);
  --lh-h3: round(nearest, calc(var(--t-h3) * 1.25), 4px);
  --lh-h2: round(nearest, calc(var(--t-h2) * 1.15), 4px);
  --lh-h1: round(nearest, calc(var(--t-h1) * 1.05), 4px);
  --lh-display: round(nearest, calc(var(--t-display) * 1), 4px);
  --lh-hero: round(nearest, calc(var(--t-hero) * 1), 4px);
  --micro: var(--t-micro);
  --rst-fs-xs: var(--t-micro);
  --rst-fs-sm: var(--t-small);
  --rst-fs-base: var(--t-body);
  --rst-fs-lg: var(--t-lead);

  --rst-font: "grtsk-vf", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rst-radius: 0;
  --rst-radius-sm: 0;
  --rst-bg: var(--ground);
  --rst-surface: var(--ground);
  --rst-surface-2: var(--well);
  --rst-line: var(--hair);
  --rst-line-strong: var(--edge);
  /* No rule under a page's title: space sets it apart. */
  --rst-header-rule: transparent;
  --rst-text: var(--figure);
  --rst-text-muted: var(--dim);
  --rst-text-faint: var(--dim);
  --rst-accent: var(--figure);
  --rst-accent-strong: #000000;
  --rst-accent-soft: var(--well);
  --rst-on-accent: var(--ground);
  --rst-accent-fill: var(--figure);
  --rst-accent-fill-hover: #000000;
  --rst-accent-fill-edge: var(--figure);
  --rst-accent-fill-edge-hover: #000000;
  --rst-on-accent-fill: var(--ground);
  --rst-control-face: transparent;
  --rst-control-face-hover: var(--well);
  --rst-control-face-press: #e2e1dc;
  --rst-control-border: var(--edge);
  --rst-control-border-hover: var(--figure);
  --rst-control-text-hover: var(--figure);
  --rst-ghost-face-hover: var(--well);
  --rst-summary-face: transparent;
  --rst-summary-face-hover: var(--well);
  --rst-summary-edge: var(--edge);
  --rst-summary-edge-hover: var(--figure);
  --rst-tint-hover: #ebeae5;
  --rst-tint-press: #e2e1dc;
  --rst-focus-edge: var(--figure);
  --rst-focus-halo: rgba(20, 20, 20, .16);
  --rst-tone-neutral-fg: var(--dim);
  --rst-tone-neutral-bg: transparent;
  --rst-tone-positive-fg: var(--ground);
  --rst-tone-positive-bg: var(--figure);
  --rst-tone-warning-fg: var(--figure);
  --rst-tone-warning-bg: var(--well);
  --rst-tone-negative-fg: #a3261e;
  --rst-tone-negative-bg: #f6e2df;
  --rst-danger-fill: #b3332f;
  --rst-danger-fill-hover: #9e2c29;
  --rst-shadow-pop: none;
  --rst-shadow-lift: none;
  --rst-depth-hl: transparent;
  --rst-depth-contact: transparent;
  --rst-depth-ambient: transparent;
  --rst-sheen-fill: transparent;
  --rst-sheen-plain: transparent;
  --rst-light-rim: var(--hair);
  --rst-light-wash: transparent;
  --rst-title-weight: 700;
  --rst-title-track: -.01em;
}

/* ---------- ground and type ---------- */
/* The root carries the ground too: on a page shorter than the screen,
   anything below the body showed the browser's own dark canvas. */
html:has(body.sc) { background: var(--ground); }
body.sc {
  background: var(--ground);
  color: var(--figure);
  font-family: var(--rst-font);
  /* The kit leaves width to font-variation-settings. Body text runs at
     the regular width: the wide instance is the wordmark's and the
     people's names, as on the homepage, and nothing else's. */
  font-variation-settings: "slnt" 0, "wdth" 100;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.sprite { position: absolute; }
/* Whatever the framework set, a line is the nearest whole 4px step to
   1.4 of its own size; the rules below set the scale's own where a step
   needs looser or tighter. Controls of a set height use 1. */
.sc, .sc * { line-height: round(nearest, 1.4em, 4px); }
.sc :is(p, li, dd, label, legend, small) { line-height: round(nearest, 1.5em, 4px); }
/* The framework's parts, on the scale: one size for every button, the
   small one in a row of actions; the sign-in card's heading and the
   Numbers figures as the scale's heading steps. */
.sc [rst-btn] { font-size: var(--t-small); }
.sc [rst-btn~="sm"] { font-size: var(--t-micro); }
.sc [rst-status] { font-size: var(--t-micro); }
.sc [rst-row]:has(> [rst-status]) > [rst-status] { font-size: var(--t-micro); }
.sc [rst-signin-door] h1 { font-size: var(--t-h3); line-height: var(--lh-h3); }
.sc [rst-stat-num] { font-size: var(--t-h3); line-height: var(--lh-h3); }
.sc [rst-stat="lead"] [rst-stat-num] { font-size: var(--t-h2); line-height: var(--lh-h2); }
.micro {
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: var(--lh-micro);
}
.sc-dim { color: var(--dim); }
/* :where, so a link keeps the text colour without outranking a button's
   label: .sc a at (0,1,1) beat [rst-btn~="primary"] and drew paper on
   paper, the same collision the homepage's .masthead a has had. */
:where(.sc) a { color: inherit; }
.sc :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- masthead: the homepage's three columns ---------- */
/* The wordmark on the left; the sections and your own button together
   on the right, as one set of places to go. */
.sc-mast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: round(clamp(20px, 2.4vw, 36px), 4px);
  row-gap: 8px;
  padding: round(clamp(16px, 2vw, 28px), 4px) var(--gut);
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ground);
}
.sc-brand {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: var(--brand);
  font-weight: 700;
  font-variation-settings: "slnt" 0, "wdth" 137;
  letter-spacing: -.02em;
  line-height: 1;
  text-decoration: none;
  margin-right: auto;
}
.sc-star { width: 1em; height: 1em; fill: currentColor; flex: none; }
.sc-nav { display: flex; gap: round(clamp(16px, 2vw, 28px), 4px); }
.sc-nav a {
  text-decoration: none;
  color: var(--dim);
  padding: 12px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s;
}
.sc-nav a:hover, .sc-nav a[aria-current="page"] { color: var(--figure); }
.sc-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.sc-mast__end { display: flex; gap: 12px; align-items: center; }

/* The homepage's .btn, outlined: the one filled pill on a page is its
   primary action, so the masthead's stays quieter than that. */
.sc-pill {
  display: inline-block;
  padding: round(clamp(12px, 1vw, 16px), 4px) round(clamp(20px, 1.8vw, 28px), 4px);
  border: 1px solid var(--figure);
  border-radius: 999px;
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.sc-pill:hover, .sc-pill:focus-visible, .sc-pill--current {
  background: var(--figure);
  color: var(--ground);
}
.sc-pill--solid { background: var(--figure); color: var(--ground); }
.sc-pill--solid:hover, .sc-pill--solid:focus-visible {
  background: transparent;
  color: var(--figure);
}

/* ---------- the page ---------- */
.sc-page {
  flex: 1;
  width: 100%;
  max-width: 60rem;
  padding: round(clamp(32px, 5vw, 72px), 4px) var(--gut) round(clamp(56px, 8vw, 120px), 4px);
}
.sc-page--wide { max-width: none; }
.sc [rst-page-header] { margin-bottom: round(clamp(24px, 3vw, 40px), 4px); }
.sc [rst-page-header] h1 {
  font-size: var(--t-h2);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: var(--lh-h2);
  text-wrap: balance;
}
.sc [rst-page-header-sub] { color: var(--dim); max-width: 38em; }
.sc [rst-back-nav] { margin-bottom: 20px; font-size: var(--micro); font-weight: 700; }
.sc [rst-back-nav] a { color: var(--dim); text-decoration: none; }
.sc [rst-back-nav] a:hover { color: var(--figure); }
/* The arrow centres on the label's capitals, and leans back a little on
   hover, towards where the link goes. */
.sc [rst-back-nav] .icon {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: baseline;
  margin-block: calc((1cap - 1.2em) / 2);
  margin-inline-end: 4px;
  transition: transform .2s;
}
.sc [rst-back-nav] a:hover .icon { transform: translateX(-2px); }
@media (prefers-reduced-motion: reduce) {
  .sc [rst-back-nav] .icon { transition: none; }
}
/* A notice is news, not a control: no fill and no pill, which would read
   as a button. The star marks it, as it marks the brand. */
.sc [rst-notice] {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--figure);
  padding: 0;
  margin: 0 0 28px;
  font-size: var(--t-body);
  font-weight: 700;
}
.sc [rst-notice]::before {
  content: "";
  flex: none;
  width: .9em;
  height: .9em;
  background: currentColor;
  -webkit-mask: url("showcase/star.svg") center / contain no-repeat;
  mask: url("showcase/star.svg") center / contain no-repeat;
}

/* Buttons are the homepage's pills; inputs keep the poster's square
   corners, so the two never read as the same kind of thing. */
.sc [rst-btn] { border-radius: 999px; font-weight: 700; letter-spacing: .01em; }
.sc [rst-btn~="primary"] { border-color: var(--figure); }
.sc [rst-input], .sc [rst-textarea] {
  background: transparent;
  border-color: var(--edge);
  color: var(--figure);
}
.sc [rst-input]:hover, .sc [rst-textarea]:hover { border-color: var(--dim); }
/* A focused field's edge turns ink and doubles, inside the field so
   nothing moves: one clear change, where the framework's border, halo and
   offset ring stacked three. */
.sc :is([rst-input], [rst-textarea], select):focus-visible {
  border-color: var(--figure);
  box-shadow: inset 0 0 0 1px var(--figure);
  outline: none;
}
.sc [rst-field-label] { font-weight: 700; }
.sc [rst-field-hint] { color: var(--dim); }
.sc-file { padding: 12px; cursor: pointer; }
.sc-file::file-selector-button {
  font: inherit;
  font-weight: 700;
  margin-right: 16px;
  padding: 8px 16px;
  border: 1px solid var(--figure);
  border-radius: 999px;
  background: var(--figure);
  color: var(--ground);
  cursor: pointer;
}
.sc [rst-form] { max-width: 40rem; }
.sc [rst-empty] {
  border: 1px solid var(--hair);
  padding: round(clamp(28px, 4vw, 56px), 4px);
  max-width: 44rem;
}
.sc [rst-empty-title] { font-size: var(--t-h3); line-height: var(--lh-h3); letter-spacing: -.01em; }
.sc [rst-empty-body] { color: var(--dim); }
.sc [rst-list] { border-color: var(--hair); }
.sc [rst-callout] { margin-bottom: 24px; }

/* ---------- the gallery's hero ---------- */
/* The gallery's header is the headline and one line of what it is,
   side by side on a landscape screen, sized to the screen's height as
   well as its width, so the first row of work always shows below it. */
.sc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 16px;
  align-items: end;
  margin: 0 0 round(clamp(24px, 3vw, 40px), 4px);
}
@media (orientation: landscape) and (min-width: 720px) {
  /* Beside the gloss, the headline also keeps to the width that holds it
     to two lines. */
  .sc-hero {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    column-gap: round(clamp(32px, 4vw, 72px), 4px);
    --t-hero: min(var(--t-display), 10svh, 5vw);
    --lh-hero: round(nearest, calc(var(--t-hero) * 1), 4px);
  }
  /* Beside the headline, the gloss is body size, so it stays no taller
     than the two lines it sits against. */
  .sc-hero .sc-gloss { font-size: var(--t-body); line-height: var(--lh-body); }
}
.sc-lede {
  font-size: var(--t-hero);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: var(--lh-hero);
  margin: 0;
  text-wrap: balance;
}
.sc-gloss {
  font-size: var(--t-lead);
  line-height: var(--lh-lead);
  max-width: 30em;
  color: var(--dim);
  margin: 0;
  text-wrap: pretty;
}
/* The sort and the filters on one row while they fit. */
.sc-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin: 0 0 round(clamp(24px, 3vw, 40px), 4px);
}
.sc-controls .sc-filters { margin: 0; }

/* The petal band along the foot of every showcase page, under the
   footer's links, cropped where the petals pinch to points so the first
   row is whole. Ink petals on the paper ground, the homepage's band
   turned over. Without WebGL it is the same pattern in SVG, in
   register; field.js adds the lens over it. */
.sc-field {
  height: clamp(120px, 14vw, 220px);
  position: relative;
  overflow: hidden;
  background-color: var(--ground);
  background-image: url("showcase/petals.svg");
  background-size: clamp(80px, 7.692vw, 144px) auto;
  background-position: center top;
}
.sc-field canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}
.sc-field.is-lit canvas { display: block; }
.sc-field.is-lit { background-image: none; }

/* ---------- the media grid, as posters ---------- */
.sc-grid [rst-media] {
  gap: round(clamp(20px, 2.4vw, 36px), 4px) round(clamp(16px, 1.8vw, 28px), 4px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.sc [rst-media-tile] {
  background: transparent;
  border: 0;
  border-radius: 0;
}
.sc [rst-media-tile]:hover,
.sc [rst-media-tile]:has([rst-media-name] > a):hover { background: transparent; box-shadow: none; }
.sc [rst-media-frame] { border-radius: 0; background: var(--well); }
.sc [rst-media-frame] img { transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.sc [rst-media-tile]:hover [rst-media-frame] img { transform: scale(1.03); }
.sc [rst-media-caption] { padding: 16px 0 0; }
.sc [rst-media-name] > a {
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-weight: 700;
  letter-spacing: -.01em;
}
.sc [rst-media-name] > a:hover { color: var(--figure); }
.sc [rst-media-desc] { color: var(--dim); margin: 4px 0 0; font-size: var(--t-small); line-height: var(--lh-small); }
.sc [rst-media-meta] {
  font-size: var(--micro);
  font-weight: 700;
  margin: 12px 0 0;
  color: var(--figure);
}
@media (prefers-reduced-motion: reduce) {
  .sc [rst-media-frame] img { transition: none; }
}
.sc-pager {
  display: flex;
  justify-content: space-between;
  margin-top: round(clamp(32px, 4vw, 56px), 4px);
  padding-top: 20px;
  border-top: 1px solid var(--hair);
}
.sc-pager a { text-decoration: none; }

/* ---------- people ---------- */
/* A grid of people, no rules between them: the photo at the top of
   the name, then what they do and where, each a step quieter. */
.sc-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: round(clamp(24px, 3vw, 40px), 4px) round(clamp(24px, 3vw, 48px), 4px);
}
.sc-person {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
}
.sc-person .sc-avatar {
  width: 56px;
  height: 56px;
  font-size: 20px; /* off-scale: an initial sized to its circle */
}
.sc-person:hover .sc-person__name { text-decoration: underline; text-underline-offset: .18em; }
.sc-person__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 4px; }
.sc-person__place { font-size: var(--t-micro); font-weight: 700; color: var(--dim); margin-top: 4px; }
.sc-person__place .icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: baseline;
  margin-block: calc((1cap - 1.15em) / 2);
  margin-inline-end: 4px;
}
/* The wide instance, for a profile's own name: in a list of people it
   reads too heavy, so there a name is the text face, bold. */
.sc-name {
  font-variation-settings: "slnt" 0, "wdth" 137;
  font-weight: 700;
  letter-spacing: -.01em;
}
.sc-person__name {
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-weight: 700;
  margin: 0;
}
.sc-person__line {
  color: var(--dim);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}

.sc-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--well);
}
.sc-avatar--lg {
  width: round(clamp(80px, 8vw, 128px), 4px);
  height: round(clamp(80px, 8vw, 128px), 4px);
}
.sc-avatar--mark {
  display: inline-grid;
  place-items: center;
  background: var(--figure);
  color: var(--ground);
  font-weight: 700;
  font-size: 24px; /* off-scale: an initial sized to its circle */
  font-variation-settings: "slnt" 0, "wdth" 137;
}
.sc-avatar--lg.sc-avatar--mark {
  font-size: clamp(32px, 3.2vw, 48px); /* off-scale: an initial sized to its circle */
}
/* The letter's line box is taller than its ink, so a centred box sat the
   capital low. Trimming to the cap height and the baseline centres the
   ink itself; an engine without text-box gets the old, slightly low one. */
.sc-initial {
  line-height: 1;
  text-box: trim-both cap alphabetic;
}

/* Your own avatar on the portfolio is the way to change it: a camera
   over it on hover or focus, and the link names what it does. */
.sc-avatar-edit {
  position: relative;
  display: inline-grid;
  flex: none;
  border-radius: 50%;
  text-decoration: none;
}
.sc-avatar-edit > * { grid-area: 1 / 1; }
.sc-avatar-edit__icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 20, 20, .62);
  color: var(--paper);
  opacity: 0;
  transition: opacity .2s;
}
.sc-avatar-edit__icon .icon { width: 24px; height: 24px; }
.sc-avatar-edit:hover .sc-avatar-edit__icon,
.sc-avatar-edit:focus-visible .sc-avatar-edit__icon { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .sc-avatar-edit__icon { transition: none; }
}

/* ---------- a person's page ---------- */
/* The lock-up: the photo beside the name and one line of facts, centred
   on each other; what the owner or an admin can do sits apart at the
   end, so it never reads as one of the person's own links. */
.sc-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "photo name     tools"
    "photo headline tools"
    ".     facts    tools";
  grid-template-rows: auto auto auto;
  column-gap: round(clamp(20px, 2.4vw, 36px), 4px);
  align-items: center;
  margin-bottom: round(clamp(24px, 3vw, 40px), 4px);
}
/* The photo centres on the name and what they do; the place and links
   sit under those, the next thing to read. */
.sc-profile > .sc-avatar { grid-area: photo; }
.sc-profile__text { display: contents; }
.sc-profile .sc-name { grid-area: name; align-self: end; }
.sc-profile .sc-profile__headline { grid-area: headline; align-self: start; }
.sc-profile .sc-facts { grid-area: facts; }
.sc-profile__tools { grid-area: tools; align-self: start; }
/* The name is trimmed to its capitals and baseline, so what follows is
   spaced from the letters, not from a line box with a descender's room
   under it; the headline's gap is that descender's depth and a little. */
.sc-name {
  font-size: var(--t-h1);
  line-height: var(--lh-h1);
  margin: 0;
  text-box: trim-both cap alphabetic;
}
.sc-profile__headline {
  font-size: var(--t-lead);
  line-height: var(--lh-lead);
  margin: round(calc(var(--t-h1) * .25), 4px) 0 0;
}
.sc-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
  margin: 12px 0 0;
  padding: 0;
  color: var(--dim);
}
.sc-facts a { color: var(--figure); text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: .25em; }
.sc-facts a:hover { text-decoration-color: currentColor; }
/* The pin is set in the line, a box one capital tall on the baseline,
   so it centres on the place's letters and the place shares a baseline
   with the links beside it; as a flex row, its baseline was the pin's
   bottom edge. */
.sc-facts__place .icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: baseline;
  margin-block: calc((1cap - 1.15em) / 2);
  margin-inline-end: 4px;
}
.sc-profile__tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.sc-profile__tools form { margin: 0; }
.sc-profile__tools button.sc-pill { background: transparent; color: var(--figure); font-family: inherit; cursor: pointer; }
.sc-profile__bio { max-width: 44rem; margin: 0 0 round(clamp(32px, 4vw, 56px), 4px); }
.sc-prose { max-width: 36em; font-size: var(--t-body); }
.sc-prose, .sc-prose p { line-height: var(--lh-body); }
.sc-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; }
.sc-links a {
  text-decoration: underline;
  text-decoration-color: var(--edge);
  text-underline-offset: .3em;
}
.sc-links a:hover { text-decoration-color: currentColor; }

/* ---------- a demo's page ---------- */
.sc-demo__head { margin-bottom: 24px; }
.sc-title {
  font-size: var(--t-h1);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1;
  margin: 0 0 12px;
  text-wrap: balance;
}
/* An underline, not a border: on touch the link grows to 44px with
   inline padding, which a border would follow down and away from it. */
.sc-demo__head a {
  text-decoration: underline;
  text-decoration-color: var(--edge);
  text-underline-offset: .25em;
}
@media (pointer: coarse) {
  .sc-demo__head a { padding: 16px 0; }
}
.sc-player {
  aspect-ratio: 16 / 9;
  background: #000;
  margin: 0 0 round(clamp(24px, 3vw, 40px), 4px);
  position: relative;
}
.sc-player video, .sc-player iframe, .sc-player img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.sc-player img { object-fit: cover; object-position: top center; }
.sc-player--empty {
  display: grid;
  place-items: center;
  background: var(--well);
  aspect-ratio: 4 / 3;
}
/* One column on a phone: the film, what it is, then hearts, Try it and
   what it was made with. With room, those details move up beside the
   film, as they're almost always shorter than it is tall, and the story
   runs on under the film rather than beside a longer column of them. */
.sc-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "media" "text" "aside";
  column-gap: round(clamp(32px, 3vw, 56px), 4px);
  /* Wide, for the film, but not so wide it pushes the details below
     the fold on a big screen. */
  max-width: 1440px;
}
.sc-demo__head { grid-area: head; }
.sc-demo__media { grid-area: media; }
.sc-demo__text { grid-area: text; max-width: 44rem; }
.sc-demo__aside { grid-area: aside; }
@media (min-width: 960px) {
  .sc-demo {
    grid-template-columns: minmax(0, 1fr) clamp(256px, 24vw, 360px);
    grid-template-areas: "head head" "media aside" "text aside";
    grid-template-rows: auto auto 1fr;
  }
}
.sc-demo__summary { font-size: var(--t-lead); line-height: var(--lh-lead); margin-top: 0; }
.sc-demo__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sc-demo__aside p { margin: 0; }
.sc-demo__aside .sc-pill + p { margin-bottom: 20px; }
.sc-tools { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 20px; }
.sc [rst-badge] { border-color: var(--edge); color: var(--figure); border-radius: 999px; }

/* ---------- the portfolio ---------- */
/* Your own name on Your projects leads its card, a step above what
   you do. */
.sc-me__text .sc-person__name { font-size: var(--t-lead); line-height: var(--lh-lead); }
.sc-me__text > p:not(.sc-person__name):not(.sc-links) { font-size: var(--t-small); line-height: var(--lh-small); margin: 4px 0 0; }
.sc-me {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: round(clamp(32px, 4vw, 48px), 4px);
}
.sc-me__text p { margin: 0 0 4px; }
.sc-manage {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: round(clamp(24px, 4vw, 48px), 4px);
  align-items: start;
}
.sc-manage__side > * { margin: 0 0 16px; }
.sc-actions { list-style: none; padding: 20px 0 0; border-top: 1px solid var(--hair); }
.sc-actions li { margin: 0 0 12px; }
.sc-actions a { text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: .3em; }
.sc-actions a:hover { text-decoration-color: currentColor; }
.sc-actions .rst-danger { color: var(--rst-tone-negative-fg); }
.sc-preview { max-width: min(100%, 28rem); display: block; }

/* ---------- footer, as the homepage's ---------- */
.sc-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
  padding: var(--gut);
}
.sc-foot__end { justify-self: end; display: flex; gap: 24px; align-items: center; }
/* Underlines, not borders, here and on the other text links: on touch a
   link grows to 44px tall, and a border would follow its box down and
   away from the words. */
.sc-foot__end a { text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: .3em; }
.sc-foot form { margin: 0; }
.sc-linkbutton {
  font: inherit;
  color: var(--dim);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.sc-linkbutton:hover { color: var(--figure); }

/* ---------- narrow ---------- */
@media (max-width: 720px) {
  /* On a phone the sections take a row of their own under the
     wordmark and the button. */
  .sc-nav { order: 3; flex-basis: 100%; }
  /* The filters scroll sideways in one row rather than stacking rows
     between the headline and the work. */
  .sc-controls .sc-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gut));
    padding-inline: var(--gut);
    width: calc(100% + 2 * var(--gut));
    box-sizing: border-box;
  }
  .sc-controls .sc-filters::-webkit-scrollbar { display: none; }
  .sc-browse { margin-left: 0; }
  /* On a phone the photo sits above the name, so the name keeps the
     width to stay on one line. */
  .sc-profile {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "photo" "name" "headline" "facts" "tools";
    align-items: start;
  }
  .sc-profile > .sc-avatar { margin-bottom: 16px; }
  .sc-profile__tools { margin-top: 16px; }
  .sc-profile__tools { justify-content: flex-start; }
  .sc-manage { grid-template-columns: 1fr; }
  /* The wordmark on its own line, the links under it wrapping as they
     need: three of them don't fit beside it at 390px. */
  .sc-foot { grid-template-columns: 1fr; }
  .sc-foot > :nth-child(2) { display: none; }
  .sc-foot__end { justify-self: start; flex-wrap: wrap; gap: 0 24px; }
}

/* ---------- the sign-in screen, on the stage shell ---------- */
body.sc-stage { display: grid; grid-template-rows: 1fr auto; min-height: 100dvh; position: relative; }
.sc-stage__field {
  position: absolute;
  inset: auto 0 0 0;
  height: 34vh;
  background-image: url("showcase/petals.svg");
  background-size: clamp(80px, 7.692vw, 144px) auto;
  background-position: center top;
  opacity: .14;
}
.sc-stage [rst-signin], .sc-stage [rst-card] { background: var(--ground); border-color: var(--edge); }
.sc-stage [rst-stage-foot] a { color: var(--dim); text-decoration: none; }
.sc-stage [rst-stage-foot] a:hover { color: var(--figure); }

/* ---------- tags ---------- */
/* A tag is a small outlined pill: quieter than a button, which is the
   one filled pill on a page. The current filter fills. */
.sc-tag {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  font-size: var(--micro);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
a.sc-tag:hover, a.sc-tag:focus-visible { border-color: var(--figure); }
.sc-tag--current, a.sc-tag--current:hover {
  background: var(--figure);
  border-color: var(--figure);
  color: var(--ground);
}
.sc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 round(clamp(28px, 3vw, 44px), 4px);
}
.sc-filtered {
  font-size: var(--t-h3);
  line-height: var(--lh-h3);
  letter-spacing: -.015em;
  margin: 0 0 24px;
}

/* The picker: the framework's checkbox cards as chips that toggle. The
   box itself is hidden but still there, for the keyboard and screen
   readers; a chip shows a plus until it's picked, then fills with ink
   and shows a check, so the state reads in the mark as well as the
   colour. */
.sc-tagpick [rst-choice] { border: 0; padding: 0; margin: 0 0 20px; }
.sc-tagpick legend { font-weight: 700; margin-bottom: 12px; padding: 0; }
.sc-tagpick [rst-choice-cards] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sc-tagpick [rst-choice-cards] label {
  position: relative;
  align-items: center;
  gap: 0;
  padding-inline: 12px 16px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  font-size: var(--t-small);
  transition: background .15s, border-color .15s, color .15s;
}
.sc-tagpick [rst-choice-cards] label:hover { border-color: var(--figure); }
.sc-tagpick [rst-choice-cards] label:has(input:checked) {
  background: var(--figure);
  border-color: var(--figure);
  color: var(--ground);
}
.sc-tagpick [rst-choice-cards] input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
/* The framework sets a card's title as a block under its box; a chip's
   name runs on from its mark. */
.sc-tagpick [rst-choice-title] { display: inline; }
.sc-tagpick [rst-choice-cards] label > span::before {
  content: "";
  display: inline-block;
  width: .9em;
  height: .9em;
  margin-inline-end: 4px;
  vertical-align: baseline;
  margin-block: calc((1cap - .9em) / 2);
  background: currentColor;
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E");
}
.sc-tagpick [rst-choice-cards] label:has(input:checked) > span::before {
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  .sc-tagpick [rst-choice-cards] label { transition: none; }
}

/* ---------- the admin's tag list ---------- */
.sc-tagadmin { margin-bottom: round(clamp(32px, 4vw, 56px), 4px); }
.sc-tagadmin h2 { font-size: var(--t-lead); line-height: var(--lh-lead); margin: 0 0 12px; }
.sc-tagrows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.sc-tagrows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}
.sc-tagrows__name { font-weight: 700; }
.sc-tagrows__do { display: flex; gap: 8px; align-items: center; }
.sc-tagrows__do form { margin: 0; }
@media (max-width: 720px) {
  .sc-tagrows li { grid-template-columns: minmax(0, 1fr) auto; }
  .sc-tagrows__do { grid-column: 1 / -1; }
}

/* ---------- hearts ---------- */
.sc-heart { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 20px; }
.sc-heart form { margin: 0; }
.sc-heart__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--figure);
  border-radius: 999px;
  background: transparent;
  color: var(--figure);
  font: inherit;
  font-weight: 700;
  font-size: var(--t-small);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.sc-heart__button .icon { width: 18px; height: 18px; }
.sc-heart__button:hover, .sc-heart__button:focus-visible { background: var(--well); }
/* Hearted fills the heart, not the pill: a filled pill is the page's one
   primary action ("Try it"), and the state reads in the shape and the
   word beside it either way. */
.sc-heart__button[aria-pressed="true"] .icon { fill: currentColor; }
.sc-heart__button:disabled { opacity: .6; cursor: progress; }
.sc-heart__count { margin: 0; color: var(--dim); }
.sc-heart__who { margin: 0; max-width: 22em; }
.sc-heart__who a { text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: .3em; }
@media (prefers-reduced-motion: reduce) {
  .sc-heart__button { transition: none; }
}

/* A tile's heart sits at the end of its line of facts, above the tile's
   own link (the framework lifts a tile's forms over the name link's
   overlay). Small, so the picture stays the loudest thing. */
.sc-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.sc-tile-foot [rst-media-meta] { margin: 0; }
/* The facts beside a tile's heart centre on their capitals, not on a
   line box with room for descenders under it. The equal padding keeps
   those descenders inside the ellipsis's clip without moving the centre. */
@supports (text-box: trim-both cap alphabetic) {
  .sc-tile-foot [rst-media-meta] {
    text-box: trim-both cap alphabetic;
    padding-block: 4px;
  }
}
.sc-tile-heart { flex: none; margin-left: auto; }
.sc-tile-heart form { margin: 0; }
.sc-tile-heart__button, .sc-tile-heart__count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: transparent;
  color: var(--figure);
  font: inherit;
  font-size: var(--micro);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.sc-tile-heart__count { border-color: transparent; cursor: default; color: var(--dim); }
.sc-tile-heart .icon { width: 14px; height: 14px; }
.sc-tile-heart__button:hover, .sc-tile-heart__button:focus-visible { border-color: var(--figure); }
.sc-tile-heart__button[aria-pressed="true"] .icon { fill: currentColor; }
.sc-tile-heart__button:disabled { opacity: .6; cursor: progress; }

/* The order switch, as the framework's segmented links, in the site's
   pills. */
/* The sort is a setting, not a filter, so it doesn't wear the chips'
   pills: words at the row's end, the current one in ink and underlined
   like the masthead's sections, the other dim. */
.sc-browse {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 0 auto;
  font-size: var(--t-small);
  font-weight: 700;
}
.sc-browse__label {
  color: var(--dim);
  font-weight: 500;
  line-height: 1;
  text-box: trim-both cap alphabetic;
}
.sc-browse [rst-seg-tabs] {
  margin: 0;
  padding: 0;
  gap: 16px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.sc-browse [rst-seg-tabs] a {
  padding-inline: 0;
  border-radius: 0;
  background: none;
  color: var(--dim);
  font-weight: 700;
  box-shadow: none;
}
.sc-browse [rst-seg-tabs] a:hover { color: var(--figure); }
.sc-browse [rst-seg-tabs] a[aria-current="page"] {
  background: none;
  color: var(--figure);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
}

/* ---------- touch ---------- */
/* On a touch screen every control is at least 44px to tap, the size a
   thumb needs. The look stays the same: the padding grows, or a text
   link gains height around its words, not a bigger font. */
@media (pointer: coarse) {
  .sc-nav a { padding: 16px 0; min-width: 44px; text-align: center; }
  .sc-brand { padding: 12px 0; margin: -12px 0; }
  .sc-links a, .sc-actions a, .sc-foot__end a, .sc-linkbutton,
  .sc-demo__aside p a, .sc [rst-back-nav] a, .sc-stage [rst-stage-foot] a,
  .sc-heart__who a, .sc-manage__side p a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .sc-links { gap: 0 24px; margin-top: 8px; }
  .sc-actions li { margin: 0; }
}

/* The username on Edit profile: shown, not a field, because it can't
   change. */
.sc-username { margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--hair); max-width: 40rem; }
.sc-username p { margin: 0 0 8px; }
.sc-username__handle { font-weight: 700; font-size: var(--t-lead); line-height: var(--lh-lead); }
.sc-username a { text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: .3em; }

/* More by the same person, under a project: a smaller, quieter echo of
   the gallery. */
.sc-more { margin-top: round(clamp(48px, 6vw, 88px), 4px); padding-top: 28px; border-top: 1px solid var(--hair); }
.sc-more__title { font-size: var(--t-lead); line-height: var(--lh-lead); margin: 0 0 20px; letter-spacing: -.01em; }
.sc-more__title a { text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: .2em; }

/* ---------- feedback, for admins ---------- */
.sc-notes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); max-width: 44rem; }
.sc-notes li { padding: 20px 0; border-bottom: 1px solid var(--hair); }
.sc-notes p { margin: 0 0 8px; }
.sc-notes a { text-decoration: underline; text-decoration-color: var(--edge); }

/* ---------- numbers, for admins ---------- */
.sc [rst-stats] { border-color: var(--hair); margin-bottom: 20px; }
.sc [rst-stat-num] { font-weight: 700; letter-spacing: -.02em; }
.sc-numbers-note { max-width: 40rem; }
.sc-leave { margin-top: round(clamp(40px, 5vw, 64px), 4px); padding-top: 20px; border-top: 1px solid var(--hair); max-width: 40rem; }
.sc-leave .rst-danger { color: var(--rst-tone-negative-fg); }

/* A button label stays on one line; the row of buttons wraps instead. */
.sc [rst-btn] { white-space: nowrap; }
.sc [rst-form-actions], .sc [rst-form-foot] { flex-wrap: wrap; }

/* The sign-in card's brand wears the masthead's lock-up: the star a
   cap-height square beside the wide wordmark. */
.sc-stage [rst-signin-brand] {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: .5em;
  font-size: clamp(26px, 2.4vw, 34px); /* off-scale: the wordmark */
}
.sc-stage [rst-signin-mark] {
  display: flex;
  width: 1em;
  height: 1em;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}
.sc-stage [rst-signin-mark] .sc-star { width: 100%; height: 100%; fill: currentColor; }
.sc-stage [rst-signin-name] {
  margin: 0;
  color: var(--figure);
  font-size: 1em;
  font-weight: 700;
  font-variation-settings: "slnt" 0, "wdth" 137;
  letter-spacing: -.02em;
  line-height: 1;
}
.sc-stage [rst-signin-pitch] {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  font-size: var(--t-small);
  line-height: var(--lh-small);
  color: var(--dim);
  font-weight: 500;
  max-width: 22em;
}

/* ---------- control heights ---------- */
/* Every pill-shaped control is a set height, padding included, so a
   touch screen's larger size replaces the desktop one rather than adding
   to it (a minimum height on top of the padding made them 60-68px).
   Buttons are 40px, 44px to a thumb; tags and the order switch, which
   come in rows, 32px and 40px; a tile's heart 28px and 40px. */
.sc-pill, .sc [rst-btn], .sc-heart__button { --control: 40px; }
.sc-tag, .sc [rst-seg-tabs] a,
.sc-tagpick [rst-choice-cards] label { --control: 32px; }
.sc-tile-heart__button, .sc-tile-heart__count { --control: 28px; }
@media (pointer: coarse) {
  .sc-pill, .sc [rst-btn], .sc-heart__button { --control: 44px; }
  .sc-tag, .sc [rst-seg-tabs] a, .sc-tile-heart__button,
  .sc-tile-heart__count,
  .sc-tagpick [rst-choice-cards] label { --control: 40px; }
  .sc-tile-heart__button { min-width: 40px; justify-content: center; }
}
.sc-pill, .sc [rst-btn], .sc-tag, .sc [rst-seg-tabs] a,
.sc-heart__button, .sc-tile-heart__button, .sc-tile-heart__count,
.sc-tagpick [rst-choice-cards] label {
  box-sizing: border-box;
  height: var(--control);
  min-height: 0;
  padding-block: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/* Centring the line box sat the label wherever the font's ascent and
   descent put it, which Safari and Chrome read differently. Trimmed to
   the capital height and the baseline, the box is the letters, and even
   padding centres them in every engine that can trim; the rest keep the
   flex centring above. */
@supports (text-box: trim-both cap alphabetic) {
  .sc-pill, .sc [rst-btn], .sc-tag, .sc [rst-seg-tabs] a {
    display: inline-block;
    text-box: trim-both cap alphabetic;
    padding-block: calc((var(--control) - 2px - 1cap) / 2);
  }
  /* A button's icon is a margin box one capital tall on the baseline,
     so it centres on the letters and leaves the trimmed line its
     height; the margin after it replaces the flex gap it lost. */
  .sc [rst-btn] .icon {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    vertical-align: baseline;
    margin-block: calc((1cap - 1.15em) / 2);
    margin-inline-end: .4em;
  }
  /* A status pill's dot, the same way: a box one capital tall on the
     baseline, so it centres on the word, in a pill trimmed to it. */
  .sc [rst-status] {
    display: inline-block;
    width: fit-content;
    justify-self: start;
    line-height: 1;
    text-box: trim-both cap alphabetic;
    padding-block: calc((24px - 1cap) / 2);
  }
  /* A row's pill on a phone is the framework's smaller one, 20px. */
  @media (max-width: 34rem) {
    .sc [rst-row]:has(> [rst-status]) > [rst-status] {
      padding-block: calc((20px - 1cap) / 2);
    }
  }
  .sc [rst-status]::before {
    display: inline-block;
    vertical-align: baseline;
    margin-block: calc((1cap - .375rem) / 2);
    margin-inline-end: .35rem;
  }
  /* The order switch's links have no border of their own. */
  .sc [rst-seg-tabs] a { padding-block: calc((var(--control) - 1cap) / 2); }
  .sc-heart__button > span, .sc-tile-heart__button > span,
  .sc-tile-heart__count > span,
  .sc-tagpick [rst-choice-cards] label > span {
    line-height: 1;
    text-box: trim-both cap alphabetic;
  }
}

/* Edit profile's round-up switch: a setting, so it sits apart from the
   profile's own fields, its hint just under it. */
.sc-switch { margin: round(clamp(32px, 4vw, 48px), 4px) 0 24px; }
.sc-switch > p { margin: 8px 0 0; }

/* A list's feed, under its work: there for whoever looks, quiet. */
.sc-feed { margin: round(clamp(24px, 3vw, 40px), 4px) 0 0; color: var(--dim); }
.sc-feed a { text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: .25em; }

/* The maker's face beside their name on a tile: a small round photo or
   initial, set in the line and centred on its capitals. The facts' clip
   is padded to hold it. */
.sc-face {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: baseline;
  margin-block: calc((1cap - 20px) / 2);
  margin-inline-end: 8px;
  background: var(--well);
}
.sc-face--mark {
  background: var(--figure);
  color: var(--ground);
  font-size: 10px; /* off-scale: an initial sized to its circle */
  line-height: 1;
  display: inline-grid;
  place-items: center;
  font-variation-settings: "slnt" 0, "wdth" 137;
}
@supports (text-box: trim-both cap alphabetic) {
  .sc-tile-foot [rst-media-meta]:has(.sc-face) { padding-block: 8px; }
}

/* A second list on a page starts a new section, with room above it. */
.sc-tagrows + .sc-filtered { margin-top: round(clamp(40px, 5vw, 64px), 4px); }

/* ---------- adding a project ---------- */
/* Two steps, as the people who make this kind of site have it: the work,
   then what it is. The steps sit centred over a centred question. */
.sc-steps {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 round(clamp(24px, 3vw, 40px), 4px);
  padding: 0;
  font-size: var(--t-small);
  font-weight: 700;
  color: var(--dim);
}
.sc-steps li { display: flex; align-items: center; gap: 8px; }
.sc-steps a { color: inherit; text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: .25em; }
.sc-steps [aria-current="step"] { color: var(--figure); }
.sc-steps__n {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--edge);
  border-radius: 50%;
  font-size: var(--t-micro);
  line-height: 1;
}
.sc-steps [aria-current="step"] .sc-steps__n { background: var(--figure); border-color: var(--figure); color: var(--ground); }
.sc-steps__rule { width: 40px; height: 1px; background: var(--edge); }
.sc-step { text-align: center; margin: 0 auto round(clamp(32px, 4vw, 56px), 4px); max-width: 40rem; }
.sc-step__title {
  font-size: var(--t-h1);
  line-height: var(--lh-h1);
  letter-spacing: -.025em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.sc-step .sc-gloss { margin: 0 auto; }

.sc-start { max-width: 48rem; margin: 0 auto; }
.sc-drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: round(clamp(40px, 7vw, 96px), 4px) 24px;
  border: 1px dashed var(--edge);
  border-radius: 24px;
  background: var(--well);
  text-align: center;
  transition: border-color .15s, background .15s;
}
.sc-drop--small { padding-block: 32px; }
.sc-drop--over, .sc-drop:focus-within { border-color: var(--figure); }
.sc-drop--over { background: color-mix(in srgb, var(--well) 70%, var(--figure) 6%); }
.sc-drop--error { border-color: #b3261e; }
.sc-drop__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ground);
}
.sc-drop__icon .icon { width: 20px; height: 20px; }
.sc-drop__label { font-size: var(--t-body); line-height: var(--lh-body); font-weight: 700; cursor: pointer; }
.sc-drop__browse { text-decoration: underline; text-underline-offset: .25em; }
.sc-drop p { margin: 0; }
.sc-drop__error { color: #b3261e; font-weight: 700; }
/* With the script, the input covers the area, so a click anywhere
   opens the picker and a drop lands on it; without, it's a plain input
   under the words. */
.sc-drop__input { max-width: 100%; font: inherit; font-size: var(--t-small); }
.sc-drop--live .sc-drop__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sc-drop__files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.sc-drop__files:empty { display: none; }
.sc-drop__files li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--hair);
  border-radius: 12px;
}
.sc-drop__files img { width: 48px; height: 36px; object-fit: cover; border-radius: 4px; background: var(--well); }
.sc-drop__name { font-size: var(--t-small); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-or { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.sc-or::before, .sc-or::after { content: ""; flex: 1; height: 1px; background: var(--hair); }

/* Step two: the work on the left, held in view, the words on the right. */
.sc-details { display: grid; gap: round(clamp(24px, 4vw, 56px), 4px); }
@media (min-width: 900px) {
  .sc-details { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .sc-details__media { position: sticky; top: 120px; }
}
.sc-details__cover { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--well); }
.sc-details__cover--none { display: grid; place-items: center; }
.sc-details__under { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
/* The title is typed large, as it will read. */
.sc-details #Title {
  font-size: var(--t-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  letter-spacing: -.02em;
  padding-block: 8px;
}
.sc-count { margin: -12px 0 20px; text-align: right; }
.sc-count--over { color: #b3261e; }
.sc-story { margin: 0 0 24px; }
.sc-story > summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.sc-story[open] > summary { margin-bottom: 12px; }
.sc-about {
  margin: 8px 0 24px;
  padding: 20px 24px;
  border: 1px solid var(--hair);
  border-radius: 16px;
}
.sc-about legend { font-weight: 700; padding: 0 8px; margin-left: -8px; }
.sc-about > p { margin: 0 0 16px; }
@media (min-width: 600px) {
  .sc-about__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
}
.sc-details__foot { display: grid; gap: 16px; margin-top: 8px; }
.sc-details__foot > p { margin: 0; max-width: 32rem; }

/* A project's pictures page. */
.sc-pics {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 20px;
}
.sc-pics img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--well); }
.sc-pics__do { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.sc-pics__do form { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .sc-drop { transition: none; }
}

/* A project's other pictures, under its player, each opening at full
   size. The stage reads as a fact above the heart, not a control. */
.sc-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: -16px 0 round(clamp(24px, 3vw, 40px), 4px);
  padding: 0;
}
.sc-strip img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--well); }
.sc-stage-line { margin: 0 0 4px; font-weight: 700; color: var(--dim); }

/* Step two is wider than a form page: the picture and the words side by
   side want the room, and the title is set large. */
.sc-details, .sc-page--wide .sc-step { max-width: 72rem; margin-inline: auto; }
.sc-page--wide > [rst-back-nav] { max-width: 72rem; margin-inline: auto; }
/* Stage is one of three, not a pick-any list, so it has no plus. */
.sc-stagepick [rst-choice-cards] label > span::before { display: none; }
.sc-stagepick [rst-choice-cards] label { padding-inline: 16px; }
/* The framework holds a form to a reading width; step two's form is the
   two-column layout itself, so it takes the page's width and leaves the
   measure to its fields. */
.sc .sc-details[rst-form] { max-width: 72rem; max-inline-size: 72rem; }
.sc .sc-details__form [rst-field], .sc .sc-details__form input, .sc .sc-details__form textarea { max-width: none; max-inline-size: none; }

/* The kinds of thing, as words leading the controls row, the current one
   underlined like the masthead's sections; the tag chips are a row of
   their own under it. */
.sc-kinds { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: var(--t-small); font-weight: 700; }
.sc-kinds a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  text-decoration: none;
}
.sc-kinds a:hover { color: var(--figure); }
.sc-kinds a[aria-current="page"] {
  color: var(--figure);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
}
.sc-filters--row { margin: 0 0 round(clamp(24px, 3vw, 40px), 4px); }
.sc-controls:has(+ .sc-filters--row) { margin-bottom: 12px; }
.sc-stage-line a { color: var(--figure); text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: .25em; }

/* On a phone the kinds and the tag chips each scroll sideways in one
   row, and the sort starts its own line at the left. */
@media (max-width: 720px) {
  .sc-controls .sc-browse { margin-left: 0; }
  .sc-kinds, .sc-filters--row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gut));
    padding-inline: var(--gut);
    width: calc(100% + 2 * var(--gut));
    box-sizing: border-box;
  }
  .sc-kinds a { white-space: nowrap; }
  .sc-kinds::-webkit-scrollbar, .sc-filters--row::-webkit-scrollbar { display: none; }
}

/* A project's pictures and films, one under another in the maker's
   order: pictures at their own shape, films in a 16:9 frame. */
.sc-shown {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 round(clamp(24px, 3vw, 40px), 4px);
  background: var(--well);
}
.sc-pics__film {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  aspect-ratio: 4 / 3;
  padding: 16px;
  border-radius: 12px;
  background: var(--figure);
  color: var(--ground);
  text-align: center;
  overflow-wrap: anywhere;
}
.sc-pics__film .icon { width: 32px; height: 32px; }
.sc-pics { counter-reset: shown; }
.sc-pics__do .icon { width: 16px; height: 16px; }
.sc-add { display: grid; gap: round(clamp(24px, 3vw, 40px), 4px); margin: 0 0 32px; }
/* On the pictures page the add forms sit with the list, at its left. */
.sc-add .sc-start { margin: 0; }
.sc-pics__do { min-height: 40px; }

/* Invites. A code is set in the system's monospace, spaced a little, so
   a K is never read as an X across a table; the note from whoever sent
   it sits as a quote under the welcome. */
.sc-code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: .08em;
  color: var(--figure);
}
.sc-invite-link { display: block; margin-top: 4px; }
.sc-invite-note {
  margin: 0 0 24px;
  padding: 0 0 0 16px;
  border-left: 3px solid var(--figure);
  max-inline-size: 36rem;
}
.sc-invite-note p { margin: 0 0 4px; font-size: var(--t-lead); line-height: var(--lh-lead); }
.sc-invite-note footer { margin: 0; }
.sc-invite-code { margin-top: 16px; }
.sc-signed-as { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin-top: 24px; }
.sc-signed-as form { margin: 0; }
