/* Toy Box: Ryan Kamp. Tokens first, then one block per section. */

@font-face {
  font-family: Fredoka;
  src: url(assets/fonts/fredoka-latin.woff2) format('woff2');
  font-weight: 300 700;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --ink: #1b1036;
  --paper: #fffdf5;
  --yellow: #ffd60a;
  --pink: #ff3d8b;
  --teal: #00b8bd;
  --teal-deep: #00a3ad;
  --orange: #ff6a1f;
  --violet: #6a2cff;
  --sky: #96f0ff;
  --font: Fredoka, 'Arial Rounded MT Bold', 'Helvetica Neue', system-ui, sans-serif;
  --line: 3px;
  --pad: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 500 clamp(1rem, 0.96rem + 0.22vw, 1.14rem)/1.5 var(--font);
  color: var(--ink);
  background: var(--yellow) radial-gradient(circle, rgb(255 255 255 / 0.5) 2.4px, transparent 3px) 0 0 / 24px 24px;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-user-select: none; user-select: none; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.86em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.band--ink :focus-visible { outline-color: var(--paper); }
.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 10; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
.small { font-size: 0.9em; opacity: 0.86; }

/* Stickers: a white die-cut edge, an ink line, a hard shadow. */
.st, .chip, .card, .interests li, .elsewhere a, .nav__mark {
  border: var(--line) solid var(--ink);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 calc(4px + var(--line)) var(--ink), 6px 9px 0 4px var(--ink);
}
.st {
  --tilt: 0deg;
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.5em 1em 0.5em 0.6em;
  border-radius: 999px;
  font-weight: 700; font-size: clamp(1rem, 0.9rem + 0.7vw, 1.4rem); font-stretch: 112%;
  background: var(--c, var(--paper)); color: var(--fg, var(--ink));
  transform: rotate(var(--tilt));
  transition: transform 0.14s, box-shadow 0.14s, background 0.14s;
  touch-action: manipulation;
}
.st kbd {
  font: inherit; font-size: 0.7em; display: grid; place-items: center; width: 1.7em; height: 1.7em;
  border-radius: 50%; background: var(--ink); color: var(--paper);
}
.st--pink { --c: var(--pink); --tilt: -2deg; }
.st--yellow { --c: var(--yellow); --tilt: 1.5deg; }
.st--orange { --c: var(--orange); --tilt: -1deg; }
.st--violet { --c: var(--violet); --fg: var(--paper); --tilt: 2deg; }
.st--sky { --c: var(--sky); --tilt: -1.5deg; }
.st:hover { transform: rotate(var(--tilt)) translateY(-3px); }
.st:active, .st[aria-pressed='true'] {
  transform: rotate(var(--tilt)) translate(4px, 6px);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 calc(4px + var(--line)) var(--ink), 2px 3px 0 4px var(--ink);
}
.st[aria-pressed='true'] { background: var(--ink); color: var(--c); }
.st[aria-pressed='true'] kbd { background: var(--c); color: var(--ink); }
.st--violet[aria-pressed='true'] { color: var(--paper); }

.chip {
  padding: 0.28em 0.85em; border-radius: 999px; background: var(--paper); font-weight: 600; font-size: 0.95em;
  box-shadow: 3px 4px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
  touch-action: manipulation;
}
.chip:hover { transform: translateY(-2px); }
.chip:active, .chip[aria-pressed='true'] { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--yellow); }
.chip--dash { border-style: dashed; }
.chip:disabled { opacity: 0.45; cursor: not-allowed; }

.link {
  display: inline-block; font-weight: 700; text-decoration: none;
  border-bottom: 3px solid currentColor; padding-bottom: 1px;
}
.link::after { content: ' \2197'; }
.link:hover { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: 0.4em 1.2em; margin-top: 0.9em; }

/* Hero */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px 30px; }
.nav__mark {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--pink);
  font-weight: 700; text-decoration: none; transform: rotate(-8deg); flex: none;
}
.nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px clamp(10px, 2.4vw, 28px); font-weight: 600; }
.nav ul a { text-decoration: none; padding: 6px 2px; border-bottom: 3px solid transparent; }
.nav ul a:hover { border-color: var(--ink); }

