@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-v13-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/fonts/barlow-semi-condensed-v16-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/fonts/BarlowSemiCondensed-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/fonts/BarlowSemiCondensed-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Iosevka Term";
  src: url("/fonts/IosevkaTerm-Latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3edf5;
  --paper-raised: #fcf8fb;
  --ink: #22233b;
  --ink-soft: #41435f;
  --muted: #696a86;
  --line: #d4c4d6;
  --line-strong: #aa98b6;
  --toc-track-lit: rgb(255 255 255 / 80%);
  --toc-pointer-shadow: rgb(59 43 75 / 35%);
  --rust: #b76e79;
  --rust-dark: #7f4552;
  --lavender: #75659d;
  --teal: #4a6fa5;
  --teal-soft: #dfe8f5;
  --code: #fbf8fc;
  --code-text: #383650;
  --code-muted: #817b8b;
  --body-wash: rgba(255, 255, 255, 0.24);
  --surface-wash: rgba(255, 255, 255, 0.34);
  --control-bg: rgba(255, 255, 255, 0.55);
  --control-hover: rgba(255, 255, 255, 0.58);
  --header-line: rgba(170, 152, 182, 0.82);
  --selection: #dfb5c0;
  --button-bg: #22233b;
  --button-fg: #fff;
  --card-shadow: 0 14px 36px rgba(59, 43, 75, 0.08);
  --focus-ring: rgb(117 101 157 / 35%);
  --error-band: rgb(183 110 121 / 9%);
  --terminal-bg: #22233b;
  --terminal-text: #f7f1f8;
  --code-note-bg: var(--terminal-bg);
  --terminal-muted: #aaa4b5;
  --service-fill: #f4edf8;
  --radius: 14px;
  --radius-sm: 9px;
  --content: 1180px;
  --measure: 730px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --glow-a: rgb(183 110 121 / 16%);
  --glow-b: rgb(117 101 157 / 18%);
  --shadow-soft:
    0 1px 2px rgb(59 43 75 / 6%),
    0 4px 12px rgb(59 43 75 / 5%);
  --shadow-lift:
    0 1px 2px rgb(59 43 75 / 6%),
    0 12px 32px -6px rgb(59 43 75 / 14%),
    0 28px 60px -20px rgb(117 101 157 / 22%);
  --hairline-highlight: inset 0 1px 0 rgb(255 255 255 / 60%);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #1f2430;
    --paper-raised: #272d3b;
    --ink: #cbccc6;
    --ink-soft: #b7bbb5;
    --muted: #8f98a3;
    --line: #384151;
    --line-strong: #5c6773;
    --toc-track-lit: rgb(255 255 255 / 6%);
    --toc-pointer-shadow: rgb(0 0 0 / 60%);
    --rust: #f29e74;
    --rust-dark: #ffa759;
    --lavender: #d4bfff;
    --teal: #73d0ff;
    --teal-soft: #283f51;
    --code: #191e2a;
    --code-text: #cbccc6;
    --code-muted: #7a8490;
    --body-wash: rgba(255, 255, 255, 0.015);
    --surface-wash: rgba(255, 255, 255, 0.025);
    --control-bg: rgba(255, 255, 255, 0.055);
    --control-hover: rgba(255, 255, 255, 0.085);
    --header-line: rgba(92, 103, 115, 0.9);
    --selection: #33415e;
    --button-bg: #73d0ff;
    --button-fg: #1f2430;
    --card-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    --focus-ring: rgb(212 191 255 / 42%);
    --error-band: rgb(242 158 116 / 14%);
    --terminal-bg: #191e2a;
    --code-note-bg: #2c3344;
    --terminal-text: #cbccc6;
    --terminal-muted: #8f98a3;
    --service-fill: #302d46;
    --glow-a: rgb(242 158 116 / 9%);
    --glow-b: rgb(212 191 255 / 11%);
    --shadow-soft:
      0 1px 2px rgb(0 0 0 / 25%),
      0 4px 12px rgb(0 0 0 / 18%);
    --shadow-lift:
      0 1px 2px rgb(0 0 0 / 30%),
      0 14px 36px -8px rgb(0 0 0 / 45%),
      0 28px 60px -24px rgb(212 191 255 / 14%);
    --hairline-highlight: inset 0 1px 0 rgb(255 255 255 / 5%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(60rem 36rem at 12% -8rem, var(--glow-b), transparent 70%),
    radial-gradient(48rem 30rem at 92% -6rem, var(--glow-a), transparent 70%),
    linear-gradient(var(--body-wash), var(--body-wash)),
    var(--paper);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 1.125rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition:
    color 160ms var(--ease),
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    box-shadow 220ms var(--ease),
    transform 220ms var(--ease);
}

:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a:hover {
  color: var(--rust-dark);
}

button,
input,
textarea,
select {
  font: inherit;
}

code,
pre {
  font-family: "Iosevka Term", ui-monospace, monospace;
}

code:not(pre code) {
  padding: 0.08em 0.3em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--control-bg);
  font-size: 0.88em;
  white-space: nowrap;
}

::selection {
  background: var(--selection);
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 4px;
  background: var(--button-bg);
  color: var(--button-fg);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 3rem), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--header-line) 55%, transparent);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-image,
.hero-brand {
  display: block;
}

.brand-image {
  width: clamp(7.25rem, 15vw, 8.5rem);
}

.hero-brand {
  width: min(100%, 24rem);
}

/* The navigation is a row of plain links. The current section's link is
   marked by a faint panel behind it, which also shows under the pointer. */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.site-nav a {
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.98rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--control-hover);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 0 0 1px var(--line);
}

/* The GitHub mark sits apart from the section links, after a thin rule. */
.site-nav .nav-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding-inline: 0.6rem;
}

.site-nav .nav-icon::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 25%;
  bottom: 25%;
  border-left: 1px solid var(--line);
}

.site-nav .nav-icon svg {
  flex: none;
}

/* The QR key (see base.html) follows the navigation, as close to the
   GitHub mark as the navigation's links are to each other; the navigation
   takes the header's free space to its left (margin-left: auto), so that
   the two stay together at the right. On a phone the key sits at the right
   end of the logo's row instead. */
.share-key {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin-left: calc(0.35rem - 2rem);
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.share-key:hover {
  background: var(--control-hover);
  color: var(--ink);
}

.share-key svg {
  flex: none;
}

/* The QR code for the site's address (see base.html) is printed on a white
   card set into a small aluminium plate, like the home page's archetype
   plates, with the address engraved below it. The card is white in both
   themes, because a phone's camera reads dark modules on a light ground
   most reliably. The page behind the plate is dimmed and blurred. On a
   phone the QR code fills the screen on plain white instead, which gives a
   camera the largest bright area to read, with a note that a tap closes
   it. There the code spans the screen's width: the image carries the white
   quiet zone of 4 modules that a scanner needs around the code, so it
   needs no margin of its own. */
.share-qr {
  width: min(22rem, calc(100vw - 2rem));
  padding: 1.5rem 1.5rem 1rem;
  border: 1px solid var(--metal-edge);
  border-radius: 6px;
  background:
    var(--torx-a) left 4px top 4px / 7px no-repeat,
    var(--torx-b) right 4px top 4px / 7px no-repeat,
    var(--torx-c) left 4px bottom 4px / 7px no-repeat,
    var(--torx-d) right 4px bottom 4px / 7px no-repeat,
    var(--metal-grain) 0 0 / 64px 64px,
    var(--metal-face);
  box-shadow: var(--metal-bevel), var(--shadow-lift);
  color: var(--metal-ink);
}

.share-qr::backdrop {
  background: rgb(20 18 30 / 45%);
  backdrop-filter: blur(3px);
}

.share-qr img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: var(--display-recess), 1px -1px 0 var(--display-lip);
}

.share-qr p {
  margin: 0.8rem 0 0;
  font-family: "Iosevka Term", ui-monospace, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: var(--metal-engrave);
}

.share-qr .share-qr-hint {
  display: none;
}

@media (max-width: 640px) {
  .share-qr:popover-open {
    display: grid;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 1.5rem 0;
    place-content: center;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: #222226;
  }

  .share-qr img {
    width: min(100vw, 70dvh);
    border-radius: 0;
    box-shadow: none;
  }

  .share-qr p {
    font-size: 1.1rem;
    text-shadow: none;
  }

  .share-qr .share-qr-hint {
    display: block;
    margin-top: 2rem;
    color: #77727f;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0;
  }
}

main {
  min-height: calc(100vh - 160px);
}

.hero,
.page-hero,
.playground-main,
.home .section {
  position: relative;
  isolation: isolate;
}

/* Below the home page's hero the texture continues at half strength,
   fading out towards the sides of each section but not its top and
   bottom, so that it runs on from one section into the next. */
.home .section::before {
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}

/* Section dividers fade out towards both edges of the page. */
.hero,
.page-hero,
.section {
  border-image: linear-gradient(90deg, transparent, var(--line-strong) 25%, var(--line-strong) 75%, transparent) 1;
}

/* A texture of small pyramids behind each hero, and behind the whole of
   the playground page, faded out towards its edges. Each pyramid has a diamond base twice as tall as it is wide and is
   seen from directly above, so its four ridges form a vertical star around
   the apex. The base faces have luminosities 255 (upper right), 251 (upper
   left), 247 (lower right) and 243 (lower left): the lighting of an upright
   pyramid lit from the upper left, turned with the pyramid. Over the base
   faces, white sheens fade down the two lit faces from the apex, white
   highlights run along the upper and right ridges with a glint at the apex
   (the sheen, the upper ridge and the glint peak at pure white),
   and the shadow faces, the lower ridge and the valleys between pyramids are
   darkened, which makes the surface look glossy rather than matte.
   The darkening is drawn in the site's shadow tint, rgb(59 43 75), instead of
   black, so the shaded faces keep the page's violet hue instead of turning
   grey. A tint darkens less than black at the same opacity, so its opacity
   is raised by paper / (paper - tint) in Rec. 709 luma, a factor of 1.256,
   which keeps each base face at its luminosity: an overlay of opacity
   1.256 x (1 - L/255) multiplies the page colour by about L/255.
   The tile is a 2 by 4 viewBox. One pyramid is defined once and drawn at the
   tile centre and the four tile corners, so its gradients and lines continue
   across tile edges. A pyramid is 1ex wide and 2ex tall, where 1ex is the
   height of a lowercase letter in the body font, so its base covers 1ex
   squared, the same area as a square pyramid with 1ex sides, and the texture
   scales with the body text. The width is rounded
   to whole pixels and the height is twice the rounded width, because a
   fractional tile is resampled, which blurs the facets and leaves soft seams
   between tiles that read as a grid. scripts/pyramid-texture.py generates
   the light tile here and the dark tile below. */
.hero::before,
.page-hero::before,
.playground-main::before,
.home .section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2 4'><defs><linearGradient id='a' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='0.5' y2='-1'><stop offset='0' stop-color='white' stop-opacity='1'/><stop offset='0.8' stop-color='white' stop-opacity='0'/></linearGradient><linearGradient id='b' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='-0.5' y2='-1'><stop offset='0' stop-color='white' stop-opacity='0.3'/><stop offset='1' stop-color='white' stop-opacity='0'/></linearGradient><linearGradient id='c' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='0.5' y2='1'><stop offset='0' stop-color='rgb(59,43,75)' stop-opacity='0'/><stop offset='1' stop-color='rgb(59,43,75)' stop-opacity='0.0628'/></linearGradient><linearGradient id='d' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='-0.5' y2='1'><stop offset='0' stop-color='rgb(59,43,75)' stop-opacity='0'/><stop offset='1' stop-color='rgb(59,43,75)' stop-opacity='0.1131'/></linearGradient><linearGradient id='e' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='0' y2='-2'><stop offset='0' stop-color='white' stop-opacity='1'/><stop offset='1' stop-color='white' stop-opacity='0.25'/></linearGradient><linearGradient id='f' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1' y2='0'><stop offset='0' stop-color='white' stop-opacity='0.5'/><stop offset='1' stop-color='white' stop-opacity='0.1'/></linearGradient><linearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='0' y2='2'><stop offset='0' stop-color='rgb(59,43,75)' stop-opacity='0.1256'/><stop offset='1' stop-color='rgb(59,43,75)' stop-opacity='0.0377'/></linearGradient><linearGradient id='h' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='-1' y2='0'><stop offset='0' stop-color='rgb(59,43,75)' stop-opacity='0.0502'/><stop offset='1' stop-color='rgb(59,43,75)' stop-opacity='0.0126'/></linearGradient><radialGradient id='i'><stop offset='0' stop-color='white' stop-opacity='1'/><stop offset='1' stop-color='white' stop-opacity='0'/></radialGradient><g id='p' fill='none'><path d='M0,0 -1,0 0,-2Z' fill='rgb(59,43,75)' fill-opacity='0.0197'/><path d='M0,0 1,0 0,2Z' fill='rgb(59,43,75)' fill-opacity='0.0394'/><path d='M0,0 0,2 -1,0Z' fill='rgb(59,43,75)' fill-opacity='0.0591'/><path d='M0,0 0,-2 1,0Z' fill='url(%23a)'/><path d='M0,0 -1,0 0,-2Z' fill='url(%23b)'/><path d='M0,0 1,0 0,2Z' fill='url(%23c)'/><path d='M0,0 0,2 -1,0Z' fill='url(%23d)'/><path d='M0,0 0,-2' stroke='url(%23e)' stroke-width='0.06'/><path d='M0,0 1,0' stroke='url(%23f)' stroke-width='0.05'/><path d='M0,0 0,2' stroke='url(%23g)' stroke-width='0.05'/><path d='M0,0 -1,0' stroke='url(%23h)' stroke-width='0.04'/><path d='M-1,0 0,2 1,0' fill='none' stroke='rgb(59,43,75)' stroke-opacity='0.0628' stroke-width='0.04'/><circle cx='0.03' cy='-0.05' r='0.12' fill='url(%23i)'/></g></defs><use href='%23p' x='1' y='2'/><use href='%23p' x='0' y='0'/><use href='%23p' x='2' y='0'/><use href='%23p' x='0' y='4'/><use href='%23p' x='2' y='4'/></svg>");
  background-size: 1ex 2ex;
  background-size: round(1ex, 1px) calc(2 * round(1ex, 1px));
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 35%, #000 20%, transparent 75%);
  pointer-events: none;
}

/* In dark mode the base faces lighten the page instead, with the brightest
   face lightened most. They are drawn in the dark-mode lavender,
   rgb(212 191 255), instead of white, so the lightened faces keep the
   page's hue, with their opacity raised by 1.334 for the same reason as the
   light-mode tint. The shading is stronger because darkening an already
   dark page shows less, and the white highlights are a fifth as strong
   because white on a dark page shows far more. The light direction is the
   same as in light mode. */
