/* The app people use: one sheet of sketch paper. What you ask is written on it in your hand
   (Shantell Sans), and the answer is drawn onto the same sheet in the artist's hand (Caveat,
   the font the boards are written in). The developer view under /dev has its own stylesheet. */

:root {
  --paper: #f3eddf;
  --ink: #2b2a27;          /* graphite */
  --soft: #6f6a60;
  --faint: rgba(43, 42, 39, 0.2);
  --rule: rgba(43, 42, 39, 0.34);
  --blue: #3f5f94;         /* watercolour washes */
  --sky: #9db3cf;
  --ochre: #e2ab3d;
  --moss: #8aa274;
  --crimson: #a8263b;
  --hand: "Caveat", "Bradley Hand", cursive;
  --yours: "Shantell Sans", "Comic Neue", "Segoe Print", system-ui, sans-serif;
  /* An uneven outline, like a box drawn by hand. */
  --wobble: 255px 14px 225px 16px / 16px 225px 14px 255px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--yours);
  background-color: var(--paper);
  /* Paper grain over a faint drafting grid. */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .27 0 0 0 0 .18 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(rgba(63, 95, 148, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 95, 148, 0.07) 1px, transparent 1px);
  background-size: 260px 260px, 30px 30px, 30px 30px;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px dashed var(--blue); outline-offset: 4px; border-radius: 4px; }

.hand { font-family: var(--hand); font-weight: 700; line-height: 1.05; }

