/* Generated by scripts/port-brand-pages.py from GraphonAI/graphon-brand. Do not edit by hand. */
/* Research: the blog index and its posts, in the site's paper, ink and soft serif. The post's video map keeps its
   own layout and code; only its colors and type are the site's: sections in the elephant painting's blue-green,
   events in its ochre, the playhead in ink and the scrubber in painted cyan. */

/* ---- index: one row per post, a frame from it beside the title ---- */
.rs-list { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 96px; }
.rs-item { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: center; text-decoration: none; color: var(--ink); border-top: 1px solid var(--ink); padding-top: 28px; }
.rs-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--faint); }
.rs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.rs-item:hover .rs-thumb img { transform: scale(1.03); }
.rs-txt { display: grid; gap: 10px; }
.rs-txt .mono { font-size: 12px; color: var(--muted); }
.rs-txt h2 { margin: 0; font: var(--dw) clamp(28px, 3vw, 40px)/1.08 var(--display); font-variation-settings: var(--dfv); letter-spacing: calc(-.03em * var(--dt)); max-width: 640px; }
.rs-txt p { margin: 0; font-size: 17px; color: var(--muted); max-width: 560px; }
.rs-go { font: var(--dw) 18px/1.2 var(--display); font-variation-settings: var(--dfv); }
.rs-item:hover .rs-go, .rs-item:focus-visible .rs-go { text-decoration: underline; text-decoration-color: #10A9B0; text-underline-offset: 4px; }
@media (max-width: 800px) { .rs-item { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

/* ---- post ---- */
.rs-hero .wrap { max-width: calc(680px + 2 * var(--gutter)); }
.rs-hero h1 { max-width: 860px; text-wrap: balance; }
.rs-eyebrow { margin: 0 0 18px; font: 400 12px var(--mono); color: var(--muted); }
.rs-eyebrow a { color: var(--muted); }
.rs-post { display: grid; gap: 48px; padding: 48px 0 24px; }
.rs-post .wrap { max-width: 1040px; }
.prose.wrap { max-width: calc(680px + 2 * var(--gutter)); width: 100%; display: grid; gap: 20px; }
.prose p { margin: 0; font-size: 18px; line-height: 1.68; text-wrap: pretty; }
.prose h2 { margin: 18px 0 0; font: var(--dw) 32px/1.1 var(--display); font-variation-settings: var(--dfv); letter-spacing: calc(-.03em * var(--dt)); }
.prose a { color: inherit; text-decoration: underline; text-decoration-color: #10A9B0; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { background: rgba(16, 169, 176, .14); }
.prose a:focus-visible { outline: 2px solid #10A9B0; outline-offset: 2px; }

/* ---- the video map ---- */
.vmap { --line: var(--faint); --panel: #FBF8F1; --bar: var(--paper); --accent: #10A9B0;
  --sec: #668F95; --sec2: #8FAEB2; --evt: #C9962F; --evt2: #EAB858; --head: #111111; --font-mono: "DM Mono", ui-monospace, monospace;
  display: grid; gap: 48px; }
[data-theme="dark"] .vmap { --panel: #161614; --head: #EEECE6; --sec2: #4C6B70; --evt2: #9C7A30; }
.vmap figure { margin: 0; display: grid; gap: 14px; }
.figtitle { margin: 0; font: var(--dw) 26px/1.15 var(--display); font-variation-settings: var(--dfv); letter-spacing: calc(-.02em * var(--dt)); }
.video-box { position: relative; background: #111; overflow: hidden; aspect-ratio: 16 / 9; cursor: pointer; }
.video-box video { width: 100%; height: 100%; display: block; }
.video-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; padding-left: 4px;
  font-size: 22px; color: #111; background: var(--cyan-paint); box-shadow: inset 0 0 0 1px var(--cyan-edge); border-radius: 22%; pointer-events: none; transition: opacity .2s; }
.video-box.playing .video-play { opacity: 0; }
.video-unit { display: grid; }
.video-unit .video-box { margin-left: var(--gut, 78px); }
.panel { background: var(--panel); border: 1px solid var(--ink); padding: 18px 20px; min-width: 0; }
.panel.attached { background: none; border: 0; padding: 0; }
.panel.attached .timeline-foot { padding-left: var(--gut, 78px); }
.credit { font-size: 13px; color: var(--muted); border-left: 2px solid var(--ink); padding-left: 12px; }
.hint { font: 400 12px/1 var(--mono); color: var(--muted); }
.timeline-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 32px; }
.canvas-box { position: relative; width: 100%; }
.canvas-box canvas { display: block; width: 100%; cursor: crosshair; touch-action: pan-y; }
.vmap button { font: 400 12px/1 var(--mono); color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 0; padding: 8px 11px; cursor: pointer; white-space: nowrap; }
.vmap button:hover { background: #FBF8F1; }
.vmap button.sec { box-shadow: inset 3px 0 0 var(--sec); }
.vmap button.evt { box-shadow: inset 3px 0 0 var(--evt); }
.vmap button.play { min-width: 40px; background: var(--cyan-paint); color: #111; }
.vmap select.rate { font: 400 12px/1 var(--mono); color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 0; padding: 7px 6px; cursor: pointer; }
.vmap button:focus-visible, .vmap canvas:focus-visible, .vmap select.rate:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Figure 2: the section and the event at one instant */
.lens { display: grid; gap: 14px; }
.band { display: grid; grid-template-columns: 112px 192px 1fr; gap: 18px; align-items: start; }
.band .tag { display: grid; gap: 8px; }
.band .tag strong { font: var(--dw) 20px/1.1 var(--display); font-variation-settings: var(--dfv); }
.band .tag small { font: 400 11px/1.3 var(--mono); color: var(--muted); }
.band .body { display: contents; }
.band img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--faint); }
.band .txt { min-width: 0; display: grid; gap: 6px; align-content: start; }
.band .time { font: 400 12px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.band .summary { font-size: 15px; line-height: 1.55; }
.wave { display: block; width: 100px; height: 28px; }
.wave path { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.band.sec .wave path { stroke: var(--sec); }
.band.evt .wave path { stroke: var(--evt); }
.band + .band { border-top: 1px solid var(--faint); padding-top: 14px; }

/* the floating playhead: an ink-edged bar on paper, like the answer cards */
.player { position: fixed; z-index: 10; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  width: min(1040px, calc(100% - 32px)); background: var(--bar); border: 1px solid var(--ink); box-shadow: 0 12px 36px rgba(17, 17, 17, .16);
  padding: 12px 16px; display: grid; gap: 10px; transition: opacity .2s, transform .2s; }
.player.off { opacity: 0; transform: translate(-50%, 16px); pointer-events: none; }
.player .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.player .clock { font: var(--dw) 24px/1 var(--display); font-variation-settings: var(--dfv); font-variant-numeric: tabular-nums; margin: 0 8px; }
.player .where { font: 400 12px/1.3 var(--mono); color: var(--muted); margin-left: auto; text-align: right; }
.player .where b { font-weight: 500; }
.player .where .s { color: var(--sec); }
.player .where .e { color: var(--evt); }
.player .grp { display: flex; gap: 6px; }
.track { position: relative; height: 22px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.track .rail { position: absolute; left: 0; right: 0; top: calc(50% - 2px); height: 4px; background: var(--faint); overflow: hidden; }
.track .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.track .tick { position: absolute; top: calc(50% - 7px); width: 1px; height: 14px; background: var(--sec); opacity: .7; }
.track .knob { position: absolute; top: calc(50% - 8px); width: 16px; height: 16px; margin-left: -8px; border-radius: 22%; background: var(--cyan-paint); box-shadow: inset 0 0 0 1px var(--cyan-edge); }
.speed { font: 400 11px/1 var(--mono); color: var(--muted); min-height: 11px; }
.speed b { color: var(--ink); font-weight: 500; }
@media (pointer: coarse) {
  .player button, .player select { min-height: 40px; }
  .track { height: 40px; }
  .track .knob { width: 24px; height: 24px; margin-left: -12px; top: calc(50% - 12px); }
}
/* the speed ladder over the drag point: up means finer */
.ladder { position: fixed; z-index: 30; pointer-events: none; width: 150px; margin-left: -75px; display: flex; flex-direction: column-reverse; opacity: 0; transition: opacity .15s; font: 400 11px/1.2 var(--mono); }
.ladder.on { opacity: 1; }
.ladder .rung { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-bottom: 0; opacity: .55; }
.ladder .rung:first-child { border-bottom: 1px solid var(--ink); }
.ladder .rung.cur { opacity: 1; background: var(--cyan-paint); color: #111; }
.ladder .rung small { color: var(--muted); }
.ladder .up { text-align: center; color: var(--ink); font-size: 18px; line-height: 1; padding-bottom: 4px; animation: nudge 1.2s ease-in-out infinite; }
.ladder.top .up { visibility: hidden; }
@keyframes nudge { 50% { transform: translateY(-5px); } }
.tip { position: fixed; z-index: 20; pointer-events: none; max-width: 340px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink);
  padding: 10px 12px; font-size: 13px; line-height: 1.45; box-shadow: 0 6px 24px rgba(17, 17, 17, .14); }
.tip b { font: 400 11px/1 var(--mono); color: var(--muted); display: block; margin-bottom: 6px; }

@media (max-width: 720px) {
  .band { grid-template-columns: 1fr; gap: 10px; }
  .band .tag { display: flex; align-items: center; gap: 10px; }
  .band .tag .wave { width: 64px; height: 20px; }
  .player { padding: 10px 12px; gap: 8px; }
  .player .row { display: grid; grid-template-columns: auto auto auto 1fr; column-gap: 8px; row-gap: 8px; grid-template-areas: "play rate clock clock" "where where where where" "g1 g1 g2 g2"; }
  .player .play { grid-area: play; } .player .rate { grid-area: rate; }
  .player .clock { grid-area: clock; margin: 0; font-size: 20px; }
  .player .where { grid-area: where; white-space: nowrap; font-size: 11px; text-align: left; margin-left: 0; }
  .player .where .of { display: none; }
  .player .g1 { grid-area: g1; } .player .g2 { grid-area: g2; justify-self: end; }
  .player button { padding: 8px 10px; }
  .speed { display: none; }
  .prose p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .ladder .up { animation: none; } .player, .ladder { transition: none; } }
/* the byline: the authors' names, then their pictures as small overlapping circles */
.rs-by { margin-top: 22px; display: grid; gap: 10px; }
.rs-by p { margin: 0; font: 400 13px var(--mono); color: var(--muted); }
.rs-faces { display: flex; }
.rs-faces > * { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); object-fit: cover; display: block; }
.rs-faces > * + * { margin-left: -12px; }
.rs-initials { display: grid !important; place-items: center; background: #668F95; color: var(--paper); font: 500 14px var(--mono); }
.rs-faces > :first-child { position: relative; z-index: 1; }   /* the first author sits on top */