@media (prefers-color-scheme: dark) {
  .hero::before,
  .page-hero::before,
  .playground-main::before,
  .home .section::before {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2 4'><defs><linearGradient id='a' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='0.5' y2='-1'><stop offset='0' stop-color='white' stop-opacity='0.15'/><stop offset='0.6' stop-color='white' stop-opacity='0'/></linearGradient><linearGradient id='b' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='-0.5' y2='-1'><stop offset='0' stop-color='white' stop-opacity='0.06'/><stop offset='1' stop-color='white' stop-opacity='0'/></linearGradient><linearGradient id='c' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='0.5' y2='1'><stop offset='0' stop-color='black' stop-opacity='0'/><stop offset='1' stop-color='black' stop-opacity='0.09'/></linearGradient><linearGradient id='d' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='-0.5' y2='1'><stop offset='0' stop-color='black' stop-opacity='0'/><stop offset='1' stop-color='black' stop-opacity='0.162'/></linearGradient><linearGradient id='e' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='0' y2='-2'><stop offset='0' stop-color='white' stop-opacity='0.19'/><stop offset='1' stop-color='white' stop-opacity='0.05'/></linearGradient><linearGradient id='f' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1' y2='0'><stop offset='0' stop-color='white' stop-opacity='0.1'/><stop offset='1' stop-color='white' stop-opacity='0.02'/></linearGradient><linearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='0' y2='2'><stop offset='0' stop-color='black' stop-opacity='0.18'/><stop offset='1' stop-color='black' stop-opacity='0.054'/></linearGradient><linearGradient id='h' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='-1' y2='0'><stop offset='0' stop-color='black' stop-opacity='0.072'/><stop offset='1' stop-color='black' stop-opacity='0.018'/></linearGradient><radialGradient id='i'><stop offset='0' stop-color='white' stop-opacity='0.18'/><stop offset='1' stop-color='white' stop-opacity='0'/></radialGradient><g id='p' fill='none'><path d='M0,0 0,-2 1,0Z' fill='rgb(212,191,255)' fill-opacity='0.1005'/><path d='M0,0 -1,0 0,-2Z' fill='rgb(212,191,255)' fill-opacity='0.067'/><path d='M0,0 1,0 0,2Z' fill='rgb(212,191,255)' fill-opacity='0.0335'/><path d='M0,0 0,-2 1,0Z' fill='url(%23a)'/><path d='M0,0 -1,0 0,-2Z' fill='url(%23b)'/><path d='M0,0 1,0 0,2Z' fill='url(%23c)'/><path d='M0,0 0,2 -1,0Z' fill='url(%23d)'/><path d='M0,0 0,-2' stroke='url(%23e)' stroke-width='0.06'/><path d='M0,0 1,0' stroke='url(%23f)' stroke-width='0.05'/><path d='M0,0 0,2' stroke='url(%23g)' stroke-width='0.05'/><path d='M0,0 -1,0' stroke='url(%23h)' stroke-width='0.04'/><path d='M-1,0 0,2 1,0' fill='none' stroke='black' stroke-opacity='0.09' stroke-width='0.04'/><circle cx='0.03' cy='-0.05' r='0.12' fill='url(%23i)'/></g></defs><use href='%23p' x='1' y='2'/><use href='%23p' x='0' y='0'/><use href='%23p' x='2' y='0'/><use href='%23p' x='0' y='4'/><use href='%23p' x='2' y='4'/></svg>");
  }
}

/* The writing on each textured hero, the playground's introduction and the
   home page's path cards sit on panes of frosted glass that stand off the
   texture, fastened at their corners by Phillips PH2 pan-head screws. Each
   pane is lit like the pyramids, from above and slightly to the right: the
   pane's top edge catches the light and it casts a soft shadow to the
   lower left, and each screw head has its highlight to the upper right and
   its own shadow to the lower left. The glass blurs the texture seen
   through it. The screws are drawn as background layers of the pane, each
   with its cross recess at a different angle, so the markup is unchanged.
   scripts/screw.py generates each screw from its angle. */
