/* Option 1 · "The website is Stash". Colours only from tokens.css. */
:root { --spring: cubic-bezier(.32, 1.25, .45, 1); --soft: cubic-bezier(.25, .1, .3, 1); --notch: 236px; --mb: 44px;
  /* macOS window buttons (system UI colours, not brand colours; Jonathan 12 Nov: "red, yellow and green like a real Mac") */
  --mac-red: #FF5F57; --mac-yellow: #FEBC2E; --mac-green: #28C840; }
body { background: var(--paper); }
.sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---- the Mac menu bar (the page's own top) ---- */
.menubar { position: fixed; z-index: 30; inset: 0 0 auto; block-size: var(--mb); display: flex; align-items: center; justify-content: space-between;
  padding-inline: 20px; font: 500 15.5px/1 var(--font-text); color: var(--ink);
  background: color-mix(in srgb, var(--paper) 72%, transparent); backdrop-filter: saturate(1.6) blur(22px); -webkit-backdrop-filter: saturate(1.6) blur(22px); }
.mb-left, .mb-right { display: flex; align-items: center; gap: 22px; }
.mb-brand { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.mb-brand svg { inline-size: 22px; block-size: 16px; }
.mb-brand:hover, .mb-menu a:hover, .mb-dl:hover { text-decoration: none; }
.mb-menu { display: flex; gap: 20px; } .mb-menu a { color: var(--ink); opacity: .82; }
.mb-dl { color: var(--ink); font-weight: 600; }
.mb-clock { font-variant-numeric: tabular-nums; opacity: .82; }

/* ---- the notch / island ---- */
.island { --w: var(--notch); --h: var(--mb); position: fixed; z-index: 40; inset-block-start: 0; inset-inline-start: 50%; translate: -50% 0;
  inline-size: var(--w); block-size: var(--h); background: black; color: white; border-radius: 0 0 12px 12px; cursor: pointer;
  transition: inline-size .5s var(--spring), block-size .45s var(--spring), border-radius .4s var(--soft); outline: none; }
.island:focus-visible { box-shadow: 0 0 0 3px var(--focus); }
.island .ear { position: absolute; inset-block-start: 0; inline-size: 8px; block-size: 8px; }
.island .ear.l { inset-inline-start: -8px; background: radial-gradient(circle at 0 100%, transparent 7.5px, black 8px); }
.island .ear.r { inset-inline-end: -8px; background: radial-gradient(circle at 100% 100%, transparent 7.5px, black 8px); }
.wing { position: absolute; inset-block-start: 0; block-size: var(--mb); display: flex; align-items: center; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.wing.left { inset-inline-start: 12px; inline-size: 30px; justify-content: center; }
.wing.right { inset-inline-end: 14px; font: 500 13px/1 var(--font-text); }
.wing > * { position: absolute; }
.wing .tick { inline-size: 15px; block-size: 15px; fill: none; stroke: white; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; opacity: 0; }
.wing .ink { inline-size: 22px; block-size: 14px; opacity: 0; }
.wing .orb { inline-size: 32px; block-size: 32px; opacity: 0; }
/* notice: wings grow, a check draws itself, a word on the right */
.island[data-state="notice"] { --w: calc(var(--notch) + 2 * 76px); }
.island[data-state="notice"] .wing { opacity: 1; transition-delay: .12s; }
.island[data-state="notice"] .tick { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .4s var(--soft) .2s; }
/* listening (hold space): the ink line; writing: the AI sphere */
.island[data-state="listening"], .island[data-state="writing"] { --w: calc(var(--notch) + 2 * 40px); }
.island[data-state="listening"] .wing.left, .island[data-state="writing"] .wing.left { opacity: 1; }
.island[data-state="listening"] .ink { opacity: 1; }
.island[data-state="writing"] .orb { opacity: 1; }
/* open: the notch becomes the search box, Stash hangs below it */
.said { position: fixed; z-index: 39; inset-block-start: calc(var(--mb) + 14px); inset-inline-start: 50%; translate: -50% 0; inline-size: min(560px, 90vw); margin: 0;
  text-align: center; font: 400 15px/1.45 var(--font-text); color: var(--ink-2); opacity: 0; transition: opacity .3s; pointer-events: none; }
.said.on { opacity: 1; }
.said s { color: var(--ink-3); text-decoration-color: var(--coral-muted); }

/* ---- Stash, dropping from the notch ---- */
@keyframes arrive { from { transform: translateY(-30px) scale(.8); opacity: 0; } }
@keyframes found { 30% { transform: translateY(-8px) scale(1.04); } }

/* ---- the page ---- */
.hero { min-block-size: 100svh; display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(var(--mb) + clamp(80px, 13vh, 140px)) var(--gutter) 80px; }
.kicker { margin: 0 0 14px; font: 600 15px/1.2 var(--font-text); color: var(--ink-2); }
.display { margin: 0; font: 500 clamp(44px, 6.6vw, 96px)/1.02 var(--font-serif); letter-spacing: -.032em; }
.display em { font-style: normal; color: var(--coral-deep); }
.how { margin: 26px 0 0; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); }
.how b { color: var(--ink); font-weight: 600; }
.how .or { white-space: nowrap; }
.how.small { margin-block-start: 34px; font-size: 15px; }

/* ---- the hero: a real landing-page hero, with real things strewn around the edges ---- */
.hero { position: relative; padding: calc(var(--mb) + clamp(64px, 12vh, 132px)) var(--gutter) 64px; }
.hero-c { position: relative; z-index: 2; display: grid; justify-items: center; max-inline-size: 760px; }
.hero .display { font-size: clamp(44px, 6vw, 84px); }
.sub { max-inline-size: 30em; margin: 22px 0 0; font: 400 clamp(17px, 1.4vw, 19px)/1.5 var(--font-text); color: var(--ink-2); text-wrap: balance; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; margin: 30px 0 0; }
.dl-pill { display: inline-flex; align-items: center; block-size: 40px; padding-inline: 20px; border-radius: 999px; font: 500 15px/1 var(--font-text); color: var(--on-primary); background: var(--primary); transition: transform .2s var(--spring); }
.dl-pill:hover { text-decoration: none; transform: translateY(-1px); } .dl-pill:active { transform: scale(.97); }
.fine { font: 400 13px/1 var(--font-text); color: var(--ink-2); }
mark { padding: 0 2px; margin: 0 -2px; border-radius: 2px; color: inherit; background: color-mix(in srgb, var(--sky) 42%, transparent); }

/* the desk layer covers the hero; only the things on it take clicks */
.desk { position: absolute; inset: 0 0 auto; inline-size: auto; block-size: max(100svh, 720px); margin: 0; z-index: 1; pointer-events: none; }
.slip { pointer-events: auto; position: absolute; cursor: default; color: var(--ink); animation: none; transition: transform .4s var(--spring), filter .3s; }
.slip:hover { transform: translateY(-3px); }
.slip:active { transform: scale(.97); }
.slip > * { box-shadow: none; }
.slip:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 12px; }
.slip { border: 0; font: inherit; }
.slip .hint { position: absolute; inset-block-start: calc(100% + 10px); inset-inline-start: 50%; translate: -50% 0; padding: 5px 9px; border-radius: 7px; font: 500 12px/1 var(--font-text); white-space: nowrap;
  color: var(--on-primary); background: var(--primary); opacity: 0; transition: opacity .2s; pointer-events: none; rotate: 0deg; }
.slip:hover .hint, .slip:focus-visible .hint { opacity: 1; }
.slip.dragging .hint { opacity: 0; }
.fname { display: block; margin-block-start: 6px; padding: 2px 6px; border-radius: 4px; font: 500 12px/1.3 var(--font-text); text-align: center; color: var(--ink); }
.slip:focus .fname { color: var(--on-primary); background: var(--focus); }
/* a sticky note */
.o-sticky { inset: 22% auto auto 7%; display: grid; inline-size: 168px; min-block-size: 150px; padding: 0; text-align: start; background: var(--butter-fill); rotate: -4deg;
  box-shadow: 0 1px 2px rgb(var(--shade-rgb) / .1), 0 18px 30px -18px rgb(var(--shade-rgb) / .4); }
.st-top { display: block; block-size: 14px; background: color-mix(in srgb, var(--butter) 55%, var(--butter-fill)); }
.st-body { padding: 10px 13px 14px; font: 500 14.5px/1.5 var(--font-text); }
/* a screenshot file on the desktop */
.o-shot { inset: 16% 7% auto auto; display: grid; justify-items: center; inline-size: 150px; padding: 0; background: none; border: 0; rotate: 3deg; }
.o-shot .thumb { display: block; inline-size: 132px; padding: 3px; background: var(--white); box-shadow: 0 0 0 .5px rgb(var(--shade-rgb) / .2), 0 8px 18px -8px rgb(var(--shade-rgb) / .35); }
.o-shot img { display: block; inline-size: 100%; block-size: 74px; object-fit: cover; object-position: left top; }
/* a folder */
.o-folder { inset: 58% auto auto 3.5%; display: grid; justify-items: center; inline-size: 110px; padding: 0; background: none; border: 0; }
.o-folder img { inline-size: 86px; block-size: auto; }
/* a Messages notification */
.o-notif { inset: 40% 4% auto auto; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; inline-size: 300px; padding: 12px 14px; border: 0; text-align: start; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 0 0 .5px rgb(var(--shade-rgb) / .16), 0 16px 34px -18px rgb(var(--shade-rgb) / .4); }
.n-app { inline-size: 34px; block-size: 34px; }
.n-txt { display: grid; gap: 2px; font: 400 13.5px/1.3 var(--font-text); } .n-txt b { font-weight: 600; }
.n-when { align-self: start; font: 400 12px/1 var(--font-text); color: var(--ink-2); }
/* a paint chip */
.o-chip { inset: 64% auto auto 9%; display: grid; inline-size: 128px; padding: 7px 7px 10px; border: 0; text-align: start; background: var(--white); color: var(--graphite-bottom); rotate: 5deg;
  box-shadow: 0 1px 2px rgb(var(--shade-rgb) / .1), 0 14px 26px -14px rgb(var(--shade-rgb) / .4); }
.o-chip .sw { display: block; block-size: 92px; background: var(--coral); }
.chip-k { display: grid; gap: 3px; padding: 9px 3px 0; font: 400 11px/1.1 var(--font-mono); } .chip-k b { font: 600 13px/1 var(--font-text); }
/* a link (a Safari bookmark) */
.o-link { inset: 74% 8% auto auto; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 9px 16px 9px 10px; border: 0; text-align: start; border-radius: 14px; rotate: -2deg;
  background: var(--surface); box-shadow: 0 0 0 .5px rgb(var(--shade-rgb) / .16), 0 12px 26px -14px rgb(var(--shade-rgb) / .35); }
.l-ic { inline-size: 30px; block-size: 30px; }
.l-txt { display: grid; gap: 2px; font: 400 12.5px/1.2 var(--font-text); color: var(--ink-2); } .l-txt b { font: 600 13.5px/1.2 var(--font-text); color: var(--ink); }
.slip.dragging { transition: none; z-index: 5; }

/* the product under the hero: the Notes window you paste into */
.demo { position: relative; z-index: 2; display: grid; justify-items: center; inline-size: min(760px, 100%); margin-block-start: clamp(48px, 9vh, 96px); }
.demo .how { margin: 0 0 18px; font-size: 16px; }
.win { --r: 12px; border-radius: var(--r); overflow: clip; background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 .5px rgb(var(--shade-rgb) / .22), 0 2px 5px rgb(var(--shade-rgb) / .06), 0 30px 60px -30px rgb(var(--shade-rgb) / .4); }
.sheet.notes { position: relative; inset: auto; translate: none; inline-size: 100%; min-block-size: 260px; padding: 0; text-align: start; }
.w-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; block-size: 40px; padding-inline: 14px; background: color-mix(in srgb, var(--ink) 3%, var(--surface)); border-block-end: .5px solid rgb(var(--ink-rgb) / .12); font: 600 13px/1 var(--font-text); }
.dots { flex: none; inline-size: 52px; block-size: 12px; background: radial-gradient(circle 6px at 6px 6px, var(--mac-red) 5.5px, transparent 6px) 0 0 / 12px 12px no-repeat, radial-gradient(circle 6px at 6px 6px, var(--mac-yellow) 5.5px, transparent 6px) 20px 0 / 12px 12px no-repeat, radial-gradient(circle 6px at 6px 6px, var(--mac-green) 5.5px, transparent 6px) 40px 0 / 12px 12px no-repeat; }
.w-title { opacity: .8; }
.n-tools { display: flex; gap: 8px; } .n-tools i { inline-size: 14px; block-size: 3px; border-radius: 2px; background: rgb(var(--ink-rgb) / .18); }
.sheet-in { padding: 20px 28px 26px; }
.demo .how.small { margin: 20px 0 0; font-size: 14px; }

/* ---- the Dock peeks up as the pull-back starts (--peek from pull.js) ---- */
.hdock { position: absolute; z-index: 60; inset-block-start: calc(var(--vis, 100svh) - 78px); inset-inline-start: 50%; display: flex; align-items: end; gap: 4px; padding: 6px 8px;
  border-radius: 20px; translate: -50% calc((1 - var(--peek, 0)) * 120px); pointer-events: var(--dock-pe, none);
  background: color-mix(in srgb, var(--surface) 60%, transparent); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 0 0 .5px rgb(var(--shade-rgb) / .16), 0 18px 36px -18px rgb(var(--shade-rgb) / .4); }
.hdock .dk { position: relative; display: grid; justify-items: center; padding: 0; border: 0; background: none; cursor: default; color: inherit; }
.hdock .dk:hover { text-decoration: none; }
.hdock .dk > img, .hdock .dk-i { display: block; inline-size: 46px; block-size: 46px; transform-origin: bottom center; transition: transform .22s var(--spring), margin .22s var(--spring); }
.hdock .dk-i { display: grid; place-items: center; padding: 11px 9px; border-radius: 11px; color: white; background: var(--graphite-bottom); box-sizing: border-box; }
.hdock .dk-i.dl { padding: 0; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); } .hdock .dk-i.dl svg { inline-size: 20px; block-size: 20px; }
.hdock .dk:hover > img, .hdock .dk:hover > .dk-i, .hdock .dk:focus-visible > img, .hdock .dk:focus-visible > .dk-i { transform: scale(1.32); margin-inline: 8px; }
.hdock .dk:hover + .dk > img, .hdock .dk:hover + .dk > .dk-i, .hdock .dk:has(+ .dk:hover) > img, .hdock .dk:has(+ .dk:hover) > .dk-i { transform: scale(1.12); margin-inline: 3px; }
.hdock em { position: absolute; inset-block-end: calc(100% + 18px); padding: 5px 10px; border-radius: 7px; font: 500 12px/1 var(--font-text); font-style: normal; white-space: nowrap; color: var(--ink);
  background: var(--surface); box-shadow: 0 0 0 .5px rgb(var(--shade-rgb) / .2), 0 6px 14px -8px rgb(var(--shade-rgb) / .4); opacity: 0; transition: opacity .15s; pointer-events: none; }