.pack {
  position: relative;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: clamp(22px, 3.4vw, 40px);
  box-shadow: clamp(6px, 1vw, 12px) clamp(8px, 1.3vw, 16px) 0 var(--ink);
  padding: clamp(34px, 4vw, 46px) clamp(12px, 2.4vw, 30px) clamp(14px, 2.2vw, 26px);
}
.pack__hole {
  position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 88px; height: 20px;
  border: 4px solid var(--ink); border-radius: 999px; background: var(--yellow);
}
.pack__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pack__brand { font-size: 0.95em; line-height: 1.25; }
.pack__brand b { font-weight: 700; font-stretch: 118%; text-transform: uppercase; letter-spacing: 0.04em; }
#sound { flex: none; }

.stage {
  position: relative; aspect-ratio: 16 / 8.2; max-height: 68vh; width: 100%;
  border: 4px solid var(--ink); border-radius: clamp(16px, 2.4vw, 28px); overflow: hidden;
  background: repeating-conic-gradient(from 4deg at 50% 54%, var(--teal) 0 9deg, var(--teal-deep) 9deg 18deg);
}
.stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgb(255 255 255 / 0.24), transparent 58%);
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; z-index: 1; }
.stage canvas:active { cursor: grabbing; }
.stage[data-tool='paint'] canvas, .stage[data-tool='poke'] canvas { cursor: crosshair; }
.stage[data-tool='blow'] canvas { cursor: cell; }
.stage__name {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-weight: 700; font-stretch: 110%; font-size: clamp(3.4rem, 15vw, 11rem); line-height: 0.9; text-transform: uppercase;
  color: var(--yellow); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 6px 8px 0 var(--ink);
}
.stage.is-live .stage__name { opacity: 0; }
.stage__hint {
  position: absolute; left: 50%; bottom: 12px; translate: -50% 0; z-index: 2; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 0.25em 0.9em; border-radius: 999px;
  font-size: 0.9em; font-weight: 500; text-align: center; width: max-content; max-width: calc(100% - 24px);
  transition: opacity 0.4s;
}
.no-gl .stage__hint { display: none; }
.stage.is-touched[data-tool='spin'] .stage__hint { opacity: 0; }

.tools { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 2vw, 24px) clamp(16px, 2.6vw, 30px); margin: clamp(20px, 2.6vw, 30px) 0 8px; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.swatches[hidden] { display: none; }
.swatches button:not(.chip) {
  width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ink); background: var(--c); padding: 0;
  transition: transform 0.12s;
}
.swatches button:not(.chip)[aria-pressed='true'] { transform: scale(1.25); box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); }
.swatches .chip { margin-left: 8px; }

.pack__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; margin-top: clamp(18px, 2.4vw, 28px); }
.shelf, .share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.shelf__label { font-weight: 700; font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.08em; margin-right: 2px; }