:root {
  --screw-a: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><defs><radialGradient id='s'><stop offset='0' stop-color='rgb(40,30,55)' stop-opacity='0.45'/><stop offset='1' stop-color='rgb(40,30,55)' stop-opacity='0'/></radialGradient><radialGradient id='h' fx='0.66' fy='0.3'><stop offset='0' stop-color='white'/><stop offset='0.35' stop-color='rgb(214,209,220)'/><stop offset='0.8' stop-color='rgb(142,135,155)'/><stop offset='1' stop-color='rgb(93,86,105)'/></radialGradient><clipPath id='c'><rect x='7.3' y='10.85' width='9.4' height='2.3' rx='0.5' transform='rotate(12.0 12 12)'/><rect x='10.85' y='7.3' width='2.3' height='9.4' rx='0.5' transform='rotate(12.0 12 12)'/></clipPath></defs><circle cx='10.6' cy='13.4' r='10.5' fill='url(%23s)'/><circle cx='12' cy='12' r='8' fill='url(%23h)'/><circle cx='12' cy='12' r='7.6' fill='none' stroke='rgb(75,69,87)' stroke-opacity='0.5' stroke-width='0.8'/><circle cx='12' cy='12' r='6.3' fill='none' stroke='white' stroke-opacity='0.3' stroke-width='0.6'/><g clip-path='url(%23c)'><g fill='rgb(120,112,138)'><rect x='7.3' y='10.85' width='9.4' height='2.3' rx='0.5' transform='rotate(12.0 12 12)'/><rect x='10.85' y='7.3' width='2.3' height='9.4' rx='0.5' transform='rotate(12.0 12 12)'/></g><g transform='translate(0.55 -0.55)' fill='rgb(38,33,48)'><rect x='7.3' y='10.85' width='9.4' height='2.3' rx='0.5' transform='rotate(12.0 12 12)'/><rect x='10.85' y='7.3' width='2.3' height='9.4' rx='0.5' transform='rotate(12.0 12 12)'/></g></g><circle cx='12.2' cy='11.8' r='0.9' fill='rgb(20,17,26)'/></svg>");
  --screw-b: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><defs><radialGradient id='s'><stop offset='0' stop-color='rgb(40,30,55)' stop-opacity='0.45'/><stop offset='1' stop-color='rgb(40,30,55)' stop-opacity='0'/></radialGradient><radialGradient id='h' fx='0.66' fy='0.3'><stop offset='0' stop-color='white'/><stop offset='0.35' stop-color='rgb(214,209,220)'/><stop offset='0.8' stop-color='rgb(142,135,155)'/><stop offset='1' stop-color='rgb(93,86,105)'/></radialGradient><clipPath id='c'><rect x='7.3' y='10.85' width='9.4' height='2.3' rx='0.5' transform='rotate(47.0 12 12)'/><rect x='10.85' y='7.3' width='2.3' height='9.4' rx='0.5' transform='rotate(47.0 12 12)'/></clipPath></defs><circle cx='10.6' cy='13.4' r='10.5' fill='url(%23s)'/><circle cx='12' cy='12' r='8' fill='url(%23h)'/><circle cx='12' cy='12' r='7.6' fill='none' stroke='rgb(75,69,87)' stroke-opacity='0.5' stroke-width='0.8'/><circle cx='12' cy='12' r='6.3' fill='none' stroke='white' stroke-opacity='0.3' stroke-width='0.6'/><g clip-path='url(%23c)'><g fill='rgb(120,112,138)'><rect x='7.3' y='10.85' width='9.4' height='2.3' rx='0.5' transform='rotate(47.0 12 12)'/><rect x='10.85' y='7.3' width='2.3' height='9.4' rx='0.5' transform='rotate(47.0 12 12)'/></g><g transform='translate(0.55 -0.55)' fill='rgb(38,33,48)'><rect x='7.3' y='10.85' width='9.4' height='2.3' rx='0.5' transform='rotate(47.0 12 12)'/><rect x='10.85' y='7.3' width='2.3' height='9.4' rx='0.5' transform='rotate(47.0 12 12)'/></g></g><circle cx='12.2' cy='11.8' r='0.9' fill='rgb(20,17,26)'/></svg>");
  --screw-c: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><defs><radialGradient id='s'><stop offset='0' stop-color='rgb(40,30,55)' stop-opacity='0.45'/><stop offset='1' stop-color='rgb(40,30,55)' stop-opacity='0'/></radialGradient><radialGradient id='h' fx='0.66' fy='0.3'><stop offset='0' stop-color='white'/><stop offset='0.35' stop-color='rgb(214,209,220)'/><stop offset='0.8' stop-color='rgb(142,135,155)'/><stop offset='1' stop-color='rgb(93,86,105)'/></radialGradient><clipPath id='c'><rect x='7.3' y='10.85' width='9.4' height='2.3' rx='0.5' transform='rotate(71.0 12 12)'/><rect x='10.85' y='7.3' width='2.3' height='9.4' rx='0.5' transform='rotate(71.0 12 12)'/></clipPath></defs><circle cx='10.6' cy='13.4' r='10.5' fill='url(%23s)'/><circle cx='12' cy='12' r='8' fill='url(%23h)'/><circle cx='12' cy='12' r='7.6' fill='none' stroke='rgb(75,69,87)' stroke-opacity='0.5' stroke-width='0.8'/><circle cx='12' cy='12' r='6.3' fill='none' stroke='white' stroke-opacity='0.3' stroke-width='0.6'/><g clip-path='url(%23c)'><g fill='rgb(120,112,138)'><rect x='7.3' y='10.85' width='9.4' height='2.3' rx='0.5' transform='rotate(71.0 12 12)'/><rect x='10.85' y='7.3' width='2.3' height='9.4' rx='0.5' transform='rotate(71.0 12 12)'/></g><g transform='translate(0.55 -0.55)' fill='rgb(38,33,48)'><rect x='7.3' y='10.85' width='9.4' height='2.3' rx='0.5' transform='rotate(71.0 12 12)'/><rect x='10.85' y='7.3' width='2.3' height='9.4' rx='0.5' transform='rotate(71.0 12 12)'/></g></g><circle cx='12.2' cy='11.8' r='0.9' fill='rgb(20,17,26)'/></svg>");
  --screw-d: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><defs><radialGradient id='s'><stop offset='0' stop-color='rgb(40,30,55)' stop-opacity='0.45'/><stop offset='1' stop-color='rgb(40,30,55)' stop-opacity='0'/></radialGradient><radialGradient id='h' fx='0.66' fy='0.3'><stop offset='0' stop-color='white'/><stop offset='0.35' stop-color='rgb(214,209,220)'/><stop offset='0.8' stop-color='rgb(142,135,155)'/><stop offset='1' stop-color='rgb(93,86,105)'/></radialGradient><clipPath id='c'><rect x='7.3' y='10.85' width='9.4' height='2.3' rx='0.5' transform='rotate(29.0 12 12)'/><rect x='10.85' y='7.3' width='2.3' height='9.4' rx='0.5' transform='rotate(29.0 12 12)'/></clipPath></defs><circle cx='10.6' cy='13.4' r='10.5' fill='url(%23s)'/><circle cx='12' cy='12' r='8' fill='url(%23h)'/><circle cx='12' cy='12' r='7.6' fill='none' stroke='rgb(75,69,87)' stroke-opacity='0.5' stroke-width='0.8'/><circle cx='12' cy='12' r='6.3' fill='none' stroke='white' stroke-opacity='0.3' stroke-width='0.6'/><g clip-path='url(%23c)'><g fill='rgb(120,112,138)'><rect x='7.3' y='10.85' width='9.4' height='2.3' rx='0.5' transform='rotate(29.0 12 12)'/><rect x='10.85' y='7.3' width='2.3' height='9.4' rx='0.5' transform='rotate(29.0 12 12)'/></g><g transform='translate(0.55 -0.55)' fill='rgb(38,33,48)'><rect x='7.3' y='10.85' width='9.4' height='2.3' rx='0.5' transform='rotate(29.0 12 12)'/><rect x='10.85' y='7.3' width='2.3' height='9.4' rx='0.5' transform='rotate(29.0 12 12)'/></g></g><circle cx='12.2' cy='11.8' r='0.9' fill='rgb(20,17,26)'/></svg>");
  --torx-a: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><defs><radialGradient id='s'><stop offset='0.7' stop-color='rgb(40,30,55)' stop-opacity='0.4'/><stop offset='1' stop-color='rgb(40,30,55)' stop-opacity='0'/></radialGradient><radialGradient id='h' fx='0.62' fy='0.35' r='0.6'><stop offset='0' stop-color='rgb(246,244,249)'/><stop offset='0.6' stop-color='rgb(190,184,200)'/><stop offset='1' stop-color='rgb(120,113,134)'/></radialGradient><clipPath id='c'><polygon points='16.75,12.67 16.71,12.87 16.63,13.07 16.51,13.25 16.36,13.42 16.17,13.56 15.68,13.56 15.41,13.63 15.22,13.71 15.06,13.80 14.93,13.90 14.82,14.01 14.72,14.12 14.63,14.25 14.56,14.38 14.49,14.53 14.44,14.71 14.41,14.92 14.41,15.20 14.52,15.67 14.43,15.89 14.30,16.07 14.16,16.23 13.99,16.36 13.80,16.45 13.60,16.51 13.39,16.54 13.17,16.53 12.95,16.48 12.73,16.39 12.49,15.97 12.30,15.77 12.13,15.64 11.97,15.55 11.82,15.49 11.67,15.44 11.52,15.42 11.37,15.40 11.21,15.40 11.05,15.42 10.87,15.47 10.68,15.54 10.44,15.68 10.08,16.02 9.85,16.05 9.62,16.03 9.41,15.98 9.22,15.90 9.04,15.78 8.89,15.64 8.76,15.47 8.66,15.28 8.59,15.07 8.56,14.83 8.80,14.41 8.88,14.14 8.91,13.93 8.91,13.75 8.89,13.59 8.85,13.44 8.80,13.29 8.74,13.16 8.66,13.02 8.56,12.89 8.43,12.76 8.27,12.62 8.03,12.49 7.56,12.35 7.42,12.16 7.32,11.96 7.26,11.75 7.24,11.54 7.25,11.33 7.29,11.13 7.37,10.93 7.49,10.75 7.64,10.58 7.83,10.44 8.32,10.44 8.59,10.37 8.78,10.29 8.94,10.20 9.07,10.10 9.18,9.99 9.28,9.88 9.37,9.75 9.44,9.62 9.51,9.47 9.56,9.29 9.59,9.08 9.59,8.80 9.48,8.33 9.57,8.11 9.70,7.93 9.84,7.77 10.01,7.64 10.20,7.55 10.40,7.49 10.61,7.46 10.83,7.47 11.05,7.52 11.27,7.61 11.51,8.03 11.70,8.23 11.87,8.36 12.03,8.45 12.18,8.51 12.33,8.56 12.48,8.58 12.63,8.60 12.79,8.60 12.95,8.58 13.13,8.53 13.32,8.46 13.56,8.32 13.92,7.98 14.15,7.95 14.38,7.97 14.59,8.02 14.78,8.10 14.96,8.22 15.11,8.36 15.24,8.53 15.34,8.72 15.41,8.93 15.44,9.17 15.20,9.59 15.12,9.86 15.09,10.07 15.09,10.25 15.11,10.41 15.15,10.56 15.20,10.71 15.26,10.84 15.34,10.98 15.44,11.11 15.57,11.24 15.73,11.38 15.97,11.51 16.44,11.65 16.58,11.84 16.68,12.04 16.74,12.25 16.76,12.46'/></clipPath></defs><circle cx='11' cy='13' r='11.5' fill='url(%23s)'/><circle cx='12' cy='12' r='10' fill='url(%23h)'/><circle cx='12' cy='12' r='9.5' fill='none' stroke='rgb(70,64,82)' stroke-opacity='0.5' stroke-width='0.7'/><g clip-path='url(%23c)'><g fill='rgb(120,112,138)'><polygon points='16.75,12.67 16.71,12.87 16.63,13.07 16.51,13.25 16.36,13.42 16.17,13.56 15.68,13.56 15.41,13.63 15.22,13.71 15.06,13.80 14.93,13.90 14.82,14.01 14.72,14.12 14.63,14.25 14.56,14.38 14.49,14.53 14.44,14.71 14.41,14.92 14.41,15.20 14.52,15.67 14.43,15.89 14.30,16.07 14.16,16.23 13.99,16.36 13.80,16.45 13.60,16.51 13.39,16.54 13.17,16.53 12.95,16.48 12.73,16.39 12.49,15.97 12.30,15.77 12.13,15.64 11.97,15.55 11.82,15.49 11.67,15.44 11.52,15.42 11.37,15.40 11.21,15.40 11.05,15.42 10.87,15.47 10.68,15.54 10.44,15.68 10.08,16.02 9.85,16.05 9.62,16.03 9.41,15.98 9.22,15.90 9.04,15.78 8.89,15.64 8.76,15.47 8.66,15.28 8.59,15.07 8.56,14.83 8.80,14.41 8.88,14.14 8.91,13.93 8.91,13.75 8.89,13.59 8.85,13.44 8.80,13.29 8.74,13.16 8.66,13.02 8.56,12.89 8.43,12.76 8.27,12.62 8.03,12.49 7.56,12.35 7.42,12.16 7.32,11.96 7.26,11.75 7.24,11.54 7.25,11.33 7.29,11.13 7.37,10.93 7.49,10.75 7.64,10.58 7.83,10.44 8.32,10.44 8.59,10.37 8.78,10.29 8.94,10.20 9.07,10.10 9.18,9.99 9.28,9.88 9.37,9.75 9.44,9.62 9.51,9.47 9.56,9.29 9.59,9.08 9.59,8.80 9.48,8.33 9.57,8.11 9.70,7.93 9.84,7.77 10.01,7.64 10.20,7.55 10.40,7.49 10.61,7.46 10.83,7.47 11.05,7.52 11.27,7.61 11.51,8.03 11.70,8.23 11.87,8.36 12.03,8.45 12.18,8.51 12.33,8.56 12.48,8.58 12.63,8.60 12.79,8.60 12.95,8.58 13.13,8.53 13.32,8.46 13.56,8.32 13.92,7.98 14.15,7.95 14.38,7.97 14.59,8.02 14.78,8.10 14.96,8.22 15.11,8.36 15.24,8.53 15.34,8.72 15.41,8.93 15.44,9.17 15.20,9.59 15.12,9.86 15.09,10.07 15.09,10.25 15.11,10.41 15.15,10.56 15.20,10.71 15.26,10.84 15.34,10.98 15.44,11.11 15.57,11.24 15.73,11.38 15.97,11.51 16.44,11.65 16.58,11.84 16.68,12.04 16.74,12.25 16.76,12.46'/></g><g transform='translate(0.8 -0.8)' fill='rgb(32,28,40)'><polygon points='16.75,12.67 16.71,12.87 16.63,13.07 16.51,13.25 16.36,13.42 16.17,13.56 15.68,13.56 15.41,13.63 15.22,13.71 15.06,13.80 14.93,13.90 14.82,14.01 14.72,14.12 14.63,14.25 14.56,14.38 14.49,14.53 14.44,14.71 14.41,14.92 14.41,15.20 14.52,15.67 14.43,15.89 14.30,16.07 14.16,16.23 13.99,16.36 13.80,16.45 13.60,16.51 13.39,16.54 13.17,16.53 12.95,16.48 12.73,16.39 12.49,15.97 12.30,15.77 12.13,15.64 11.97,15.55 11.82,15.49 11.67,15.44 11.52,15.42 11.37,15.40 11.21,15.40 11.05,15.42 10.87,15.47 10.68,15.54 10.44,15.68 10.08,16.02 9.85,16.05 9.62,16.03 9.41,15.98 9.22,15.90 9.04,15.78 8.89,15.64 8.76,15.47 8.66,15.28 8.59,15.07 8.56,14.83 8.80,14.41 8.88,14.14 8.91,13.93 8.91,13.75 8.89,13.59 8.85,13.44 8.80,13.29 8.74,13.16 8.66,13.02 8.56,12.89 8.43,12.76 8.27,12.62 8.03,12.49 7.56,12.35 7.42,12.16 7.32,11.96 7.26,11.75 7.24,11.54 7.25,11.33 7.29,11.13 7.37,10.93 7.49,10.75 7.64,10.58 7.83,10.44 8.32,10.44 8.59,10.37 8.78,10.29 8.94,10.20 9.07,10.10 9.18,9.99 9.28,9.88 9.37,9.75 9.44,9.62 9.51,9.47 9.56,9.29 9.59,9.08 9.59,8.80 9.48,8.33 9.57,8.11 9.70,7.93 9.84,7.77 10.01,7.64 10.20,7.55 10.40,7.49 10.61,7.46 10.83,7.47 11.05,7.52 11.27,7.61 11.51,8.03 11.70,8.23 11.87,8.36 12.03,8.45 12.18,8.51 12.33,8.56 12.48,8.58 12.63,8.60 12.79,8.60 12.95,8.58 13.13,8.53 13.32,8.46 13.56,8.32 13.92,7.98 14.15,7.95 14.38,7.97 14.59,8.02 14.78,8.10 14.96,8.22 15.11,8.36 15.24,8.53 15.34,8.72 15.41,8.93 15.44,9.17 15.20,9.59 15.12,9.86 15.09,10.07 15.09,10.25 15.11,10.41 15.15,10.56 15.20,10.71 15.26,10.84 15.34,10.98 15.44,11.11 15.57,11.24 15.73,11.38 15.97,11.51 16.44,11.65 16.58,11.84 16.68,12.04 16.74,12.25 16.76,12.46'/></g></g></svg>");
  --torx-b: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><defs><radialGradient id='s'><stop offset='0.7' stop-color='rgb(40,30,55)' stop-opacity='0.4'/><stop offset='1' stop-color='rgb(40,30,55)' stop-opacity='0'/></radialGradient><radialGradient id='h' fx='0.62' fy='0.35' r='0.6'><stop offset='0' stop-color='rgb(246,244,249)'/><stop offset='0.6' stop-color='rgb(190,184,200)'/><stop offset='1' stop-color='rgb(120,113,134)'/></radialGradient><clipPath id='c'><polygon points='15.83,14.89 15.69,15.04 15.53,15.18 15.34,15.28 15.13,15.35 14.89,15.39 14.46,15.15 14.20,15.08 13.99,15.06 13.80,15.06 13.64,15.09 13.49,15.12 13.35,15.18 13.21,15.24 13.08,15.32 12.95,15.42 12.82,15.55 12.69,15.72 12.56,15.96 12.43,16.43 12.24,16.58 12.04,16.68 11.83,16.74 11.62,16.77 11.42,16.76 11.21,16.72 11.01,16.64 10.83,16.53 10.66,16.38 10.51,16.20 10.50,15.71 10.43,15.44 10.34,15.25 10.25,15.09 10.15,14.96 10.04,14.85 9.92,14.76 9.80,14.67 9.66,14.60 9.51,14.53 9.33,14.49 9.12,14.46 8.85,14.46 8.38,14.59 8.16,14.50 7.97,14.38 7.81,14.23 7.68,14.06 7.58,13.88 7.52,13.68 7.48,13.47 7.49,13.25 7.53,13.03 7.62,12.81 8.04,12.56 8.23,12.36 8.36,12.19 8.45,12.03 8.51,11.88 8.55,11.73 8.58,11.58 8.59,11.43 8.58,11.27 8.56,11.11 8.51,10.93 8.43,10.74 8.29,10.50 7.95,10.15 7.92,9.92 7.93,9.70 7.97,9.48 8.05,9.29 8.17,9.11 8.31,8.96 8.47,8.82 8.66,8.72 8.87,8.65 9.11,8.61 9.54,8.85 9.80,8.92 10.01,8.94 10.20,8.94 10.36,8.91 10.51,8.88 10.65,8.82 10.79,8.76 10.92,8.68 11.05,8.58 11.18,8.45 11.31,8.28 11.44,8.04 11.57,7.57 11.76,7.42 11.96,7.32 12.17,7.26 12.38,7.23 12.58,7.24 12.79,7.28 12.99,7.36 13.17,7.47 13.34,7.62 13.49,7.80 13.50,8.29 13.57,8.56 13.66,8.75 13.75,8.91 13.85,9.04 13.96,9.15 14.08,9.24 14.20,9.33 14.34,9.40 14.49,9.47 14.67,9.51 14.88,9.54 15.15,9.54 15.62,9.41 15.84,9.50 16.03,9.62 16.19,9.77 16.32,9.94 16.42,10.12 16.48,10.32 16.52,10.53 16.51,10.75 16.47,10.97 16.38,11.19 15.96,11.44 15.77,11.64 15.64,11.81 15.55,11.97 15.49,12.12 15.45,12.27 15.42,12.42 15.41,12.57 15.42,12.73 15.44,12.89 15.49,13.07 15.57,13.26 15.71,13.50 16.05,13.85 16.08,14.08 16.07,14.30 16.03,14.52 15.95,14.71'/></clipPath></defs><circle cx='11' cy='13' r='11.5' fill='url(%23s)'/><circle cx='12' cy='12' r='10' fill='url(%23h)'/><circle cx='12' cy='12' r='9.5' fill='none' stroke='rgb(70,64,82)' stroke-opacity='0.5' stroke-width='0.7'/><g clip-path='url(%23c)'><g fill='rgb(120,112,138)'><polygon points='15.83,14.89 15.69,15.04 15.53,15.18 15.34,15.28 15.13,15.35 14.89,15.39 14.46,15.15 14.20,15.08 13.99,15.06 13.80,15.06 13.64,15.09 13.49,15.12 13.35,15.18 13.21,15.24 13.08,15.32 12.95,15.42 12.82,15.55 12.69,15.72 12.56,15.96 12.43,16.43 12.24,16.58 12.04,16.68 11.83,16.74 11.62,16.77 11.42,16.76 11.21,16.72 11.01,16.64 10.83,16.53 10.66,16.38 10.51,16.20 10.50,15.71 10.43,15.44 10.34,15.25 10.25,15.09 10.15,14.96 10.04,14.85 9.92,14.76 9.80,14.67 9.66,14.60 9.51,14.53 9.33,14.49 9.12,14.46 8.85,14.46 8.38,14.59 8.16,14.50 7.97,14.38 7.81,14.23 7.68,14.06 7.58,13.88 7.52,13.68 7.48,13.47 7.49,13.25 7.53,13.03 7.62,12.81 8.04,12.56 8.23,12.36 8.36,12.19 8.45,12.03 8.51,11.88 8.55,11.73 8.58,11.58 8.59,11.43 8.58,11.27 8.56,11.11 8.51,10.93 8.43,10.74 8.29,10.50 7.95,10.15 7.92,9.92 7.93,9.70 7.97,9.48 8.05,9.29 8.17,9.11 8.31,8.96 8.47,8.82 8.66,8.72 8.87,8.65 9.11,8.61 9.54,8.85 9.80,8.92 10.01,8.94 10.20,8.94 10.36,8.91 10.51,8.88 10.65,8.82 10.79,8.76 10.92,8.68 11.05,8.58 11.18,8.45 11.31,8.28 11.44,8.04 11.57,7.57 11.76,7.42 11.96,7.32 12.17,7.26 12.38,7.23 12.58,7.24 12.79,7.28 12.99,7.36 13.17,7.47 13.34,7.62 13.49,7.80 13.50,8.29 13.57,8.56 13.66,8.75 13.75,8.91 13.85,9.04 13.96,9.15 14.08,9.24 14.20,9.33 14.34,9.40 14.49,9.47 14.67,9.51 14.88,9.54 15.15,9.54 15.62,9.41 15.84,9.50 16.03,9.62 16.19,9.77 16.32,9.94 16.42,10.12 16.48,10.32 16.52,10.53 16.51,10.75 16.47,10.97 16.38,11.19 15.96,11.44 15.77,11.64 15.64,11.81 15.55,11.97 15.49,12.12 15.45,12.27 15.42,12.42 15.41,12.57 15.42,12.73 15.44,12.89 15.49,13.07 15.57,13.26 15.71,13.50 16.05,13.85 16.08,14.08 16.07,14.30 16.03,14.52 15.95,14.71'/></g><g transform='translate(0.8 -0.8)' fill='rgb(32,28,40)'><polygon points='15.83,14.89 15.69,15.04 15.53,15.18 15.34,15.28 15.13,15.35 14.89,15.39 14.46,15.15 14.20,15.08 13.99,15.06 13.80,15.06 13.64,15.09 13.49,15.12 13.35,15.18 13.21,15.24 13.08,15.32 12.95,15.42 12.82,15.55 12.69,15.72 12.56,15.96 12.43,16.43 12.24,16.58 12.04,16.68 11.83,16.74 11.62,16.77 11.42,16.76 11.21,16.72 11.01,16.64 10.83,16.53 10.66,16.38 10.51,16.20 10.50,15.71 10.43,15.44 10.34,15.25 10.25,15.09 10.15,14.96 10.04,14.85 9.92,14.76 9.80,14.67 9.66,14.60 9.51,14.53 9.33,14.49 9.12,14.46 8.85,14.46 8.38,14.59 8.16,14.50 7.97,14.38 7.81,14.23 7.68,14.06 7.58,13.88 7.52,13.68 7.48,13.47 7.49,13.25 7.53,13.03 7.62,12.81 8.04,12.56 8.23,12.36 8.36,12.19 8.45,12.03 8.51,11.88 8.55,11.73 8.58,11.58 8.59,11.43 8.58,11.27 8.56,11.11 8.51,10.93 8.43,10.74 8.29,10.50 7.95,10.15 7.92,9.92 7.93,9.70 7.97,9.48 8.05,9.29 8.17,9.11 8.31,8.96 8.47,8.82 8.66,8.72 8.87,8.65 9.11,8.61 9.54,8.85 9.80,8.92 10.01,8.94 10.20,8.94 10.36,8.91 10.51,8.88 10.65,8.82 10.79,8.76 10.92,8.68 11.05,8.58 11.18,8.45 11.31,8.28 11.44,8.04 11.57,7.57 11.76,7.42 11.96,7.32 12.17,7.26 12.38,7.23 12.58,7.24 12.79,7.28 12.99,7.36 13.17,7.47 13.34,7.62 13.49,7.80 13.50,8.29 13.57,8.56 13.66,8.75 13.75,8.91 13.85,9.04 13.96,9.15 14.08,9.24 14.20,9.33 14.34,9.40 14.49,9.47 14.67,9.51 14.88,9.54 15.15,9.54 15.62,9.41 15.84,9.50 16.03,9.62 16.19,9.77 16.32,9.94 16.42,10.12 16.48,10.32 16.52,10.53 16.51,10.75 16.47,10.97 16.38,11.19 15.96,11.44 15.77,11.64 15.64,11.81 15.55,11.97 15.49,12.12 15.45,12.27 15.42,12.42 15.41,12.57 15.42,12.73 15.44,12.89 15.49,13.07 15.57,13.26 15.71,13.50 16.05,13.85 16.08,14.08 16.07,14.30 16.03,14.52 15.95,14.71'/></g></g></svg>");
  --torx-c: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><defs><radialGradient id='s'><stop offset='0.7' stop-color='rgb(40,30,55)' stop-opacity='0.4'/><stop offset='1' stop-color='rgb(40,30,55)' stop-opacity='0'/></radialGradient><radialGradient id='h' fx='0.62' fy='0.35' r='0.6'><stop offset='0' stop-color='rgb(246,244,249)'/><stop offset='0.6' stop-color='rgb(190,184,200)'/><stop offset='1' stop-color='rgb(120,113,134)'/></radialGradient><clipPath id='c'><polygon points='16.48,13.72 16.39,13.91 16.27,14.08 16.11,14.23 15.93,14.36 15.71,14.46 15.24,14.35 14.96,14.35 14.75,14.39 14.58,14.45 14.43,14.51 14.29,14.59 14.17,14.68 14.06,14.78 13.95,14.90 13.86,15.03 13.77,15.19 13.69,15.39 13.63,15.66 13.63,16.14 13.49,16.33 13.33,16.49 13.15,16.61 12.95,16.69 12.75,16.74 12.54,16.76 12.33,16.74 12.12,16.68 11.92,16.58 11.73,16.44 11.58,15.98 11.44,15.74 11.30,15.58 11.17,15.46 11.04,15.36 10.90,15.28 10.76,15.22 10.62,15.17 10.47,15.14 10.30,15.12 10.12,15.12 9.91,15.15 9.65,15.24 9.23,15.48 8.99,15.46 8.78,15.40 8.58,15.30 8.41,15.17 8.27,15.02 8.15,14.85 8.06,14.65 8.01,14.45 7.99,14.22 8.02,13.99 8.34,13.63 8.48,13.39 8.55,13.19 8.59,13.01 8.61,12.85 8.61,12.69 8.59,12.54 8.56,12.39 8.51,12.24 8.45,12.09 8.36,11.94 8.22,11.77 8.02,11.58 7.60,11.34 7.50,11.13 7.45,10.91 7.44,10.69 7.46,10.48 7.52,10.28 7.61,10.09 7.73,9.92 7.89,9.77 8.07,9.64 8.29,9.54 8.76,9.65 9.04,9.65 9.25,9.61 9.42,9.55 9.57,9.49 9.71,9.41 9.83,9.32 9.94,9.22 10.05,9.10 10.14,8.97 10.23,8.81 10.31,8.61 10.37,8.34 10.37,7.86 10.51,7.67 10.67,7.51 10.85,7.39 11.05,7.31 11.25,7.26 11.46,7.24 11.67,7.26 11.88,7.32 12.08,7.42 12.27,7.56 12.42,8.02 12.56,8.26 12.70,8.42 12.83,8.54 12.96,8.64 13.10,8.72 13.24,8.78 13.38,8.83 13.53,8.86 13.70,8.88 13.88,8.88 14.09,8.85 14.35,8.76 14.77,8.52 15.01,8.54 15.22,8.60 15.42,8.70 15.59,8.83 15.73,8.98 15.85,9.15 15.94,9.35 15.99,9.55 16.01,9.78 15.98,10.01 15.66,10.37 15.52,10.61 15.45,10.81 15.41,10.99 15.39,11.15 15.39,11.31 15.41,11.46 15.44,11.61 15.49,11.76 15.55,11.91 15.64,12.06 15.78,12.23 15.98,12.42 16.40,12.66 16.50,12.87 16.55,13.09 16.56,13.31 16.54,13.52'/></clipPath></defs><circle cx='11' cy='13' r='11.5' fill='url(%23s)'/><circle cx='12' cy='12' r='10' fill='url(%23h)'/><circle cx='12' cy='12' r='9.5' fill='none' stroke='rgb(70,64,82)' stroke-opacity='0.5' stroke-width='0.7'/><g clip-path='url(%23c)'><g fill='rgb(120,112,138)'><polygon points='16.48,13.72 16.39,13.91 16.27,14.08 16.11,14.23 15.93,14.36 15.71,14.46 15.24,14.35 14.96,14.35 14.75,14.39 14.58,14.45 14.43,14.51 14.29,14.59 14.17,14.68 14.06,14.78 13.95,14.90 13.86,15.03 13.77,15.19 13.69,15.39 13.63,15.66 13.63,16.14 13.49,16.33 13.33,16.49 13.15,16.61 12.95,16.69 12.75,16.74 12.54,16.76 12.33,16.74 12.12,16.68 11.92,16.58 11.73,16.44 11.58,15.98 11.44,15.74 11.30,15.58 11.17,15.46 11.04,15.36 10.90,15.28 10.76,15.22 10.62,15.17 10.47,15.14 10.30,15.12 10.12,15.12 9.91,15.15 9.65,15.24 9.23,15.48 8.99,15.46 8.78,15.40 8.58,15.30 8.41,15.17 8.27,15.02 8.15,14.85 8.06,14.65 8.01,14.45 7.99,14.22 8.02,13.99 8.34,13.63 8.48,13.39 8.55,13.19 8.59,13.01 8.61,12.85 8.61,12.69 8.59,12.54 8.56,12.39 8.51,12.24 8.45,12.09 8.36,11.94 8.22,11.77 8.02,11.58 7.60,11.34 7.50,11.13 7.45,10.91 7.44,10.69 7.46,10.48 7.52,10.28 7.61,10.09 7.73,9.92 7.89,9.77 8.07,9.64 8.29,9.54 8.76,9.65 9.04,9.65 9.25,9.61 9.42,9.55 9.57,9.49 9.71,9.41 9.83,9.32 9.94,9.22 10.05,9.10 10.14,8.97 10.23,8.81 10.31,8.61 10.37,8.34 10.37,7.86 10.51,7.67 10.67,7.51 10.85,7.39 11.05,7.31 11.25,7.26 11.46,7.24 11.67,7.26 11.88,7.32 12.08,7.42 12.27,7.56 12.42,8.02 12.56,8.26 12.70,8.42 12.83,8.54 12.96,8.64 13.10,8.72 13.24,8.78 13.38,8.83 13.53,8.86 13.70,8.88 13.88,8.88 14.09,8.85 14.35,8.76 14.77,8.52 15.01,8.54 15.22,8.60 15.42,8.70 15.59,8.83 15.73,8.98 15.85,9.15 15.94,9.35 15.99,9.55 16.01,9.78 15.98,10.01 15.66,10.37 15.52,10.61 15.45,10.81 15.41,10.99 15.39,11.15 15.39,11.31 15.41,11.46 15.44,11.61 15.49,11.76 15.55,11.91 15.64,12.06 15.78,12.23 15.98,12.42 16.40,12.66 16.50,12.87 16.55,13.09 16.56,13.31 16.54,13.52'/></g><g transform='translate(0.8 -0.8)' fill='rgb(32,28,40)'><polygon points='16.48,13.72 16.39,13.91 16.27,14.08 16.11,14.23 15.93,14.36 15.71,14.46 15.24,14.35 14.96,14.35 14.75,14.39 14.58,14.45 14.43,14.51 14.29,14.59 14.17,14.68 14.06,14.78 13.95,14.90 13.86,15.03 13.77,15.19 13.69,15.39 13.63,15.66 13.63,16.14 13.49,16.33 13.33,16.49 13.15,16.61 12.95,16.69 12.75,16.74 12.54,16.76 12.33,16.74 12.12,16.68 11.92,16.58 11.73,16.44 11.58,15.98 11.44,15.74 11.30,15.58 11.17,15.46 11.04,15.36 10.90,15.28 10.76,15.22 10.62,15.17 10.47,15.14 10.30,15.12 10.12,15.12 9.91,15.15 9.65,15.24 9.23,15.48 8.99,15.46 8.78,15.40 8.58,15.30 8.41,15.17 8.27,15.02 8.15,14.85 8.06,14.65 8.01,14.45 7.99,14.22 8.02,13.99 8.34,13.63 8.48,13.39 8.55,13.19 8.59,13.01 8.61,12.85 8.61,12.69 8.59,12.54 8.56,12.39 8.51,12.24 8.45,12.09 8.36,11.94 8.22,11.77 8.02,11.58 7.60,11.34 7.50,11.13 7.45,10.91 7.44,10.69 7.46,10.48 7.52,10.28 7.61,10.09 7.73,9.92 7.89,9.77 8.07,9.64 8.29,9.54 8.76,9.65 9.04,9.65 9.25,9.61 9.42,9.55 9.57,9.49 9.71,9.41 9.83,9.32 9.94,9.22 10.05,9.10 10.14,8.97 10.23,8.81 10.31,8.61 10.37,8.34 10.37,7.86 10.51,7.67 10.67,7.51 10.85,7.39 11.05,7.31 11.25,7.26 11.46,7.24 11.67,7.26 11.88,7.32 12.08,7.42 12.27,7.56 12.42,8.02 12.56,8.26 12.70,8.42 12.83,8.54 12.96,8.64 13.10,8.72 13.24,8.78 13.38,8.83 13.53,8.86 13.70,8.88 13.88,8.88 14.09,8.85 14.35,8.76 14.77,8.52 15.01,8.54 15.22,8.60 15.42,8.70 15.59,8.83 15.73,8.98 15.85,9.15 15.94,9.35 15.99,9.55 16.01,9.78 15.98,10.01 15.66,10.37 15.52,10.61 15.45,10.81 15.41,10.99 15.39,11.15 15.39,11.31 15.41,11.46 15.44,11.61 15.49,11.76 15.55,11.91 15.64,12.06 15.78,12.23 15.98,12.42 16.40,12.66 16.50,12.87 16.55,13.09 16.56,13.31 16.54,13.52'/></g></g></svg>");
  --torx-d: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><defs><radialGradient id='s'><stop offset='0.7' stop-color='rgb(40,30,55)' stop-opacity='0.4'/><stop offset='1' stop-color='rgb(40,30,55)' stop-opacity='0'/></radialGradient><radialGradient id='h' fx='0.62' fy='0.35' r='0.6'><stop offset='0' stop-color='rgb(246,244,249)'/><stop offset='0.6' stop-color='rgb(190,184,200)'/><stop offset='1' stop-color='rgb(120,113,134)'/></radialGradient><clipPath id='c'><polygon points='14.96,15.78 14.78,15.90 14.59,15.98 14.38,16.03 14.15,16.05 13.92,16.02 13.56,15.68 13.32,15.54 13.13,15.47 12.95,15.42 12.79,15.40 12.63,15.40 12.48,15.42 12.33,15.44 12.18,15.49 12.03,15.55 11.87,15.64 11.70,15.77 11.51,15.97 11.27,16.39 11.05,16.48 10.83,16.53 10.61,16.54 10.40,16.51 10.20,16.45 10.01,16.36 9.84,16.23 9.70,16.07 9.57,15.89 9.48,15.67 9.59,15.20 9.59,14.92 9.56,14.71 9.51,14.53 9.44,14.38 9.37,14.25 9.28,14.12 9.18,14.01 9.07,13.90 8.94,13.80 8.78,13.71 8.59,13.63 8.32,13.56 7.83,13.56 7.64,13.42 7.49,13.25 7.37,13.07 7.29,12.87 7.25,12.67 7.24,12.46 7.26,12.25 7.32,12.04 7.42,11.84 7.56,11.65 8.03,11.51 8.27,11.38 8.43,11.24 8.56,11.11 8.66,10.98 8.74,10.84 8.80,10.71 8.85,10.56 8.89,10.41 8.91,10.25 8.91,10.07 8.88,9.86 8.80,9.59 8.56,9.17 8.59,8.93 8.66,8.72 8.76,8.53 8.89,8.36 9.04,8.22 9.22,8.10 9.41,8.02 9.62,7.97 9.85,7.95 10.08,7.98 10.44,8.32 10.68,8.46 10.87,8.53 11.05,8.58 11.21,8.60 11.37,8.60 11.52,8.58 11.67,8.56 11.82,8.51 11.97,8.45 12.13,8.36 12.30,8.23 12.49,8.03 12.73,7.61 12.95,7.52 13.17,7.47 13.39,7.46 13.60,7.49 13.80,7.55 13.99,7.64 14.16,7.77 14.30,7.93 14.43,8.11 14.52,8.33 14.41,8.80 14.41,9.08 14.44,9.29 14.49,9.47 14.56,9.62 14.63,9.75 14.72,9.88 14.82,9.99 14.93,10.10 15.06,10.20 15.22,10.29 15.41,10.37 15.68,10.44 16.17,10.44 16.36,10.58 16.51,10.75 16.63,10.93 16.71,11.13 16.75,11.33 16.76,11.54 16.74,11.75 16.68,11.96 16.58,12.16 16.44,12.35 15.97,12.49 15.73,12.62 15.57,12.76 15.44,12.89 15.34,13.02 15.26,13.16 15.20,13.29 15.15,13.44 15.11,13.59 15.09,13.75 15.09,13.93 15.12,14.14 15.20,14.41 15.44,14.83 15.41,15.07 15.34,15.28 15.24,15.47 15.11,15.64'/></clipPath></defs><circle cx='11' cy='13' r='11.5' fill='url(%23s)'/><circle cx='12' cy='12' r='10' fill='url(%23h)'/><circle cx='12' cy='12' r='9.5' fill='none' stroke='rgb(70,64,82)' stroke-opacity='0.5' stroke-width='0.7'/><g clip-path='url(%23c)'><g fill='rgb(120,112,138)'><polygon points='14.96,15.78 14.78,15.90 14.59,15.98 14.38,16.03 14.15,16.05 13.92,16.02 13.56,15.68 13.32,15.54 13.13,15.47 12.95,15.42 12.79,15.40 12.63,15.40 12.48,15.42 12.33,15.44 12.18,15.49 12.03,15.55 11.87,15.64 11.70,15.77 11.51,15.97 11.27,16.39 11.05,16.48 10.83,16.53 10.61,16.54 10.40,16.51 10.20,16.45 10.01,16.36 9.84,16.23 9.70,16.07 9.57,15.89 9.48,15.67 9.59,15.20 9.59,14.92 9.56,14.71 9.51,14.53 9.44,14.38 9.37,14.25 9.28,14.12 9.18,14.01 9.07,13.90 8.94,13.80 8.78,13.71 8.59,13.63 8.32,13.56 7.83,13.56 7.64,13.42 7.49,13.25 7.37,13.07 7.29,12.87 7.25,12.67 7.24,12.46 7.26,12.25 7.32,12.04 7.42,11.84 7.56,11.65 8.03,11.51 8.27,11.38 8.43,11.24 8.56,11.11 8.66,10.98 8.74,10.84 8.80,10.71 8.85,10.56 8.89,10.41 8.91,10.25 8.91,10.07 8.88,9.86 8.80,9.59 8.56,9.17 8.59,8.93 8.66,8.72 8.76,8.53 8.89,8.36 9.04,8.22 9.22,8.10 9.41,8.02 9.62,7.97 9.85,7.95 10.08,7.98 10.44,8.32 10.68,8.46 10.87,8.53 11.05,8.58 11.21,8.60 11.37,8.60 11.52,8.58 11.67,8.56 11.82,8.51 11.97,8.45 12.13,8.36 12.30,8.23 12.49,8.03 12.73,7.61 12.95,7.52 13.17,7.47 13.39,7.46 13.60,7.49 13.80,7.55 13.99,7.64 14.16,7.77 14.30,7.93 14.43,8.11 14.52,8.33 14.41,8.80 14.41,9.08 14.44,9.29 14.49,9.47 14.56,9.62 14.63,9.75 14.72,9.88 14.82,9.99 14.93,10.10 15.06,10.20 15.22,10.29 15.41,10.37 15.68,10.44 16.17,10.44 16.36,10.58 16.51,10.75 16.63,10.93 16.71,11.13 16.75,11.33 16.76,11.54 16.74,11.75 16.68,11.96 16.58,12.16 16.44,12.35 15.97,12.49 15.73,12.62 15.57,12.76 15.44,12.89 15.34,13.02 15.26,13.16 15.20,13.29 15.15,13.44 15.11,13.59 15.09,13.75 15.09,13.93 15.12,14.14 15.20,14.41 15.44,14.83 15.41,15.07 15.34,15.28 15.24,15.47 15.11,15.64'/></g><g transform='translate(0.8 -0.8)' fill='rgb(32,28,40)'><polygon points='14.96,15.78 14.78,15.90 14.59,15.98 14.38,16.03 14.15,16.05 13.92,16.02 13.56,15.68 13.32,15.54 13.13,15.47 12.95,15.42 12.79,15.40 12.63,15.40 12.48,15.42 12.33,15.44 12.18,15.49 12.03,15.55 11.87,15.64 11.70,15.77 11.51,15.97 11.27,16.39 11.05,16.48 10.83,16.53 10.61,16.54 10.40,16.51 10.20,16.45 10.01,16.36 9.84,16.23 9.70,16.07 9.57,15.89 9.48,15.67 9.59,15.20 9.59,14.92 9.56,14.71 9.51,14.53 9.44,14.38 9.37,14.25 9.28,14.12 9.18,14.01 9.07,13.90 8.94,13.80 8.78,13.71 8.59,13.63 8.32,13.56 7.83,13.56 7.64,13.42 7.49,13.25 7.37,13.07 7.29,12.87 7.25,12.67 7.24,12.46 7.26,12.25 7.32,12.04 7.42,11.84 7.56,11.65 8.03,11.51 8.27,11.38 8.43,11.24 8.56,11.11 8.66,10.98 8.74,10.84 8.80,10.71 8.85,10.56 8.89,10.41 8.91,10.25 8.91,10.07 8.88,9.86 8.80,9.59 8.56,9.17 8.59,8.93 8.66,8.72 8.76,8.53 8.89,8.36 9.04,8.22 9.22,8.10 9.41,8.02 9.62,7.97 9.85,7.95 10.08,7.98 10.44,8.32 10.68,8.46 10.87,8.53 11.05,8.58 11.21,8.60 11.37,8.60 11.52,8.58 11.67,8.56 11.82,8.51 11.97,8.45 12.13,8.36 12.30,8.23 12.49,8.03 12.73,7.61 12.95,7.52 13.17,7.47 13.39,7.46 13.60,7.49 13.80,7.55 13.99,7.64 14.16,7.77 14.30,7.93 14.43,8.11 14.52,8.33 14.41,8.80 14.41,9.08 14.44,9.29 14.49,9.47 14.56,9.62 14.63,9.75 14.72,9.88 14.82,9.99 14.93,10.10 15.06,10.20 15.22,10.29 15.41,10.37 15.68,10.44 16.17,10.44 16.36,10.58 16.51,10.75 16.63,10.93 16.71,11.13 16.75,11.33 16.76,11.54 16.74,11.75 16.68,11.96 16.58,12.16 16.44,12.35 15.97,12.49 15.73,12.62 15.57,12.76 15.44,12.89 15.34,13.02 15.26,13.16 15.20,13.29 15.15,13.44 15.11,13.59 15.09,13.75 15.09,13.93 15.12,14.14 15.20,14.41 15.44,14.83 15.41,15.07 15.34,15.28 15.24,15.47 15.11,15.64'/></g></g></svg>");
  --glass-tint: rgb(255 255 255 / 60%);
  --glass-tint-low: rgb(255 255 255 / 22%);
  --glass-edge: rgb(255 255 255 / 75%);
  --glass-shadow: rgb(59 43 75 / 30%);
  --pane-pad: clamp(2rem, 4vw, 3rem);
  --pane-pad-inline: var(--pane-pad);
}