.hdock .dk:hover em, .hdock .dk:focus-visible em { opacity: 1; }
.hdock .sep { align-self: center; inline-size: 1px; block-size: 38px; margin-inline: 4px; background: rgb(var(--shade-rgb) / .14); }
.sheet-k { margin: 0 0 14px; font: 600 12px/1 var(--font-text); color: var(--ink-2); }
.sheet-body { font: 400 17px/1.55 var(--font-text); white-space: pre-wrap; }
.sheet-body .ph { color: var(--ink-3); }
.sheet-body .line { display: block; margin-block-end: 10px; animation: land .5s var(--spring); }
@keyframes land { from { opacity: 0; transform: translateY(-10px); } }
.caret { display: inline-block; inline-size: 1.5px; block-size: 1.1em; vertical-align: -.2em; background: var(--focus); animation: blink 1s steps(1) infinite; margin-inline-start: 1px; }
@keyframes blink { 50% { opacity: 0; } }

/* a copy in flight: a little paper note that flies up into the notch */
.flyer { position: fixed; z-index: 45; padding: 8px 12px; border-radius: 4px; background: var(--white); color: var(--graphite-bottom); font: 500 13px/1.3 var(--font-text);
  max-inline-size: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 12px 26px -10px rgb(var(--shade-rgb) / .4); pointer-events: none; }

