/* Link-in-bio pages for Instagram (/links and /links/credits): one column of big cream buttons over the
   paint-in-a-bag background. Loaded after home.css, whose colours and fonts it uses. */
body { min-height: 100svh; display: grid; place-items: start center; }
.bio { width: 100%; max-width: 520px; padding: 0 16px 40px; text-align: center; }
/* the home page's 3D .STUDIO phone, edge to edge on a phone; drag to turn it */
.stage3d { position: relative; margin: 0 -16px; height: clamp(270px, 76vw, 400px); touch-action: pan-y; cursor: grab; }
.stage3d.dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.stage3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.stage3d canvas.ready { opacity: 1; }
.stage3d .fallback { display: none; }
/* if WebGL or the fonts can't load, the flat logo and wordmark show instead */
.stage3d.flat { height: auto; padding-top: 56px; cursor: auto; }
.stage3d.flat .fallback { display: block; }
.bio .mark { width: 92px; height: 92px; margin: 0 auto 22px; border-radius: 26px; box-shadow: 0 16px 40px -12px rgba(120, 70, 10, 0.5), 0 0 0 4px var(--ink); }
.bio .name { display: block; font-family: var(--wordmark); font-size: clamp(2.4rem, 10vw, 3.2rem); line-height: 1; letter-spacing: 0.01em; }
.bio .name span { color: var(--cream); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.bio h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.25rem, 5.6vw, 1.6rem); line-height: 1.2; letter-spacing: 0.02em; color: var(--ink); margin: 0 0 2rem; }
.stage3d.flat + h1 { margin-top: 0.5rem; }
.links { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.links a { display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 12px 22px 12px 12px; border-radius: 22px; background: var(--cream); color: var(--ink); text-align: left;
  box-shadow: 0 0 0 2px var(--ink), 5px 6px 0 var(--ink); transition: transform .25s var(--ease), box-shadow .25s var(--ease); animation: rise .8s var(--ease) both; }
.links a:hover { transform: translate(-2px, -2px); box-shadow: 0 0 0 2px var(--ink), 7px 8px 0 var(--ink); }
.links a:active { transform: translate(4px, 5px); box-shadow: 0 0 0 2px var(--ink), 1px 1px 0 var(--ink); }
.links .ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--cream); overflow: hidden; }
.links .ico img { width: 100%; height: 100%; }
.links .ico svg { width: 24px; height: 24px; }
.links b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.15rem; line-height: 1.15; text-transform: uppercase; }
.links small { display: block; font-size: 0.8rem; line-height: 1.45; color: var(--ink-soft); margin-top: 3px; overflow-wrap: anywhere; }
.links .go { margin-left: auto; flex: none; font-weight: 700; font-size: 1.3rem; }
.links li:nth-child(1) a { animation-delay: .05s; }
.links li:nth-child(2) a { animation-delay: .13s; }
.links li:nth-child(3) a { animation-delay: .21s; }
.links li:nth-child(4) a { animation-delay: .29s; }
.links li:nth-child(5) a { animation-delay: .37s; }
.links li:nth-child(n+6) a { animation-delay: .45s; }
.bio footer { padding: 44px 0 0; }
/* paint in a bag (js/paint.js): the page background, behind the 3D phone, words and buttons */
.paint { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.stage3d, .bio h1, .links, .bio footer { z-index: 1; }
.bio h1, .links, .bio footer { position: relative; }
.bio footer { color: var(--ink); }
.bio footer nav, .bio footer span { background: rgba(255, 242, 217, 0.85); border-radius: 999px; padding: 2px 12px; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@media (prefers-reduced-motion: reduce) { .links a { animation: none; transition: none; } }

/* credits page: a back button and a title instead of the 3D phone; cover art on each card */
.bio.sub { padding-top: 28px; }
.back { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--cream); color: var(--ink);
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; box-shadow: 0 0 0 2px var(--ink), 3px 4px 0 var(--ink); }
.bio .title { position: relative; z-index: 1; font-family: var(--display); font-size: clamp(2.6rem, 13vw, 4rem); color: var(--cream); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
  text-shadow: 0.06em 0.06em 0 var(--ink); margin: 1.6rem 0 0.2rem; }
.bio.sub h1 { margin-bottom: 1.8rem; }
.links .ico.cover { width: 64px; height: 64px; border-radius: 12px; }
