/* ==========================================================================
   Hesychia Studios — "The Workbench"
   A warm, lit-from-above maker's desk. Light theme only (a desk in daylight).
   ========================================================================== */

:root {
  color-scheme: light;
  --wood: #c99f73;
  --wood-dark: #a77c52;
  --paper: #fbf7ef;
  --paper-2: #f4ecdd;
  --mat: #f2e9d8;
  --mat-line: rgba(128, 94, 56, .13);
  --mat-line-strong: rgba(128, 94, 56, .24);
  --ink: #2b231d;
  --ink-2: #5d5046;
  --ink-3: #8a7a6c;
  --lav: #6a5ac4;          /* studio lavender, deepened for paper */
  --lav-soft: #b4a7ea;
  --mint: #2f7d5c;         /* "Free", readable on paper */
  --manila: #ecd49f;
  --manila-2: #dfc083;
  --kraft: #c9a878;
  --display: "Fraunces", Georgia, serif;
  --sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --wrap: 1080px;
  --pad: clamp(16px, 4vw, 36px);
  --shadow-sm: 0 1px 1px rgba(60, 38, 18, .10), 0 2px 4px rgba(60, 38, 18, .10);
  --shadow-md: 0 1px 2px rgba(60, 38, 18, .12), 0 6px 14px rgba(60, 38, 18, .16), 0 18px 34px -12px rgba(60, 38, 18, .28);
  --shadow-lg: 0 2px 4px rgba(60, 38, 18, .14), 0 14px 30px rgba(60, 38, 18, .22), 0 40px 70px -20px rgba(60, 38, 18, .40);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-color: var(--wood);
  /* warm oak desk: grain from turbulence, then light from above */
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 238, 204, .55), rgba(255, 238, 204, 0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1800' height='520'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0018 0.075' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.36  0 0 0 0 0.21  0 0 0 0 0.09  0.95 0 0 0 -0.32'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.18  0 0 0 0 0.08  0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #d4ab7f, #c79c6f 40%, #bf9265);
  background-size: 100% 1400px, 1800px 520px, 240px 240px, 100% 100%;
  background-repeat: no-repeat, repeat, repeat, no-repeat;
}

a { color: inherit; }
::selection { background: rgba(180, 167, 234, .45); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px dashed var(--lav); outline-offset: 4px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--paper); padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow-md);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ==========================================================================
   The bench (cutting mat + physics stage)
   ========================================================================== */
.bench-wrap {
  padding: clamp(12px, 2vw, 28px);
  padding-bottom: 0;
}
.mat {
  position: relative;
  height: clamp(640px, calc(100svh - 28px), 1000px);
  border-radius: 18px;
  background-color: var(--mat);
  background-image:
    /* major grid */
    linear-gradient(var(--mat-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line-strong) 1px, transparent 1px),
    /* minor grid */
    linear-gradient(var(--mat-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line) 1px, transparent 1px),
    /* a faint 45° guide */
    linear-gradient(135deg, transparent calc(50% - .6px), rgba(128, 94, 56, .10) 50%, transparent calc(50% + .6px)),
    /* paper tooth */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.33  0 0 0 0 0.2  0 0 0 .10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px, 100% 100%, 200px 200px;
  background-position: 36px 36px, 36px 36px, 36px 36px, 36px 36px, 0 0, 0 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .6),
    inset 0 -3px 0 rgba(128, 94, 56, .10),
    0 1px 0 rgba(255, 255, 255, .3),
    0 2px 3px rgba(60, 38, 18, .2),
    0 18px 40px -10px rgba(60, 38, 18, .45);
  overflow: hidden;
  touch-action: pan-y;
  isolation: isolate;
}
/* lit from above: soft falloff toward the mat's edges */
.mat::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 6;
  border-radius: inherit;
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(255, 250, 238, 0) 45%, rgba(92, 60, 28, .12) 100%);
}
.mat-ruler { position: absolute; pointer-events: none; z-index: 0; color: rgba(110, 80, 46, .55); }
.mat-ruler--top {
  left: 36px; right: 0; top: 0; height: 22px;
  background:
    linear-gradient(90deg, rgba(110, 80, 46, .45) 1px, transparent 1px) 0 0 / 24px 12px repeat-x,
    linear-gradient(90deg, rgba(110, 80, 46, .25) 1px, transparent 1px) 0 0 / 12px 6px repeat-x;
}
.mat-ruler--left {
  top: 36px; bottom: 0; left: 0; width: 22px;
  background:
    linear-gradient(rgba(110, 80, 46, .45) 1px, transparent 1px) 0 0 / 12px 24px repeat-y,
    linear-gradient(rgba(110, 80, 46, .25) 1px, transparent 1px) 0 0 / 6px 12px repeat-y;
}
.mat-ruler span {
  position: absolute; font: 700 9px/1 var(--sans); letter-spacing: .02em;
}
.mat-ruler--top span { top: 13px; transform: translateX(-50%); }
.mat-ruler--left span { left: 13px; transform: translateY(-50%); }