.next { padding: 80px var(--gutter) 120px; text-align: center; color: var(--ink-3); background: black; }
.next p { margin: 0; color: color-mix(in srgb, white 55%, transparent); }

@media (max-width: 760px) {
  .mb-menu, .mb-clock { display: none; }
  .desk { block-size: 460px; }
  .sheet { inline-size: 88%; inset-block-start: 170px; }
  .hero { padding-block-start: calc(var(--mb) + 48px); }
  .o-folder, .o-shot, .o-link { display: none; }
  .desk { position: relative; inset: auto; block-size: auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 14px; margin-block-start: 34px; }
  .desk .slip { position: relative; inset: auto; }
  .o-sticky { inline-size: 150px; min-block-size: 120px; } .st-body { font-size: 13px; }
  .o-notif { order: -1; inline-size: 100%; max-inline-size: 340px; } .o-chip { inline-size: 110px; } .o-chip .sw { block-size: 70px; }
  .demo { margin-block-start: 40px; }
  .hdock { display: none; }
  .island[data-state="open"] { --w: calc(100vw - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .slip { animation: none; }
  .island, .panel, .slip, .card { transition-duration: .01s !important; }
  .caret, .card.new, .card.match, .sheet-body .line { animation: none; }
}

/* ---- the pull-back: the page is the MacBook's screen (pull.js sets every size and the transform) ---- */
.pull { position: relative; }
.stick { position: sticky; inset-block-start: 0; block-size: 100svh; overflow: clip; }
.room { position: absolute; inset: 0; background: black; opacity: var(--dark, 0); }
.rig { position: absolute; inset: 0 auto auto 0; transform-origin: 0 0; will-change: transform; }
.mac-img img { display: block; inline-size: 100%; block-size: 100%; filter: grayscale(1); }
/* phones: as the screen shrinks into the Mac, it shows the desktop look */
.desk-look { position: absolute; z-index: 70; inset: 0; inline-size: 100%; block-size: 100%; object-fit: contain; object-position: top; background: var(--paper); opacity: var(--desk, 0); pointer-events: none; }
@media (min-width: 761px) { .desk-look { display: none; } }
.screen { position: absolute; overflow: clip; contain: layout paint; background: var(--paper);
  inset: 0 auto auto 0; inline-size: 100vw; block-size: 100svh; }   /* the size pull.js gives it at the top, so nothing jumps on load */
.page { position: absolute; inset: 0 0 auto; will-change: transform; }
.pulling .screen { pointer-events: none; }
.pulling .island:focus-visible { box-shadow: none; }

/* words after the pull: they sharpen out of a blur, one phrase at a time */
.after { position: absolute; inset: auto 0 0; padding: 0 var(--gutter) clamp(28px, 6vh, 64px); text-align: center; color: white; pointer-events: none; }
.after .line { margin: 0; }
.after .l1 { font: 500 clamp(30px, 3.6vw, 52px)/1.08 var(--font-serif); letter-spacing: -.025em; }
.after .l2 { margin-block-start: 10px; font: 400 clamp(16px, 1.4vw, 20px)/1.45 var(--font-text); color: color-mix(in srgb, white 72%, transparent); }
.after span { display: inline-block; opacity: calc(var(--w, 0)); filter: blur(calc((1 - var(--w, 0)) * 10px)); transform: translateY(calc((1 - var(--w, 0)) * 12px)); }

/* the floating nav (two pills) once the page is inside the Mac */
.float { position: fixed; z-index: 60; inset: 14px clamp(12px, 3vw, 28px) auto; display: flex; justify-content: space-between; pointer-events: none;
  opacity: var(--nav, 0); transform: translateY(calc((1 - var(--nav, 0)) * -12px)); }
.float .pill { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; block-size: 38px; padding-inline: 16px; border-radius: 999px; font: 600 14px/1 var(--font-text);
  color: white; background: color-mix(in srgb, white 12%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, white 14%, transparent); }
.float .pill:hover { text-decoration: none; background: color-mix(in srgb, white 18%, transparent); }
.float .brand svg { inline-size: 18px; block-size: 13px; }
.float .dl { background: white; color: var(--graphite-bottom); box-shadow: none; }
.float .dl:hover { background: color-mix(in srgb, white 88%, transparent); }
.float:not(.on) .pill { pointer-events: none; }


/* ---- the notch on hover: it peeks (a little wider and taller, a faint sky glow under it), like the app ---- */
.island .peek-glow { position: absolute; z-index: -1; inset: calc(100% - 6px) -30px auto; block-size: 40px; pointer-events: none; opacity: 0; transition: opacity .2s ease;
  background: radial-gradient(50% 60% at 50% 0, color-mix(in srgb, var(--sky) 55%, transparent), transparent 70%); }
.island[data-state="idle"]:hover, .island[data-state="open"] { --w: calc(var(--notch) + 18px); --h: calc(var(--mb) + 5px); border-radius: 0 0 14px 14px; }
.island[data-state="idle"]:hover .peek-glow { opacity: .45; }

/* ---- Stash, exactly like the app's panel: header with search, tabs, cards, Paste ---- */
.panel { position: fixed; z-index: 35; inset-block-start: 46px; inset-inline-start: 50%; translate: -50% 0; inline-size: min(1262px, calc(100vw - 24px));
  transform-origin: 50% -46px; transform: translateY(-24px) scale(.5, .12); opacity: 0; pointer-events: none;
  transition: transform .5s var(--spring), opacity .22s var(--soft); }
.panel.open { transform: none; opacity: 1; pointer-events: auto; transition: transform .55s var(--spring), opacity .18s var(--soft); }
.panel-in { position: relative; border-radius: 28px; padding: 16px 20px 12px; background: color-mix(in srgb, var(--well) 86%, transparent);
  backdrop-filter: saturate(1.5) blur(30px); -webkit-backdrop-filter: saturate(1.5) blur(30px);
  box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / .07), 0 30px 70px -24px rgb(var(--shade-rgb) / .38); }
.grip { position: absolute; inset-block-start: 6px; inset-inline-start: 50%; translate: -50% 0; inline-size: 32px; block-size: 3px; border-radius: 2px; background: rgb(var(--ink-rgb) / .14); }
.ph-row { display: flex; align-items: center; gap: 12px; padding: 4px 4px 0; }
.p-brand { display: inline-flex; align-items: center; gap: 8px; padding-inline-end: 6px; font: 600 15px/1 var(--font-display); color: var(--ink); }
.p-brand svg { inline-size: 18px; block-size: 13px; }
.p-search { position: relative; flex: 1; display: flex; align-items: center; gap: 8px; block-size: 30px; padding-inline: 10px; border-radius: 10px;
  background: rgb(var(--ink-rgb) / .045); box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .04); max-inline-size: 560px; }