@media (prefers-color-scheme: dark) {
  :root {
    --glass-tint: rgb(255 255 255 / 9%);
    --glass-tint-low: rgb(255 255 255 / 3%);
    --glass-edge: rgb(255 255 255 / 16%);
    --glass-shadow: rgb(0 0 0 / 55%);
  }
}

.hero-grid > div:first-child,
.page-hero > .shell,
.playground-intro > .shell,
.path-card {
  --screw-size: 16px;
  --screw-inset: 10px;

  position: relative;
  padding: var(--pane-pad) var(--pane-pad-inline);
  border: 1px solid var(--glass-edge);
  border-radius: 3px;
  background:
    var(--screw-a) left var(--screw-inset) top var(--screw-inset) / var(--screw-size) no-repeat,
    var(--screw-b) right var(--screw-inset) top var(--screw-inset) / var(--screw-size) no-repeat,
    var(--screw-c) left var(--screw-inset) bottom var(--screw-inset) / var(--screw-size) no-repeat,
    var(--screw-d) right var(--screw-inset) bottom var(--screw-inset) / var(--screw-size) no-repeat,
    linear-gradient(155deg, var(--glass-tint), var(--glass-tint-low) 45%, color-mix(in srgb, var(--glass-tint) 55%, transparent));
  -webkit-backdrop-filter: blur(2px) saturate(1.15);
  backdrop-filter: blur(2px) saturate(1.15);
  box-shadow:
    inset 0 1px 0 var(--glass-edge),
    inset -1px 0 0 color-mix(in srgb, var(--glass-edge) 50%, transparent),
    0 1px 1px color-mix(in srgb, var(--glass-shadow) 40%, transparent),
    -10px 18px 36px -14px var(--glass-shadow);
}

.hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4.5rem, 9vw, 7.5rem);
  border-bottom: 1px solid var(--line);
}

/* A coloured glow behind the hero's code window. */
.hero-grid > .code-window {
  position: relative;
  box-shadow:
    var(--metal-bevel),
    var(--hairline-highlight),
    var(--shadow-lift),
    0 0 0 1px color-mix(in srgb, var(--lavender) 10%, transparent),
    0 40px 120px -30px var(--glow-b),
    -30px 20px 100px -40px var(--glow-a);
}

/* The writing in the hero is as wide as it was before it was put on a
   glass pane: 46% of the grid's width less a gap of clamp(3rem, 7vw,
   6.5rem). The pane adds its padding around that, so the first column is
   wider by twice the padding, and the code window's column and the gap
   between the two are narrower by as much. The gap between the pane and
   the code window is 1.5rem, the smallest gap between the shell and the
   window's edges, so the code window takes the rest of the width. The
   pane and the code window are stretched to the same height, and the code
   window's screen takes the height its code does not need, so the output
   screen stays at the window's bottom. */
.hero-grid {
  display: grid;
  grid-template-columns: calc((100% - clamp(3rem, 7vw, 6.5rem)) * 0.46 + 2 * var(--pane-pad-inline)) minmax(0, 1fr);
  gap: 1.5rem;
}

.hero-grid > .code-window {
  display: flex;
  flex-direction: column;
}

.hero-grid > .code-window pre {
  flex: 1;
  max-height: none;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--rust);
  font-family: "Iosevka Term", ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* Hero eyebrows, and the labels on the home page's path cards, are strips
   of tape stuck on slightly askew, with torn ends;
   the label is written on the tape and does not wrap. In light mode the
   tape is duct tape: opaque bright silver with fine ridges along its length
   from the fabric scrim inside it and a sheen along its top, and the
   label is in the darker accent colour, which reads on grey. In dark mode it
   is matte invisible tape with a faint fibre grain, and the label is in the
   accent colour. The strip is ::before, clipped to its torn outline, and the
   eyebrow's drop-shadow filter follows that outline. */
.hero .eyebrow,
.page-hero .eyebrow,
.playground-intro .eyebrow,
.path-card .eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 1.1rem;
  line-height: 1.3;
  color: var(--tape-ink);
  white-space: nowrap;
  rotate: -1.2deg;
  filter: drop-shadow(0 1px 0.5px var(--tape-shadow));
}

.hero .eyebrow::before,
.page-hero .eyebrow::before,
.playground-intro .eyebrow::before,
.path-card .eyebrow::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--tape-face);
  box-shadow: inset 0 1px 0 var(--tape-edge), inset 0 -1px 0 var(--tape-edge);
  clip-path: polygon(3px 0, calc(100% - 2px) 0, 100% 12%, calc(100% - 3px) 25%, 100% 38%, calc(100% - 4px) 50%, 100% 63%, calc(100% - 2px) 75%, 100% 88%, calc(100% - 3px) 100%, 2px 100%, 0 88%, 4px 75%, 1px 63%, 3px 50%, 0 38%, 4px 25%, 1px 12%);
}

.hero .eyebrow {
  margin-bottom: 1.6rem;
}

.page-hero .eyebrow {
  margin-bottom: 1.5rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 400;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  font-size: clamp(4.3rem, 10vw, 7.75rem);
  letter-spacing: -0.025em;
}

.hero-claim {
  max-width: 17ch;
  margin: 1.25rem 0 0;
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.15rem);
  line-height: 0.98;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.7rem, 5.7vw, 4.45rem);
  letter-spacing: -0.018em;
}

h3 {
  font-size: 1.75rem;
  line-height: 1.08;
}

