@font-face { font-family: "Kalam"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/kalam-400.woff2") format("woff2"); }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/kalam-700.woff2") format("woff2"); }

:root {
  --hand: "Kalam", "Bradley Hand", cursive;
  --red: #c4392c;
  --blue: #2347a6;
  --green: #2c7a45;
  --graphite: #5a5c56;
  --hl: rgba(255, 214, 51, 0.5);
  --print: #ffffff;
  --shadow: 0 1px 2px rgba(17, 18, 16, 0.08), 0 10px 26px rgba(17, 18, 16, 0.09);
}
.ink-copper { --ink: #9b4a1c; }
.ink-amber { --ink: #855800; }
.ink-indigo { --ink: #2f3f91; }
.ink-teal { --ink: #0f6a6a; }
.ink-plum { --ink: #6e2c6c; }
.ink-forest { --ink: #2c6a3a; }
.ink-oxblood { --ink: #7d1f2c; }

.bar { display: flex; justify-content: space-between; align-items: baseline; max-width: 1440px; margin: 0 auto; padding: 30px 48px 0; font-size: 18px; }
.bar .name { font-size: 32px; letter-spacing: -0.01em; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.bar span a { margin-left: 24px; }

/* the intro, where an introduction would normally be */
.intro { max-width: 760px; margin: 170px auto 30px; padding: 0 32px; text-align: center; }
.intro p { font-size: 30px; line-height: 1.45; margin: 0 0 18px; }
.intro p.small { font: 400 20px/1.4 var(--hand); color: var(--graphite); margin: 0 0 60px; }
.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; font: 400 21px/1.3 var(--hand); }
.toc a { color: var(--ink); border-bottom: 1.5px solid transparent; }
.toc a:hover { text-decoration: none; border-bottom-color: var(--ink); }

.board { position: relative; max-width: 1480px; margin: 0 auto; padding: 120px 56px 40px; }
.block { margin-bottom: 120px; scroll-margin-top: 40px; }
.heading { font: 700 40px/1.1 var(--hand); color: var(--ink); margin: 0 0 56px; transform: rotate(-1.5deg); transform-origin: left; display: inline-block; }
.heading::after { content: ""; display: block; height: 8px; margin-top: 4px; border-bottom: 2px solid var(--ink); border-radius: 0 0 50% 50% / 0 0 100% 100%; opacity: 0.5; }
.spread { position: relative; display: grid; grid-template-columns: var(--cols); column-gap: 96px; align-items: center; }
/* Room between the cards themselves, on top of each card's own drop */
.col > .card + .card { margin-top: calc(var(--drop) + 72px); }
.col { display: flex; flex-direction: column; min-width: 0; }

/* cards */
.card { position: relative; margin-top: var(--drop); transform: rotate(var(--tilt)); transition: transform 0.3s ease; }
.card:first-child { margin-top: var(--drop); }
.card:hover { transform: rotate(0deg) translateY(-2px); z-index: 5; }
.card h3 { font-weight: 400; color: var(--ink); line-height: 1.15; margin: 16px 0 4px; }
.card h3 a:hover { text-decoration-color: var(--ink); }
.k-hero h3 { font-size: 34px; }
.k-mid h3 { font-size: 25px; }
.k-small h3 { font-size: 20px; }
.k-award h3, .k-text h3 { font-size: 20px; margin-top: 0; }
.card .meta { margin: 0 0 6px; font-style: italic; color: var(--soft); font-size: 16px; }
.card .cap { margin: 0 0 10px; color: var(--soft); line-height: 1.5; }
.k-hero .cap { font-size: 19px; }
.k-mid .cap { font-size: 17px; }
.k-small .cap { font-size: 16px; }
.k-text .cap { font-size: 16.5px; color: var(--ink); }
.card ul { margin: 12px 0 0; padding-left: 20px; line-height: 1.5; }
.k-hero ul { font-size: 18px; }
.k-mid ul, .k-award ul, .k-text ul { font-size: 16px; }
.k-small ul { font-size: 15px; }
.card li { margin-bottom: 8px; }
.card li::marker { color: var(--ink); }

/* pictures, printed with a white border */
.pic { position: relative; display: block; }
.frame { position: relative; background: var(--print); padding: 8px; box-shadow: var(--shadow); }
.k-hero .frame { padding: 11px; }
.frame img, .frame video, .inset img, .inset video { display: block; width: 100%; height: auto; }
.frame.pair { display: grid; grid-template-columns: 1fr 1.58fr; gap: 10px; align-items: center; background: #11131a; padding: 12px; }
.inset { position: absolute; z-index: 2; background: var(--print); padding: 6px; box-shadow: var(--shadow); transform: rotate(var(--r)); }
.inset-bl { left: -7%; bottom: -16%; }
.inset-br { right: -7%; bottom: -16%; }
.inset-tr { right: -8%; top: -10%; }
.pic > a { display: block; }
.pic-ring { position: absolute; border: 2.5px solid var(--red); border-radius: 50% 46% 54% 47% / 52% 55% 45% 49%; transform: rotate(-3deg) scale(1.06); filter: url(#rough); pointer-events: none; }

/* tape */
.tape { position: absolute; z-index: 3; width: 104px; height: 28px; background: rgba(232, 222, 190, 0.72); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); pointer-events: none; }
.tape-t { top: -14px; left: 50%; transform: translateX(-50%) rotate(-2.5deg); }
.tape-tl { top: -6px; left: -22px; transform: rotate(-32deg); }
.tape-tr { top: -6px; right: -22px; transform: rotate(31deg); }

/* certificate and index-card slips */
.k-award { background: var(--print); padding: 22px 24px 20px; box-shadow: var(--shadow); outline: 1px solid var(--ink); outline-offset: -7px; }
.k-text { background: var(--print) repeating-linear-gradient(transparent 0 25px, rgba(35, 71, 166, 0.13) 25px 26px); background-position: 0 36px; padding: 22px 24px 18px; box-shadow: var(--shadow); border-top: 2px solid rgba(196, 57, 44, 0.45); }
.k-award ul, .k-text ul { margin-top: 6px; }

/* pen marks */
mark { color: inherit; background: linear-gradient(100deg, transparent 1%, var(--hl) 3%, rgba(255, 214, 51, 0.38) 96%, transparent 99%) 0 70% / 100% 72% no-repeat; padding: 0 2px; }
.ring { display: inline-block; white-space: nowrap; line-height: 1.2; padding: 1px 8px 0; margin: -2px -6px; border: 2px solid var(--red); border-radius: 50% 44% 52% 47% / 58% 50% 52% 46%; transform: rotate(-1.5deg); }
.nw { white-space: nowrap; }
.ul { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-skip-ink: none; }
.note { position: absolute; z-index: 6; font: 700 21px/1 var(--hand); white-space: nowrap; transform: rotate(var(--r)); pointer-events: none; }
.k-small .note { font-size: 19px; }
.note.ink-red { color: var(--red); }
.note.ink-blue { color: var(--blue); }
.note.ink-green { color: var(--green); }
.note.ink-graphite { color: var(--graphite); font-weight: 400; }

blockquote { margin: 12px 0 6px; padding: 2px 0 2px 16px; border-left: 2px solid var(--ink); font-style: italic; font-size: 18px; }
blockquote span { display: block; font-style: normal; font-size: 13.5px; color: var(--soft); margin-top: 2px; }

/* logos and the stamp */
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 20px; }
.logos img { width: auto; display: block; }
.stamp { font: 700 13px/1 var(--tex); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); border: 2px solid var(--ink); padding: 6px 9px 5px; transform: rotate(-5deg); opacity: 0.85; outline: 1px solid var(--ink); outline-offset: 2px; }

/* threads between related work */
.threads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.threads path { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: url(#rough); }
.threads text { font: 700 19px var(--hand); paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }

.end { text-align: center; padding: 40px 32px 72px; color: var(--soft); }
.end .poem { margin: 0 auto 70px; max-width: 640px; border: 0; padding: 0; font-style: italic; font-size: 22px; line-height: 1.55; color: var(--ink, #111210); }
.end .poem p { margin: 0 0 12px; }
.end .poem cite { display: block; margin-top: 18px; font: 400 17px var(--hand); color: var(--graphite); }
.end .nita { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; font-size: 15px; }

@media (max-width: 1100px) {
  .bar { padding: 26px 32px 0; }
  .board { padding: 80px 32px 32px; }
  .block { margin-bottom: 120px; }
  .spread { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; }
  .col { display: contents; }
  .card, .col > .card + .card { order: var(--order); margin-top: calc(var(--drop) * 0.4 + 72px); width: auto !important; }
  .card.k-hero { grid-column: 1 / -1; }
  .threads { display: none; }
}
@media (max-width: 720px) {
  .bar { padding: 22px 20px 0; flex-direction: column; gap: 10px; }
  .bar .name { font-size: 28px; }
  .end .poem { font-size: 19px; }
  .bar span { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; }
  .bar span a { margin-left: 0; }
  .board { padding: 64px 20px 24px; }
  .intro { margin-top: 90px; padding: 0 22px; }
  .intro p { font-size: 24px; }
  .intro p.small { font-size: 18px; }
  .toc { font-size: 19px; gap: 10px 20px; }
  .block { margin-bottom: 100px; }
  .heading { font-size: 32px; }
  .spread { grid-template-columns: minmax(0, 1fr); }
  .card, .card:first-child, .col > .card + .card { margin-top: 96px; transform: rotate(calc(var(--tilt) * 0.4)); }
  /* a handwritten note sits above some cards, so those need room for it */
  .card:has(.note:not(.secret)), .card:first-child:has(.note:not(.secret)), .col > .card + .card:has(.note:not(.secret)) { margin-top: 136px; }
  .block .card[style*="--order:-1"] { margin-top: 56px; }
  .block .card[style*="--order:-1"]:has(.note:not(.secret)) { margin-top: 92px; }
  .heading { margin-bottom: 8px; }
  .intro { margin-top: 64px; }
  .intro p.small { margin-bottom: 40px; }
  .note { max-width: calc(100vw - 48px); white-space: normal; }
  .more a { font-size: 14px; }
  .tag { right: 0; }
  .k-hero h3 { font-size: 27px; }
  .inset { width: 44% !important; }
  .inset-bl { left: -2%; }
  .inset-br, .inset-tr { right: -2%; }
  .note { font-size: 18px !important; }
  .ring { white-space: normal; display: inline; padding: 0 3px; margin: 0; }
  .frame.pair { grid-template-columns: 1fr; }
}

/* "Click to play" and similar tags pinned to a picture */
.tag { position: absolute; z-index: 3; right: -10px; bottom: 18px; font: 700 15px/1 var(--hand); color: #fff; background: var(--ink); padding: 7px 12px 6px; transform: rotate(-4deg); box-shadow: 0 2px 6px rgba(17, 18, 16, 0.25); }
.pic a:hover .tag { background: var(--red); }

/* extra links under a card */
.more { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 14px 0 0; }
.more a { font-size: 14.5px; color: var(--ink); border: 1px solid currentColor; border-radius: 999px; padding: 3px 11px 2px; }
.more a:hover { text-decoration: none; background: var(--ink); color: #fff; }

/* open source cards, in the manner of a GitHub pull request list */
.k-gh { background: var(--print); box-shadow: var(--shadow); border: 1px solid #d0d7de; border-radius: 8px; padding: 0 0 18px; overflow: visible; }
.k-gh .repo { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 18px; background: #f6f8fa; border-bottom: 1px solid #d0d7de; border-radius: 8px 8px 0 0; font-size: 15px; color: #1f2328; }
.k-gh .repo .stars { margin-left: auto; display: flex; align-items: center; gap: 5px; color: #59636e; }
.k-gh h3 { margin: 16px 18px 4px; font-size: 24px; }
.k-gh .logos { margin: 16px 18px 0; }
.oct { flex: none; fill: currentColor; }
.oct-star { fill: #d4a72c; }
.prs { list-style: none; padding: 0; margin: 10px 0 0; font-size: 15.5px; }
.prs li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 18px; border-top: 1px solid #eaeef2; margin: 0; line-height: 1.4; }
.prs li:first-child { border-top: 0; }
.prs .oct { margin-top: 3px; }
.prs b { font-weight: 700; }
.pr-merged .oct { fill: #8250df; }
.pr-open .oct { fill: #1a7f37; }
.pr-issue .oct { fill: #1a7f37; }
.pr-mail .oct { fill: #59636e; }
.k-gh .note { z-index: 6; }

/* a note that only shows while its card is hovered */
.note.secret { opacity: 0; transition: opacity 0.35s ease, transform 0.35s ease; }
.card:hover .note.secret { opacity: 1; transform: rotate(var(--r)) translateY(-3px); }

/* By order of the Crown: five clicks on the name stamp it across the page */
.crown { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; pointer-events: none; }
.crown span { white-space: nowrap; font: 700 clamp(20px, 4.4vw, 66px)/1 var(--tex); letter-spacing: 0.12em; text-transform: uppercase; color: #9b1c2c; border: 6px solid #9b1c2c; outline: 2px solid #9b1c2c; outline-offset: 8px; padding: 22px 34px 18px; background: rgba(253, 253, 252, 0.6); mix-blend-mode: multiply; animation: stamp 2.6s ease forwards; }
@keyframes stamp {
  0% { transform: rotate(-8deg) scale(2.4); opacity: 0; }
  14% { transform: rotate(-8deg) scale(0.96); opacity: 0.92; }
  20% { transform: rotate(-8deg) scale(1); opacity: 0.9; }
  80% { transform: rotate(-8deg) scale(1); opacity: 0.9; }
  100% { transform: rotate(-8deg) scale(1); opacity: 0; }
}

/* Inviting people in: the intro fills the first screen, cards are pinned up as they come into view,
   and every section ends by pointing at the next one. */
.intro { min-height: calc(100vh - 120px); margin-top: 0; padding-top: clamp(56px, 10vh, 120px); padding-bottom: 40px; display: flex; flex-direction: column; justify-content: center; }
.start { align-self: center; margin-top: 64px; font: 700 22px/1 var(--hand); color: var(--red); }
.start span { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
.start:hover { text-decoration: none; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.board { padding-top: 40px; }
.js .card.later { opacity: 0; transform: translateY(26px) rotate(calc(var(--tilt) * 2.5)); }
.js .card { transition: transform 0.6s cubic-bezier(.2,.7,.3,1), opacity 0.6s ease; }
@media (prefers-reduced-motion: reduce) {
  .js .card.later { opacity: 1; transform: rotate(var(--tilt)); }
  .start span { animation: none; }
}
@media (max-width: 720px) {
  .intro { min-height: calc(100svh - 140px); margin-top: 0; }
}

/* the lamp: dark mode switch */
.lamp { margin-left: 24px; width: 22px; height: 22px; padding: 0; border: 1.8px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); color: var(--ink); cursor: pointer; vertical-align: -4px; transition: transform 0.4s ease; }
.lamp:hover { transform: rotate(180deg); }
@media (max-width: 720px) { .lamp { margin-left: 0; } }

[data-theme="dark"] {
  --paper: #131412;
  --ink: #ecebe5;
  --soft: #a8a9a2;
  --hair: #34352f;
  --print: #1d1e1b;
  --red: #ef7a6c;
  --blue: #8aa4f0;
  --green: #74c38c;
  --graphite: #a3a59d;
  --hl: rgba(255, 214, 51, 0.28);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 26px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
[data-theme="dark"] .ink-copper { --ink: #e69a6c; }
[data-theme="dark"] .ink-amber { --ink: #e3b450; }
[data-theme="dark"] .ink-indigo { --ink: #9eabf0; }
[data-theme="dark"] .ink-teal { --ink: #5cc6c4; }
[data-theme="dark"] .ink-plum { --ink: #d897d4; }
[data-theme="dark"] .ink-forest { --ink: #7fca8f; }
[data-theme="dark"] .ink-oxblood { --ink: #ec8b98; }
[data-theme="dark"] .ink-graphite { --ink: #a3a59d; }
[data-theme="dark"] .tape { background: rgba(200, 190, 150, 0.35); }
[data-theme="dark"] .k-text { background-image: repeating-linear-gradient(transparent 0 25px, rgba(138, 164, 240, 0.12) 25px 26px); }
[data-theme="dark"] .logos img { background: #f2f2ee; padding: 4px 6px; border-radius: 4px; box-sizing: content-box; }
[data-theme="dark"] .more a:hover { color: var(--paper); }
[data-theme="dark"] .tag { color: var(--paper); }
[data-theme="dark"] .k-gh { border-color: #3d444d; }
[data-theme="dark"] .k-gh .repo { background: #252723; border-color: #3d444d; color: var(--ink); }
[data-theme="dark"] .k-gh .repo .stars { color: var(--soft); }
[data-theme="dark"] .prs li { border-color: #2f322d; }
[data-theme="dark"] .crown span { mix-blend-mode: normal; color: #ec8b98; border-color: #ec8b98; outline-color: #ec8b98; background: rgba(19, 20, 18, 0.7); }
[data-theme="dark"] img:not(.logos img), [data-theme="dark"] video { filter: brightness(0.92); }

/* Each card is cut out along a dashed line, and a click lifts it off the board to centre stage. */
.board .card { cursor: zoom-in; }
.board .card::before { content: ""; position: absolute; inset: -18px; border: 1.5px dashed var(--graphite); border-radius: 6px; opacity: 0.45; pointer-events: none; transition: opacity 0.3s ease; }
.board .card:hover::before { opacity: 0.9; }
.board .card.lifted { opacity: 0.15; }
body.staged { overflow: hidden; }
.stage { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 4vh 4vw; background: color-mix(in srgb, var(--paper) 55%, transparent); backdrop-filter: blur(9px) saturate(0.8); -webkit-backdrop-filter: blur(9px) saturate(0.8); animation: fade 0.25s ease; }
.stage[hidden] { display: none; }
.stage-card { position: relative; width: min(880px, 100%); max-height: 92vh; overflow: auto; background: var(--paper); padding: 52px 56px 44px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25); border: 1.5px dashed var(--graphite); border-radius: 8px; animation: lift 0.35s cubic-bezier(.2,.8,.3,1.1); }
.stage-card > .card { transform: none !important; margin: 0 !important; width: auto !important; }
.stage-card > .card:hover { transform: none; }
.stage-card .k-mid h3, .stage-card .k-small h3, .stage-card .k-award h3, .stage-card .k-text h3 { font-size: 30px; }
.stage-card .cap { font-size: 19px !important; }
.stage-card ul { font-size: 17.5px !important; }
.stage-card .note { position: static; display: inline-block; margin: 0 0 14px; white-space: normal; }
.stage-card .note.secret { opacity: 1; }
.stage-close { position: fixed; top: 18px; right: 24px; z-index: 41; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); font: 400 38px/1 var(--tex); cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
@keyframes lift { from { transform: scale(0.92) rotate(-1deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .stage, .stage-card { animation: none; } }
@media (max-width: 720px) {
  .board .card::before { inset: -10px; }
  .stage { padding: 0; }
  .stage-card { max-height: 100svh; height: 100%; padding: 64px 22px 32px; border: 0; border-radius: 0; }
}
/* On stage the corner photos tuck inside the main picture, since the stage clips anything past its edge */
.stage-card .inset-tr { right: 12px; top: 12px; }
.stage-card .inset-bl { left: 12px; bottom: 12px; }
.stage-card .inset-br { right: 12px; bottom: 12px; }
.stage-card .pic { margin-bottom: 0 !important; }

/* What only shows on stage: the story, a few more pictures, the live demo and related cards */
.card .extra { display: none; }
.stage-card .extra { display: block; margin-top: 30px; padding-top: 26px; border-top: 1.5px dashed var(--hair); }
.story { margin: 0 0 24px; font-size: 19px; line-height: 1.6; }
.story .when { display: block; font: 400 18px/1 var(--hand); color: var(--graphite); margin-bottom: 8px; }
.gallery { display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 14px; margin: 0 0 24px; scroll-snap-type: x mandatory; }
.gallery img { flex: none; height: 300px; width: auto; background: var(--print); padding: 6px; box-shadow: var(--shadow); scroll-snap-align: start; }
.demo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0 0 24px; }
.demo button { font: 700 20px/1 var(--hand); color: var(--paper); background: var(--ink); border: 0; padding: 11px 18px 9px; cursor: pointer; transform: rotate(-1.5deg); }
.demo button:hover { background: var(--red); }
.demo a { font-size: 15px; color: var(--soft); }
.demo iframe { flex: 1 0 100%; height: 70vh; border: 1.5px solid var(--hair); border-radius: 6px; background: #fff; }
.related { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; margin: 0; }
.related span { font: 400 18px/1 var(--hand); color: var(--graphite); margin-right: 4px; }
.related a { font-size: 15px; border: 1px dashed var(--graphite); border-radius: 999px; padding: 4px 12px 3px; }
.related a:hover { text-decoration: none; border-style: solid; }
@media (max-width: 720px) {
  .gallery img { height: 220px; }
  .demo iframe { height: 75svh; }
}

/* The GitHub contribution chart above the contents */
.contrib { width: min(820px, 100vw - 40px); margin: 0 0 52px 50%; transform: translateX(-50%); opacity: 0; transition: opacity 0.6s ease; }
.contrib.on { opacity: 1; }
.contrib-scroll { overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.contrib-scroll::-webkit-scrollbar { display: none; }
.contrib svg { display: block; margin: 0 auto; height: auto; max-width: none; }
.contrib rect { stroke: rgba(17, 18, 16, 0.06); stroke-width: 1; }
.contrib rect:hover { stroke: var(--ink); stroke-width: 1.4; }
.contrib .lv0 { fill: #ebece6; }
.contrib .lv1 { fill: #c9e7a1; }
.contrib .lv2 { fill: #93cc5c; }
.contrib .lv3 { fill: #5a9e2f; }
.contrib .lv4 { fill: #2f6416; }
.contrib-month { font: 400 10.5px var(--tex); fill: var(--soft); }
.contrib figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: fit-content; min-width: min(100%, 740px); margin: 12px auto 0; font: 400 18px/1.3 var(--hand); color: var(--graphite); }
.contrib-key { display: flex; align-items: center; gap: 3px; font-size: 15px; }
.contrib-key i { display: inline-block; width: 11px; height: 11px; border-radius: 2.5px; }
.contrib-key i:first-child { margin-left: 4px; }
.contrib-key i:last-child { margin-right: 4px; }
.contrib-key .lv0 { background: #ebece6; } .contrib-key .lv1 { background: #c9e7a1; } .contrib-key .lv2 { background: #93cc5c; } .contrib-key .lv3 { background: #5a9e2f; } .contrib-key .lv4 { background: #2f6416; }
[data-theme="dark"] .contrib-key .lv0 { background: #22241f; } [data-theme="dark"] .contrib-key .lv1 { background: #2f4a1c; } [data-theme="dark"] .contrib-key .lv2 { background: #4a7a26; } [data-theme="dark"] .contrib-key .lv3 { background: #75b23c; } [data-theme="dark"] .contrib-key .lv4 { background: #b6e36a; }
.contrib figcaption a:hover { text-decoration: none; color: var(--ink); }
[data-theme="dark"] .contrib rect { stroke: rgba(255, 255, 255, 0.04); }
[data-theme="dark"] .contrib .lv0 { fill: #22241f; }
[data-theme="dark"] .contrib .lv1 { fill: #2f4a1c; }
[data-theme="dark"] .contrib .lv2 { fill: #4a7a26; }
[data-theme="dark"] .contrib .lv3 { fill: #75b23c; }
[data-theme="dark"] .contrib .lv4 { fill: #b6e36a; }
@media (max-width: 720px) {
  .contrib { margin-bottom: 36px; }
  .contrib svg { margin: 0; }
  .contrib-key { display: none !important; }
  .contrib figcaption { justify-content: center; text-align: center; }
}

/* The address of a card's own page, at the foot of the stage */
.own { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 22px 0 0; }
.own span { font: 400 18px/1 var(--hand); color: var(--graphite); }
.own a { font-size: 15px; color: var(--soft); text-decoration: underline; text-decoration-style: dashed; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* A project's own page: the same card as on stage, laid flat on the paper */
.sheet { max-width: 880px; margin: 0 auto; padding: 70px 24px 30px; }
.crumb { display: flex; gap: 10px; margin: 0 0 26px; font: 400 20px/1.2 var(--hand); color: var(--graphite); }
.crumb a:hover { color: var(--ink); }
.sheet .stage-card { width: auto; max-height: none; overflow: visible; animation: none; box-shadow: var(--shadow); }
.sheet .card h1 { font-weight: 400; font-size: 36px; line-height: 1.15; color: var(--ink); margin: 18px 0 6px; }
.sheet .k-gh h1 { margin: 16px 18px 4px; }
.sheet .card:hover { z-index: auto; }
.turn { display: flex; justify-content: space-between; gap: 24px; margin: 34px 4px 0; font: 400 19px/1.3 var(--hand); color: var(--graphite); }
.turn a { max-width: 46%; }
.turn a:last-child { text-align: right; }
.turn a:hover { color: var(--ink); text-decoration: none; }
.solo .end { padding-top: 50px; }
@media (max-width: 720px) {
  .sheet { padding: 40px 0 20px; }
  .crumb, .turn { margin-inline: 22px; font-size: 18px; }
  .sheet .stage-card { height: auto; max-height: none; padding: 30px 22px 32px; box-shadow: none; }
  .sheet .card h1 { font-size: 29px; }
}