/* Text that appears as if it is being written, left to right. */
.write { animation: write var(--write, 0.9s) cubic-bezier(0.3, 0.1, 0.3, 1) both; }
@keyframes write {
  from { clip-path: inset(-10% 100% -10% 0); }
  to { clip-path: inset(-10% -2% -10% 0); }
}
.rise { animation: rise 0.6s ease-out both; animation-delay: var(--d, 0s); }
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Pencil strokes made in paper.js: a line under things, a ring round the chosen thing. */
.pencil { position: absolute; pointer-events: none; overflow: visible; }
.pencil path { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pencil.line { left: 0; right: 0; bottom: -6px; width: 100%; height: 10px; }
.pencil.line path { stroke-width: 1.6; opacity: 0.6; }
/* Stretched strokes cannot be dashed reliably, so the line is uncovered from the left instead. */
.pencil.line { animation: write 0.9s ease-out 0.25s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* A patch of watercolour behind something. */
.wash { position: absolute; pointer-events: none; overflow: visible; mix-blend-mode: multiply; }

/* ------------------------------------------------------------------ top */

/* The same bar on every page: the mark, the places to go, then what is this person's own
   (their credit, and settings or the way to sign in). A page's own controls sit on a line
   under it. */
.top { max-width: 1040px; margin: 0 auto; padding: 22px 24px 0; }
.top-in { container: top / inline-size; }
.bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; }
.mark { margin-right: 8px; font: 700 1.75rem/1 var(--hand); text-decoration: none; letter-spacing: 0.01em; }
.mark:hover { color: var(--blue); }
.places, .mine, .acts { display: flex; align-items: baseline; gap: 4px 24px; }
.mine { margin-left: auto; }
.mine:empty, .acts:empty { display: none; }
.acts { flex-wrap: wrap; justify-content: flex-end; margin-top: 14px; }
.link { padding: 2px 0; border: 0; background: none; font-size: 0.9375rem; color: var(--soft); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.link:hover { color: var(--ink); text-decoration-color: var(--ink); }
.link:disabled { cursor: default; text-decoration: none; }
.link.here { color: var(--ink); text-decoration-color: var(--ink); }
/* "new video" is the one that starts something, so it sits on a dab of paint. */
.new { position: relative; isolation: isolate; margin: 0 6px 0 4px; padding: 2px 0; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; }
.new .wash { inset: -10px -15px; width: calc(100% + 30px); height: calc(100% + 20px); z-index: -1; opacity: 0.72; transition: opacity 0.2s ease; }
.new:hover .wash, .new.here .wash { opacity: 1; }
.credit { font-size: 0.9375rem; color: var(--soft); text-decoration: none; white-space: nowrap; }
.credit b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
a.credit:hover { color: var(--ink); }
.credit.low { color: var(--crimson); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.cog { display: none; width: 23px; height: 23px; }
.cog :is(path, circle) { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* Where one row will not fit (a phone, or the narrow column beside a tall video): the mark
   and what is yours stay on the first row, the places take a second from edge to edge,
   settings is its cog and the credit is the amount alone. */
@container top (max-width: 600px) {
  .bar { align-items: center; row-gap: 12px; }
  .places { order: 3; flex-basis: 100%; justify-content: space-between; }
  .places a, .mine a { padding-block: 8px; }
  .mine { align-items: center; gap: 10px; }
  .new { margin-inline: 12px 0; }
  .credit span, .settings span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cog { display: block; }
  .settings { display: flex; padding: 8px 0 8px 8px; }
}

/* The note that opens under "share": a slip of paper laid over the page, below the links. */
.top { position: relative; }
.pass {
  position: absolute; z-index: 5; top: calc(100% + 12px); right: 24px; width: min(360px, calc(100vw - 36px)); padding: 18px 22px 16px;
  background: #fffdf6; border: 1.5px solid var(--rule); border-radius: 18px 12px 20px 14px / 12px 20px 14px 18px; box-shadow: 4px 6px 0 rgba(43, 42, 39, 0.13);
  animation: rise 0.25s ease-out both;
}
.pass h2 { margin: 0 0 6px; font: 700 1.75rem/1 var(--hand); }
.pass p { margin: 0; font-size: 0.9375rem; color: var(--soft); }
.pass p .link { font-size: inherit; }
.pass .go { margin: 16px 0 0 8px; }
.pass .say { margin-top: 14px; }
.pass .or { margin-top: 18px; padding-top: 12px; border-top: 1.5px dashed var(--faint); }
/* A slip that asks a question: the button that says yes, and "cancel" beside it. */
.pass .choose { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 18px; }
.pass .choose .go { margin: 0 0 0 8px; }

main { --pad: 24px; max-width: 1040px; margin: 0 auto; padding: 0 var(--pad) 56px; }
.foot { display: flex; flex-wrap: wrap; gap: 6px 18px; max-width: 1040px; margin: auto auto 0; padding: 0 24px 28px; font-size: 0.8125rem; color: var(--soft); opacity: 0.7; }
/* A page is at least as tall as the window, so on a short one the footer rests at the bottom
   of the window instead of floating under the last thing on the page. */
#app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
#app > * { width: 100%; }
.foot .link { white-space: nowrap; }

/* ------------------------------------------------------------------ home */

.home { position: relative; max-width: 810px; padding-top: clamp(40px, 11vh, 120px); }
.sky { top: -10px; left: -9%; width: 112%; height: 230px; opacity: 0; animation: bleed 2.4s ease-out 0.1s forwards; }
/* The page to ask on starts with the question and nothing else. All of the sheet is
   somewhere to write: the line, and what goes with it down to the things to try, is put down
   where the sheet is tapped (paper.js sets where), and slides over when it is tapped
   somewhere else. */
#app:has(> .draw) { cursor: text; }
#app > .draw { flex: 1; }
.draw[data-quiet] > .desk, #app:has(> .draw[data-quiet]) .foot .later { display: none; }
.desk { position: relative; left: 0; transition: margin-top 0.35s cubic-bezier(0.3, 0.1, 0.2, 1), left 0.35s cubic-bezier(0.3, 0.1, 0.2, 1); }
@keyframes bleed {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 0.5; transform: none; }
}
.home h1 { position: relative; margin: 0 0 30px; font-size: clamp(2.4rem, 6.4vw, 3.9rem); white-space: nowrap; --write: 1.3s; }
@media (max-width: 520px) { .home h1 { white-space: normal; } }

.ask { position: relative; }
.ask textarea {
  display: block; width: 100%; min-height: 2.4em; max-height: 46vh; padding: 6px 2px 8px; resize: none;
  border: 0; outline: 0; background: none; font-size: 1.375rem; line-height: 1.5; font-weight: 400;
}
.ask textarea::placeholder { color: var(--soft); opacity: 0.65; font-style: italic; }
/* A single written line: an email address, or the code from an email. */
.ask input { display: block; width: 100%; padding: 6px 2px 8px; border: 0; outline: 0; background: none; font-size: 1.375rem; line-height: 1.5; font-weight: 400; }
.ask input::placeholder { color: var(--soft); opacity: 0.65; font-style: italic; }

/* Something small at the far end of the writing line: the paperclip that attaches a PDF. */
.ask.ended textarea { padding-right: 50px; }
.attach { position: absolute; right: -6px; bottom: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--soft); cursor: pointer; transition: color 0.15s ease, transform 0.15s ease; }
.attach:hover { color: var(--ink); transform: rotate(-8deg); }
.attach.has { color: var(--ink); }
.attach:has(input:focus-visible) { outline: 2px dashed var(--blue); outline-offset: -2px; }
.attach input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.clip { width: 21px; height: 28px; overflow: visible; transform: rotate(38deg); }
.clip path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* The PDF that was attached, under the line it is clipped to. */
.clipped { margin-top: 18px; }
.clipped:empty { display: none; }

.notes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 30px; }
.pick { display: flex; align-items: baseline; gap: 4px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pick legend, .pick .legend { float: left; padding: 0; margin-right: 8px; font: 500 1.375rem/1 var(--hand); color: var(--soft); }
.pick label { position: relative; padding: 5px 9px; cursor: pointer; font-size: 0.9375rem; color: var(--soft); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick label:hover { color: var(--ink); }
.pick label:has(input:checked) { color: var(--ink); }
.pick label:has(input:focus-visible) { outline: 2px dashed var(--blue); outline-offset: 2px; border-radius: 12px; }
.pencil.ring { inset: -3px -4px; width: calc(100% + 8px); height: calc(100% + 6px); }
.pencil.ring path { stroke-width: 1.5; }
.pencil.ring { opacity: 0; transform: scale(0.9) rotate(-3deg); transition: opacity 0.2s ease, transform 0.25s ease; }
.pick input:checked ~ .ring { opacity: 0.75; transform: none; }

/* "more" opens the choices most people leave alone: a small card under it, one choice to a
   row with the names in a column. While the card is shut, "more" names the ones that are not
   the usual. */
.more-btn { display: inline-flex; align-items: baseline; gap: 6px; margin-left: auto; padding: 5px 0 5px 10px; border: 0; background: none; font: 500 1.25rem/1 var(--hand); color: var(--soft); }
.more-btn:hover, .more-btn[aria-expanded="true"] { color: var(--ink); }
.more-btn[aria-expanded="true"] .word { text-decoration: underline wavy var(--rule); text-decoration-thickness: 1.2px; text-underline-offset: 5px; }
.knobs { align-self: center; width: 17px; height: 14px; overflow: visible; }
.knobs path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.knobs circle { fill: var(--paper); stroke: currentColor; stroke-width: 1.5; }
.more-btn .sum { font: 400 0.8125rem/1 var(--yours); color: var(--ink); }
.more-btn .sum:empty { display: none; }
.notes.more {
  flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 1px; width: fit-content; max-width: 100%;
  margin: 8px 0 0 auto; padding: 8px 14px 9px 16px; border: 1.5px solid var(--faint); border-radius: var(--wobble);
  background: rgba(255, 253, 246, 0.6); animation: rise 0.25s ease-out both;
}
.more .pick { gap: 2px; }
.more .pick legend, .more .pick .legend { min-width: 3.5rem; margin-right: 4px; font-size: 1.125rem; }
.more .pick label { padding: 4px 8px; font-size: 0.8125rem; }
/* Who reads it: a name written on a dotted line, which opens the list of voices. */
.pick.voice { cursor: default; }
.pick.voice .legend { float: none; }
.pick.voice select {
  margin-left: 2px; padding: 4px 20px 3px 6px; border: 0; border-bottom: 1.5px dotted var(--rule); border-radius: 0; background-color: transparent; font: inherit; font-size: 0.8125rem; color: var(--ink); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.8 6 6.2l4.5-4.4' fill='none' stroke='%236f6a60' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 5px center; background-size: 10px 7px;
}
.pick.voice select:hover { border-bottom-style: solid; }

.send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.go { position: relative; padding: 14px 34px 16px; border: 0; background: none; font: 700 2rem/1 var(--hand); isolation: isolate; transition: transform 0.15s ease; }
.go .wash { inset: -8px -12px; width: calc(100% + 24px); height: calc(100% + 16px); z-index: -1; transition: opacity 0.2s ease; opacity: 0.86; }
.go:hover { transform: rotate(-1.5deg) scale(1.03); }
.go:hover .wash { opacity: 1; }
.go:active { transform: scale(0.98); }
.go:disabled { cursor: default; transform: none; color: var(--soft); }
.file { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 12px; border: 1.5px solid var(--faint); border-radius: var(--wobble); font-size: 0.9375rem; }
.file button { width: 28px; height: 28px; border: 0; background: none; color: var(--soft); font-size: 1.2rem; line-height: 1; }
.file button:hover { color: var(--crimson); }

.say { margin: 18px 0 0; font-size: 1rem; }
.say.error { color: var(--crimson); }
.say.info { color: var(--blue); }

.tries { margin: 44px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; color: var(--soft); }
.tries > span { font: 500 1.375rem/1 var(--hand); }
.tries button { padding: 2px 0; border: 0; background: none; font-size: 0.9375rem; color: var(--soft); border-bottom: 1.5px dotted var(--rule); }
.tries button:hover { color: var(--ink); border-bottom-style: solid; }
.tries button:nth-of-type(odd) { transform: rotate(-0.8deg); }
.tries button:nth-of-type(even) { transform: rotate(0.7deg); }

/* My videos is a wall of the same cards as the feed (below). */
.videos { max-width: 1040px; padding-top: clamp(28px, 6vh, 64px); }
.videos h1 { margin-bottom: 4px; }
/* A drawing that is still being made: its label writes itself out, rests, and starts again. */
.wall .m.writing { align-self: flex-start; animation: rewrite 2.6s cubic-bezier(0.3, 0.1, 0.3, 1) infinite; }
@keyframes rewrite {
  0% { clip-path: inset(-10% 100% -10% 0); opacity: 1; }
  50%, 88% { clip-path: inset(-10% -2% -10% 0); opacity: 1; }
  100% { clip-path: inset(-10% -2% -10% 0); opacity: 0; }
}

/* ------------------------------------------------------------------ signing in */

.signin h1 { white-space: normal; margin-bottom: 14px; font-size: clamp(2.2rem, 5.6vw, 3.4rem); }
.signin form { max-width: 520px; }
/* The line about the terms is a little longer than the form is wide. It is let run past the
   form's edge so that it is one line wherever the page has room for it. */
.signin form > .hint { width: max-content; max-width: calc(100vw - 2 * var(--pad)); }
.signin .say { max-width: 56ch; }
/* The page where an app is let in uses the same sheet. */
.signin .hint .link { font-size: inherit; }

/* ------------------------------------------------------------------ paying */

a.go { display: inline-block; text-decoration: none; }
/* Beside "draw it": what this one will cost, or how many free ones are left. */
.price { margin: 0; font-size: 0.9375rem; }
.price.out { color: var(--crimson); }
/* The way on when a drawing needs an account or more credit: a note pinned under the form. */
.pay { margin-top: 24px; max-width: 56ch; padding: 16px 20px 18px; border: 1.5px solid var(--faint); border-radius: var(--wobble); background: rgba(255, 253, 246, 0.6); }
.pay-why { margin: 0; font-size: 1.0625rem; }
.pay .retry { margin-top: 16px; }

/* ------------------------------------------------------------------ settings */

/* Settings is a few short sections, each at its own address. Their names sit in a row under
   the heading, written by hand; the one in view is in ink, on a pencil line. */
.settings h1 { margin-bottom: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px 34px; margin-bottom: 40px; }
.tabs:empty { display: none; }
.tabs a { position: relative; padding: 8px 0; font: 700 1.75rem/1 var(--hand); color: var(--soft); text-decoration: none; }
.tabs a:hover, .tabs a[aria-current] { color: var(--ink); }
.tabs .pencil.line { bottom: 0; animation-duration: 0.35s; animation-delay: 0s; }
.settings .part { max-width: 60ch; animation: rise 0.3s ease-out both; }
.settings .sum { margin: 0 0 4px; font-size: clamp(2.6rem, 8vw, 4rem); font-weight: 700; line-height: 1; }
.settings .lede { margin-bottom: 0; }
.settings .lede + p { margin-top: 18px; }
.settings .costs { margin: 40px 0 0; padding-top: 16px; border-top: 1.5px dashed var(--faint); font-size: 0.9375rem; color: var(--soft); }

/* Adding credit: the amounts on offer as a row of slips, the chosen one inked and lifted off
   the page, then a slip to write any other amount on, and the one button that pays, with
   what the amount is enough for beside it. */
.topup { margin-top: 36px; }
.topup fieldset { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.topup legend { padding: 0; margin-bottom: 14px; font-size: 0.9375rem; font-weight: 600; color: var(--soft); }
.amt {
  position: relative; display: inline-flex; align-items: baseline; justify-content: center; min-width: 4.5rem; padding: 10px 18px 12px;
  border: 1.5px solid var(--faint); border-radius: var(--wobble); background: rgba(255, 253, 246, 0.45);
  font: 700 1.875rem/1 var(--hand); color: var(--soft); cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.amt:hover { color: var(--ink); border-color: var(--rule); }
.amt input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.amt:has(input:checked), .amt.other:has(input:not(:placeholder-shown)) {
  color: var(--ink); border-color: var(--ink); background: #fffdf6; box-shadow: 2px 3px 0 rgba(43, 42, 39, 0.13); transform: rotate(-1.2deg) translateY(-1px);
}
.amt:has(input[type="radio"]:focus-visible) { outline: 2px dashed var(--blue); outline-offset: 3px; }
.amt.other { gap: 5px; padding-inline: 16px 14px; cursor: text; }
.amt.other:focus-within { color: var(--ink); border-color: var(--ink); }
.amt.other input { width: 2.9em; min-width: 0; height: 1em; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; color: var(--ink); outline: none; }
.amt.other input::placeholder { font-weight: 500; color: var(--soft); opacity: 1; }
.worth { margin: 0; font-size: 0.9375rem; color: var(--soft); }
.worth.no { color: var(--crimson); }
.topup .send { margin-top: 24px; }
.topup .hint { margin-top: 14px; }
@media (max-width: 520px) {
  .tabs { column-gap: 28px; }
  /* On a phone the slips share each row evenly, big enough for a thumb. */
  .amt { flex: 1 1 4.5rem; }
  .amt.other { flex-basis: 8rem; }
  .amt.other input { flex: 1; }
}
/* What was added and spent: when, what, how much. */
.ledger { list-style: none; margin: 10px 0 0; padding: 0; font-size: 0.9375rem; }
.ledger li { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 2px 16px; padding: 9px 0; border-bottom: 1.5px solid var(--faint); }
.ledger .d { color: var(--soft); }
.ledger .w { overflow-wrap: anywhere; }
.ledger .w .link { font-size: inherit; }
.ledger .a { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 520px) {
  .ledger li { grid-template-columns: 1fr auto; }
  .ledger .d { grid-column: 1 / -1; font-size: 0.8125rem; }
}

/* ------------------------------------------------------------------ the feed */

.feed { max-width: 1040px; padding-top: clamp(28px, 6vh, 64px); }
.feed h1 { margin-bottom: 4px; }
.feed .notes { margin-top: 18px; }
/* Three across on a wide page, so a card's picture is large enough to read. */
.wall { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 30px 24px; transition: opacity 0.2s ease; }
.wall.stale { opacity: 0.5; }
/* A card is a sheet pinned to the page, with the video's picture on it. The feed and My videos
   are both walls of them. */
.wall a {
  display: flex; flex-direction: column; height: 100%; padding: 10px 10px 13px; text-decoration: none;
  background: rgba(255, 253, 246, 0.6); border: 1.5px solid var(--faint); border-radius: var(--wobble);
  box-shadow: 2px 3px 0 rgba(43, 42, 39, 0.07); transition: transform 0.18s ease, border-color 0.18s ease;
}
.wall li:nth-child(3n + 1) a { transform: rotate(-0.5deg); }
.wall li:nth-child(3n + 2) a { transform: rotate(0.4deg); }
.wall a:hover { transform: rotate(0deg) translateY(-3px); border-color: var(--ink); }
.thumb { position: relative; display: block; aspect-ratio: 1200 / 640; overflow: hidden; background: #fdfdfb; border: 1.5px solid rgba(43, 42, 39, 0.4); border-radius: 8px 12px 9px 11px; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* How long the video runs, in the corner of its picture. */
.thumb .len { position: absolute; right: 7px; bottom: 7px; padding: 0 7px; border-radius: 5px 7px 6px 7px; background: rgba(27, 26, 24, 0.84); color: #fbf6e9; font-size: 0.75rem; font-weight: 600; line-height: 1.6; font-variant-numeric: tabular-nums; }
/* No picture: faint ruled lines, like a sheet nothing has been drawn on. */
.thumb.blank { background-image: repeating-linear-gradient(transparent 0 21px, var(--faint) 21px 22px); }
.thumb.blank .len { display: none; }
.wall .t { margin: 12px 4px 0; font: 700 1.5rem/1.1 var(--hand); text-wrap: balance; }
.wall .m { margin: 6px 4px 0; font-size: 0.8125rem; color: var(--soft); }

/* ------------------------------------------------------------------ use it in another app */

.connect h1 { white-space: normal; margin-bottom: 14px; font-size: clamp(2.2rem, 5.6vw, 3.4rem); }
.lede { position: relative; margin: 0 0 34px; max-width: 56ch; font-size: 1.125rem; }
.yours h2, .way h2 { margin: 0 0 12px; font: 700 1.75rem/1 var(--hand); }
.addr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.addr { flex: 1; min-width: 240px; padding: 11px 16px; border: 1.5px solid var(--rule); border-radius: var(--wobble); outline-offset: 6px; background: rgba(255, 253, 246, 0.6); font-size: 0.9375rem; text-overflow: ellipsis; }
.yours .hint { max-width: 62ch; }
.yours .hint .link { font-size: inherit; }
.yours.earlier { margin-top: 48px; }
.ways { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 34px 44px; }
.way ol { margin: 0; padding-left: 1.3em; }
.way li { margin: 0 0 7px; padding-left: 2px; }
.way li::marker { font: 700 1.25rem/1 var(--hand); color: var(--soft); }
.way p { margin: 0 0 5px; font-size: 0.875rem; color: var(--soft); }
.way.wide { grid-column: 1 / -1; }
.way code { display: block; margin: 0 0 14px; padding: 9px 11px; border: 1.5px dashed var(--faint); border-radius: 8px; font: 0.8125rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.way code span { white-space: nowrap; }

/* ------------------------------------------------------------------ a page with a drawing on it */

/* The column is as wide as a drawing that still leaves room for its caption and controls, and
   on a wide screen for the margin to its left where its parts are listed. */
#app[data-view="page"] { --rail: 0px; --col: calc(min(1040px, max(520px, (100vh - 300px) * 1.7778)) + 48px + var(--rail)); }
@media (min-width: 1000px) { #app[data-view="page"] { --rail: 280px; } }
#app[data-view="page"] :is(.top, .foot) { max-width: var(--col); }
.page { position: relative; padding-top: 22px; max-width: var(--col); }
.page h1 { margin: 0; font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
.asked { margin: 8px 0 0; max-width: 70ch; color: var(--soft); font-size: 0.9375rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.asked.whole { display: block; font-size: 1.25rem; color: var(--ink); white-space: pre-wrap; max-height: 9.5em; overflow: auto; }
.asked b { font: 500 1.25rem/1 var(--hand); margin-right: 8px; color: var(--soft); }
/* Under a finished video's title: "more" opens the whole prompt, with its line breaks. */
.asked.all { display: block; color: var(--ink); white-space: pre-wrap; }
.ask-acts { display: flex; gap: 20px; margin-top: 4px; }
.ask-acts .link { font-size: 0.875rem; }
/* The length, surface and shape that were picked, under the prompt while the video is being made. */
.asked.picked { display: block; margin-top: 6px; font-size: 1.0625rem; color: var(--ink); }

/* The video is its own clean sheet laid on the paper, cut a little unevenly and outlined in
   pencil. It keeps the background it was made with (white, or the blackboard), so the drawing
   reads clearly against the grid behind it. While a video is being made the outline is empty. */
.frame { position: relative; margin: 26px 0 0; }
.frame.making::before, .pl-stage::before { content: ""; position: absolute; inset: -9px; border: 1.5px solid var(--faint); border-radius: var(--wobble); pointer-events: none; }
.pl { display: flex; flex-direction: column; outline: 0; container-type: inline-size; }
.pl-stage { position: relative; isolation: isolate; order: 1; cursor: pointer; aspect-ratio: 16 / 9; margin-bottom: 12px; }
.pl-stage::before { z-index: -1; border-color: rgba(43, 42, 39, 0.5); background: #fdfdfb; box-shadow: 4px 6px 0 rgba(43, 42, 39, 0.13); }
.pl[data-skin="math"] .pl-stage::before { background: #0a0c11; }
.pl-stage svg { display: block; width: 100%; height: auto; }
/* A tall video (made for a phone held upright) sits in the middle of the column, as wide as
   lets the whole of it fit on the screen together with its caption and controls. On a phone
   that is most of the width; on a computer it is a tall sheet with space either side. */
.pl[data-shape="portrait"], .frame.making[data-shape="portrait"], .rate[data-shape="portrait"] {
  width: min(100%, max(240px, (100vh - 150px) * 0.5625));
  width: min(100%, max(240px, (100svh - 150px) * 0.5625));
  margin-inline: auto;
}
.pl[data-shape="portrait"] .pl-stage, .making[data-shape="portrait"] { aspect-ratio: 9 / 16; }

.pl-big {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; gap: 14px;
  padding: 12px 26px 14px 18px; border: 2px solid var(--ink); border-radius: var(--wobble); background: rgba(243, 237, 223, 0.9);
  color: var(--ink); font: 700 1.75rem/1 var(--hand); transition: transform 0.15s ease;
}
.pl-big svg { width: 30px; height: 30px; }
.pl-big::after { content: "play"; white-space: nowrap; }
.pl-big:hover { transform: rotate(-1.5deg) scale(1.04); }

/* The caption runs up to four fifths of the video's width, and each line is filled before the
   next is begun: evened-out lines stopped well short of that. Under a tall video, which is
   narrow, it may use all of the width. */
.pl-cap { order: 2; min-height: 2.2em; margin: 16px auto 0; max-width: 80%; text-align: center; font: 500 1.625rem/1.1 var(--hand); text-wrap: pretty; }
.pl[data-shape="portrait"] .pl-cap { max-width: none; }
.pl-bar { order: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin-top: 8px; }
.pl-pp, .pl-cc, .pl-mute { flex: none; display: grid; place-items: center; min-width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink); }
.pl-pp:hover, .pl-cc:hover, .pl-mute:hover, .pl-rate:hover { background: rgba(43, 42, 39, 0.07); }
.pl-pp svg, .pl-mute svg { width: 22px; height: 22px; }
.pl-vol { flex: none; display: flex; align-items: center; gap: 2px; }
/* How fast: the number is the control. Choosing opens the browser's own list. */
.pl-rate { flex: none; min-width: 44px; height: 44px; padding: 0 8px; border: 0; border-radius: 22px; background: none; color: var(--ink); font: 700 1.25rem/1 var(--hand); text-align: center; text-align-last: center; cursor: pointer; -webkit-appearance: none; appearance: none; }
.pl-cc { font: 700 1.25rem/1 var(--hand); color: var(--soft); opacity: 0.6; }
.pl-cc[aria-pressed="true"] { color: var(--ink); opacity: 1; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.pl-time { flex: none; font-size: 0.875rem; color: var(--soft); font-variant-numeric: tabular-nums; }
/* The time line is a pencil line: darker where the drawing has got to. The volume is a short
   one of the same, darker up to how loud it is. */
.pl-seek, .pl-volume { height: 28px; margin: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.pl-seek { flex: 1; min-width: 0; }
.pl-volume { flex: none; width: 64px; }
.pl-seek::-webkit-slider-runnable-track, .pl-volume::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--p, 0%), var(--faint) var(--p, 0%)); }
.pl-seek::-moz-range-track, .pl-volume::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--p, 0%), var(--faint) var(--p, 0%)); }
.pl-seek::-webkit-slider-thumb, .pl-volume::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: -6px; border: 0; border-radius: 50% 46% 52% 48%; background: var(--ink); }
.pl-seek::-moz-range-thumb, .pl-volume::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: var(--ink); }
/* Under a narrow video (a tall one, or any on a phone) the controls do not fit beside the time
   line, so it takes a row of its own above them. Narrower still, the volume line goes: a phone
   has buttons for that. */
@container (max-width: 600px) {
  .pl-bar { column-gap: 4px; }
  .pl-seek { order: -1; flex: 0 0 100%; }
  .pl-time { margin-right: auto; }
}
@container (max-width: 400px) {
  .pl-volume { display: none; }
}

/* Thumbs up or down, under the drawing and its controls, at its right-hand edge. The buttons
   match the player's. */
.rate { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0 4px; margin-top: 14px; color: var(--soft); }
.rate .q, .rate .thanks { margin-right: 8px; font: 500 1.375rem/1 var(--hand); }
.rate button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--soft); }
.rate button:hover { background: rgba(43, 42, 39, 0.07); color: var(--ink); }
.rate svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }
.rate .down svg { transform: rotate(180deg); }
/* The chosen one is inked in and washed with colour. */
.rate button[aria-pressed="true"] { color: var(--ink); }
.rate .up[aria-pressed="true"] svg { fill: rgba(138, 162, 116, 0.75); transform: rotate(-8deg) scale(1.1); }
.rate .down[aria-pressed="true"] svg { fill: rgba(168, 38, 59, 0.4); transform: rotate(172deg) scale(1.1); }
/* Once there is something to say back, it is said where the question was. */
.rate .thanks:empty, .rate .thanks:not(:empty) + .q { display: none; }

.takeaway { position: relative; display: inline-block; margin: 30px 0 0; max-width: 60ch; font-size: 1.125rem; }
.takeaway .wash { inset: -6px -14px; width: calc(100% + 28px); height: calc(100% + 12px); opacity: 0.5; z-index: -1; }

/* The drawing and what goes with it. On a wide screen its parts are listed in a margin to the
   left, which stays in view while the page is scrolled; everything else is in the column under
   the drawing. The last row takes up the slack when the list is the longer of the two. */
.watch { display: grid; grid-template-columns: minmax(0, 1fr); }
.watch > * { min-width: 0; }
.watch > .takeaway { justify-self: start; }
.chapters h2, .change h2 { margin: 0 0 10px; font: 700 1.75rem/1 var(--hand); }
/* The parts as a list, one to a line: in the margin of a wide screen, and on a narrow one once
   the row has been opened out. */
.chapters ol { position: relative; list-style: none; margin: 0; padding: 0; counter-reset: c; }
.chapters li { counter-increment: c; }
.chapters li button { display: grid; grid-template-columns: 1.3em minmax(0, 1fr) auto; align-items: baseline; column-gap: 8px; width: 100%; padding: 6px 4px 6px 0; border: 0; background: none; text-align: left; color: var(--soft); }
.chapters li button::before { content: counter(c) "."; font: 700 1.375rem/1 var(--hand); }
.chapters li button:hover { color: var(--ink); }
.chapters li button[aria-current="true"] { color: var(--ink); }
.chapters li button[aria-current="true"] .name { text-decoration: underline wavy var(--rule); text-decoration-thickness: 1.2px; text-underline-offset: 5px; }
.chapters .when { font-size: 0.8125rem; font-variant-numeric: tabular-nums; opacity: 0.8; }
.chapters .only { grid-area: 2 / 2; margin-top: 3px; font: 500 1.125rem/1 var(--hand); color: var(--blue); }
.chapters li button[aria-pressed="false"] .only { display: none; }
/* Opens the row out into the list, and folds it back. Only a narrow screen has a row. */
.chapters .all { display: none; }
@media (min-width: 1000px) {
  .watch { grid-template-columns: 240px minmax(0, 1fr); grid-template-rows: repeat(6, auto) 1fr; column-gap: 40px; }
  .watch > * { grid-column: 2; }
  .watch > .chapters { grid-column: 1; grid-row: 1 / -1; align-self: start; position: sticky; top: 0; padding-top: 20px; }
  /* A long drawing has many parts: the list is kept to what fits on the screen beside the
     drawing, scrolls by itself, and keeps up with the drawing. */
  .chapters ol { max-height: max(240px, 100vh - 300px); overflow-y: auto; scrollbar-width: thin; }
}
/* With no room for a margin (a phone, a narrow window) the parts are a row of slips under the
   drawing, pushed sideways with a finger. The row runs off the edge of the page, fading out,
   which is what says there is more of it; when there is, "all" at its end opens it out into
   the whole list, under its heading. */
@media (max-width: 999.98px) {
  .chapters { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin-top: 12px; }
  .chapters .all {
    display: block; grid-area: 1 / 2; min-height: 44px; padding: 0 2px 2px 12px; border: 0; background: none;
    font: 700 1.3125rem/1 var(--hand); color: var(--ink); white-space: nowrap;
  }
  /* A small arrowhead, pointing down at what will open and up once it has. */
  .chapters .all::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 2px 4px 7px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
  .chapters .all[aria-expanded="true"]::after { margin-bottom: 0; transform: rotate(-135deg); }
  .chapters .hint { grid-column: 1 / -1; margin-top: 6px; text-align: center; }

  .chapters:not([data-open]) h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .chapters:not([data-open]) ol {
    grid-area: 1 / 1; display: flex; gap: 8px; margin-left: calc(-1 * var(--pad)); padding: 4px 14px 4px var(--pad); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--pad) 14px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - 14px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - 14px), transparent);
  }
  /* With nothing to open (they all fit) the row runs to both edges, and sits in the middle as
     the drawing above it does. */
  .chapters:not([data-open]) .all[hidden] + ol {
    margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); scroll-padding-inline: var(--pad);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent);
  }
  .chapters:not([data-open]) ol::-webkit-scrollbar { display: none; }
  .chapters:not([data-open]) li { flex: none; scroll-snap-align: start; }
  .chapters:not([data-open]) li:first-child { margin-left: auto; }
  .chapters:not([data-open]) li:last-child { margin-right: auto; }
  .chapters:not([data-open]) li button { display: flex; gap: 6px; width: auto; min-height: 44px; padding: 8px 12px 9px 10px; border: 1.5px solid var(--faint); border-radius: var(--wobble); font-size: 0.9375rem; white-space: nowrap; }
  .chapters:not([data-open]) li button::before { font-size: 1.25rem; }
  .chapters:not([data-open]) li button[aria-current="true"] { border-color: var(--ink); background: rgba(255, 253, 246, 0.7); }
  .chapters:not([data-open]) li button[aria-current="true"] .name { text-decoration: none; }
  .chapters:not([data-open]) li button[aria-pressed="true"] { border-color: var(--blue); }
  .chapters:not([data-open]) .only { margin-top: 0; }

  /* Opened out: the heading and "close" on one line, then every part, each a line a thumb can hit. */
  .chapters[data-open] h2 { grid-area: 1 / 1; margin: 0; }
  .chapters[data-open] ol { grid-area: 2 / 1 / auto / -1; margin-top: 4px; animation: rise 0.25s ease-out both; }
  .chapters[data-open] li + li { border-top: 1.5px dashed var(--faint); }
  .chapters[data-open] li button { min-height: 46px; padding: 9px 2px 9px 0; }
  .chapters[data-open] .hint { text-align: left; }
}
.hint { margin: 10px 0 0; font-size: 0.8125rem; color: var(--soft); }