.p-search .mag { inline-size: 14px; block-size: 14px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; transition: opacity .2s; opacity: calc(1 - var(--asking, 0)); }
.p-search .orb { position: absolute; inset-inline-start: 2px; inline-size: 26px; block-size: 26px; opacity: var(--asking, 0); transition: opacity .2s; }
.p-search input { flex: 1; min-inline-size: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 14px/1 var(--font-text); caret-color: var(--focus); }
.p-search input::placeholder { color: var(--ink-2); }
.p-btn { display: grid; place-items: center; inline-size: 30px; block-size: 26px; border-radius: 8px; background: var(--surface); box-shadow: 0 1px 2px rgb(var(--shade-rgb) / .08); }
.p-btn svg { inline-size: 14px; block-size: 14px; fill: var(--ink); stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.p-btn svg path { fill: none; }
.tabs { display: flex; align-items: center; gap: 20px; padding: 14px 2px 12px; font: 500 14px/1 var(--font-text); color: var(--ink-2); }
.tabs span { display: inline-flex; align-items: center; gap: 5px; } .tabs .on { color: var(--ink); font-weight: 600; }
.tabs svg { inline-size: 13px; block-size: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tabs .plus { font-size: 18px; font-weight: 400; color: var(--ink-2); }
.cards { display: grid; grid-auto-flow: column; grid-auto-columns: 160px; gap: 10px; overflow-x: auto; padding: 3px 3px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.cards::-webkit-scrollbar { display: none; }
.card { position: relative; block-size: 172px; display: flex; flex-direction: column; border-radius: 16px; background: var(--surface); padding: 12px 11px 9px; scroll-snap-align: start;
  box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / .06); cursor: pointer; transition: transform .3s var(--spring), box-shadow .2s; }
.card:hover { transform: translateY(-2px); }
.card[aria-selected="true"] { box-shadow: 0 0 0 2px var(--focus); }
.card.hidden { display: none; }
.card.new { animation: arrive .6s var(--spring); }
@keyframes arrive { from { transform: translateY(-30px) scale(.8); opacity: 0; } }
.card .body { flex: 1; overflow: hidden; font: 400 14.5px/1.38 var(--font-text); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; word-break: break-word; white-space: pre-line; }
.card .body.link small { display: block; color: var(--ink-2); font-size: 13px; } .card .body.link b { display: block; margin-block-start: 4px; font-weight: 600; }
.card .body.code { font: 12.5px/1.45 var(--font-mono); white-space: pre; }
.card .swatch { flex: 1; border-radius: 10px; display: flex; align-items: flex-end; padding: 8px; font: 500 12px var(--font-mono); color: var(--graphite-bottom); }
.card .pic { flex: 1; border-radius: 8px; background-size: cover; background-position: top left; box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .06); }
.card .meta { display: flex; align-items: center; gap: 7px; margin-block-start: 8px; font: 500 12.5px/1 var(--font-text); color: var(--ink); }
.card .app { flex: none; inline-size: 16px; block-size: 16px; border-radius: 4px; display: grid; place-items: center; font: 700 9px/1 var(--font-text); color: white; background: var(--ink-2); }
.card .wave { inline-size: 12px; block-size: 10px; background: linear-gradient(90deg, var(--ink-2) 0 2px, transparent 2px 4px, var(--ink-2) 4px 6px, transparent 6px 8px, var(--ink-2) 8px 10px, transparent 10px);
  mask: linear-gradient(transparent 30%, black 30% 70%, transparent 70%), linear-gradient(90deg, transparent 4px, black 4px 6px, transparent 6px); mask-composite: add; }
.card .k { margin-inline-start: auto; padding: 3px 5px; border-radius: 5px; font: 500 11px/1 var(--font-text); color: var(--ink-2); box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .14); opacity: 0; }
.card[aria-selected="true"] .k { opacity: 1; }
.card.match { animation: found .9s var(--spring); }
@keyframes found { 30% { transform: translateY(-8px) scale(1.04); } }
.foot { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 0; font: 400 14px/1.4 var(--font-text); color: var(--ink-2); }
.paste-btn { display: inline-flex; align-items: center; gap: 10px; block-size: 30px; padding-inline: 14px; border: 0; border-radius: 9px; background: var(--primary); color: var(--on-primary); font: 600 14px/1 var(--font-text); cursor: pointer; }
.paste-btn span { padding-inline-start: 10px; border-inline-start: 1px solid color-mix(in srgb, var(--on-primary) 30%, transparent); }
@media (max-width: 760px) { .p-brand, .p-btn { display: none; } .cards { grid-auto-columns: 140px; } }