/* the letterpress nameplate */
.plate-wrap {
  position: absolute; z-index: 3;
  left: clamp(40px, 4.4vw, 72px); top: clamp(44px, 6.5vh, 76px);
  width: min(470px, 40%);
  pointer-events: none;
}
.plate {
  position: relative;
  pointer-events: auto;
  padding: 30px 34px 30px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.4  0 0 0 0 0.3  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(170deg, #fffdf8, #f7f0e2);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .8),
    0 1px 1px rgba(60, 38, 18, .10),
    0 3px 6px rgba(60, 38, 18, .10),
    0 16px 30px -8px rgba(60, 38, 18, .28);
  transform: rotate(-1.2deg);
}
.plate-pin {
  position: absolute; top: 12px; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff5dc, #caa35d 45%, #7d5c26 100%);
  box-shadow: 0 1px 1.5px rgba(40, 24, 8, .5), inset 0 0 0 .5px rgba(90, 60, 20, .5);
}
.plate-pin--tl { left: 12px; }
.plate-pin--tr { right: 12px; }
.plate-brand {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; margin-bottom: 26px;
}
.tile {
  width: 52px; height: 52px; border-radius: 13px; flex: 0 0 auto;
  background: #0E0E11;
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 1px rgba(0, 0, 0, .3), 0 4px 10px rgba(30, 20, 10, .25);
}
.tile svg { width: 38px; height: 38px; }
/* the nameplate mark's intro: the moon falls in from above the page, the water answers */
.tile .mark-live { overflow: visible; }
.mark-live .m-moon { transform-box: view-box; transform-origin: 20.5px 28px; }
.mark-live .m-glow { transform-box: view-box; transform-origin: 20.5px 17px; }
.moon-intro .mark-live .m-moon, .moon-intro .mark-live .m-r1, .moon-intro .mark-live .m-r2 {
  visibility: hidden; animation: m-failsafe 0s 4s forwards;   /* if the script never runs */
}
@keyframes m-failsafe { to { visibility: visible; } }
/* letterpress: text pressed into the card */
.wordmark {
  font-family: var(--display); font-weight: 500; font-size: 1.55rem; letter-spacing: -.005em;
  color: #3a3029;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 -1px 0 rgba(60, 38, 18, .18);
}
.eyebrow {
  margin: 0 0 12px;
  font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
}
.plate h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.3rem, 3.9vw, 3.4rem);
  line-height: 1.02; letter-spacing: -.015em; margin: 0;
  color: #2b231d;
  text-shadow: 0 1.5px 0 rgba(255, 255, 255, .85), 0 -1px 0 rgba(60, 38, 18, .14);
}
.plate h1 em { font-style: italic; color: var(--lav); }
.lede { margin: 16px 0 0; color: var(--ink-2); font-size: 1.02rem; line-height: 1.55; max-width: 38ch; }

.hint {
  position: relative;
  margin: 22px 0 0 26px;
  font-family: var(--hand); font-size: 1.45rem; line-height: 1.05; color: #7a5a3a;
  transform: rotate(-3deg);
  display: flex; align-items: flex-start; gap: 4px;
}
.hint-arrow { width: 72px; height: 50px; margin-top: 10px; flex: 0 0 auto; }

/* physics region */
.tray { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.crate {
  position: absolute; left: 0; top: 0;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0 46px, rgba(70, 40, 16, .35) 46px 48px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.12' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.24  0 0 0 0 0.1  0.9 0 0 0 -0.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #e0b884, #cf9f69);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 210, .6),
    inset 0 -2px 0 rgba(90, 55, 20, .3),
    0 2px 3px rgba(60, 38, 18, .25),
    0 12px 24px -6px rgba(60, 38, 18, .35);
  visibility: hidden;
}
.crate.on { visibility: visible; }
.crate-floor {
  position: absolute; inset: var(--rim, 16px);
  border-radius: 4px;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0) 0 34px, rgba(60, 34, 12, .28) 34px 36px),
    linear-gradient(180deg, #b4834f, #c1905a 30%, #c89964);
  box-shadow: inset 0 6px 10px rgba(60, 34, 12, .45), inset 0 0 0 1px rgba(60, 34, 12, .35);
}
.crate::before, .crate::after { /* nail heads */
  content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #6d5a45; box-shadow: calc(var(--cw, 300px) - 18px) 0 0 #6d5a45, 0 calc(var(--ch, 190px) - 18px) 0 #6d5a45, calc(var(--cw, 300px) - 18px) calc(var(--ch, 190px) - 18px) 0 #6d5a45;
  left: 6.5px; top: 6.5px;
}
.crate::after { display: none; }
.crate-stencil {
  position: absolute; left: 50%; bottom: calc(var(--rim, 16px) * .08); transform: translateX(-50%);
  font: 600 calc(var(--rim, 16px) * .72)/1 "Fredoka", var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(70, 38, 12, .55); white-space: nowrap;
}

/* the desk lamp's pool of light */
.lamp {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(520px 420px at var(--lx, 50%) var(--ly, 10%), rgba(255, 244, 214, .55), rgba(255, 244, 214, 0) 70%);
  mix-blend-mode: soft-light;
  opacity: .9;
}
.shadows, .stage, .labels { position: absolute; inset: 0; pointer-events: none; }
.shadows { z-index: 2; }
.stage { z-index: 4; }
.labels { z-index: 3; }

/* ---------- objects ---------- */
.obj {
  position: absolute; left: 0; top: 0;
  transform-origin: 0 0;
  will-change: transform;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0; margin: 0; border: 0; background: none;
  display: block;
}
.obj.grabbed { cursor: grabbing; }
.obj img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.obj:focus-visible { outline: none; }
.obj:focus-visible::after {
  content: ""; position: absolute; inset: -8px; border-radius: 16px;
  border: 2.5px dashed var(--lav);
}
.obj.round:focus-visible::after { border-radius: 50%; }
.static .obj { cursor: pointer; }