h4 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.lede {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.32rem, 2.2vw, 1.65rem);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Materials for the metal, the tape and the keys. */
:root {
  /* The sandblasted grain: a tile of uncorrelated light and dark specks,
     pre-rendered by scripts/rail-grain.py at 128 pixels and drawn at 64px,
     so that on a 2x display each speck is one device pixel. */
  --metal-grain: url("rail-grain.png?v=be587d0d");
  --metal-face: linear-gradient(180deg, #f3eff6, #e5dfea 50%, #d9d2df);
  --metal-edge: #a99fb4;
  --screen-shade: rgb(30 20 45 / 22%);
  --screen-edge: rgb(59 43 75 / 18%);
  --screen-lip: rgb(255 255 255 / 70%);
  --screen-glare: rgb(255 255 255 / 55%);
  --steel-hi: #f1f3f5;
  --steel-mid: #cfd3d9;
  --steel-lo: #a8aeb7;
  --steel-edge: rgb(30 34 42 / 30%);
  --scale-glass: rgb(226 238 244 / 30%);
  --scale-sheen: rgb(255 255 255 / 65%);
  --scale-shade: rgb(90 110 130 / 22%);
  --scale-edge-lit: rgb(255 255 255 / 95%);
  --scale-edge-dark: rgb(70 90 110 / 45%);
  --scale-tick: rgb(30 38 56 / 70%);
  --scale-tick-wall: rgb(255 255 255 / 75%);
  --scale-drop: rgb(40 30 60 / 14%);
  --calliper-drop: rgb(40 30 60 / 35%);
  --lcd-face: #aeb6a1;
  --display-face: #e2e1db;
  --display-ink: #222226;
  --display-glow: none;
  --display-recess: inset -1px 1px 2px rgb(30 20 45 / 30%), inset 0 0 0 1px rgb(30 20 45 / 16%), inset 0 0 0 3px rgb(30 20 45 / 3%);
  --display-glass: none;
  --display-glass-edge: none;
  --display-lip: rgb(255 255 255 / 75%);
  --key-top: linear-gradient(200deg, #f1eef4, #f7f5f9 60%, #faf9fb);
  --key-edge-lit: rgb(255 255 255 / 95%);
  --key-front: rgb(59 43 75 / 22%);
  --key-outline: rgb(59 43 75 / 30%);
  --key-cast: rgb(30 20 45 / 30%);
  --key-press: rgb(30 20 45 / 4%);
  --key-main-top: linear-gradient(200deg, #29273a, #302e42 60%, #353347);
  --key-main-edge-lit: rgb(255 255 255 / 20%);
  --key-main-front: rgb(0 0 0 / 55%);
  --key-main-legend: #f4f1f7;
  --key-legend: #3d3650;
  --key-led-off: #8f9a8c;
  --key-led-on: #4fe86a;
  --key-led-glow: rgb(79 232 106 / 75%);
  --led-amber-off: #a59a86;
  --led-amber-on: #ffb02e;
  --led-amber-glow: rgb(255 176 46 / 75%);
  --metal-ink: #2d2b45;
  --metal-engrave: 0 1px 0 rgb(255 255 255 / 80%);
  --metal-bevel: inset 0 1px 0 rgb(255 255 255 / 85%), inset 0 -1px 0 rgb(59 43 75 / 18%);
  /* The duct tape's ridges ramp smoothly between light and dark every 1.5px.
     Hard-edged ridges a device pixel wide break into moire bands wherever
     the page is resampled: on the tilted tape, on screens with a pixel ratio
     other than 2 and in scaled-down previews. */
  --tape-face:
    repeating-linear-gradient(180deg, rgb(255 255 255 / 50%) 0, rgb(40 38 52 / 8%) 0.75px, rgb(255 255 255 / 50%) 1.5px),
    linear-gradient(180deg, rgb(255 255 255 / 55%), transparent 38%, rgb(40 38 52 / 4%)),
    linear-gradient(180deg, #efeef2, #dddce1);
  --tape-ink: var(--rust-dark);
  --tape-edge: rgb(30 28 40 / 18%);
  --tape-shadow: rgb(59 43 75 / 30%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --metal-face: linear-gradient(180deg, #3f4656, #2f3542 50%, #272c37);
    --metal-edge: #0f1218;
    --screen-shade: rgb(0 0 0 / 55%);
    --screen-edge: rgb(0 0 0 / 50%);
    --screen-lip: rgb(255 255 255 / 9%);
    --screen-glare: rgb(255 255 255 / 5%);
    --steel-hi: #a9afb8;
    --steel-mid: #858b95;
    --steel-lo: #5c626b;
    --steel-edge: rgb(0 0 0 / 45%);
    --scale-glass: rgb(160 195 215 / 10%);
    --scale-sheen: rgb(255 255 255 / 20%);
    --scale-shade: rgb(0 0 0 / 25%);
    --scale-edge-lit: rgb(255 255 255 / 45%);
    --scale-edge-dark: rgb(0 0 0 / 50%);
    --scale-tick: rgb(230 240 250 / 70%);
    --scale-tick-wall: rgb(0 0 0 / 45%);
    --scale-drop: rgb(0 0 0 / 30%);
    --calliper-drop: rgb(0 0 0 / 60%);
    --lcd-face: #899180;
    --display-face: #030405;
    --display-ink: #e2e8f0;
    --display-glow: 0 0 3px rgb(190 215 255 / 45%);
    --display-recess: inset -1px 1px 3px rgb(0 0 0 / 90%);
    --display-glass: linear-gradient(200deg, rgb(255 255 255 / 15%) 0, rgb(255 255 255 / 6%) 34%, rgb(255 255 255 / 2%) 35%, transparent 75%);
    --display-glass-edge: inset 0 1px 0 rgb(255 255 255 / 18%), inset -1px 0 0 rgb(255 255 255 / 10%), inset 0 -1px 0 rgb(255 255 255 / 4%);
    --display-lip: rgb(255 255 255 / 9%);
    --key-top: linear-gradient(200deg, #383b45, #3e414b 60%, #42454f);
    --key-edge-lit: rgb(255 255 255 / 14%);
    --key-front: rgb(0 0 0 / 50%);
    --key-outline: rgb(0 0 0 / 60%);
    --key-cast: rgb(0 0 0 / 60%);
    --key-press: rgb(0 0 0 / 12%);
    --key-main-top: linear-gradient(200deg, #d9d4e1, #e3dfea 60%, #eae7ef);
    --key-main-edge-lit: rgb(255 255 255 / 90%);
    --key-main-front: rgb(30 20 45 / 35%);
    --key-main-legend: #1c1726;
    --key-legend: #d7d8d2;
    --key-led-off: #26302a;
    --key-led-on: #5cf57a;
    --key-led-glow: rgb(92 245 122 / 70%);
    --led-amber-off: #362e22;
    --led-amber-on: #ffb43a;
    --led-amber-glow: rgb(255 180 58 / 70%);
    --metal-ink: #d7d8d2;
    --metal-engrave: 0 -1px 0 rgb(0 0 0 / 70%);
    --metal-bevel: inset 0 1px 0 rgb(255 255 255 / 14%), inset 0 -1px 0 rgb(0 0 0 / 35%);
    --tape-face:
      repeating-linear-gradient(90deg, rgb(255 255 255 / 5%) 0 1px, transparent 1px 4px),
      linear-gradient(180deg, rgb(255 255 255 / 6%), transparent 45%, rgb(255 255 255 / 6%)),
      rgb(255 255 255 / 11%);
    --tape-ink: var(--rust);
    --tape-edge: rgb(255 255 255 / 9%);
    --tape-shadow: rgb(0 0 0 / 40%);
  }
}

/* Buttons are large chiclet keys, of the same make as the keys on a code
   window's title bar (see "The keys at the right of a code window's title
   bar"): each floats a little above the page on its switch, casts a short
   shadow down and to the left, shows its front side as a darker band
   along its bottom edge, and has a matte, very slightly dished top whose
   upper and right edges catch the light. The main action is a dark key
   with a light legend in light mode and a light key with a dark legend in
   dark mode, so that it differs from the others in lightness. The
   related-page links are keys too, with the current page's key marked as
   the main action is. Pressing a key moves it down a pixel, which
   shortens its shadow and darkens its top slightly. */
.button,
.section-links a {
  --top: var(--key-top);
  --edge-lit: var(--key-edge-lit);
  --front: var(--key-front);
  --legend: var(--key-legend);

  position: relative;
  border: 0;
  border-radius: 5px;
  background: var(--top);
  box-shadow:
    inset -1px 1px 0 var(--edge-lit),
    inset 0 -2px 0 var(--front),
    0 0 0 0.5px var(--key-outline),
    -1px 2px 3px var(--key-cast);
  color: var(--legend);
  text-decoration: none;
  text-shadow: none;
  transition:
    translate 70ms ease-out,
    box-shadow 70ms ease-out;
}

.button:not(.button-secondary),
.section-links a[aria-current="page"] {
  --top: var(--key-main-top);
  --edge-lit: var(--key-main-edge-lit);
  --front: var(--key-main-front);
  --legend: var(--key-main-legend);
}

.button:hover,
.section-links a:hover {
  color: var(--legend);
}

.button:active,
.section-links a:active {
  translate: 0 1px;
  box-shadow:
    inset -1px 1px 0 var(--edge-lit),
    inset 0 0 0 40px var(--key-press),
    0 0 0 0.5px var(--key-outline),
    -0.5px 1px 1px var(--key-cast);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* A code window is a screen set into a bezel of sandblasted aluminium,
   held together at its corners by four small Torx screws of the kind used
   in electronic devices. The bezel is 3 pixels wide at the sides and 8
   pixels at the bottom, so that the screen keeps as much of the window as
   it can. Its title bar is part of the bezel: the file name is on a one-
   line display set into the metal, and the language is engraved into it.
   The screen is recessed into the bezel. Lit like the rest of the page
   from the upper right, it has a shadow inside its top and right edges, a
   bright lip along its bottom and left edges where the light catches the
   bezel's inner wall, and a faint glare across the glass at its upper
   right. Each line has a two-digit number in a gutter at its left, which
   is not copied with the code. */
.code-window {
  --bezel: 6px;
  --bezel-side: 3px;

  container-type: inline-size;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  padding: 0 var(--bezel-side) calc(var(--bezel) + 2px);
  border: 1px solid var(--metal-edge);
  border-radius: 6px;
  background:
    var(--torx-a) left 0.5px top 0.5px / 7px no-repeat,
    var(--torx-b) right 0.5px top 0.5px / 7px no-repeat,
    var(--torx-c) left 0.5px bottom 0.5px / 7px no-repeat,
    var(--torx-d) right 0.5px bottom 0.5px / 7px no-repeat,
    var(--metal-grain) 0 0 / 64px 64px,
    var(--metal-face);
  box-shadow: var(--metal-bevel), var(--shadow-soft), var(--card-shadow);
  color: var(--code-text);
}

/* The title bar is as thin as the bezel allows: 3 pixels above and below
   the file-name display, and 8 pixels of metal to the left of it, counting
   the bezel's side. The keys are 10 pixels from the right edge, which
   keeps the hole of the last key clear of the screw in the corner. */
.code-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 3px 7px 3px 5px;
  color: var(--metal-ink);
  font-family: "Iosevka Term", ui-monospace, monospace;
  font-size: 0.76rem;
}

/* The file name is on a one-line display set into the bezel, recessed like
   the screen below it. The display takes 70% of the title bar whatever the
   length of the name, except on a narrow window, where it gives up width
   so that the title and the keys still fit beside it; a name too long for
   it is cut short with an ellipsis. A code window without a file name has
   no display. In light mode it is a monochrome e-ink panel: dark grey ink
   on a matte grey-white face, with a slightly darker inactive border and
   no glass. In dark mode it is a black panel with pale, faintly glowing
   characters under a glass cover; the glass catches the light along its
   top and right edges and has a sharp-edged band of reflection across its
   upper right. The file name keeps its case, which matters in a file name. */
.code-window-file {
  position: relative;
  flex: 0 1 70%;
  min-width: 0;
  overflow: hidden;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  background: var(--display-face);
  box-shadow:
    var(--display-recess),
    1px -1px 0 var(--display-lip);
  color: var(--display-ink);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-shadow: var(--display-glow);
  white-space: nowrap;
}

.code-window-file::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--display-glass);
  box-shadow: var(--display-glass-edge);
  content: "";
  pointer-events: none;
}

.code-window-file:empty {
  display: none;
}

/* The language: engraved into the bezel, at the right even when there is
   no file name. */
.code-window-title {
  margin-left: auto;
  color: var(--metal-ink);
  letter-spacing: 0.1em;
  text-shadow: var(--metal-engrave);
  text-transform: uppercase;
  opacity: 0.75;
}

/* The keys at the right of a code window's title bar are chiclet keys,
   like a laptop's: light grey keys in light mode and charcoal ones in dark
   mode, lit from the upper right like the rest of the page. Each key
   floats a little above the bezel on a scissor switch, so it casts a short
   shadow down and to the left onto the metal, and its thin front side
   shows as a darker band along its bottom edge. Its top is matte and very
   slightly dished, so it is a little darker towards its upper right, and
   its upper and right edges catch the light. A fine line outlines it. The
   legend is printed on the top. In its lower left corner is a small LED,
   like the Caps Lock LED on a laptop. Pressing a key moves it half a
   pixel down towards the bezel, which shortens its shadow and darkens its
   top slightly. ::after is the LED.

   Every code window has the copy key, with the copy symbol on it, whose
   LED is lit green for a moment after the code is copied and fades out.
   The playground also has the Run key, a double-width key with "Run" on
   it and no LED, which stays down while a program runs. */
.bar-key {
  position: relative;
  display: grid;
  flex: none;
  width: 26px;
  height: 20px;
  margin: 0 0 0 0.25rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 3px;
  background: var(--key-top);
  box-shadow:
    inset -1px 1px 0 var(--key-edge-lit),
    inset 0 -1px 0 var(--key-front),
    0 0 0 0.5px var(--key-outline),
    -1px 1.5px 2px var(--key-cast);
  color: var(--key-legend);
  cursor: pointer;
  transition:
    translate 70ms ease-out,
    box-shadow 70ms ease-out;
}

.bar-key::after {
  position: absolute;
  bottom: 3.5px;
  left: 3.5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--key-led-off);
  box-shadow: inset -0.5px 0.5px 0.5px rgb(0 0 0 / 40%);
  content: "";
  transition:
    background-color 400ms ease-out,
    box-shadow 400ms ease-out;
}

/* Keys side by side are 0.5rem apart: the title bar's 1rem gap, less
   the 0.5rem this takes back. */
.bar-key + .bar-key {
  margin-left: -0.5rem;
}

.copy-key[data-copied]::after {
  background: var(--key-led-on);
  box-shadow:
    inset 0.5px -0.5px 0.5px rgb(255 255 255 / 60%),
    0 0 3px 1px var(--key-led-glow);
  transition: none;
}

.bar-key svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.bar-key:active,
.run-key:disabled {
  translate: 0 0.5px;
  box-shadow:
    inset -1px 1px 0 var(--key-edge-lit),
    inset 0 0 0 20px var(--key-press),
    0 0 0 0.5px var(--key-outline),
    -0.5px 0.5px 1px var(--key-cast);
}

/* A double-width key is two keys wide with the gap between them. Its
   legend is a word. */
.run-key {
  width: 60px;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
}

.run-key::after {
  content: none;
}

.run-key:disabled {
  cursor: progress;
}

.bar-key:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.code-window pre {
  --code-padding-block: clamp(1.1rem, 3vw, 1.65rem);

  max-width: 100%;
  max-height: calc(20lh + var(--code-padding-block) + var(--code-padding-block));
  margin: 0;
  overflow-x: auto;
  overflow-y: auto;
  padding: var(--code-padding-block) clamp(0.6rem, 2cqi, 1rem);
  border-radius: 6px;
  box-shadow:
    inset -2px 2px 5px var(--screen-shade),
    inset 0 0 0 1px var(--screen-edge),
    1px -1px 0 var(--screen-lip);
  font-size: min(0.9rem, calc(4cqi - 0.132rem));
  line-height: 1.65;
  tab-size: 4;
}

/* A code window's screen scrolls without a scrollbar, by wheel, trackpad,
   touch or keyboard; the output screens do too. */
.code-window pre,
.playground-output-text,
.code-window-output-text {
  scrollbar-width: none;
}

.code-window pre::-webkit-scrollbar,
.playground-output-text::-webkit-scrollbar,
.code-window-output-text::-webkit-scrollbar {
  display: none;
}

/* The output screens: the playground's (see "The output screen" in
   playground.css) and a code window's, below the code of a window that has
   a Run key (see code_windows in templates/components.html). Each is a dark
   screen recessed into the bezel like the code's, dark in both themes and
   so with the same colours in both. It shows the compiler's diagnostics and
   then what the program printed, which scroll when there is more, above a
   status line, under a faint rule, that describes the last run. The output
   text is coloured by the run's outcome: green when the program completed,
   red when it failed and amber when it reached a limit.

   A code window's screen is one bezel's width below the code and always
   has room for three lines, so a run does not change the window's size.
   Its text is muted before the first run. static/assets/run-key.js fills
   it. */
.playground-output,
.code-window-output {
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(205deg, rgb(255 255 255 / 6%) 0, transparent 32%),
    var(--terminal-bg);
  box-shadow:
    inset -2px 2px 5px var(--screen-shade),
    inset 0 0 0 1px var(--screen-edge),
    1px -1px 0 var(--screen-lip);
  color: var(--terminal-text);
  font: 0.85rem/1.6 "Iosevka Term", ui-monospace, monospace;
}

.code-window-output[data-state="ready"] {
  --output-ink: var(--terminal-muted);
}

[data-state="completed"]:is(.playground-output, .code-window-output) {
  --output-ink: #9be59b;
}

[data-state="failed"]:is(.playground-output, .code-window-output) {
  --output-ink: #ff9d9d;
}

[data-state="limit"]:is(.playground-output, .code-window-output) {
  --output-ink: #ffcc66;
}

.playground-output-text,
.code-window-output-text {
  overflow: auto;
  color: var(--output-ink, var(--terminal-text));
}

.playground-output-text:focus-visible,
.code-window-output-text:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}

.playground-status,
.code-window-output-status {
  margin: 0;
  overflow: hidden;
  border-top: 1px solid rgb(255 255 255 / 9%);
  color: var(--terminal-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-window-output {
  margin-top: var(--bezel);
}

.code-window-output-text {
  height: calc(3lh + 1.1rem);
  padding: 0.6rem 1rem 0.5rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-window-diagnostic {
  color: #ff9d9d;
}

.code-window-output-status {
  padding: 0.3rem 1rem 0.45rem;
}

.code-window code {
  display: block;
  min-width: max-content;
  color: var(--code-text);
  font-size: inherit;
  line-height: inherit;
  white-space: pre;
  counter-reset: code-line;
}

/* Line numbers, from the lines the highlighter marks; being generated
   content, they are not selected or copied with the code. */
.code-window .giallo-l::before {
  display: inline-block;
  min-width: 2ch;
  margin-right: 0.6em;
  padding-right: 0.5em;
  border-right: 1px solid var(--line);
  color: var(--code-muted);
  text-align: right;
  counter-increment: code-line;
  content: counter(code-line, decimal-leading-zero);
  opacity: 0.7;
  user-select: none;
}

/* The home page's example has no line numbers, and its type is sized so
   that its longest line fits the screen without scrolling. --columns is
   the length of that line, and each character is 0.5em wide, so the type
   is the screen's width less its side padding, divided by half a column
   count that is one larger than --columns, which leaves a character to
   spare. The type is no larger than in other code windows. --columns has
   to be updated when the example's longest line changes. */
.home .code-window .giallo-l::before {
  content: none;
}

.home .code-window pre {
  --columns: 60;

  font-size: min(calc((100cqi - 2 * clamp(0.6rem, 2cqi, 1rem)) / (var(--columns) + 1) * 2), 0.9rem);
}

/* Notes on the lines of a code window: a line that has a note
   (static/assets/code-notes.js) fills the width of the code, so that the
   whole row responds to the pointer, and is shaded faintly while its note
   is shown. The note is a small dark label, like the output screen, under
   the line, fixed in the window and placed by the script. In dark mode the
   label is a lighter slate than the code's screen, so that it stands out
   from the code it covers. */
.code-window .has-note {
  display: inline-block;
  min-width: 100%;
}

.code-window .has-note[data-noted] {
  background: color-mix(in srgb, var(--code-text) 8%, transparent);
}

.code-note {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  max-width: min(22rem, calc(100vw - 16px));
  padding: 0.5rem 0.7rem;
  border-radius: 4px;
  background: var(--code-note-bg);
  box-shadow: 0 0 0 1px var(--screen-edge), var(--shadow-soft);
  color: var(--terminal-text);
  font-size: 0.9rem;
  line-height: 1.4;
  pointer-events: none;
}

.code-note[hidden] {
  display: none;
}

.code-note code {
  padding: 0;
  border: 0;
  background: none;
  color: #ffcc66;
  font-size: 0.95em;
}

/* The page's scrollbar is a digital calliper, built by
   static/assets/calliper.js at the right of the window, below the header,
   over the page's content where the margin is too narrow for it. It stands
   on end with its fixed jaw at the top and its jaws pointing into the
   page. The beam is a bar of clear glass, which blurs the page behind it,
   held at the top by the steel fixed jaw. The glass is etched with a scale
   from the fixed jaw down, with a tick every 4 pixels, a longer one every
   20 and a longer one still every 40. The sliding head is a steel slide
   carrying a black plastic housing, with a liquid-crystal display set into
   it that reads down the beam, a button and a knurled thumb roller. As the
   page scrolls the head slides down the beam, so the gap between the jaws
   is the distance scrolled, and the display reads how far down the page is
   as a percentage. Pressing on the beam brings the head's jaw there, and
   dragging the head slides it. The calliper replaces the native scrollbar,
   which is hidden only once the script has built it, and only for a mouse
   or trackpad; with touch the native scrollbar stays. Lit like the rest of
   the page from the upper right, its steel is brightest at the right and
   casts its shadow to the lower left, and the glass catches the light
   along its right edge. It slides in from beyond the right edge of the
   window when the page scrolls or the pointer comes near that edge, and
   slides out again when it is no longer in use. */
html.has-calliper {
  scrollbar-width: none;
}

html.has-calliper::-webkit-scrollbar {
  display: none;
}

.calliper {
  --jaw: 12px;
  --head: 80px;
  --steel:
    var(--metal-grain) 0 0 / 64px 64px,
    linear-gradient(270deg, var(--steel-hi), var(--steel-mid) 55%, var(--steel-lo));

  position: fixed;
  z-index: 15;
  top: calc(var(--header-h, 72px) + 8px);
  right: 2px;
  bottom: 8px;
  width: 16px;
  translate: calc(100% + 8px) 0;
  transition: translate 500ms cubic-bezier(0.5, 0, 0.75, 0);
  contain: size layout style;
  user-select: none;
}

/* The calliper is out of sight beyond the right edge of the window until
   it is wanted, and slides in, slowing as it arrives, and out again,
   gathering speed as it leaves. calliper.js decides when. The calliper is
   redrawn on every frame while the page scrolls, so it is built to keep
   that cheap. Its size does not depend on what is inside it, and its
   layout and counters are kept apart from the page's (`contain`), so
   changes inside it never lay out the page again. The script moves the
   head with a translation, which needs no layout, and the head is a layer
   of its own, which the compositor moves without redrawing the page. Paint
   is not contained, because the calliper's shadows fall outside its box. */
.calliper.is-in {
  translate: 0 0;
  transition: translate 500ms cubic-bezier(0.25, 1, 0.5, 1);
}

.calliper[hidden] {
  display: none;
}

/* The glass beam and its etched scale. The glass is slightly tinted and
   blurs what is behind it; its right edge is bright where it catches the
   light, and its left edge is darker, where light passing through the edge
   is bent away. Each tick is etched, and the longest have a second line
   beside them where the etching's far wall shows through the glass. The
   beam casts a faint shadow to the lower left. */
.calliper-beam {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 6px;
  border-radius: 0 1px 2px 0;
  background:
    repeating-linear-gradient(180deg, var(--scale-tick) 0 1px, var(--scale-tick-wall) 1px 2px, transparent 2px 40px) 0 var(--jaw) / 6px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--scale-tick) 0 1px, transparent 1px 20px) 0 var(--jaw) / 4px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--scale-tick) 0 1px, transparent 1px 4px) 0 var(--jaw) / 2px 100% no-repeat,
    linear-gradient(270deg, var(--scale-sheen), transparent 35%, transparent 70%, var(--scale-shade)),
    var(--scale-glass);
  box-shadow:
    inset -1px 0 0 var(--scale-edge-lit),
    inset 1px 0 0 var(--scale-edge-dark),
    inset 0 -1px 0 var(--scale-edge-dark),
    -1px 2px 3px var(--scale-drop);
  -webkit-backdrop-filter: blur(1.5px) saturate(1.2);
  backdrop-filter: blur(1.5px) saturate(1.2);
  cursor: pointer;
}

/* The fixed jaw, a steel block that holds the top of the glass. Its
   measuring face is its lower edge, and its outer side tapers to the tip.
   The jaw is cut to shape inside its mount, which casts its shadow, since a
   shape cut out of an element cannot cast a shadow outside it. */
.calliper-fixed {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: var(--jaw);
  filter: drop-shadow(-1px 2px 1.5px var(--calliper-drop));
}

.calliper-jaw {
  position: absolute;
  inset: 0;
  background: var(--steel);
  clip-path: polygon(0 100%, 0 8px, 4px 2px, 4px 0, 100% 0, 100% 100%);
}

.calliper-head {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--head);
  top: var(--jaw);
  filter: drop-shadow(-1px 2px 1.5px var(--calliper-drop));
  cursor: grab;
  will-change: translate;
}

.calliper-head:active {
  cursor: grabbing;
}

/* The steel slide, with the sliding jaw, whose measuring face is its upper
   edge, mirroring the fixed jaw. */
.calliper-slide {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 18px;
  background: var(--steel);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 4px 100%, 4px 10px, 0 4px);
}