/* the floating nav over light chapters */
:root[data-nav="ink"] .float .pill { color: var(--ink); background: rgb(var(--ink-rgb) / .06); box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .08); }
:root[data-nav="ink"] .float .dl { color: var(--on-primary); background: var(--primary); box-shadow: none; }


.card img.app { background: none; border-radius: 4px; object-fit: contain; }

/* the panel's Personal / Shared switch and a file card, as in the app (main, 11 Nov) */
.p-scope { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; font: 500 14px/1 var(--font-text); color: var(--ink-2); }
.p-scope span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 9px; }
.p-scope span.on { color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px rgb(var(--shade-rgb) / .1); }
.p-scope svg { inline-size: 15px; block-size: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.card .file { flex: 1; display: grid; place-content: center; justify-items: center; gap: 3px; text-align: center; font: 600 13.5px/1.25 var(--font-text); }
.card .file i { inline-size: 30px; block-size: 38px; margin-block-end: 8px; border-radius: 3px; background: var(--paper); box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .12); clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.card .file small { font-weight: 400; color: var(--ink-2); font-size: 12px; }
@media (max-width: 900px) { .p-scope { display: none; } }

/* ---- Dock extras: running dots, a launch bounce, social placeholders, a Trash you can drop things into ---- */
.hdock .run { position: absolute; inset-block-end: -5px; inline-size: 4px; block-size: 4px; border-radius: 50%; background: var(--ink); opacity: 0; transition: opacity .3s; }
.hdock .dk.seen .run { opacity: .55; }
.hdock .dk.bounce > img, .hdock .dk.bounce > .dk-i { animation: dkBounce .9s cubic-bezier(.3, 0, .4, 1); }
@keyframes dkBounce { 0%, 100% { translate: 0 0; } 22% { translate: 0 -22px; } 44% { translate: 0 0; } 62% { translate: 0 -10px; } 80% { translate: 0 0; } }
.hdock .dk-i.soc { padding: 0; position: relative; }
.hdock .dk-i.soc::after { content: ""; position: absolute; inset: 12px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.hdock .dk-i.ph { color: var(--white); background: var(--coral-deep); } .hdock .dk-i.x { color: var(--white); background: var(--graphite-bottom); } .hdock .dk-i.li { color: var(--white); background: var(--sky-text); }
.hdock .dk-i.trash { padding: 0; background: none; overflow: visible; }
.hdock .trash .can { fill: color-mix(in srgb, var(--surface) 70%, transparent); stroke: var(--ink-2); stroke-width: 1.4; }
.hdock .trash .lid, .hdock .trash .ribs { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linecap: round; }
.hdock .trash .paper { fill: var(--white); stroke: var(--ink-3); stroke-width: .8; opacity: 0; transition: opacity .3s; }
.hdock [data-trash].full .paper { opacity: 1; }
.hdock [data-trash].hot .dk-i, .o-folder.hot img { transform: scale(1.18); }
.o-folder small { opacity: .6; }
.o-folder.hot .fname { color: var(--on-primary); background: var(--focus); }
.slip.gone { transition: transform .35s cubic-bezier(.5, 0, .75, 0), opacity .35s; transform: scale(.1); opacity: 0; pointer-events: none; }
.slip.back { animation: slipBack .5s var(--spring); }
@keyframes slipBack { from { transform: scale(.4); opacity: 0; } }
/* the screenshot file and the folder, quiet, at the edges */
.o-shot { inset: 15% 6% auto auto; }
.o-folder { inset: 68% 6% auto auto; }
.pulling .desk .slip { pointer-events: var(--slip-pe, none); } /* the things on the desk stay grabbable while the Dock is up, so they can go in the Trash */

/* menu bar extras (menubar.js): battery, Spotlight, Control Center, a clock you can click, each with a small macOS menu */
.mb-x, .mb-clock { display: inline-flex; align-items: center; gap: 6px; block-size: 28px; padding: 0 6px; border: 0; border-radius: 6px; font: inherit; color: var(--ink); background: none; cursor: default; }
.mb-x svg { block-size: 15px; inline-size: auto; } .mb-bat svg { block-size: 14px; } .mb-x .pct { font-size: 13.5px; opacity: .85; }
.mb-x:hover, .mb-x.on, .mb-clock:hover, .mb-clock.on { background: rgb(var(--ink-rgb) / .1); }
.mb-right { gap: 10px !important; }
.mb-pop { position: fixed; z-index: 120; min-inline-size: 250px; max-inline-size: 300px; padding: 10px 12px; border-radius: 12px; color: var(--ink); font: 400 13.5px/1.35 var(--font-text);
  background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: inset 0 0 0 .5px color-mix(in srgb, white 35%, transparent), 0 0 0 .5px rgb(var(--shade-rgb) / .25), 0 16px 36px -12px rgb(var(--shade-rgb) / .4); animation: popIn .16s ease-out; }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px); } }