/* Where a change is asked for. Whoever made the drawing writes it on a slip of paper
   (changing() in paper.js). The slip is laid where they tap the page, beside the part they
   pick or by the spot they mark, and slides over when it is put somewhere else (.at: paper.js
   says where). With no place to go by it lies in the page: under the drawing, or on a narrow
   screen straight after the row of parts, so that it stays with the row while the caption
   above changes height. The notes shown to everyone else (sign in to keep it, take a copy)
   are always under the drawing. */
.page[data-edit] { cursor: text; }
.page[data-edit] :is(.pl, .change) { cursor: auto; }
.change { position: relative; margin-top: 34px; max-width: 640px; }
.slip {
  z-index: 4; width: min(440px, calc(100vw - 24px)); max-width: 100%; margin-top: 22px; padding: 14px 18px 16px; scroll-margin: 12px;
  background: #fffdf6; border: 1.5px solid var(--rule); border-radius: 18px 12px 20px 14px / 12px 20px 14px 18px; box-shadow: 4px 6px 0 rgba(43, 42, 39, 0.13);
  animation: rise 0.25s ease-out both;
}
.slip.at { position: absolute; max-width: none; margin: 0; transition: left 0.3s cubic-bezier(0.3, 0.1, 0.2, 1), top 0.3s cubic-bezier(0.3, 0.1, 0.2, 1); }
@media (max-width: 999.98px) {
  .slip:not(.at) { order: 1; width: auto; max-width: 440px; margin-top: 10px; }
  .watch:has(> .slip:not(.at, [hidden])) > :not(.frame, .chapters, .slip) { order: 2; }
}
/* A spot marked on the drawing by the click that stopped it: a ring, and beside it the words
   that bring the slip out. Once the slip is about the spot the words are not needed. */
