/* scope.css: the SCOPE workshop page (mariya.fyi/scope.html).
   Used by scope.html only; the rest of the site keeps terminal.css.
   The page is set like the first page of a paper: STIX Two Text for
   reading, IBM Plex Sans for small interface text, IBM Plex Mono for the
   title. Light only. Nothing is set in italics. */

/* ── colours, type, measure ── */
:root {
  --paper: #FCFCFA;   /* page */
  --ink:   #1B1E27;   /* text */
  --ink2:  #4F5565;   /* secondary text: affiliations, captions */
  --ink3:  #8A8F9C;   /* quiet text: numbers, hints */
  --rule:  #D9DBE1;   /* hairlines */
  --wash:  #F2F3F6;   /* tinted backgrounds */
  --link:  #2148A6;   /* links */
  --body-font: 'STIX Two Text', 'Times New Roman', serif;
  --ui-font:   'IBM Plex Sans', system-ui, sans-serif;
  --fs: 18px; --lh: 1.62;
  --col: 640px;       /* reading column */
}
@media (max-width: 640px) { :root { --fs: 17px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
/* words are never split across lines (no automatic hyphenation) */
body { hyphens: manual; -webkit-hyphens: manual; background: var(--paper); color: var(--ink); font-family: var(--body-font); font-size: var(--fs); line-height: var(--lh);
  font-kerning: normal; font-variant-numeric: oldstyle-nums proportional-nums; text-rendering: optimizeLegibility; }
em, i, cite { font-style: normal; }
b, strong { font-weight: 600; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── top bar and contents ── */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px); border-bottom: 1px solid transparent; font-family: var(--ui-font); font-size: 13.5px; }
.topbar.past-hero { border-bottom-color: var(--rule); }
.topbar .in { max-width: 1040px; margin: 0 auto; padding: 0 24px; height: 48px; display: flex; align-items: center; gap: 16px; }
.topbar .mark { color: var(--ink); font-weight: 600; letter-spacing: 0.02em; opacity: 0; transition: opacity .25s; }
.topbar.past-hero .mark { opacity: 1; }
.toc-btn, .toc-close { font: inherit; font-family: var(--ui-font); font-size: 13.5px; color: var(--ink); background: none;
  border: 1px solid var(--rule); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.toc-btn { margin-left: auto; }
.toc-btn:hover, .toc-close:hover { border-color: var(--ink3); }
.toc { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--paper) 96%, transparent); overflow: auto; }
.toc .in { max-width: 720px; margin: 0 auto; padding: 72px 24px 48px; position: relative; }
.toc-close { position: absolute; top: 20px; right: 24px; }
.toc h2 { font-family: var(--ui-font); font-size: 15px; font-weight: 600; color: var(--ink2); margin-bottom: 14px; }
.toc ol { list-style: none; }
.toc li { border-top: 1px solid var(--rule); }
.toc li a { display: flex; gap: 14px; padding: 10px 0; color: var(--ink); font-size: 19px; }
.toc li a span { color: var(--ink3); min-width: 1.6em; font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 640px) { .topbar .in { padding: 0 16px; } }

/* ── title ──
   The particles take their look from these variables (read by scope.js). */
.hero {
  --p-font: 'IBM Plex Mono', monospace; --p-weight: 600;          /* the particle initials */
  --p-word-font: 'IBM Plex Mono', monospace; --p-word-weight: 300; /* the rest of each word */
  --p-c0: #1B1E27; --p-c1: #2148A6; --p-c2: #1F6B44;               /* particle colours, mixed 78 : 14 : 8 */
  --p-mix: 0.78 0.92;
  --p-c3: #9AA0AC; --p-dust-alpha: 0.55;                          /* loose dust */
  --p-trail: 0.55;                                                /* streak length, 0 = none */
  --p-size: 1.55;                                                 /* particle size, px */
  position: relative; overflow: hidden; touch-action: pan-y; border-bottom: 1px solid var(--rule);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-labels { position: absolute; inset: 0; pointer-events: none; }
.hero-labels .acro-w { position: absolute; font-family: var(--p-word-font); font-weight: var(--p-word-weight); line-height: 1;
  color: var(--ink); white-space: nowrap; font-variant-numeric: normal; }
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; padding: 36px 24px 52px; pointer-events: none; }
.acrostic { height: clamp(330px, 58vh, 560px); margin-bottom: 28px; }
.title-block { transition: opacity .9s ease, transform .9s ease; }
.hero:not(.ready) .title-block { opacity: 0; transform: translateY(6px); }
.title-block h1 { font-size: clamp(27px, 3.6vw, 40px); line-height: 1.16; font-weight: 500; letter-spacing: -0.005em;
  max-width: 24ch; text-wrap: balance; font-variant-numeric: lining-nums; }