.mb-pop p { margin: 4px 2px; } .mb-pop .h { display: flex; justify-content: space-between; font-weight: 600; } .mb-pop .h span { font-weight: 400; color: var(--ink-2); }
.mb-pop .h.small { font-size: 12px; color: var(--ink-2); } .mb-pop .s { color: var(--ink-2); } .mb-pop .count { margin-block-start: 8px; color: var(--ink); font-size: 13px; }
.mb-pop hr { border: 0; border-block-start: .5px solid rgb(var(--ink-rgb) / .15); margin: 8px 0; }
.mb-pop .spot { display: flex; align-items: center; gap: 8px; } .mb-pop .spot svg { inline-size: 18px; block-size: 18px; color: var(--ink-2); }
.mb-pop .spot input { flex: 1; border: 0; outline: 0; background: none; font: 400 20px/1.2 var(--font-text); color: var(--ink); } .mb-pop .hint { margin-block-start: 8px; font-size: 12px; }
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-block-end: 6px; }
.cc-t { display: grid; justify-items: start; gap: 6px; padding: 10px; border: 0; border-radius: 12px; text-align: start; font: 600 12.5px/1.2 var(--font-text); color: var(--ink); background: rgb(var(--ink-rgb) / .06); cursor: default; }
.cc-t small { font-weight: 400; color: var(--ink-2); } .cc-t .dot { inline-size: 26px; block-size: 26px; border-radius: 50%; background: rgb(var(--ink-rgb) / .12); }
.cc-t.lit .dot { background: var(--focus); }
@media (max-width: 760px) { .mb-x { display: none; } }