.contents {
  margin-top: 18px; border: var(--line) solid var(--ink); border-radius: 14px; padding: 10px 14px 10px;
  font-size: 0.92em; display: grid; gap: 4px; font-variant-numeric: tabular-nums;
}
.contents__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; border-bottom: var(--line) solid var(--ink); padding-bottom: 8px; margin-bottom: 2px; }
.contents__head > span:first-child, .detail__label { font-weight: 700; font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.12em; }
.detail { display: inline-flex; align-items: center; gap: 10px; }
.detail[hidden] { display: none; }
.detail .chip { font-size: 0.86em; }
.contents__n { font-weight: 700; }
.contents__letters { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; vertical-align: middle; }
.contents__letters span { white-space: nowrap; }
.contents__letters i {
  font-style: normal; font-weight: 700; display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-right: 4px;
  border-radius: 50%; border: 2px solid var(--ink); background: var(--c); font-size: 0.85em;
}
.contents__paint { font-weight: 700; color: #c2185b; }
.contents__status { min-height: 1.5em; font-weight: 600; }

.hero__foot { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px clamp(24px, 5vw, 70px); padding-block: clamp(30px, 5vw, 60px); align-items: start; }
.hero__intro { font-size: clamp(1.15rem, 1rem + 0.9vw, 1.6rem); line-height: 1.38; }
.hero__aside { border-left: 4px solid var(--ink); padding-left: 16px; }

/* Bands */
.band { border-top: 4px solid var(--ink); padding-block: clamp(48px, 8vw, 100px); }
.band--teal { background: var(--teal); }
.band--paper { background: var(--paper) radial-gradient(circle, rgb(27 16 54 / 0.09) 2px, transparent 2.6px) 0 0 / 22px 22px; }
.band--pink { background: var(--pink); }
.band--ink { background: var(--ink); color: var(--paper); }
.head { margin-bottom: clamp(26px, 4vw, 48px); max-width: 60rem; }
.head__tag {
  display: inline-block; background: var(--ink); color: var(--yellow); font-weight: 700; font-size: 0.82em; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 0.25em 0.9em; border-radius: 999px; transform: rotate(-2deg); margin-bottom: 10px;
}
.band--ink .head__tag { background: var(--yellow); color: var(--ink); }
.head h2 { font-size: clamp(2.6rem, 1.6rem + 5.4vw, 6rem); line-height: 0.95; font-weight: 700; font-stretch: 112%; letter-spacing: -0.01em; }
.head__lede { margin-top: 16px; font-size: clamp(1.08rem, 1rem + 0.5vw, 1.35rem); max-width: 52rem; }

.box { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(22px, 4vw, 48px); align-items: start; margin-bottom: clamp(34px, 5vw, 60px); }
.box > * { min-width: 0; }
.embed {
  aspect-ratio: 4 / 3; border: 4px solid var(--ink); border-radius: 24px; background: var(--paper);
  display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 20px; overflow: hidden;
  box-shadow: 8px 10px 0 var(--ink);
}
.embed.is-loaded { padding: 0; display: block; }
.embed iframe { width: 100%; height: 100%; border: 0; display: block; color-scheme: light; }
.embed__note { font-size: 0.88em; max-width: 30em; }
.box__role { background: var(--yellow); border: 4px solid var(--ink); border-radius: 24px; padding: clamp(18px, 2.6vw, 30px); transform: rotate(1deg); box-shadow: 8px 10px 0 var(--ink); }
.box__role h3 { font-size: 1.5em; font-stretch: 112%; margin-bottom: 8px; }
.box__role p + p { margin-top: 12px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: clamp(26px, 3vw, 38px); }
.card {
  background: var(--c, var(--paper)); color: var(--fg, var(--ink)); border-radius: 22px; padding: 18px 20px 20px;
  transform: rotate(var(--tilt, 0deg)); min-width: 0;
}
.card h3 { font-size: 1.45em; line-height: 1.1; font-stretch: 112%; margin-bottom: 6px; }
.card .link:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.one {
  margin-top: clamp(40px, 6vw, 70px); display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: clamp(20px, 4vw, 50px); align-items: center;
  background: var(--paper); border: 4px solid var(--ink); border-radius: 28px; padding: clamp(16px, 3vw, 34px); box-shadow: 8px 10px 0 var(--ink);
}
.one__art { aspect-ratio: 1; border: var(--line) dashed var(--ink); border-radius: 20px; background: var(--yellow); }
.one__art canvas { width: 100%; height: 100%; display: block; }
.one h3 { font-size: 1.7em; font-stretch: 112%; margin-bottom: 6px; }
.sliders { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0; font-weight: 600; }
.sliders label { display: flex; align-items: center; gap: 8px; }
.sliders input { accent-color: var(--pink); width: min(140px, 38vw); }
.one__cov { font-family: ui-monospace, Menlo, monospace; font-size: 0.92em; background: var(--ink); color: var(--yellow); padding: 8px 12px; border-radius: 10px; display: inline-block; margin-bottom: 12px; white-space: pre-wrap; }

/* Small live pieces for the shelf */
.art { position: relative; height: 96px; margin-bottom: 14px; border: var(--line) solid var(--ink); border-radius: 14px; background: var(--paper); overflow: hidden; color: var(--ink); }
.art--grooph { background: var(--paper) linear-gradient(var(--ink), var(--ink)) 50% 62% / 72% 3px no-repeat; }
/* The loop back from the critic to the builder, as an arch over the first two nodes. */
.art--grooph::before { content: ''; position: absolute; left: 14%; width: 36%; top: 22%; height: 40%; border: var(--line) solid var(--ink); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.art--grooph .node { position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -15px; border-radius: 50%; background: var(--n); border: var(--line) solid var(--ink); }
.art--grooph .token {
  position: absolute; left: 32%; top: 22%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink);
  animation: travel 6s linear infinite;
}
/* Builder to critic, back over the arch, builder to critic again, then on to the person. */
@keyframes travel {
  0% { left: 14%; top: 62%; } 14%, 18% { left: 50%; top: 62%; }
  24% { left: 44.7%; top: 33.7%; } 30% { left: 32%; top: 22%; } 36% { left: 19.3%; top: 33.7%; }
  42%, 46% { left: 14%; top: 62%; } 60%, 64% { left: 50%; top: 62%; } 82%, 100% { left: 86%; top: 62%; }
}
.art--list { display: grid; align-content: center; gap: 7px; padding-inline: 16px; }
.art--list i { height: 8px; border-radius: 99px; background: var(--ink); transform-origin: left; animation: grow 5s ease-in-out infinite; animation-delay: calc(var(--k, 0) * 0.5s); }
.art--list i:nth-child(1) { width: 62%; } .art--list i:nth-child(2) { width: 84%; --k: 1; } .art--list i:nth-child(3) { width: 48%; --k: 2; }
.art--list i:nth-child(4) { width: 73%; --k: 3; } .art--list i:nth-child(5) { width: 36%; --k: 4; background: var(--pink); }
@keyframes grow { 0%, 8% { transform: scaleX(0); } 22%, 100% { transform: scaleX(1); } }
.art--resmon { background: var(--ink); }
.art--resmon .sweep { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 300deg, var(--yellow) 360deg); animation: sweep 4s linear infinite; }
.art--resmon .blip { position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--paper); animation: blip 4s ease-out infinite; animation-delay: var(--d); }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes blip { 0% { transform: scale(0.4); opacity: 0.3; } 12% { transform: scale(1.5); opacity: 1; } 60%, 100% { transform: scale(0.8); opacity: 0.35; } }
.art--ars, .art--amordle { display: flex; align-items: center; justify-content: center; }
.art--ars { --w: min(27px, 9.6%); }
.art--ars b {
  position: absolute; left: calc(50% + (var(--a) - 3.5) * 29px); top: 50%; width: 26px; height: 34px; margin: -17px -13px; display: grid; place-items: center;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px; font-size: 0.95em;
  transition: left 0.9s cubic-bezier(0.6, -0.3, 0.3, 1.3);
}
.art--ars.is-b b { left: calc(50% + (var(--b) - 3.5) * 29px); }
.art--amordle { gap: 6px; }
.art--amordle b { width: 36px; height: 44px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 9px; background: var(--paper); animation: flip 4.5s infinite; animation-delay: calc(var(--i) * 0.28s); }
@keyframes flip { 0%, 12% { background: var(--paper); transform: rotateX(0); } 18% { transform: rotateX(90deg); } 24%, 86% { background: var(--yellow); transform: rotateX(0); } 94%, 100% { background: var(--paper); } }