.authors { margin-top: 22px; font-size: 17px; line-height: 1.55; pointer-events: auto; }
/* each name links to that organizer's website; it looks like plain text until hovered, then darkens to
   bold. The weight comes from a thin outline rather than the bold font, so the line never reflows. */
.authors .au { color: inherit; text-decoration: none; white-space: nowrap; transition: -webkit-text-stroke-width .12s; -webkit-text-stroke: 0 currentColor; }
.authors .au:hover, .authors .au:focus-visible { text-decoration: none; -webkit-text-stroke-width: 0.6px; }
@media (max-width: 760px) { .authors br.wide-only { display: none; } .authors { text-wrap: balance; } }
@media (max-width: 640px) {
  .hero-inner { padding: 24px 16px 36px; }
  .acrostic { height: min(140vw, 520px); margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .title-block { transition: none; }
  .hero:not(.ready) .title-block { opacity: 1; transform: none; }
}

/* ── reading column ── */
main { max-width: calc(var(--col) + 48px); margin: 0 auto; padding: 24px 24px 120px; }
.sec { margin-top: 64px; }
.sec h2 { font-size: 25px; line-height: 1.25; font-weight: 600; margin-bottom: 18px; font-variant-numeric: lining-nums; }
/* a bold bar beside each section title, hanging into the margin */
.sec > h2 { border-left: 3px solid var(--ink); padding-left: 16px; margin-left: -19px; }
@media (max-width: 640px) { .sec > h2 { margin-left: 0; padding-left: 13px; } }
.sec h3 { font-size: 1em; line-height: 1.45; font-weight: 600; margin: 1.4em 0 0.4em; }
.prose p + p, .prose p + ul, .prose ul + p, .prose table + p, .prose p + table { margin-top: 0.85em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose, .pd-body { overflow-wrap: break-word; }
.prose a, .pd-body a { overflow-wrap: anywhere; }   /* long URLs in the references wrap on phones */
@media (min-width: 700px) {
  .prose, .qbody, .qlead { text-align: justify; }
}
@media (max-width: 640px) { main { padding: 16px 16px 96px; } }

/* tables inside the text (the timeline) */
.prose table { width: 100%; border-collapse: collapse; font-size: 0.86em; line-height: 1.45; font-variant-numeric: lining-nums tabular-nums;
  border-top: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); text-align: left; }
.prose th { font-weight: 600; padding: 7px 14px 7px 0; border-bottom: 0.8px solid var(--ink); }
.prose th strong { font-weight: 600; }
.prose td { padding: 7px 14px 7px 0; vertical-align: top; }
.prose td:first-child { white-space: nowrap; color: var(--ink2); }

/* the central question in "Why this discussion now?": set apart, larger, the question in bold blue */
.prose p.keyq { font-size: 1.12em; line-height: 1.5; margin: 1.3em 0; text-align: left; }
.prose p.keyq strong { color: var(--link); font-weight: 600; }

/* ── discussion questions: each question is a small heading ── */
.qlead { margin-bottom: 8px; }
.q { margin-top: 30px; }
.q h3 { margin: 0 0 6px; font-size: 1.12em; line-height: 1.35; font-weight: 600; letter-spacing: -0.003em; }

/* ── program, ruled like a LaTeX table ── */
.prog { width: 100%; border-collapse: collapse; margin: 22px 0 6px; font-size: 0.86em; line-height: 1.45; font-variant-numeric: lining-nums tabular-nums;
  border-top: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); }
.prog th { text-align: left; font-weight: 600; padding: 7px 14px 7px 0; border-bottom: 0.8px solid var(--ink); }
.prog td { padding: 8px 14px 8px 0; vertical-align: top; }
.prog tbody tr:first-child td { padding-top: 10px; }
.prog td.t { white-space: nowrap; color: var(--ink2); }
.prog td.s { width: 38%; }
@media (max-width: 640px) {
  .prog thead { display: none; }
  .prog, .prog tbody, .prog tr, .prog td { display: block; width: auto !important; }
  .prog tr { padding: 9px 0; border-bottom: 1px solid var(--rule); }
  .prog td { padding: 0 !important; }
  .prog tr.brk td.f { display: none; }
}

/* ── speakers and organizers ──
   All cards at once; hovering a card (tapping, on a phone) shows the bio as a
   note with a hairline on the side facing the photo (scope.js, part 3). */
.sec.wide { position: relative; }
.people { --cols: 3; --pw: 124px; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 34px 26px; margin-top: 30px; }
.people[data-group="organizers"] { --pw: 116px; }
.pcard { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 4px 6px 8px; -webkit-tap-highlight-color: transparent; transition: opacity .25s; }
.pcard.dim { opacity: .16; }
.pcard:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 6px; }
.ptext { display: flex; flex-direction: column; align-items: inherit; }
.pcard .pname { font-weight: 600; font-size: 17.5px; line-height: 1.3; color: var(--ink); }
.pcard .ptitle { font-size: 15px; line-height: 1.35; color: var(--ink); margin-top: 3px; }
.pcard .paff { font-size: 15px; line-height: 1.35; color: var(--ink2); margin-top: 2px; }
.pcard .pprev { font-size: 13.5px; line-height: 1.35; color: var(--ink2); margin-top: 4px; }
.pcard:hover .pname, .pcard.on .pname { color: var(--link); }