/* the hero's chat with Dana (the paste target) */
.msgs-demo { display: grid; grid-template-rows: auto 1fr auto; min-block-size: 320px; }
.msgs-demo .w-bar { justify-content: space-between; } .msgs-demo .w-title { display: inline-flex; align-items: center; gap: 8px; opacity: 1; } .w-gap { inline-size: 52px; }
.md-thread { display: flex; flex-direction: column; gap: 6px; max-block-size: 300px; overflow: auto; padding: 14px 18px 10px; scroll-behavior: smooth; }
.md-day { align-self: center; margin: 0 0 6px; font: 500 11.5px/1 var(--font-text); color: var(--ink-3); }
.msgs-demo .b { max-inline-size: 72%; margin: 0; padding: 8px 13px 9px; border-radius: 18px; font: 400 15.5px/1.35 var(--font-text); text-align: start; animation: bIn .35s var(--spring); }
.msgs-demo .b.in { align-self: flex-start; background: color-mix(in srgb, var(--ink) 8%, var(--surface)); border-end-start-radius: 6px; }
.msgs-demo .b.out { align-self: flex-end; color: var(--on-primary); background: var(--focus); border-end-end-radius: 6px; }
@keyframes bIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.msgs-demo .b.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.msgs-demo .b.typing i { inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--ink-3); animation: tdot 1.1s infinite ease-in-out; } .msgs-demo .b.typing i:nth-child(2) { animation-delay: .15s; } .msgs-demo .b.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.md-compose { display: flex; align-items: center; gap: 8px; padding: 10px 14px 14px; }
.md-field { flex: 1; min-block-size: 36px; max-block-size: 90px; overflow: auto; padding: 8px 14px; border-radius: 18px; font: 400 15px/1.35 var(--font-text); text-align: start; color: var(--ink); outline: 0; box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .18); cursor: text; }
.md-field:focus { box-shadow: inset 0 0 0 1px var(--focus); }
.md-field:empty::before { content: attr(data-ph); color: var(--ink-3); }
.md-send { display: grid; place-items: center; flex: none; inline-size: 30px; block-size: 30px; padding: 0; border: 0; border-radius: 50%; color: var(--on-primary); background: var(--focus); cursor: pointer; }
.md-send svg { inline-size: 14px; block-size: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.msgs-demo .av { display: inline-grid; place-items: center; inline-size: 22px; block-size: 22px; border-radius: 50%; font: 600 11px/1 var(--font-text); color: var(--ink); background: var(--butter-fill); }

/* ---- little Mac things (macos.js) ---- */
.mac-menu { position: fixed; z-index: 130; min-inline-size: 230px; padding: 5px; border-radius: 10px; font: 400 13.5px/1 var(--font-text); color: var(--ink);
  background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: inset 0 0 0 .5px color-mix(in srgb, white 35%, transparent), 0 0 0 .5px rgb(var(--shade-rgb) / .25), 0 14px 32px -10px rgb(var(--shade-rgb) / .4); animation: popIn .12s ease-out; }
.mac-menu button { display: flex; justify-content: space-between; gap: 18px; inline-size: 100%; padding: 6px 10px; border: 0; border-radius: 5px; font: inherit; color: inherit; background: none; text-align: start; cursor: default; outline: 0; }
.mac-menu button:hover, .mac-menu button:focus-visible { color: var(--on-primary); background: var(--focus); }
.mac-menu kbd { font: inherit; opacity: .55; } .mac-menu button:hover kbd { opacity: .8; }
.mac-menu hr { border: 0; border-block-start: .5px solid rgb(var(--ink-rgb) / .15); margin: 5px 8px; }
.mac-info { position: fixed; z-index: 130; inset-block-start: 18%; inset-inline-start: calc(50% - 170px); inline-size: 340px; border-radius: 14px; overflow: hidden; color: var(--ink); background: var(--surface);
  box-shadow: 0 0 0 .5px rgb(var(--shade-rgb) / .25), 0 30px 60px -20px rgb(var(--shade-rgb) / .5); animation: popIn .18s ease-out; font: 400 13px/1.4 var(--font-text); }
.mi-bar { position: relative; display: flex; gap: 8px; align-items: center; block-size: 34px; padding-inline: 12px; background: color-mix(in srgb, var(--ink) 3%, var(--surface)); }
.mi-bar > i, .mi-close { inline-size: 12px; block-size: 12px; padding: 0; border: 0; border-radius: 50%; } .mi-close { background: var(--mac-red); cursor: pointer; } .mi-bar > i:nth-of-type(1) { background: var(--mac-yellow); } .mi-bar > i:nth-of-type(2) { background: var(--mac-green); }
.mi-bar span { position: absolute; inset-inline: 0; text-align: center; font-weight: 600; pointer-events: none; }
.mi-head { display: flex; gap: 14px; align-items: center; padding: 16px 18px 10px; } .mi-head b { display: block; font-size: 16px; } .mi-head small { color: var(--ink-2); }
.mi-ic { display: grid; place-items: center; flex: none; inline-size: 52px; block-size: 52px; border-radius: 12px; color: var(--white); background: var(--graphite-bottom); } .mi-ic svg { inline-size: 30px; block-size: 21px; }
.mac-info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; padding: 8px 18px 18px; } .mac-info dt { color: var(--ink-2); text-align: end; } .mac-info dd { margin: 0; }
html.big-cursor, html.big-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11.5-6.6.6 3.9 7.6-2.6 1.3-3.9-7.7L4 20z' fill='black' stroke='white' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") 8 4, auto !important; }
.quick-note { position: fixed; z-index: 125; inset: auto 18px 18px auto; inline-size: 240px; padding: 26px 16px 18px; color: var(--ink); background: var(--butter-fill); rotate: -2deg;
  box-shadow: inset 0 14px 0 color-mix(in srgb, var(--butter) 55%, var(--butter-fill)), 0 20px 34px -16px rgb(var(--shade-rgb) / .45); font: 400 14px/1.45 var(--font-text); animation: qnIn .45s var(--spring); }
.quick-note b { display: block; margin-block-end: 4px; } .quick-note p { margin: 0; }
.quick-note button { position: absolute; inset: 2px 6px auto auto; border: 0; background: none; font: 400 16px/1 var(--font-text); color: var(--ink-2); cursor: pointer; }
.quick-note.out { transition: transform .3s, opacity .3s; transform: translate(40px, 40px) scale(.8); opacity: 0; }
@keyframes qnIn { from { transform: translate(60px, 60px) scale(.6); opacity: 0; } }
.paper-confetti { position: fixed; inset: 0; z-index: 140; pointer-events: none; overflow: hidden; }
.paper-confetti i { position: absolute; inset-block-start: -20px; inset-inline-start: var(--x); inline-size: var(--w); block-size: var(--h); background: var(--c); box-shadow: 0 1px 2px rgb(var(--shade-rgb) / .2); animation: fall var(--d) cubic-bezier(.3, .1, .6, 1) forwards; }
@keyframes fall { to { transform: translate(calc((var(--w) - 10px) * 6), 110vh) rotate(var(--r)); } }
.mac-toast { position: fixed; z-index: 130; inset: 60px auto auto 50%; translate: -50% 0; padding: 8px 14px; border-radius: 10px; font: 500 13px/1 var(--font-text); color: var(--white); background: var(--graphite-bottom); animation: popIn .15s ease-out; transition: opacity .4s; }
.mac-toast.out { opacity: 0; }
.mac-menu kbd { padding: 0; border: 0; background: none; box-shadow: none; color: inherit; font: inherit; min-inline-size: 0; } .mac-menu kbd:empty { display: none; }