/* The black plastic housing for the electronics. */
.calliper-body {
  position: absolute;
  top: 14px;
  right: 0;
  bottom: 0;
  left: 3px;
  border-radius: 3px 2px 4px 3px;
  background: linear-gradient(225deg, #474b54, #25272d 45%, #17181c);
  box-shadow:
    inset -1px 1px 0 rgb(255 255 255 / 16%),
    inset 1px -1px 0 rgb(0 0 0 / 50%);
}

/* The display: dark segments on a grey-green reflective panel, recessed
   into the housing under a glass with a glare across its upper part. */
.calliper-lcd {
  position: absolute;
  top: 5px;
  right: 2px;
  left: 2px;
  height: 41px;
  border-radius: 1.5px;
  background: var(--lcd-face);
  box-shadow: inset -1px 1px 2px rgb(0 0 0 / 60%);
  color: #1b2018;
}

.calliper-lcd::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(200deg, rgb(255 255 255 / 32%), rgb(255 255 255 / 10%) 38%, transparent 40%);
  content: "";
}

/* The digits read down the beam, from the fixed jaw, as they would on a
   calliper turned on end with its fixed jaw at the top. */
.calliper-readout {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 37px;
  max-width: none;
  height: 8px;
  translate: -50% -50%;
  rotate: 90deg;
  fill: currentColor;
  stroke: currentColor;
}

.calliper-button {
  position: absolute;
  top: 49px;
  left: 50%;
  width: 6px;
  height: 6px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 65% 35%, #767a84, #2b2d33 70%);
  box-shadow:
    0 0 0 1px #0c0d0f,
    -0.5px 0.5px 1px rgb(0 0 0 / 60%);
}

/* The thumb roller, seen face on: a steel wheel with a knurled rim. At
   8 pixels across its turning would not be visible, so it does not turn. */
.calliper-roller {
  position: absolute;
  top: 70px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--steel-hi) 0 18%, var(--steel-mid) 22% 32%, var(--steel-lo) 36% 44%, transparent 47%),
    repeating-conic-gradient(var(--steel-hi) 0 15deg, var(--steel-lo) 15deg 30deg);
  box-shadow: inset 0 0 0 0.5px var(--steel-edge);
}

@media print {
  .calliper {
    display: none;
  }
}

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-plain {
  background: var(--surface-wash);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head p:last-child {
  max-width: 43rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.22rem;
}

.surface-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

/* The home page's archetype cards are small plates of the code windows'
   sandblasted aluminium, held at their corners by the same Torx screws.
   Each archetype's sigil is on a one-line display set into the plate, the
   same display as a code window's file name, and the name is engraved.
   The display is the same square on every plate, wide enough for three
   characters, such as T~>. Beside it are two status LEDs, labelled Done
   and In progress; every plate carries both, and the one its data-state
   names is lit. The two printed labels are generated content and hidden
   from assistive technology, so that the page's text, as a screen reader
   or an agent reading the page sees it, holds only the plate's state, in
   a visually hidden "Status: Done" or "Status: In progress". Between 981 and 1100 pixels the five plates are
   narrowest, and the plate's padding at its sides is reduced to 1rem so
   that the display, the gap and the labels, about 138 pixels, fit on one
   line in a plate whose content is 130 pixels wide at 981 pixels. */
.surface {
  position: relative;
  min-width: 0;
  padding: 1.5rem 1.35rem 1.7rem;
  border: 1px solid var(--metal-edge);
  border-radius: 4px;
  background:
    var(--torx-a) left 3px top 3px / 7px no-repeat,
    var(--torx-b) right 3px top 3px / 7px no-repeat,
    var(--torx-c) left 3px bottom 3px / 7px no-repeat,
    var(--torx-d) right 3px bottom 3px / 7px no-repeat,
    var(--metal-grain) 0 0 / 64px 64px,
    var(--metal-face);
  box-shadow: var(--metal-bevel), var(--shadow-soft);
  color: var(--metal-ink);
}

.surface code {
  position: relative;
  display: inline-grid;
  width: 3.1rem;
  height: 3.1rem;
  flex: none;
  place-items: center;
  border-radius: 3px;
  background: var(--display-face);
  box-shadow:
    var(--display-recess),
    1px -1px 0 var(--display-lip);
  color: var(--display-ink);
  font-size: 1.3rem;
  text-shadow: var(--display-glow);
}

.surface code::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--display-glass);
  box-shadow: var(--display-glass-edge);
  content: "";
}

.surface-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  margin-bottom: 1.3rem;
}

.status {
  display: grid;
  gap: 0.45rem;
  color: color-mix(in srgb, var(--metal-ink) 75%, transparent);
  font-family: "Iosevka Term", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow: var(--metal-engrave);
  text-transform: uppercase;
  white-space: nowrap;
}

/* An LED is a 6-pixel lens set slightly below the plate's surface in a
   laser-cut hole, which has a clean edge, without a rim or a lip. The plate
   is lit from the upper right, so the hole's upper-right wall shades the
   upper-right edge of the lens. An unlit lens shows the tint of its colour.
   A lit lens shows the colour itself, and its own light makes the wall's
   shade weaker.

   The amber LED dims by --led-level, which multiplies the red, green and
   blue of the lit lens alike: that lowers the colour's value in HSV and
   keeps its hue and saturation, so a dim LED is a darker amber and does not
   fade to grey. The halo around a lit LED appears only above a level of
   0.6: its alpha rises linearly from 0 at a level of 0.6 to full at a level
   of 1, so it fades out as the amber LED dims and fades back in as it
   brightens, and the green LED, always at 1, has its full halo. */
@property --led-level {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

.status .visually-hidden {
  text-transform: none;
}

.led {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.led-done {
  --led-off: var(--key-led-off);
  --led-on: var(--key-led-on);
  --led-glow: var(--key-led-glow);
}

.led-progress {
  --led-off: var(--led-amber-off);
  --led-on: var(--led-amber-on);
  --led-glow: var(--led-amber-glow);
}

.led::before {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--led-off);
  box-shadow: inset -0.5px 0.5px 1px rgb(0 0 0 / 45%);
  content: "";
}

.led-done::after {
  content: "Done";
}

.led-progress::after {
  content: "In progress";
}

[data-state="done"] > .led-done::before,
[data-state="progress"] > .led-progress::before {
  background: rgb(from var(--led-on) calc(r * var(--led-level)) calc(g * var(--led-level)) calc(b * var(--led-level)));
  box-shadow:
    inset -0.5px 0.5px 1px rgb(0 0 0 / 20%),
    0 0 5px 1.5px rgb(from var(--led-glow) r g b / calc(alpha * max(0, (var(--led-level) - 0.6) / 0.4)));
}

/* The amber LED holds at full value for 0.5 seconds, dims to 40% of its
   value over 0.75 seconds and brightens back over 0.75 seconds, so a cycle
   lasts 2 seconds. Each segment eases in and out. With reduced motion the
   animation does not run, and the LED stays fully lit. */
[data-state="progress"] > .led-progress::before {
  animation: led-pulse 2s ease-in-out infinite;
}

@keyframes led-pulse {
  0%,
  25% {
    --led-level: 1;
  }

  62.5% {
    --led-level: 0.4;
  }

  100% {
    --led-level: 1;
  }
}

.surface h3 {
  margin-bottom: 0.65rem;
  color: var(--metal-ink);
  text-shadow: var(--metal-engrave);
}

.surface p {
  margin: 0;
  color: color-mix(in srgb, var(--metal-ink) 75%, transparent);
  font-size: 1rem;
  line-height: 1.5;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* The home page's path cards are frosted glass panes like the hero's
   (see "The writing on each textured hero"), each labelled with a strip of
   tape. Pointing at one underlines its link. */
.path-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  text-decoration: none;
}

.path-card:hover {
  color: var(--ink);
}

.path-card:hover strong {
  text-decoration: underline;
}

.path-card p {
  max-width: 30rem;
  margin: 1rem 0 2rem;
  color: var(--muted);
}

.path-card strong {
  color: var(--teal);
}

.page-hero {
  padding: clamp(4.7rem, 9vw, 7.5rem) 0 clamp(3.7rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(4rem, 8.5vw, 7rem);
}

.page-hero .lede {
  max-width: 50rem;
}

.page-subtitle {
  margin: 1.1rem 0 0;
  color: var(--rust);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.document-meta {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-family: "Iosevka Term", ui-monospace, monospace;
  font-size: 0.8rem;
}

.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--measure));
  justify-content: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

/* The table of contents: the page's sections as a column of links beside
   a thin track etched into the page, with a pointer in the accent colour,
   a slender triangle, that sits on the track pointing at the first line
   of the section being read and slides along the track as the page
   scrolls, as the calliper's head slides down its beam. Lit from the
   upper right, the pointer casts a small shadow down and to the left. The
   current section's link is in ink and the others are muted.
   static/assets/toc.js marks the current link and places the pointer;
   without the script the track is drawn but holds no pointer. */
.toc {
  align-self: start;
  position: sticky;
  top: 104px;
  padding-top: 0.3rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-family: "Iosevka Term", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc ol {
  position: relative;
  margin: 0;
  padding: 0 0 0 1rem;
  list-style: none;
}

/* The track: a groove, dark along its left wall and catching the light
   along its right. */
.toc ol::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(90deg, var(--line-strong) 50%, var(--toc-track-lit) 50%);
  content: "";
}

/* The pointer's box is as tall as a link's first line with the link's
   padding above and below it, so the triangle at its middle points at
   that line. */
.toc-marker {
  position: absolute;
  top: 0;
  left: -3px;
  display: grid;
  width: 9px;
  height: calc(0.9rem * 1.35 + 0.6rem);
  align-items: center;
  filter: drop-shadow(-0.5px 1px 0.5px var(--toc-pointer-shadow));
  transition: translate 220ms var(--ease);
}

.toc-marker::before {
  height: 8px;
  background: var(--rust);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  content: "";
}

.toc a {
  display: block;
  padding: 0.3rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.toc a:hover,
.toc a[aria-current="location"] {
  color: var(--ink);
}

/* A word or address too long for the column, such as a URL in a
   reference, breaks at the column's edge instead of widening the page. */
.article {
  min-width: 0;
  overflow-wrap: break-word;
}

.rite-layout {
  max-width: 930px;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.rite-document > p:first-child {
  color: var(--ink-soft);
  font-size: 1.35rem;
  line-height: 1.48;
}

.article > *:first-child {
  margin-top: 0;
}

.article h2 {
  margin: 5rem 0 1.35rem;
  font-size: clamp(2.65rem, 5vw, 3.65rem);
}

.section-heading {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.8rem;
  margin: 5rem 0 1.35rem;
}

.article > section:first-child .section-heading {
  margin-top: 0;
}

.section-heading .eyebrow,
.article .section-heading h2 {
  margin: 0;
}

.article h3 {
  margin: 3.25rem 0 1rem;
}

.article p {
  margin: 0 0 1.35rem;
}

.article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2.25rem auto 0.75rem;
}

.article svg.article-diagram {
  height: auto;
  margin: 2.25rem 0 0.75rem;
}

.rite-document svg.rite-diagram {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2.25rem auto 0.75rem;
}

.article img + em {
  display: block;
  margin-bottom: 2.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.article ul,
.article ol {
  margin: 0 0 1.7rem;
  padding-left: 1.35rem;
}

.article li {
  padding-left: 0.25rem;
}

.article li + li {
  margin-top: 0.45rem;
}

.article .code-window {
  width: 100%;
  max-width: 100%;
  margin: 2rem 0 2.35rem;
}

.article blockquote,
.callout {
  margin: 2.2rem 0;
  position: relative;
  padding: 1.25rem 1.4rem 1.25rem 1.65rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--rust) 6%, transparent), transparent 40%),
    var(--paper-raised);
  box-shadow: var(--hairline-highlight), var(--shadow-soft);
}