.spot { position: absolute; z-index: 3; width: 0; height: 0; }
.spot-ring {
  position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border: 3px solid var(--crimson); border-radius: 47% 53% 50% 50% / 53% 47% 52% 48%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), inset 0 0 0 2px rgba(255, 255, 255, 0.8); cursor: grab; touch-action: none; animation: spot-in 0.25s ease-out both;
}
.spot-ring:active { cursor: grabbing; }
.spot-tag {
  position: absolute; top: -18px; left: 34px; padding: 4px 13px 6px; border: 1.5px solid var(--rule); border-radius: 14px 10px 15px 11px / 10px 15px 11px 14px;
  background: #fffdf6; color: var(--ink); font: 700 1.375rem/1 var(--hand); white-space: nowrap; box-shadow: 2px 3px 0 rgba(43, 42, 39, 0.13); cursor: pointer;
  animation: rise 0.25s 0.12s ease-out both;
}
.spot-tag:hover { color: var(--crimson); }
.spot[data-side="left"] .spot-tag { left: auto; right: 34px; }
.spot[data-held] .spot-tag { display: none; }
@keyframes spot-in {
  from { opacity: 0; transform: scale(1.6); }
  to { opacity: 1; transform: none; }
}
.change .shut { position: absolute; z-index: 1; top: 0; right: 2px; width: 36px; height: 36px; border: 0; background: none; color: var(--soft); font-size: 1.25rem; line-height: 1; }
.change .shut:hover { color: var(--crimson); }
.change .shut + form .ask { margin-right: 30px; }
.change .ask textarea { font-size: 1.125rem; }
.change-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 18px; }
.change-row .go { margin-left: auto; }
.scope { margin: 0; font-size: 0.875rem; color: var(--soft); }
.scope button { padding: 0; border: 0; background: none; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.go.small { padding: 9px 24px 11px; font-size: 1.625rem; }
.drafts { margin: 26px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 0.875rem; color: var(--soft); }
.drafts > span { font: 500 1.25rem/1 var(--hand); }
.drafts button { padding: 2px 4px; border: 0; background: none; color: var(--soft); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; }
.drafts button[aria-current="true"] { color: var(--ink); font-weight: 700; text-decoration-color: var(--ink); }

/* ------------------------------------------------------------------ while it is being made */

.making { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.making svg.doodles { position: absolute; inset: 0; width: 100%; height: 100%; }
.doodles path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s ease-out forwards; transition: opacity 1.2s ease; }
.doodles path.old { opacity: 0; }
.status { position: relative; margin: 0; padding: 0 20px; text-align: center; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.status small { display: block; margin-top: 10px; font: 400 0.9375rem/1.4 var(--yours); color: var(--soft); }
.tally { display: flex; justify-content: center; gap: 9px; height: 34px; margin-top: 14px; }
.tally i { width: 3px; height: 100%; border-radius: 3px; background: var(--faint); transform: rotate(6deg); transition: background 0.5s ease; }
.tally i:nth-child(even) { transform: rotate(-4deg); }
.tally i.done { background: var(--ink); }
.retry { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 26px; }

@media (max-width: 760px) {
  .top { padding: 16px 18px 0; }
  .pass { right: 18px; }
  main { --pad: 18px; padding-bottom: 44px; }
  .pl-cap { font-size: 1.375rem; }
  .pl-big { font-size: 1.375rem; padding: 9px 18px 10px 12px; }
  .notes { gap: 8px 20px; }
  /* The choices are one to a row here, so "more" and its card line up under them. */
  .more-btn { margin-left: 0; padding-left: 0; }
  .notes.more { margin-left: 0; }
  /* Room for a thumb. */
  .more .pick label { padding-block: 8px; }
  .pick.voice select { padding-block: 8px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .write, .rise, .sky, .pencil.line, .doodles path, .wall .m.writing, .pass, .notes.more, .settings .part, .chapters[data-open] ol { animation: none; }
  .amt { transition: none; }
  .doodles path { stroke-dashoffset: 0; }
  .sky { opacity: 0.5; }
  .go:hover, .pl-big:hover, .wall a:hover, .attach:hover { transform: none; }
  .rate svg, .desk, .slip.at { transition: none; }
  .slip { animation: none; }
  .spot-ring, .spot-tag { animation: none; }
}

/* ---------- the privacy notice and the terms (lib/legal.mjs) ----------
   Long text to be read, so it is set in the book face, not the handwriting. */
.hint .link { font-size: inherit; }
.legal { max-width: 900px; margin: 0 auto; padding: 26px 24px 64px; font: 400 1.0625rem/1.62 "STIX Two Text", Georgia, serif; overflow-wrap: anywhere; }
.legal h1 { margin: 0.2em 0 0.5em; font: 700 clamp(2.2rem, 6vw, 3.1rem)/1.1 var(--hand); }
.legal h2 { margin: 2.1em 0 0.5em; font: 600 1.375rem/1.3 "STIX Two Text", Georgia, serif; }
.legal h3 { margin: 1.7em 0 0.4em; font: 600 1.125rem/1.35 "STIX Two Text", Georgia, serif; }
.legal h4 { margin: 1.4em 0 0.3em; font: 600 1.0625rem/1.4 "STIX Two Text", Georgia, serif; }
.legal :is(h2, h3, h4) { scroll-margin-top: 16px; }
.legal p { margin: 0.8em 0; }
.legal ul { margin: 0.8em 0; padding-left: 1.3em; }
.legal li { margin: 0.55em 0; }
.legal a { color: var(--blue); text-underline-offset: 3px; }
.legal blockquote { margin: 1.4em 0; padding: 4px 18px; border: 1.5px solid var(--rule); border-radius: 6px; font-size: 0.9375rem; background: rgba(255, 255, 255, 0.35); }
.legal mark { padding: 0 3px; border-radius: 3px; background: rgba(226, 171, 61, 0.45); color: inherit; }
.legal .draft { margin: 0 0 1.6em; padding: 10px 16px; border: 1.5px solid var(--crimson); border-radius: 6px; color: var(--crimson); background: rgba(255, 255, 255, 0.45); font-family: var(--yours); font-size: 0.9375rem; }