/* round 6: Scratchpad (a made-up notepad, the paste target) */
.try-first .fine { font-size: 15px; }
.pad-demo { display: grid; grid-template-rows: auto 1fr auto; min-block-size: 320px; text-align: start; }
.pad-demo .w-bar { justify-content: space-between; } .pad-demo .w-title { opacity: 1; }
.pad { padding: 18px 26px 8px; }
.pad-h { margin: 0 0 12px; font: 600 22px/1.2 var(--font-serif); color: var(--ink); } .pad-h small { margin-inline-start: 8px; font: 500 13px/1 var(--font-text); color: var(--ink-3); }
.pad-todo { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.pad-todo li { display: flex; align-items: center; gap: 12px; font: 400 16px/1.4 var(--font-text); color: var(--ink); cursor: default; }
.pad-todo i { flex: none; inline-size: 18px; block-size: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); transition: background .3s var(--soft), box-shadow .3s var(--soft); }
.pad-todo li.done i { background: var(--butter-deep); box-shadow: inset 0 0 0 3px var(--surface), 0 0 0 1.5px var(--butter-deep); animation: padTick .45s var(--spring); }
.pad-todo li.done span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgb(var(--ink-rgb) / .35); }
.pad-todo b { font: 600 15px/1 var(--font-mono); color: var(--ink); opacity: 0; translate: -6px 0; transition: opacity .35s var(--soft) .1s, translate .45s var(--spring) .1s; }
.pad-todo li.done b { opacity: 1; translate: 0 0; }
@keyframes padTick { 40% { scale: 1.25; } }
.pad-free { min-block-size: 96px; max-block-size: 180px; overflow: auto; padding: 10px 0; border-block-start: 1px solid rgb(var(--ink-rgb) / .1); font: 400 16px/1.5 var(--font-text); color: var(--ink); white-space: pre-wrap; outline: 0; cursor: text; }
.pad-free:empty::before { content: attr(data-ph); color: var(--ink-3); }
.pad-foot { margin: 0; padding: 0 26px 16px; min-block-size: 20px; font: 500 14px/1.4 var(--font-text); color: var(--ink-2); opacity: 0; translate: 0 6px; transition: opacity .4s var(--soft), translate .5s var(--spring); }
.pad-foot.on { opacity: 1; translate: 0 0; }
/* a Dock icon over the Trash; Stash refusing to go */
[data-hdock] [data-trash].hot { --s: 1.25 !important; }
[data-hdock] .dk.nope { animation: dkNope .5s var(--spring); }
@keyframes dkNope { 20% { translate: -6px 0; } 45% { translate: 5px 0; } 70% { translate: -3px 0; } }
[data-hdock] .dk.gone { display: none; }
.pad-demo { inline-size: min(600px, 100%); margin-inline: auto; }
.pad-todo b { font-weight: 500; }

/* round 7: the Scratchpad is a real note; a paste lands at the cursor with a soft "just pasted" glow */
.pad { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 20px 26px 6px; }
.pad-doc { grid-column: 1; grid-row: 1; font: 400 17px/1.6 var(--font-text); color: var(--ink); }
.pad-doc p { margin: 0 0 6px; }
.pad-doc .pad-h { margin-block-end: 10px; font: 600 22px/1.25 var(--font-serif); }
.pad-todo { grid-column: 2; grid-row: 1; align-self: start; margin: 4px 0 0; padding: 10px 12px; gap: 6px; border-radius: 12px; background: var(--butter-fill); rotate: 1.5deg; box-shadow: 0 10px 18px -14px rgb(var(--shade-rgb) / .35); }
.pad-todo li { font-size: 13px; gap: 8px; } .pad-todo i { inline-size: 14px; block-size: 14px; }
.slot { display: inline-block; min-inline-size: 7.5em; padding: 0 4px; border-radius: 5px; box-shadow: inset 0 -1.5px 0 rgb(var(--ink-rgb) / .22); outline: 0; cursor: text; white-space: nowrap; vertical-align: baseline; }
.slot:focus { box-shadow: inset 0 -2px 0 var(--focus); }
.slot:empty::before { content: attr(data-ph); color: var(--ink-3); font-style: italic; }
.pad-free { margin-block-start: 10px; min-block-size: 60px; border-block-start: 1px dashed rgb(var(--ink-rgb) / .12); }
.pasted { border-radius: 4px; background: color-mix(in srgb, var(--sky) 38%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--sky) 38%, transparent); animation: pasteIn .5s var(--spring); transition: background 1s var(--soft), box-shadow 1s var(--soft); }
.pasted.set { background: transparent; box-shadow: 0 0 0 2px transparent; }
@keyframes pasteIn { from { opacity: 0; filter: blur(3px); } 60% { opacity: 1; filter: blur(0); } }
.pad-foot.tip { opacity: 1; translate: 0 0; color: var(--ink-2); }
@media (max-width: 600px) { .pad { grid-template-columns: 1fr; } .pad-todo { grid-column: 1; grid-row: 2; rotate: 0deg; } }

/* ---- 25 Nov: the wallpaper and the toys (round 5 pictures; toys.js) ---- */
.hero { background: url(img/r5/E66-light.avif) center top / cover no-repeat; }
:root[data-theme="dark"] .hero { background-image: url(img/r5/E66-dark.avif); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero { background-image: url(img/r5/E66-dark.avif); } }
.o-folder .felt { inline-size: 104px; block-size: 104px; }
.toy { position: absolute; inset: 0 auto auto 0; inline-size: var(--w); block-size: var(--w); touch-action: pan-y; cursor: grab; pointer-events: auto; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.pulling .toy { pointer-events: var(--slip-pe, none); } .toy.up { cursor: grabbing; z-index: 6; }
.toy img, .toy .spr { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; -webkit-user-drag: none; }
.toy .sh { opacity: .9; transition: transform .28s var(--soft), opacity .28s; } .toy .th { transition: transform .28s var(--spring); } .toy:hover .th { transform: translateY(-2px); }
.toy.up .th { transform: translateY(-10px) scale(1.06); } .toy.up .sh { transform: translate(6px, 9px) scale(1.12); opacity: .45; }
.toy .spr { display: none; background: none 0 0 / 600% 400%; } .toy.play .spr { display: block; } .toy.play .th { visibility: hidden; }
@media (max-width: 1100px) and (min-width: 761px) { .toy.x { display: none; } }
@media (prefers-reduced-motion: reduce) { .toy .sh, .toy .th { transition: none; } }
.toys { position: absolute; inset: 0; pointer-events: none; }
