      /* what the page assumes of its host: no body margin, fluid images, [hidden] means hidden */
      :root {
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
      }
      body {
        margin: 0;
      }
      img {
        max-width: 100%;
      }
      [hidden] {
        display: none !important;
      }
/* Sofia Sans and Sofia Sans Extra Condensed, SIL Open Font License 1.1 (fonts/OFL.txt): Google Fonts' latin and latin-ext subsets, served from this site. */
@font-face {
  font-family: 'Sofia Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/sofia-sans-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/sofia-sans-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/sofia-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/sofia-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/sofia-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/sofia-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/sofia-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/sofia-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/sofia-sans-extra-condensed-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/sofia-sans-extra-condensed-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/sofia-sans-extra-condensed-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/sofia-sans-extra-condensed-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

      :root {
        color-scheme: light;
        --field: #e4e9ed;
        --ink: #0e1317;
        --ink-2: #4d5964;
        --ink-3: #7a8691;
        --rule: #c2cbd2;
        --well: #d8dfe4;
        /* FoldRay's own accent, from the app */
        --accent: #3ad6bb;
        --accent-hover: #2cc4a9;
        --accent-ink: #05231d;
        --sans: "Sofia Sans", "Helvetica Neue", Arial, sans-serif;
        --cond:
          "Sofia Sans Extra Condensed", "Arial Narrow", "Roboto Condensed",
          sans-serif;
        --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
        --gutter: max(24px, 7.5vw);
        /* the viewer; a dark render's ground settles to --night */
        --lb-bg: #e4e9ed;
        --lb-ink: #0e1317;
        --lb-ink-2: #4d5964;
        --lb-line: #aab4bc;
        --lb-hover: #d8dfe4;
        --night: #1c2023;
      }

      /* placeholders */
      .ph {
        position: relative;
        display: block;
      }
      .ph::before {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--lq) center/contain no-repeat;
        filter: blur(14px);
        opacity: 0.55;
        transition: opacity 0.5s;
      }
      .ph.ok::before {
        opacity: 0;
      }
      .ph img {
        position: relative;
        display: block;
        width: 100%;
        height: auto;
        opacity: 0;
        transition: opacity 0.45s;
      }
      .ph.ok img {
        opacity: 1;
      }

      /* the viewer */
      /* The picture has the whole window; the caption and the buttons lie over it, with no ground of
   their own, so a zoomed picture runs behind them. */
      .lb {
        position: fixed;
        inset: 0;
        z-index: 100;
        background: var(--lb-bg);
        color: var(--lb-ink);
        transition:
          background-color 0.6s ease,
          color 0.6s ease;
      }
      .lb.dark {
        --lb-bg: var(--night);
        --lb-ink: #e3e8ec;
        --lb-ink-2: #98a3ac;
        --lb-line: #465058;
        --lb-hover: #2a2f33;
        transition-duration: 2.4s;
        transition-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
      }
      .lb-stage {
        position: absolute;
        inset: 0;
        overflow: hidden;
        touch-action: none;
        cursor: zoom-in;
      }
      .lb-stage.zoomed {
        cursor: grab;
      }
      .lb-stage.outside {
        cursor: default;
      }
      .lb-stage.dragging {
        cursor: grabbing;
      }
      .lb-lq,
      .lb-img {
        position: absolute;
        left: 50%;
        top: 50%;
        max-width: none;
        user-select: none;
        -webkit-user-drag: none;
        transform-origin: 50% 50%;
      }
      .lb-lq {
        filter: blur(20px);
        opacity: 0.6;
      }
      .lb-stage.eased .lb-img,
      .lb-stage.eased .lb-lq {
        transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
      }
      .lb-bar {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
        gap: 12px 28px;
        padding: 14px max(16px, 2.2vw) calc(18px + env(safe-area-inset-bottom, 0px));
        pointer-events: none;
      }
      .lb-bar > * {
        pointer-events: auto;
      }
      /* Over a zoomed picture the words keep a feathered patch of the ground, and each button a ground
   of its own. */
      .lb-cap,
      .lb-res {
        position: relative;
        z-index: 0;
        text-shadow:
          0 0 2px var(--lb-bg),
          0 0 6px var(--lb-bg);
      }
      .lb-cap::before,
      .lb-res::before {
        content: "";
        position: absolute;
        inset: -6px -12px;
        z-index: -1;
        background: var(--lb-bg);
        border-radius: 14px;
        filter: blur(10px);
        opacity: 0.82;
        pointer-events: none;
        transition: background-color 0.6s ease;
      }
      .lb.dark :is(.lb-cap, .lb-res)::before {
        transition-duration: 2.4s;
        transition-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
      }
      .lb-cap {
        max-width: 46rem;
        font-size: 0.9375rem;
        line-height: 1.45;
        color: var(--lb-ink-2);
      }
      .lb-cap b {
        display: block;
        font: 800 1.6rem/1 var(--cond);
        color: var(--lb-ink);
        margin-bottom: 6px;
      }
      .lb-cap a {
        color: inherit;
      }
      .lb-tools {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
      }
      .lb-res {
        font-variant-numeric: tabular-nums;
        color: var(--lb-ink-2);
        margin-right: 10px;
        white-space: nowrap;
      }
      .lb-b {
        font: inherit;
        color: inherit;
        background: var(--lb-bg);
        border: 1px solid var(--lb-line);
        padding: 7px 12px;
        cursor: pointer;
        line-height: 1.1;
      }
      .lb-cap,
      .lb-cap b,
      .lb-res,
      .lb-b {
        transition:
          color 0.6s ease,
          background-color 0.6s ease,
          border-color 0.6s ease,
          text-shadow 0.6s ease;
      }
      .lb.dark :is(.lb-cap, .lb-cap b, .lb-res, .lb-b) {
        transition-duration: 2.4s;
        transition-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
      }
      .lb-b:hover {
        background: var(--lb-hover);
        transition-duration: 0.15s;
      }
      .lb-b[aria-pressed="true"] {
        background: var(--lb-ink);
        color: var(--lb-bg);
        border-color: var(--lb-ink);
      }
      .lb-b.lb-open {
        background: var(--accent);
        color: var(--accent-ink);
        border-color: var(--accent);
        font-weight: 600;
      }
      .lb-b.lb-open:hover {
        background: var(--accent-hover);
        border-color: var(--accent-hover);
      }
      .lb-b:focus-visible,
      .lb-stage:focus-visible {
        outline: 2px solid var(--lb-ink);
        outline-offset: 2px;
      }
      .lb-stage:focus-visible {
        outline-offset: -2px;
      }

      .toast {
        position: fixed;
        left: 50%;
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        transform: translate(-50%, 12px);
        opacity: 0;
        pointer-events: none;
        z-index: 200;
        max-width: min(34rem, calc(100vw - 32px));
        padding: 12px 16px;
        background: var(--ink);
        color: #fff;
        font: 500 0.9375rem/1.4 var(--sans);
        transition:
          opacity 0.2s,
          transform 0.2s;
      }
      .toast.on {
        opacity: 1;
        transform: translate(-50%, 0);
      }

      @media (prefers-reduced-motion: reduce) {
        .ph::before,
        .ph img,
        .toast,
        .lb-stage.eased .lb-img,
        .lb-stage.eased .lb-lq {
          transition: none;
        }
      }

      html {
        scroll-behavior: smooth;
      }
      @media (prefers-reduced-motion: reduce) {
        html {
          scroll-behavior: auto;
        }
      }
      body {
        background: var(--field);
        color: var(--ink);
        font: 400 1rem/1.6 var(--sans);
        -webkit-font-smoothing: antialiased;
      }
      a {
        color: inherit;
        text-underline-offset: 0.2em;
        text-decoration-thickness: 1px;
      }
      button {
        font: inherit;
        color: inherit;
      }
      :focus-visible {
        outline: 2px solid var(--ink);
        outline-offset: 3px;
      }
      .quiet:focus-visible {
        outline: none;
      }
      .wrap {
        padding-inline: var(--gutter);
        max-width: 1280px;
        margin-inline: auto;
      }
      h1,
      h2,
      h3 {
        text-wrap: balance;
      }

      .cta {
        display: inline-flex;
        align-items: center;
        gap: 0.5em;
        background: var(--accent);
        color: var(--accent-ink);
        text-decoration: none;
        font: 600 0.9375rem/1 var(--sans);
        padding: 0.55em 0.85em;
        border: 1px solid var(--accent);
        white-space: nowrap;
        transition:
          background-color 0.15s,
          border-color 0.15s;
      }
      .cta:hover {
        background: var(--accent-hover);
        border-color: var(--accent-hover);
      }
      .cta svg {
        width: 1em;
        height: 1em;
        flex: none;
        transition: transform 0.2s;
      }
      .cta:hover svg {
        transform: translateX(2px);
      }
      .cta-lg {
        font-size: 1rem;
        padding: 0.75em 1.1em;
      }
      .cta:focus-visible {
        outline-color: var(--ink);
      }

      .top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px 24px;
        flex-wrap: wrap;
        padding-block: 14px 0;
        font: 500 0.9375rem/1.3 var(--sans);
      }
      .brandline {
        display: flex;
        align-items: baseline;
        gap: 12px;
      }
      /* The mark is centred on the name, which alone sets the baseline .ver sits on, and overhangs
   the line box rather than heightening the bar. Home has both large below. */
      .brand {
        display: inline-flex;
        align-items: baseline;
        gap: 10px;
        font: 800 1.6rem/1 var(--cond);
        text-decoration: none;
      }
      .brand img {
        align-self: center;
        width: auto;
        height: 34px;
        margin-block: calc(0.5em - 17px);
      }
      body[data-route="home"] .brand {
        display: none;
      }
      .ver {
        color: var(--ink-2);
        font-weight: 400;
      }
      .top nav {
        display: flex;
        align-items: center;
        gap: 10px 24px;
        flex-wrap: wrap;
      }
      .top nav a:not(.cta) {
        text-decoration: none;
        color: var(--ink-2);
        transition: color 0.15s;
      }
      .top nav a:not(.cta):hover {
        color: var(--ink);
      }
      .top nav a[aria-current] {
        color: var(--ink);
        text-decoration: underline;
        text-decoration-thickness: 1.5px;
        text-underline-offset: 0.4em;
      }

      /* --m is the em the wordmark was drawn at alone, and the section keeps that box, top of l to
   foot of y (868 units), so it and the line-up that rises to its top stay as they were. The logo
   and the word's capitals are centred in it. */
      .intro {
        --m: calc(0.9 * 655 / 683 * clamp(4.8rem, 13.6vw, 12.4rem));
        display: flex;
        align-items: flex-start;
        height: calc(0.868 * var(--m));
        padding-block: clamp(20px, 3.2vw, 38px) clamp(16px, 1.7vw, 24px);
      }
      .intro-logo {
        flex: none;
        width: auto;
        height: calc(0.78 * var(--m));
        margin: calc((0.868 - 0.78) / 2 * var(--m)) calc(0.13 * var(--m)) 0 0;
      }
      .intro .mark {
        font-size: calc(0.86 * var(--m));
        margin-top: calc((0.868 - 0.86 * 0.683) / 2 * var(--m));
      }
      /* The wordmark is outlines (wordmark.py) sized in em, its box running from the top of l to the
   foot of y. F and R stand at 90% of the height the live type gave them; the outlines raise them
   from 655 units to 683. It sits above the line-up, whose box rises over its lower half and would
   take the drag that selects it, and is only as wide as the word, so it covers no render. */
      .mark {
        position: relative;
        z-index: 1;
        width: fit-content;
        font-size: calc(0.9 * 655 / 683 * clamp(4.8rem, 13.6vw, 12.4rem));
        line-height: 0;
        margin: 0;
      }
      .mark svg {
        position: relative;
        display: block;
        max-width: 100%;
        height: auto;
        fill: currentColor;
        pointer-events: none;
      }
      /* The word itself, unseen under the outlines, so the wordmark selects and copies as text. The
   offsets put its F and baseline on the outlines' (the font's ascent is 900, its descent 300). */
      .mark-text {
        position: absolute;
        left: -0.039em;
        top: -0.051em;
        font: 800 1em/0.868 var(--cond);
        letter-spacing: -0.01em;
        white-space: nowrap;
        color: transparent;
      }
      .mark-text::selection {
        color: transparent;
        background: Highlight;
      }

      /* the line-up: one scale for everything */
      .line {
        position: relative;
        padding-top: 20px;
      }
      /* The rule under the wordmark. Where the line-up is laid out in place it stops short of the two
   largest renders, and the tallest rises through where it would have run. */
      .rule {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 1px;
        background: var(--ink);
      }
      .lede-block {
        max-width: 30rem;
        margin-bottom: 32px;
      }
      .lede-block p {
        margin: 0 0 0.9em;
        color: var(--ink-2);
        text-wrap: pretty;
      }
      .lede-block .lede {
        font: 500 clamp(1.15rem, 1.5vw, 1.3rem)/1.3 var(--sans);
        color: var(--ink);
        text-wrap: balance;
      }
      .go {
        display: flex;
        align-items: center;
        gap: 14px 26px;
        flex-wrap: wrap;
        font-weight: 600;
        margin-top: 1.4em;
      }
      .line.placed .lede-block {
        position: absolute;
        left: 0;
        z-index: 1;
        margin: 0;
        max-width: none;
      }
      .line.placed .bar100 {
        position: absolute;
        z-index: 1;
        padding-top: 0;
      }
      .scroller {
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
      }
      .track {
        position: relative;
        display: flex;
        align-items: flex-end;
        gap: calc(var(--gap) * 1px);
        width: max-content;
        min-width: 100%;
        padding-top: 20px;
        padding-bottom: 20px;
        border-bottom: 1.5px solid var(--ink);
      }
      .line.placed .track {
        padding-top: 0;
      }
      .item {
        display: block;
        background: none;
        border: 0;
        padding: 0;
        cursor: zoom-in;
        width: calc(var(--aw) * var(--ppa) * 1px);
        margin-left: calc(var(--dx, 0) * var(--ppa) * 1px);
        flex: none;
      }
      .item .ph {
        width: 100%;
        transition: opacity 0.2s;
      }
      .track.hovering .item:not(:hover):not(:focus-visible) .ph {
        opacity: 0.38;
      }
      .bar100 {
        display: flex;
        align-items: center;
        gap: 6px;
        padding-top: 10px;
        font: 500 0.75rem/1 var(--sans);
        color: var(--ink-3);
        white-space: nowrap;
      }
      /* border-box, so the bracket's outer edges are exactly 100 Å apart */
      .bar100 i {
        display: block;
        box-sizing: border-box;
        height: 6px;
        border: 1px solid var(--ink-3);
        border-top: 0;
        width: calc(100 * var(--ppa) * 1px);
      }
      .tip {
        position: absolute;
        left: 0;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: baseline;
        gap: 8px;
        white-space: nowrap;
        pointer-events: none;
        font: 500 0.9375rem/1 var(--sans);
        color: var(--ink);
        opacity: 0;
        transition: opacity 0.12s;
      }
      .tip.on {
        opacity: 1;
      }
      .sc {
        font-variant-caps: small-caps;
      }
      .tip b {
        font-weight: 600;
        font-variant-numeric: tabular-nums;
      }
      /* Sofia Sans draws a flat tilde that reads as a minus */
      .approx {
        font-family: "Helvetica Neue", Arial, sans-serif;
        font-weight: 400;
        font-size: 1.1em;
        margin-right: 0.08em;
      }

      /* gallery */
      .sec {
        margin-top: clamp(56px, 7.2vw, 96px);
      }
      #gallery {
        margin-top: clamp(44px, 4.8vw, 70px);
      }
      #gallery .sec-head {
        border-top: 0;
        padding-top: 0;
        grid-template-columns: auto auto;
      }
      .sec-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
        justify-content: space-between;
        align-items: end;
        gap: 12px 5vw;
        border-top: 1px solid var(--ink);
        padding-top: 18px;
      }
      .sec-head h2 {
        font: 800 clamp(2.6rem, 5.6vw, 4.8rem)/0.85 var(--cond);
        margin: 0;
      }
      .sec-head p {
        margin: 0;
        color: var(--ink-2);
      }
      .grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(44px, 4.8vw, 76px) clamp(20px, 2.8vw, 44px);
        margin-top: clamp(38px, 4vw, 58px);
      }
      .work {
        margin: 0;
        min-width: 0;
      }
      .well {
        display: grid;
        place-items: end center;
        aspect-ratio: 1/1;
        width: 100%;
        background: none;
        border: 0;
        padding: 0;
        cursor: zoom-in;
      }
      .well .ph {
        width: calc(var(--fw) * 92%);
      }
      .work.lay {
        grid-column: 1/-1;
        width: min(100%, 74%);
        justify-self: center;
      }
      .work.lay .well {
        aspect-ratio: auto;
        display: block;
      }
      .work.lay .well .ph {
        width: 100%;
      }
      .work figcaption {
        display: flex;
        flex-direction: column;
        gap: 1px;
        margin-top: 14px;
      }
      .work .nm {
        font: 600 1rem/1.35 var(--sans);
      }
      .work .cr {
        font-size: 0.9375rem;
        line-height: 1.45;
        color: var(--ink-2);
      }
      .work .cr a {
        color: inherit;
        text-decoration: none;
      }
      .work .cr a:hover {
        color: var(--ink);
        text-decoration: underline;
      }

      /* about, from the guide's first chapter */
      .about {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
        gap: 32px 5vw;
        margin-top: 32px;
      }
      .about .main p {
        margin: 0 0 1em;
        max-width: 60ch;
        color: var(--ink-2);
      }
      .about .main p:first-child {
        font: 500 clamp(1.15rem, 1.5vw, 1.3rem)/1.35 var(--sans);
        color: var(--ink);
        max-width: 46ch;
        text-wrap: pretty;
        margin-bottom: 0.9em;
      }
      .about h3 {
        font: 700 1.3rem/1 var(--cond);
        margin: 0 0 12px;
        letter-spacing: 0.01em;
      }
      .about ul {
        list-style: none;
        margin: 0 0 18px;
        padding: 0;
      }
      .about li {
        padding-block: 9px;
        border-top: 1px solid var(--rule);
        color: var(--ink-2);
        font-size: 0.9375rem;
        line-height: 1.5;
      }
      .about li:last-child {
        border-bottom: 1px solid var(--rule);
      }
      .about .needs p {
        margin: 0;
        font-size: 0.9375rem;
        color: var(--ink-2);
      }
      .about .links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 24px;
        margin-top: 22px;
        font-weight: 600;
      }

      /* how to cite FoldRay, the last thing on the main page */
      .cite {
        margin-top: clamp(48px, 6vw, 80px);
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 16px;
        padding: 14px 18px;
        background: var(--well);
        font-size: 0.9375rem;
        line-height: 1.45;
      }
      .cite p {
        margin: 0;
      }
      .cite-lead {
        color: var(--ink-2);
      }
      .cite-text {
        flex: 1 1 auto;
        color: var(--ink);
        font-weight: 500;
      }
      .cite-copy {
        font: 600 0.875rem/1 var(--sans);
        color: var(--ink);
        background: none;
        border: 1px solid var(--ink-3);
        padding: 0.5em 0.85em;
        cursor: pointer;
        transition: border-color 0.15s;
      }
      .cite-copy:hover {
        border-color: var(--ink);
      }
      .cite.flash {
        animation: cite-flash 1.8s ease-out;
      }
      @keyframes cite-flash {
        from {
          box-shadow: 0 0 0 2px var(--accent);
        }
        to {
          box-shadow: 0 0 0 2px transparent;
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .cite.flash {
          animation: none;
        }
      }

      /* guide and licence */
      .page-head {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: space-between;
        align-items: end;
        gap: 14px 5vw;
        padding-block: clamp(32px, 4.8vw, 70px) 20px;
        border-bottom: 1px solid var(--ink);
        margin-bottom: clamp(32px, 4vw, 52px);
      }
      .page-head h1 {
        font: 800 clamp(3.6rem, 8.8vw, 7.6rem)/0.8 var(--cond);
        margin: 0 0 0 -0.03em;
        letter-spacing: -0.01em;
      }
      .page-head p {
        margin: 0;
        color: var(--ink-2);
        max-width: 26rem;
      }
      @media (min-width: 1180px) {
        .page-head p {
          max-width: none;
          white-space: nowrap;
        }
        .page-head .long + p {
          max-width: 26rem;
          white-space: normal;
        }
      }
      .doc {
        display: grid;
        grid-template-columns: minmax(0, 14rem) minmax(0, 38rem);
        gap: 0 clamp(28px, 6.4vw, 112px);
        padding-bottom: clamp(52px, 6.4vw, 96px);
      }
      .toc {
        position: sticky;
        top: 24px;
        align-self: start;
        max-height: calc(100vh - 48px);
        overflow: auto;
      }
      .toc ol {
        list-style: none;
        margin: 0;
        padding: 0;
        counter-reset: c;
      }
      .toc li {
        counter-increment: c;
        display: grid;
        grid-template-columns: 2em 1fr;
        padding-block: 3px;
        font-size: 0.9375rem;
        line-height: 1.4;
      }
      .toc li::before {
        content: counter(c);
        font: 700 1rem/1.4 var(--cond);
        color: var(--ink-3);
      }
      .toc a {
        text-decoration: none;
      }
      .toc a:hover,
      .toc a.on {
        text-decoration: underline;
      }
      .ch,
      .lsec {
        scroll-margin-top: 24px;
        padding-bottom: clamp(30px, 3.2vw, 44px);
      }
      .text h2 {
        font: 700 clamp(1.9rem, 2.9vw, 2.4rem)/0.95 var(--cond);
        margin: 0 0 0.5em;
        letter-spacing: 0.002em;
      }
      .text h3 {
        font: 600 1.125rem/1.3 var(--sans);
        margin: 1.8em 0 0.5em;
      }
      .text h4 {
        font: 600 1.0625rem/1.4 var(--sans);
        margin: 1.5em 0 0.3em;
      }
      .text p,
      .text ul,
      .text ol {
        margin: 0 0 1em;
      }
      .text ul,
      .text ol {
        padding-left: 1.2em;
      }
      .text li {
        margin-bottom: 0.3em;
      }
      .text .note {
        margin: 1.2em 0 1.4em;
        padding: 12px 16px;
        background: var(--well);
        border-left: 3px solid var(--accent);
      }
      .text li::marker {
        color: var(--ink-3);
      }
      /* The guide keeps a margin beside its text for the app's cards, each next to the paragraph
         about it; a window-wide screenshot spans text and margin. */
      .doc.guide {
        --side: 17rem;
        --gap: clamp(28px, 3.4vw, 56px);
        grid-template-columns: minmax(0, 12rem) minmax(0, 38rem) var(--side);
        gap: 0 var(--gap);
      }
      .doc.guide .ch {
        display: flow-root;
      }
      .shot {
        margin: 1.5em 0 1.7em;
      }
      .shot img {
        display: block;
        max-width: 100%;
        height: auto;
        border-radius: 6px;
        box-shadow:
          0 0 0 1px rgb(14 19 23 / 0.12),
          0 10px 24px -14px rgb(14 19 23 / 0.5);
      }
      .shot figcaption {
        margin-top: 9px;
        font-size: 0.8125rem;
        line-height: 1.35;
        color: var(--ink-3);
      }
      .shot.side {
        float: right;
        clear: right;
        width: var(--side);
        margin: 0.3em calc(-1 * (var(--side) + var(--gap))) 1.4em 0;
      }
      .shot.wide {
        clear: both;
        width: calc(100% + var(--side) + var(--gap));
      }
      .shot.wide img {
        width: 100%;
      }
      .tiles {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px 10px;
        margin: 1.2em 0 1.6em;
      }
      .tiles.c6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
      }
      .tiles figure {
        margin: 0;
      }
      .tiles img {
        display: block;
        width: 100%;
        height: auto;
        background: var(--night);
        border-radius: 8px;
      }
      .tiles figcaption {
        margin-top: 6px;
        font-size: 0.875rem;
        line-height: 1.3;
      }
      .tiles figcaption b {
        display: block;
      }
      .tiles figcaption span {
        display: block;
        color: var(--ink-2);
      }
      .text b {
        font-weight: 600;
      }
      #lic-toc li {
        grid-template-columns: 1fr;
      }
      #lic-toc li::before {
        content: none;
      }
      .lsec a {
        overflow-wrap: anywhere;
      }
      .doc.solo {
        grid-template-columns: minmax(0, 38rem);
      }
      .terms li {
        margin-bottom: 0.7em;
      }
      #lic-toc a.key {
        font-weight: 600;
      }
      pre.lic {
        font: 0.8125rem/1.55 var(--mono);
        background: var(--well);
        padding: 16px 18px;
        margin: 1em 0 1.6em;
        overflow: auto;
        max-height: 28em;
        white-space: pre;
      }
      #l-foldray pre.lic {
        max-height: none;
      }
      .lsec h3 {
        scroll-margin-top: 24px;
        font: 700 clamp(1.45rem, 2.1vw, 1.8rem)/1 var(--cond);
        margin: 2em 0 0.45em;
        letter-spacing: 0.005em;
      }
      .lsec .table td:first-child {
        white-space: normal;
      }
      #creds-pdb .id {
        font: 600 0.9375rem/1.5 var(--mono);
      }
      code {
        font: 0.88em/1 var(--mono);
        background: var(--well);
        padding: 0.14em 0.38em;
      }
      kbd {
        display: inline-block;
        font: 600 0.78rem/1 var(--sans);
        border: 1px solid #a9b3bb;
        border-bottom-width: 2px;
        border-radius: 3px;
        padding: 0.28em 0.45em;
        min-width: 1.7em;
        text-align: center;
        background: #f2f5f7;
      }
      .combo {
        white-space: nowrap;
      }
      .plus {
        color: var(--ink-3);
        padding-inline: 0.2em;
        font-size: 0.85em;
      }
      .table {
        overflow-x: auto;
        margin: 1.2em 0 1.6em;
      }
      table {
        border-collapse: collapse;
        width: 100%;
        font-size: 0.9375rem;
        line-height: 1.45;
      }
      th {
        text-align: left;
        font-weight: 600;
        padding: 0 1.2em 8px 0;
        border-bottom: 1.5px solid var(--ink);
        vertical-align: bottom;
      }
      td {
        padding: 9px 1.2em 9px 0;
        border-bottom: 1px solid var(--rule);
        vertical-align: top;
      }
      td:first-child {
        white-space: nowrap;
      }

      footer {
        border-top: 1px solid var(--ink);
        margin-top: clamp(56px, 7.2vw, 96px);
        padding-block: 22px 40px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px clamp(32px, 6vw, 96px);
        font-size: 0.875rem;
        line-height: 1.55;
        color: var(--ink-2);
      }
      footer > div:first-child {
        white-space: nowrap;
      }
      footer > div:last-child {
        max-width: 40rem;
        text-align: right;
        text-wrap: balance;
      }
      footer p {
        margin: 0 0 8px;
      }
      footer b {
        color: var(--ink);
        font-weight: 600;
      }
      footer a {
        color: var(--ink);
      }
      footer .pages {
        white-space: normal;
      }
      footer .sep {
        margin-inline: 0.6em;
      }
      body:not([data-route="home"]) footer {
        margin-top: 0;
      }

      @media (min-width: 1000px) {
        #gallery .sec-head p {
          max-width: 32rem;
          text-wrap: balance;
        }
      }
      @media (max-width: 1180px) {
        .doc.guide {
          grid-template-columns: minmax(0, 13rem) minmax(0, 38rem);
        }
        .shot.side {
          float: none;
          width: auto;
          margin: 1.4em 0 1.6em;
        }
        .shot.side img {
          max-width: min(100%, 17rem);
        }
        .shot.wide {
          width: auto;
        }
      }
      @media (max-width: 900px) {
        .grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        .about {
          grid-template-columns: minmax(0, 1fr);
        }
        .work.lay {
          width: 100%;
        }
        .sec-head,
        #gallery .sec-head,
        .page-head,
        .doc {
          grid-template-columns: minmax(0, 1fr);
        }
        footer {
          flex-direction: column;
        }
        footer .pages {
          display: flex;
          flex-wrap: wrap;
        }
        footer > div:last-child {
          text-align: left;
        }
        .toc {
          position: static;
          max-height: none;
          margin-bottom: 40px;
        }
        .doc.guide {
          grid-template-columns: minmax(0, 1fr);
        }
        .toc ol {
          columns: 2 12rem;
        }
      }
      @media (max-width: 560px) {
        .tiles {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        .tiles.c6 {
          grid-template-columns: repeat(3, minmax(0, 1fr));
        }
        .grid {
          grid-template-columns: minmax(0, 1fr);
        }
        .top nav {
          gap: 8px 18px;
        }
      }