/* portraits: a halftone in the page's ink; the photo on hover */
.portrait { --ht-ink: var(--ink); position: relative; display: block; flex: none; overflow: hidden; background: var(--paper); }
.pcard .portrait { width: var(--pw); aspect-ratio: 4 / 5; margin: 9px 0 16px; }
.portrait img, .portrait canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .35s; }
.portrait canvas { pointer-events: none; }
.portrait img { filter: grayscale(1) contrast(1.05); opacity: 0; }
.pcard.on .portrait canvas { opacity: 0; }
.pcard.on .portrait img { opacity: 1; }
.portrait.plain canvas { display: none; }
.portrait.plain img { opacity: 1; }   /* photo shown as is when the halftone can't be drawn */

/* the bio: a note with a hairline on the side facing the photo */
.pnote { position: absolute; z-index: 4; background: var(--paper); box-shadow: 0 0 0 14px var(--paper);
  padding: 2px 4px 4px 22px; opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.pnote.on { opacity: 1; pointer-events: auto; }
.pnote::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--ink);
  transform: scaleY(0); transform-origin: top; transition: transform .3s ease .04s; }
.pnote.on::before { transform: scaleY(1); }
.pnote.from-right { padding: 2px 22px 4px 4px; }
.pnote.from-right::before { left: auto; right: 0; }
.pnote.from-top { padding-top: 18px; }
.pnote.from-top::after { content: ''; position: absolute; top: 0; left: var(--tick); width: 1px; height: 12px; background: var(--ink); }
.people > .pnote { position: relative; grid-column: 1 / -1; margin-top: -14px; box-shadow: none; }
.pnote.swap .pnote-body { opacity: 0; }
.pnote-body { transition: opacity .12s; }
.plead { position: absolute; z-index: 4; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .2s ease; }
.plead.on { transform: scaleX(1); }
.pd-body { font-size: 15.5px; line-height: 1.55; }
.pd-body h3 { font-size: 19px; line-height: 1.25; font-weight: 600; }
.pd-body h3 a { color: var(--ink); }
.pd-body h3 a:hover { color: var(--link); }
.pd-body .title { margin-top: 2px; }
.pd-body .aff { color: var(--ink2); }
.pd-body .prev { color: var(--ink2); font-size: 0.92em; }
.pd-body .status { font-family: var(--ui-font); font-size: 13px; color: var(--link); margin-left: 6px; white-space: nowrap; }
.pd-body .bio, .pd-body .role { margin-top: 10px; }
.pd-body .links { font-family: var(--ui-font); font-size: 13.5px; line-height: 1.7; color: var(--ink2); margin-top: 8px; }
.pd-body .links + .links { margin-top: 0; }
@media (max-width: 700px) {
  .people { --cols: 2; --pw: 92px; gap: 26px 14px; }
  .people[data-group="organizers"] { --pw: 92px; }
  .pcard .pname { font-size: 16px; }
  .pcard .ptitle, .pcard .paff { font-size: 13.5px; }
  .pd-body { font-size: 15.5px; }
}

/* ── references ── */
.refs { list-style: none; font-size: 15px; line-height: 1.45; overflow-wrap: break-word; }
.refs a { overflow-wrap: anywhere; }
.refs li { padding-left: 1.6em; text-indent: -1.6em; text-align: left; hyphens: manual; }
.refs li + li { margin-top: 0.65em; }
.refs i { font-style: italic; }   /* the one place italics are used: the titles of the works cited */
/* a citation in the text jumps here; the entry it points to is marked for a moment */
.refs li { scroll-margin-top: 72px; border-radius: 4px; }
.refs li:target { animation: refmark 2.6s ease-out; }
@keyframes refmark { 0%, 35% { background: var(--wash); box-shadow: 0 0 0 6px var(--wash); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .refs li:target { animation: none; background: var(--wash); box-shadow: 0 0 0 6px var(--wash); } }

/* ── get involved ── */
.roles { margin-top: 1em; }
.roles dt { font-weight: 600; margin-top: 0.8em; }
.roles dd { margin: 0.1em 0 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 1.6em; }
.cta { font-family: var(--ui-font); font-size: 15px; font-weight: 500; color: var(--paper); background: var(--ink);
  border: 1px solid var(--ink); border-radius: 999px; padding: 8px 20px; transition: background .15s, color .15s; }
.cta:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.cta-note { font-family: var(--ui-font); font-size: 13.5px; color: var(--ink2); }