/* aqrobat: a corner of a QR code whose modules are letters and symbols. */
.art--qr { display: grid; grid-template-columns: repeat(19, 11px); grid-auto-rows: 11px; place-content: center; font: 700 10px/11px ui-monospace, Menlo, monospace; text-align: center; }
.art--qr i { font-style: normal; }
.art--qr i.on { background: var(--ink); border-radius: 3px; color: var(--yellow); }
/* Link Meteor: a link comes down and lands in two fields. */
.art--meteor { background: var(--ink); display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 0 10px 14px; }
.art--meteor .field { font-size: 0.72em; font-weight: 600; white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--ink); animation: land 3s ease-out infinite; }
.art--meteor .field--url { background: var(--sky); animation-delay: 0.18s; }
.art--meteor .meteor {
  position: absolute; left: 50%; top: 34px; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--yellow);
  box-shadow: 9px -9px 0 -2px rgb(255 214 10 / 0.6), 18px -18px 0 -4px rgb(255 214 10 / 0.3);
  animation: fall 3s ease-in infinite;
}
@keyframes fall { 0% { transform: translate(110px, -110px); opacity: 0; } 8% { opacity: 1; } 30% { transform: translate(0, 12px); opacity: 1; } 36%, 100% { transform: translate(0, 12px); opacity: 0; } }
@keyframes land { 0%, 28% { transform: scale(1); } 34% { transform: scale(1.14); } 44%, 100% { transform: scale(1); } }
/* reword_nerd: a reviewed page on one side, a workbook of prompts on the other. */
.art--reword { display: flex; align-items: center; justify-content: center; gap: 16px; }
.art--reword .doc { display: grid; gap: 6px; width: 62px; padding: 9px 8px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); }
.art--reword .doc i { height: 5px; border-radius: 99px; background: var(--ink); animation: review 4.8s linear infinite; animation-delay: calc(var(--k, 0) * 0.5s); }
.art--reword .doc i:nth-child(2) { --k: 1; width: 80%; } .art--reword .doc i:nth-child(3) { --k: 2; } .art--reword .doc i:nth-child(4) { --k: 3; width: 55%; }
.art--reword .arrow { width: 26px; height: 3px; background: var(--ink); position: relative; }
.art--reword .arrow::after { content: ''; position: absolute; right: -2px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border: solid var(--ink); border-width: 3px 3px 0 0; transform: rotate(45deg); }
.art--reword .book { position: relative; width: 62px; height: 58px; }
.art--reword .book i { position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: 7px; background: var(--yellow); animation: stack 4.8s ease-out infinite; }
.art--reword .book i:nth-child(1) { translate: 8px -8px; background: var(--pink); --k: 2; }
.art--reword .book i:nth-child(2) { translate: 4px -4px; background: var(--sky); --k: 1; }
.art--reword .book i { animation-delay: calc(2s + var(--k, 0) * 0.3s); }
@keyframes review { 0%, 6% { background: var(--pink); } 14%, 100% { background: var(--ink); } }
@keyframes stack { 0% { transform: translateY(8px); opacity: 0; } 10%, 100% { transform: none; opacity: 1; } }