/* The accent bar is a gradient strip inside the rounded box. */
.article blockquote::before,
.callout::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--rust), var(--lavender));
}

.article blockquote p:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

.callout-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--rust);
  font-family: "Iosevka Term", ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.requirements {
  margin: 2.2rem 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.requirements li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.requirements span {
  color: var(--rust);
  font-family: "Iosevka Term", ui-monospace, monospace;
  font-size: 0.8rem;
}

.exhibit,
.article table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 1rem;
}

.exhibit th,
.exhibit td,
.article table th,
.article table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.exhibit th,
.article table th {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.table-scroll {
  width: 100%;
  margin: 2rem 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  box-shadow: var(--hairline-highlight), var(--shadow-soft);
}

.copy-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}

.article .copy-prompt-actions + .code-window {
  margin-top: 1rem;
}

.copy-prompt-actions .button {
  cursor: pointer;
}

.copy-prompt-actions .button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.copy-prompt-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.claude-installation-shots {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  margin: 2rem 0 2.35rem;
}

.claude-installation-shots figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  box-shadow: var(--card-shadow);
}

.claude-installation-shots img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.claude-installation-shots figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.4;
}

.claude-installation-shots figcaption span {
  color: var(--rust);
  font-family: "Iosevka Term", ui-monospace, monospace;
  font-size: 0.78rem;
}

.site-footer {
  padding: 2.3rem 0 3rem;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--line) 25%, var(--line) 75%, transparent) 1;
  background: linear-gradient(180deg, transparent, var(--surface-wash));
  color: var(--muted);
  font-size: 0.96rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--rust-dark);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-inner p {
  margin: 0;
}

@media (min-width: 981px) and (max-width: 1100px) {
  .surface {
    padding-inline: 1rem;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid .code-window {
    max-width: 760px;
  }

  .surface-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .surface:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .doc-layout {
    grid-template-columns: minmax(0, var(--measure));
  }

  .toc {
    position: static;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-raised);
  }

  /* Above the article the contents are a box of links in two columns,
     with no track, because the box scrolls away with the page. */
  .toc ol {
    padding-left: 0;
    columns: 2;
    column-gap: 2rem;
  }

  .toc ol::before,
  .toc-marker {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1.06rem;
  }

  .shell {
    width: min(calc(100% - 2rem), var(--content));
  }

  /* A glass pane's sides are narrower on a phone, so that the widest line
     in the home page's hero, its 288-pixel eyebrow, fits a 360-pixel
     screen: 288 pixels, two sides of 1.125rem and two 1-pixel borders make
     326 pixels in a column of 328. The top and bottom keep their padding,
     which keeps the writing clear of the screws in the corners. */
  :root {
    --pane-pad-inline: 1.125rem;
  }

  /* On a phone the navigation wraps below the logo, across the page
     column, with the GitHub mark at its right end. The logo sits nearer
     the navigation than the top of the window, so that it reads as
     belonging with it. */
  .header-inner {
    min-height: 64px;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    padding-block: 1rem 0.6rem;
  }

  .site-nav {
    order: 2;
    width: 100%;
    gap: 0;
    overflow-x: auto;
  }

  .site-nav a {
    min-height: 38px;
    padding-inline: 0.5rem;
    font-size: 0.9rem;
  }

  .site-nav .nav-icon {
    margin-left: auto;
    padding-inline: 0.45rem;
  }

  .site-nav .nav-icon::before {
    content: none;
  }

  .share-key {
    order: 1;
    margin-left: auto;
  }

  .hero {
    padding-top: 2rem;
  }

  h1,
  .page-hero h1 {
    font-size: clamp(3.8rem, 20vw, 5rem);
  }

  .hero-claim {
    font-size: clamp(2.65rem, 13vw, 3.7rem);
  }

  .lede {
    font-size: 1.25rem;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .surface-grid {
    gap: 0.7rem;
  }

  .surface {
    padding: 1.15rem 1rem 1.25rem;
  }

  .surface code {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.1rem;
  }

  .surface-head {
    margin-bottom: 1rem;
  }

  .surface h3 {
    font-size: 1.5rem;
  }

  .hero .eyebrow,
  .page-hero .eyebrow,
  .playground-intro .eyebrow,
  .path-card .eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .path-card {
    min-height: 220px;
  }

  /* On a phone the article follows the page's header directly, with no
     table of contents above it. */
  .toc {
    display: none;
  }

  .article .code-window {
    width: calc(100vw - 2rem);
  }

  .claude-installation-shots {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.code-window pre.giallo {
  color: inherit !important;
  background: linear-gradient(205deg, var(--screen-glare) 0, transparent 32%), var(--code) !important;
}

@media (prefers-color-scheme: dark) {
  .giallo [style*="color: #A626A4"] {
    color: #ffa759 !important;
  }

  .giallo [style*="color: #50A14F"] {
    color: #bae67e !important;
  }

  .giallo [style*="color: #986801"] {
    color: #ffcc66 !important;
  }

  .giallo [style*="color: #4078F2"],
  .giallo [style*="color: #C18401"] {
    color: #73d0ff !important;
  }

  .giallo [style*="color: #E45649"] {
    color: #f29e74 !important;
  }

  .giallo [style*="color: #0184BC"] {
    color: #5ccfe6 !important;
  }
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list > li {
  padding: 1.6rem 1.75rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  box-shadow: var(--hairline-highlight), var(--shadow-soft);
  transition:
    transform 260ms var(--ease),
    box-shadow 260ms var(--ease),
    border-color 260ms var(--ease);
}

.news-list > li:hover {
  border-color: color-mix(in srgb, var(--lavender) 40%, var(--line));
  box-shadow: var(--hairline-highlight), var(--shadow-lift);
  transform: translateY(-2px);
}

.news-list > li > :last-child {
  margin-bottom: 0;
}

.news-list li + li {
  margin-top: 1rem;
}

.news-list h2 {
  margin: 0 0 0.35rem;
}

.news-list h2 a {
  text-decoration: none;
}

.news-list .document-meta {
  margin: 0 0 0.5rem;
}

.tech-listing-copy {
  color: var(--ink-soft);
}

.tech-listing-copy p:last-child {
  margin-bottom: 0.8rem;
}

.article .footnote-definition {
  display: flex;
  gap: 0.6rem;
  margin: 2.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.article .footnote-definition-label {
  color: var(--rust);
  font-family: "Iosevka Term", ui-monospace, monospace;
  font-size: 0.8rem;
}

.article .footnote-definition p {
  margin: 0;
}

/* Raise superscripts without stretching the line they sit on. */
sup,
sub {
  position: relative;
  font-size: 0.75em;
  line-height: 0;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

.article .footnote-reference a {
  color: var(--rust);
  text-decoration: none;
}

.draft-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--rust);
  border-radius: 999px;
  color: var(--rust);
  font-family: "Iosevka Term", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Print: light palette on white paper, one column, no navigation. */
@media print {
  @page {
    size: A4;
    margin: 20mm 18mm 22mm;
  }

  /* Sizes on screen are in rem, so shrinking the root scales code, tables,
     notes and spacing together; body text then lands at 10pt. */
  html {
    font-size: 8.9pt;
  }

  :root {
    color-scheme: light;
    --paper: #fff;
    --paper-raised: #fff;
    --ink: #1a1b2e;
    --ink-soft: #2f3148;
    --muted: #5a5b74;
    --line: #cfc3d2;
    --line-strong: #9a8aa6;
    --rust: #9a4f5c;
    --rust-dark: #7f4552;
    --lavender: #5e4f86;
    --teal: #355a8c;
    --teal-soft: #eef2f8;
    --code: #faf8fb;
    --code-text: #2b2a40;
    --code-muted: #6d6879;
    --body-wash: transparent;
    --surface-wash: transparent;
  }

  html,
  body {
    background: #fff !important;
  }

  body {
    min-height: 0;
    color: var(--ink);
    font-size: 10pt;
    line-height: 1.45;
  }

  h1,
  .page-hero h1 {
    font-size: 24pt;
    line-height: 1.1;
  }

  h2,
  .article h2 {
    margin: 2.2em 0 0.6em;
    font-size: 16pt;
    line-height: 1.15;
  }

  h3,
  .article h3 {
    margin: 1.8em 0 0.5em;
    font-size: 12.5pt;
  }

  h4 {
    font-size: 11pt;
  }

  .lede,
  .rite-document > p:first-child {
    font-size: 12pt;
  }

  .article p {
    margin: 0 0 0.8em;
  }

  .code-window pre {
    font-size: 8.5pt;
    line-height: 1.45;
  }

  .skip-link,
  .bar-key,
  .site-header,
  .site-footer,
  .toc,
  .hero-actions,
  .button {
    display: none !important;
  }

  .shell {
    width: auto;
  }

  .doc-layout {
    display: block;
    padding: 0;
  }

  .page-hero {
    padding: 0 0 1.2rem;
    margin-bottom: 1.6rem;
  }

  .article {
    max-width: none;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .hero::before,
  .page-hero::before,
  .playground-main::before,
  .home .section::before {
    content: none;
  }

  h1,
  h2,
  h3,
  h4 {
    break-after: avoid;
    page-break-after: avoid;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }

  a {
    color: inherit;
  }

  .article a[href^="http"]::after,
  .article a[href^="/"]::after {
    color: var(--muted);
    font-size: 0.8em;
    overflow-wrap: anywhere;
  }

  .article a[href^="http"]::after {
    content: " (" attr(href) ")";
  }

  .article a[href^="/"]::after {
    content: " (ritchie.dev" attr(href) ")";
  }

  /* Code prints in full: no scroll box, long lines wrap. Long blocks may
     cross a page, but the file bar stays with the first lines. */
  .code-window,
  .article .code-window {
    border: 1px solid var(--line);
    overflow: visible;
    container-type: normal;
  }

  main {
    min-height: 0;
  }

  /* At print size a page holds about 55 code lines, so a code window moves
     whole rather than leaving its file bar behind; a longer one still splits.
     Kept unconditional: Safari counts pages and prints in separate passes,
     and a :has() test here appeared to make the two disagree and drop the
     last pages. */
  .code-window {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .code-window-bar {
    break-after: avoid;
    page-break-after: avoid;
  }

  .code-window pre {
    max-height: none;
    overflow: visible;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    orphans: 4;
    widows: 4;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }

  .code-window code {
    min-width: 0;
    white-space: pre-wrap;
    orphans: 4;
    widows: 4;
  }

  .article table,
  .inline-svg,
  .article blockquote,
  .callout {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .article thead {
    display: table-header-group;
  }

  /* GoAT diagrams switch to white strokes in dark mode; paper needs black. */
  svg.article-diagram,
  svg.rite-diagram {
    color: #000 !important;
  }

  /* A diagram wider than the column makes WebKit shrink the whole printout,
     and Safari then cuts the pages that no longer fit its earlier count. */
  svg.article-diagram,
  svg.rite-diagram {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* Undo the dark-mode syntax colours so highlighting keeps its light palette. */
  .giallo [style*="color: #A626A4"] {
    color: #a626a4 !important;
  }

  .giallo [style*="color: #50A14F"] {
    color: #50a14f !important;
  }

  .giallo [style*="color: #986801"] {
    color: #986801 !important;
  }

  .giallo [style*="color: #4078F2"] {
    color: #4078f2 !important;
  }

  .giallo [style*="color: #C18401"] {
    color: #c18401 !important;
  }

  .giallo [style*="color: #E45649"] {
    color: #e45649 !important;
  }

  .giallo [style*="color: #0184BC"] {
    color: #0184bc !important;
  }
}

/* Ritchie at a Glance quotes long runs of code inline, such as the list of
   keywords, which would push the page sideways unless they wrap at spaces. */
.glance-document code:not(pre code) {
  white-space: normal;
}

/* Links to related pages, under the page hero's lede. */
.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

/* The related-page links are keys (see the buttons). */
.section-links a {
  padding: 0.35rem 0.9rem;
  font-size: 0.92rem;
}

/* The Releases page's table of binary archives. */
.article .release-table {
  margin: 0;
}

.article .release-table tbody th {
  color: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  font-weight: inherit;
}

.release-table td:nth-child(2) {
  white-space: nowrap;
}

.release-table .release-sha {
  font-size: 0.78em;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .release-table thead {
    display: none;
  }

  .release-table tr,
  .release-table th,
  .release-table td {
    display: block;
  }

  .article .release-table tbody th {
    padding-bottom: 0.25rem;
    border-bottom: 0;
    font-weight: 600;
  }

  .article .release-table td {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    border-bottom: 0;
  }

  .article .release-table tr {
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
  }

  .article .release-table tr:last-child {
    border-bottom: 0;
  }
}