.shadow {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform, opacity;
}
.shadow img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) blur(3px); opacity: .9; }
.shadow .blob { position: absolute; background: #000; filter: blur(5px); }

/* Spud, in layers so he can blink */
.spud-obj .layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.spud-obj .eyes { transform-origin: 50% 48.8%; transition: transform .06s; }
.spud-obj.blink .eyes { transform: scaleY(.1); }
.spud-obj.blink .shine { opacity: 0; }
/* Fwinkle's four: body, eyes and mouth as the game layers them, so faces change without a flash */
.fw-obj .layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* the crate's veg: the app's body art, with the face drawn over it in SVG so it can blink and startle */
.obj .veg-face { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Luma blinks the app's way: each eye squashes about its own centre (/assets/luma-blink.js) */
.luma-eye { transform-box: fill-box; transform-origin: center; }

/* the worry jar */
.jar svg, .scissors svg, .luma svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* film strip made of ChopSnip's real frames */
.film {
  border-radius: 3px;
  background: #1d1a17;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  padding: calc(var(--s, 1) * 17px) calc(var(--s, 1) * 9px);
  display: flex; gap: calc(var(--s, 1) * 7px);
}
.film::before, .film::after {
  content: ""; position: absolute; left: 6px; right: 6px; height: calc(var(--s, 1) * 8px);
  background: repeating-linear-gradient(90deg, #f1e6d2 0 calc(var(--s, 1) * 7px), transparent calc(var(--s, 1) * 7px) calc(var(--s, 1) * 14px));
  border-radius: 1px; opacity: .85;
}
.film::before { top: calc(var(--s, 1) * 5px); }
.film::after { bottom: calc(var(--s, 1) * 5px); }
.film .fr {
  flex: 1; border-radius: 2px;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.film .fr:nth-child(1) { background-image: url(shots/editor.jpg); background-position: 48% 30%; background-size: 190%; }
.film .fr:nth-child(2) { background-image: url(shots/overlay.jpg); background-position: 50% 62%; }
.film .fr:nth-child(3) { background-image: url(shots/captions.jpg); background-position: 50% 40%; }

/* TypeSesame: a pixel-art print of each place */
.print {
  padding: calc(var(--s, 1) * 6px) calc(var(--s, 1) * 6px) 0;
  background: #fbf8f1;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(120, 90, 50, .12);
  display: flex; flex-direction: column;
}
.print-img {
  display: block; flex: 0 0 auto;
  aspect-ratio: 8 / 5; width: 100%;
  background-size: cover; background-position: center;
  image-rendering: pixelated;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
.print-cap {
  flex: 1; display: grid; place-items: center;
  font: 700 calc(var(--s, 1) * 16px)/1 var(--hand); color: #4b3d33; letter-spacing: .01em;
}

/* pencil */
.pencil {
  border-radius: 4px 8px 8px 4px;
}
.pencil .body {
  position: absolute; left: 13%; right: 16%; top: 0; bottom: 0;
  background: linear-gradient(180deg, #ffd66b 0 30%, #f3b73a 30% 66%, #d99a1f 66% 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.pencil .ferrule {
  position: absolute; left: 6%; width: 8%; top: 0; bottom: 0;
  background: repeating-linear-gradient(90deg, #d8d8d4 0 3px, #a6a6a1 3px 5px);
}
.pencil .eraser {
  position: absolute; left: 0; width: 7%; top: 0; bottom: 0; border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, #f5a6a0, #df7f78);
}
.pencil .tip {
  position: absolute; right: 0; width: 17%; top: 0; bottom: 0;
  background: linear-gradient(90deg, #e9c79a 0 72%, #3a3632 72%);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* tape labels shown in tidy mode */
.tape-label {
  position: absolute; left: 0; top: 0;
  padding: 5px 14px 4px;
  background: rgba(247, 236, 204, .9);
  box-shadow: 0 1px 2px rgba(60, 38, 18, .18);
  clip-path: polygon(2% 0, 98% 4%, 100% 50%, 97% 100%, 3% 96%, 0 45%);
  white-space: nowrap;
  opacity: 0; transform: translate(-50%, -50%) rotate(-2deg) scale(.9);
  transition: opacity .35s ease, transform .35s ease;
  font-size: 1.05rem; line-height: 1.2; color: var(--ink);
}
.labels.on .tape-label { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r, -1.5deg)) scale(1); }
.tape-label.spudnote { font-family: "Fredoka", var(--sans); font-weight: 600; }
.tape-label .spud { color: #C07A30; }
.tape-label.empt { font-family: "Baloo 2", var(--sans); font-weight: 700; }
.tape-label .dot { color: #F08A5D; }
.tape-label.chopsnip { font-family: "Gabarito", var(--sans); font-weight: 800; letter-spacing: -.02em; }
.tape-label.fwinkle { font-family: "Baloo 2", var(--sans); font-weight: 700; }
.tape-label.typesesame { font-family: var(--sans); font-weight: 500; font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; }

/* bench controls */
.controls {
  position: absolute; z-index: 7; right: 18px; bottom: 18px;
  display: flex; gap: 8px;
}
.tag-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px 9px 13px; min-height: 40px;
  border: 0; border-radius: 6px;
  background: linear-gradient(180deg, #fffdf7, #f3ebdb);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(128, 94, 56, .16);
  font-size: .86rem; font-weight: 700; color: var(--ink-2);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, color .15s;
}
.tag-btn svg { width: 16px; height: 16px; fill: currentColor; }
.tag-btn:hover { transform: translateY(-1px); color: var(--ink); box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(128, 94, 56, .16); }
.tag-btn:active { transform: translateY(1px); }
.tag-btn--icon { padding: 0; width: 40px; justify-content: center; }
.tag-btn--icon svg { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tag-btn--icon .waves { display: none; }
.tag-btn--icon[aria-pressed="true"] .waves { display: inline; }
.tag-btn--icon[aria-pressed="true"] .mute { display: none; }
.tag-btn--icon[aria-pressed="true"] { color: var(--lav); }
.no-physics #tidy { display: none; }

/* ==========================================================================
   The card file (plain list of apps)
   ========================================================================== */
.drawer-sec { padding: clamp(40px, 7vw, 80px) 0 clamp(20px, 4vw, 40px); }
.drawer {
  position: relative;
  padding: 26px clamp(16px, 3vw, 30px) clamp(20px, 3vw, 30px);
  border-radius: 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.24  0 0 0 0 0.12  0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #d8bb8f, #cdae80);
  box-shadow: inset 0 2px 0 rgba(255, 240, 210, .5), inset 0 -3px 0 rgba(90, 60, 25, .18), var(--shadow-md);
}
.drawer-label {
  display: inline-block;
  margin: 0 0 22px;
  padding: 10px 18px 10px;
  background: var(--paper);
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-1deg);
}
.drawer-label h2 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; line-height: 1.1; margin: 0; }
.drawer-label p { margin: 2px 0 0; font-size: .9rem; color: var(--ink-3); }
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.8vw, 20px); }
@media (min-width: 900px) and (max-width: 1199px) { .cards { grid-template-columns: repeat(3, 1fr); } }
/* five to a row, the cards are narrow: "Free" gets its own line (no dangling dot), like the extras */
@media (min-width: 1200px) { .icard .meta .free { flex-basis: 100%; } .icard .meta .free::before { content: none; } }
.icard {
  position: relative;
  display: flex; flex-direction: column;
  padding: 22px 18px 16px;
  text-decoration: none;
  border-radius: 4px;
  background:
    linear-gradient(transparent 50px, rgba(210, 84, 84, .35) 50px, rgba(210, 84, 84, .35) 51.5px, transparent 51.5px),
    repeating-linear-gradient(transparent 0 25px, rgba(90, 130, 180, .16) 25px 26px),
    var(--paper);
  background-position: 0 0, 0 50px, 0 0;
  box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.3, 1.4, .5, 1), box-shadow .22s ease;
  min-width: 0;
}
.icard:nth-child(1) { transform: rotate(-.8deg); }
.icard:nth-child(2) { transform: rotate(.6deg); }
.icard:nth-child(3) { transform: rotate(-.4deg); }
.icard:nth-child(4) { transform: rotate(.9deg); }
.icard:nth-child(5) { transform: rotate(-.6deg); }
.icard:hover, .icard:focus-visible { transform: translateY(-8px) rotate(0deg); box-shadow: var(--shadow-lg); }
.icard-tab {
  position: absolute; top: -12px; right: 14px;
  padding: 2px 10px 3px; border-radius: 5px 5px 0 0;
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2);
  background: var(--manila);
  box-shadow: 0 -1px 2px rgba(60, 38, 18, .12);
}
.icard .icon { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 4px 10px rgba(60, 38, 18, .15); margin-bottom: 30px; }
.icard h3 { margin: 0 0 4px; font-size: 1.5rem; line-height: 1.15; color: var(--ink); }
.icard .tl { margin: 0 0 12px; color: var(--ink-2); font-size: .98rem; line-height: 1.35; flex: 1; }
.icard .meta { margin: 0; font-size: .78rem; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.free { color: var(--mint); }
.free::before { content: "·"; color: var(--ink-3); margin-right: 8px; font-weight: 700; }
.extra::before { content: "·"; margin-right: 8px; }
.icard .extra { flex-basis: 100%; }
.icard .extra::before { content: none; }
.icard .go { margin-top: 12px; font-family: var(--hand); font-size: 1.3rem; line-height: 1; color: var(--lav); }
.cs-kicker { margin: 0 0 10px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
/* tools made for the house: one quiet slip under the apps, no links (keep it to five) */
.house-slip {
  position: relative;
  max-width: 100%;
  margin: clamp(22px, 3vw, 30px) 0 0;
  padding: 12px 22px 16px 16px;
  background: var(--paper);
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-.35deg);
}
.wip-slip { transform: rotate(.3deg); }
.wip-slip + .house-slip { margin-top: clamp(16px, 2.2vw, 22px); }
.hs-sub { margin: -4px 0 14px; font-family: var(--hand); font-size: 1.25rem; line-height: 1.1; color: var(--ink-2); }
.hs-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px clamp(16px, 2.4vw, 28px); }
.hs-item { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; align-items: center; }
.hs-item img { grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 4px 10px rgba(60, 38, 18, .15); }
.hs-name { align-self: end; font-weight: 700; font-size: 1rem; line-height: 1.2; color: var(--ink); }
.hs-tl { align-self: start; margin-top: 2px; font-size: .84rem; line-height: 1.3; color: var(--ink-3); }
.hs-stamp {
  position: absolute; top: 10px; right: 16px;
  padding: 2px 9px 3px;
  font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(178, 64, 52, .78);
  border: 2px solid rgba(178, 64, 52, .6); border-radius: 4px;
  transform: rotate(4deg);
  mix-blend-mode: multiply;
}
@media (max-width: 1199px) { .hs-items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .hs-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .hs-items { grid-template-columns: 1fr; } }
/* Two games only: size each to its own line instead of a fifth of the slip */
.wip-slip .hs-items { grid-template-columns: repeat(2, max-content); }
@media (max-width: 720px) { .wip-slip .hs-items { grid-template-columns: 1fr; } }
.spudnote h3, .fname-spudnote { font-family: "Fredoka", var(--sans); font-weight: 600; }
.spud { color: #C07A30; }
.empt h3, .fname-empt { font-family: "Baloo 2", var(--sans); font-weight: 700; }
.dot { color: #F08A5D; }
.chopsnip h3, .fname-chopsnip { font-family: "Gabarito", var(--sans); font-weight: 800; letter-spacing: -.02em; }
.fwinkle h3, .fname-fwinkle { font-family: "Baloo 2", var(--sans); font-weight: 700; }
/* Fwinkle's name is its logo (ink lettering, Pip's butter fwinkle dotting the i), never typed */
.logo-fw { display: block; width: auto; height: 1.3em; }
.icard h3 .logo-fw { height: 1.28em; margin-top: -.18em; }
.fcard h2 .logo-fw { height: 1.15em; }
.tape-label.fwinkle .logo-fw { height: 1.35em; margin: -.12em 0 -.06em; }
.typesesame h3, .fname-typesesame { font-family: var(--sans); font-weight: 500; font-size: 1.08rem !important; letter-spacing: .22em; text-transform: uppercase; padding-top: .3em; }

/* ==========================================================================
   The note + polaroid
   ========================================================================== */
.about { padding: clamp(40px, 7vw, 80px) 0 clamp(30px, 5vw, 60px); }
.about-grid {
  display: grid; grid-template-columns: 250px minmax(0, 620px); gap: clamp(24px, 4vw, 48px);
  justify-content: center; align-items: start;
}
.polaroid {
  position: relative; margin: 26px 0 0;
  padding: 12px 12px 0;
  background: #fdfcf8;
  box-shadow: var(--shadow-md);
  transform: rotate(-4deg);
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1);
}
.polaroid:hover { transform: rotate(-1.5deg) translateY(-4px); }
.polaroid img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 40%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.polaroid figcaption { font-family: var(--hand); font-size: 1.45rem; text-align: center; padding: 10px 0 14px; color: #4b3d33; }
.pushpin {
  position: absolute; top: -8px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 35% 30%, #c7b6ff, #8a78d8 55%, #5a49a8);
  box-shadow: 2px 5px 5px rgba(40, 24, 8, .35), inset 0 -1px 2px rgba(0, 0, 0, .25);
}
.note {
  position: relative;
  padding: 44px clamp(22px, 4vw, 44px) 30px 54px; /* left clears the red margin rule at 30px */
  background:
    linear-gradient(90deg, transparent 30px, rgba(210, 84, 84, .30) 30px, rgba(210, 84, 84, .30) 31.5px, transparent 31.5px),
    repeating-linear-gradient(transparent 0 29px, rgba(90, 130, 180, .17) 29px 30px),
    #fffdf6;
  background-position: 0 0, 0 14px, 0 0;
  box-shadow: var(--shadow-md);
  transform: rotate(.8deg);
}
.tape {
  position: absolute; width: 120px; height: 30px;
  background: rgba(236, 222, 186, .78);
  box-shadow: 0 1px 2px rgba(60, 38, 18, .15);
  clip-path: polygon(3% 0, 97% 6%, 100% 55%, 96% 100%, 2% 94%, 0 40%);
}
.tape--note { top: -14px; left: 50%; margin-left: -60px; transform: rotate(-3deg); }
.note h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin: 0 0 12px; line-height: 1.1; }
.note p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.8; font-size: 1.05rem; }
.note-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.sig { font-family: var(--hand); font-size: 2.3rem; line-height: 1; color: #3d3480; transform: rotate(-4deg); display: inline-block; }
.xlink {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px; text-decoration: none;
  font-size: .9rem; font-weight: 700; color: var(--ink-2);
  background: rgba(60, 38, 18, .05); box-shadow: inset 0 0 0 1px rgba(60, 38, 18, .12);
  transition: background .15s, color .15s;
}
.xlink:hover { color: var(--ink); background: rgba(60, 38, 18, .1); }

/* ==========================================================================
   The envelope + rubber stamp
   ========================================================================== */
.contact { padding: clamp(24px, 5vw, 50px) 0 clamp(50px, 8vw, 90px); }
.envelope {
  position: relative;
  max-width: 760px; margin: 0 auto;
  padding: clamp(80px, 12vw, 110px) clamp(22px, 5vw, 60px) clamp(34px, 5vw, 50px);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.28  0 0 0 0 0.14  0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(175deg, #e9d3ac, #ddc193);
  border-radius: 6px;
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255, 245, 225, .4);
  transform: rotate(-.6deg);
  overflow: hidden;
}
.env-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 64%;
  background: linear-gradient(180deg, rgba(90, 60, 25, 0), rgba(90, 60, 25, .06));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 2px 1px rgba(90, 60, 25, .2));
  pointer-events: none;
}
.env-flap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #ecd8b4, #e3c99d);
  clip-path: polygon(0 0, 100% 0, 50% 96%);
}
.postage {
  position: absolute; top: 20px; right: 22px; z-index: 2;
  width: 74px; padding: 10px 8px 6px;
  background: #fbf7ef;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  /* perforated edge */
  outline: 5px dotted #ddc193; outline-offset: -2px;
  transform: rotate(4deg);
  filter: drop-shadow(0 1px 1px rgba(60, 38, 18, .25));
}
.postage svg { width: 50px; height: 50px; background: #0E0E11; border-radius: 3px; padding: 4px; }
.postage span { font: 800 .55rem/1.4 var(--sans); letter-spacing: .12em; color: var(--ink-2); }
.postmark {
  position: absolute; top: 34px; right: 72px; z-index: 3; width: 128px; color: rgba(70, 58, 140, .42);
  transform: rotate(-10deg);
}
.env-body { position: relative; z-index: 1; text-align: center; }
.env-body h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 4.6vw, 2.6rem); margin: 0 0 6px; line-height: 1.05; }
.env-body h2 em { font-style: italic; color: var(--lav); }
.env-body > p { margin: 0 auto 22px; color: var(--ink-2); max-width: 36ch; }

.stamp-zone { position: relative; display: inline-block; padding: 18px 10px 6px; }
.ink {
  --ink: #4b3fa6;
  position: relative;
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 22px 12px;
  text-decoration: none;
  color: var(--ink);
  border: 3px double var(--ink);
  border-radius: 8px;
  transform: rotate(-3deg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.6 2.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.6 2.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transition: color .2s;
}
.ink:hover { --ink: #33288a; }
.ink-top { font: 800 .66rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.ink-addr { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.25rem, 4.4vw, 1.7rem); line-height: 1.2; }
.js .ink { opacity: 0; }
.js .ink.stamped { animation: inked .5s ease-out forwards; }
@keyframes inked {
  0% { opacity: 0; transform: rotate(-3deg) scale(1.06); }
  15% { opacity: .95; transform: rotate(-3deg) scale(.99); }
  100% { opacity: .92; transform: rotate(-3deg) scale(1); }
}
.rubber {
  position: absolute; right: -86px; bottom: -8px;
  width: 70px; height: 96px; padding: 0; border: 0; background: none; cursor: pointer;
  transform: rotate(14deg);
  transition: transform .25s ease;
  z-index: 2;
}
.rubber:hover { transform: rotate(8deg) translateY(-4px); }
.rubber-knob {
  position: absolute; left: 50%; top: 0; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #b98a5c, #8a5a32 60%, #5e3a1c);
  box-shadow: 0 4px 6px rgba(40, 24, 8, .35), inset 0 -2px 3px rgba(0, 0, 0, .3);
}
.rubber-neck {
  position: absolute; left: 50%; top: 32px; width: 20px; height: 34px; margin-left: -10px; border-radius: 4px;
  background: linear-gradient(90deg, #6e4526, #a27348 45%, #6e4526);
}
.rubber-base {
  position: absolute; left: 0; right: 0; bottom: 0; height: 32px; border-radius: 5px;
  background: linear-gradient(180deg, #b48456, #8f6038);
  box-shadow: 0 6px 10px rgba(40, 24, 8, .35), inset 0 1px 0 rgba(255, 230, 190, .4);
}
.rubber-base::after {
  content: ""; position: absolute; left: 3px; right: 3px; bottom: -5px; height: 6px; border-radius: 0 0 3px 3px;
  background: #4b3fa6;
}
.rubber.thunk { animation: thunk .62s cubic-bezier(.5, 0, .3, 1); }
@keyframes thunk {
  0% { transform: rotate(14deg); }
  35% { transform: translate(-150px, -30px) rotate(0deg) scale(1.08); }
  55% { transform: translate(-150px, -8px) rotate(0deg) scale(.98); }
  70% { transform: translate(-150px, -24px) rotate(0deg) scale(1.02); }
  100% { transform: rotate(14deg); }
}

/* ==========================================================================
   Footer — a wooden ruler
   ========================================================================== */
.ruler-foot { padding: 0 0 clamp(20px, 4vw, 36px); }
.foot {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px;
  padding-top: 26px; padding-bottom: 14px;
  font-size: .82rem; color: #3f2f20; font-weight: 600;
}
.ruler-foot .wrap {
  background:
    linear-gradient(90deg, rgba(60, 38, 18, .55) 1px, transparent 1px) 0 0 / 40px 14px repeat-x,
    linear-gradient(90deg, rgba(60, 38, 18, .35) 1px, transparent 1px) 0 0 / 8px 7px repeat-x,
    linear-gradient(180deg, #f0d9ae, #e4c792);
  border-radius: 4px;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, .5);
  max-width: calc(var(--wrap) - 2 * var(--pad));
  width: calc(100% - 2 * var(--pad));
}
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.foot-brand svg { width: 22px; height: 22px; background: #0E0E11; border-radius: 6px; padding: 2px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Back-to-top: a small paper tag (same as /privacy and /terms). Sits under
   the folder's scrim (z 100), so an opened app covers it.
   ========================================================================== */
.to-top {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  width: 42px; height: 42px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px;
  background: linear-gradient(180deg, #fffdf7, #f3ebdb);
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(128, 94, 56, .16);
  color: var(--ink-2);
  cursor: pointer; -webkit-appearance: none; appearance: none;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease, color .15s, transform .15s;
}
.to-top::before {
  content: ""; display: block;
  width: 10px; height: 10px;
  border-left: 2.2px solid currentColor; border-top: 2.2px solid currentColor;
  transform: rotate(45deg) translate(2px, 2px); border-radius: 1px;
}
.to-top.is-visible { opacity: .92; pointer-events: auto; }
.to-top:focus-visible { opacity: 1; }
@media (hover: hover) {
  .to-top:hover { color: var(--lav); opacity: 1; transform: translateY(-2px); }
}
@media (max-width: 620px) {
  .to-top { bottom: 14px; right: 14px; width: 38px; height: 38px; }
}
@media print { .to-top { display: none !important; } }

/* ==========================================================================
   The folder (opened app)
   ========================================================================== */
.scrim {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(58, 38, 20, .38);
  -webkit-backdrop-filter: blur(3px) saturate(.9);
          backdrop-filter: blur(3px) saturate(.9);
  opacity: 0; transition: opacity .28s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.scrim[hidden] { display: none; }
.scrim.open { opacity: 1; }
.folder {
  position: relative;
  width: min(960px, 100%);
  margin: auto;
  transform: translateY(60px) rotate(2.5deg) scale(.97);
  transition: transform .5s cubic-bezier(.2, 1.25, .35, 1);
}
.scrim.open .folder { transform: translateY(0) rotate(-.6deg) scale(1); }
.folder-tab {
  position: relative; display: inline-block; margin-left: 28px;
  padding: 8px 26px 6px;
  border-radius: 12px 12px 0 0;
  background: var(--manila);
  font: 800 .72rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(70, 48, 20, .7);
  box-shadow: 0 -2px 3px rgba(60, 38, 18, .08);
}
.folder-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 30px;
  padding: 30px;
  border-radius: 4px 14px 14px 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.32  0 0 0 0 0.12  0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(175deg, var(--manila), var(--manila-2));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 250, 230, .6);
}
.folder-close {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 250, 238, .7); color: var(--ink-2);
  display: grid; place-items: center;
  transition: background .15s, transform .15s;
}
.folder-close:hover { background: #fffaf0; transform: rotate(90deg); }
.folder-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.fcard {
  position: relative;
  align-self: start;
  padding: 30px 26px 24px;
  background:
    repeating-linear-gradient(transparent 0 27px, rgba(90, 130, 180, .15) 27px 28px),
    #fffdf7;
  background-position: 0 104px, 0 0;
  box-shadow: var(--shadow-md);
  transform: rotate(-1deg);
}
.clip {
  position: absolute; top: -14px; right: 34px; width: 22px; height: 58px;
  border: 3px solid #a9adb3; border-radius: 12px; border-bottom-color: #8d9197;
}
.clip::after { content: ""; position: absolute; left: 3px; right: 3px; top: 8px; bottom: 16px; border: 3px solid #b9bdc3; border-radius: 8px; border-top: 0; }
.fcard-head { position: relative; display: flex; gap: 16px; align-items: center; min-height: 74px; padding-bottom: 14px; }
/* the red margin rule rides under the heading, however many lines the tagline takes */
.fcard-head::after { content: ""; position: absolute; left: -26px; right: -26px; bottom: 0; height: 1.5px; background: rgba(210, 84, 84, .32); }
.fcard-head .icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 6px 14px rgba(60, 38, 18, .18); flex: 0 0 auto; }
.fcard h2 { margin: 0; font-size: 2rem; line-height: 1.05; }
.fcard .tl { margin: 4px 0 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.3; }
.fcard .meta { margin: 16px 0 10px; font-size: .8rem; font-weight: 800; letter-spacing: .04em; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 8px; line-height: 1.75; }
.fcard-body p { margin: 0 0 10px; color: var(--ink-2); line-height: 1.75; }
.fcard-body .voice { font-family: var(--hand); font-size: 1.35rem; line-height: 1.25; color: #6a4a2c; margin-top: 12px; }
.fcard-body ul { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.fcard-body li { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(47, 125, 92, .1); color: var(--mint); }
.fcard-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 8px;
  text-decoration: none; font-weight: 800; font-size: .98rem;
  color: #fffaf0; background: #2b231d;
  box-shadow: 0 2px 0 #120d0a, 0 6px 14px rgba(40, 24, 8, .25);
  transition: transform .15s, box-shadow .15s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 4px 0 #120d0a, 0 10px 18px rgba(40, 24, 8, .28); }
.cta:active { transform: translateY(1px); box-shadow: 0 1px 0 #120d0a; }
.putback { border: 0; background: none; cursor: pointer; font-family: var(--hand); font-size: 1.3rem; color: var(--ink-3); padding: 4px 6px; }
.putback:hover { color: var(--ink); }

.shots {
  position: relative; min-height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.shot { margin: 0;
  position: absolute;
  background: #fffdf8; padding: 7px 7px 7px;
  box-shadow: var(--shadow-md);
  transition: transform .45s cubic-bezier(.2, 1.3, .4, 1);
}
.shot img { border-radius: 3px; width: 100%; height: auto; }
.shot::before { /* tape */
  content: ""; position: absolute; top: -10px; left: 50%; width: 66px; height: 20px; margin-left: -33px;
  background: rgba(240, 228, 196, .82); box-shadow: 0 1px 1px rgba(60, 38, 18, .12);
  transform: rotate(-4deg);
}
.shot.phone { width: 34%; }
.shot.phone img { border-radius: 10px; }
.shot.wide { width: 92%; }
.shot.tall { width: 34%; }
.shots .shot:hover { z-index: 5; transform: rotate(0) translateY(-6px) scale(1.04) !important; }
.shots.places { min-height: 440px; }
.shot.place { width: 56%; padding-bottom: 0; }
.shot.place img { width: 100%; height: auto; border-radius: 2px; image-rendering: pixelated; }
.shot.place figcaption {
  padding: 8px 0 9px; text-align: center;
  font: 500 .74rem/1 var(--sans); letter-spacing: .2em; color: var(--ink-2);
}

/* ==========================================================================
   Narrow: nameplate above a smaller tray
   ========================================================================== */
@media (max-width: 899px) {
  .mat { height: auto; }
  .plate-wrap { position: relative; left: auto; top: auto; width: auto; padding: 38px 18px 0 28px; }
  .plate { padding: 24px 22px 22px; }
  .tray { position: relative; inset: auto; height: clamp(570px, 160vw, 780px); }   /* room for Bun between the rows */
  .hint { margin: 16px 0 0 10px; font-size: 1.3rem; }
  .hint-arrow { width: 54px; height: 40px; transform: rotate(40deg); margin-top: 18px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .controls { right: 12px; bottom: 12px; }
}
@media (max-width: 720px) {
  .folder-inner { grid-template-columns: 1fr; padding: 18px 14px 20px; gap: 22px; }
  .scrim { padding: 24px 10px 12px; place-items: end center; }
  .folder { transform: translateY(100px) rotate(0) scale(1); }
  .scrim.open .folder { transform: translateY(0) rotate(0) scale(1); }
  .folder-tab { margin-left: 18px; }
  .fcard { transform: none; padding: 26px 18px 20px; }
  .fcard h2 { font-size: 1.75rem; }
  .fcard-head::after { left: -18px; right: -18px; }
  .shots { min-height: 0; display: flex; justify-content: flex-start; gap: 12px; overflow-x: auto; padding: 14px 4px 8px; scroll-snap-type: x mandatory; }
  .shot { position: relative; left: auto !important; top: auto !important; flex: 0 0 auto; transform: none !important; scroll-snap-align: center; }
  .shots .shot:hover { transform: none !important; }
  /* level with the folder's tab row (30px tall), so it never rides off the top of the screen */
  .folder-close { top: -35px; right: 4px; background: #fffaf0; box-shadow: var(--shadow-sm); }
  .shot.phone, .shot.tall { width: 42%; }
  .shot.wide { width: 86%; }
  .shot.place { width: 86%; }
  .about-grid { grid-template-columns: 1fr; }
  .polaroid { width: 200px; margin: 0 auto -30px; z-index: 2; transform: rotate(-4deg); }
  .note { padding-top: 54px; padding-left: 48px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .icard { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: start; padding: 18px 16px 14px; }
  .icard .icon { grid-row: 1 / span 3; margin: 0; }
  .icard h3, .icard .tl, .icard .meta, .icard .go { grid-column: 2; }
  .icard .tl { margin-bottom: 8px; }
  .icard .go { margin-top: 8px; }
  .wordmark { font-size: 1.3rem; }
  .tile { width: 44px; height: 44px; border-radius: 11px; }
  .tile svg { width: 32px; height: 32px; }
  .plate-brand { margin-bottom: 20px; gap: 12px; }
  .plate h1 { font-size: 2.35rem; }
  .lede { font-size: .98rem; }
  .envelope { padding-top: 104px; }
  .postmark { right: auto; left: 18px; top: 22px; width: 110px; }
  .rubber { right: 50%; margin-right: -35px; bottom: 4px; }   /* rests in the stamp zone's padding, inside the envelope (which clips) */
  .stamp-zone { padding-bottom: 110px; }
  .rubber.thunk { animation-name: thunk-m; }
  /* the stamp rests just below the address here, so it travels straight up ~146px for its
     base to land on the middle of the ink (the desktop one swings in from the side instead) */
  @keyframes thunk-m {
    0% { transform: rotate(14deg); }
    35% { transform: translate(0, -170px) rotate(0) scale(1.08); }
    55% { transform: translate(0, -144px) rotate(0) scale(.98); }
    70% { transform: translate(0, -162px) rotate(0) scale(1.02); }
    100% { transform: rotate(14deg); }
  }
  .foot { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .ink { opacity: .92; }
}
@media (max-width: 560px) {
  .icard { background: repeating-linear-gradient(transparent 0 25px, rgba(90, 130, 180, .12) 25px 26px) 0 12px, var(--paper); }
}
@media (max-width: 720px) { .shots.places { min-height: 0; } }