/* The shelf: grooph gets the wide spot; the capstone is one plain line at the back. */
@media (min-width: 900px) { .cards--shelf .card--wide { grid-column: span 2; } }
.last { margin-top: clamp(30px, 4vw, 48px); max-width: 62rem; font-size: 0.95em; border-top: var(--line) dashed var(--ink); padding-top: 16px; }
.last .link { margin-left: 0.6em; }

/* Research and contact */
.study { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.study > * { min-width: 0; }
.study__prose { font-size: clamp(1.08rem, 1rem + 0.5vw, 1.32rem); }
.study__prose p + p { margin-top: 1em; }
.interests { display: flex; flex-wrap: wrap; gap: 22px 20px; padding: 8px; }
.interests li { background: var(--c); color: var(--fg, var(--ink)); padding: 0.4em 1em; border-radius: 999px; font-weight: 700; font-size: 1.15em; transform: rotate(var(--tilt)); }

.elsewhere { display: flex; flex-wrap: wrap; gap: 26px 24px; padding: 8px; }
.elsewhere a {
  display: block; background: var(--c); color: var(--ink); text-decoration: none; font-weight: 700; font-stretch: 112%;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.7rem); padding: 0.35em 1em; border-radius: 999px; transform: rotate(var(--tilt));
  box-shadow: 0 0 0 4px var(--paper), 6px 9px 0 4px rgb(0 0 0 / 0.5);
  transition: transform 0.15s;
}
.elsewhere a:hover { transform: rotate(0deg) scale(1.08); }
.colophon { margin-top: clamp(40px, 6vw, 70px); display: grid; gap: 6px; font-size: 0.9em; opacity: 0.85; max-width: 48rem; }

@media (max-width: 820px) {
  .hero__foot, .box, .study { grid-template-columns: 1fr; }
  .one { grid-template-columns: 1fr; }
  .one__art { max-width: 280px; }
  .stage { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .stage { aspect-ratio: 1 / 1.02; max-height: 62vh; }
  .nav { padding-block: 12px 26px; }
  .nav__mark { width: 44px; height: 44px; }
  .tools { gap: 22px 20px; }
  .st { padding: 0.42em 0.8em 0.42em 0.5em; }
  .pack__foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
