/* Shared base for the company pages: the homepage's paper, header, switches, marker, store badges, notes, postcards and footer,
   drawn without the homepage's scaled canvas. The phone layout (under 760 px) and the desktop layout (760 px and up) are
   designed separately. Light is loose-leaf, dark is chalkboard, and the two change roles only: no box ever moves. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body { color: var(--ink); font-family: var(--hand); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; }
p { text-wrap: pretty; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 4px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.9em; letter-spacing: -0.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ink-path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the ground ---------- */
:root { --gutter: 26px; --sheet: #FBFAF5; --on-sheet: #141026; --on-sheet-dim: #514B60; }
body { background-color: var(--paper); background-image: url("assets/art/paper-wide-cap.webp"), url("assets/art/paper-wide-tile.webp"); background-size: var(--plate-w, 100%) auto, var(--plate-w, 100%) auto; background-repeat: no-repeat, repeat-y; background-position: 0 0, 0 var(--tile-y, 172px); }
.ground { position: fixed; top: -160px; bottom: -160px; left: 0; right: 0; z-index: -1; display: none; background: var(--paper) url("assets/art/chalk-wide.webp") left top / cover no-repeat; }
:root[data-theme="dark"] body { background-image: none; background-color: transparent; }
:root[data-theme="dark"] { background-color: #2b2e33; }
:root[data-theme="dark"] .ground { display: block; }
.ground span { display: none; }
@media (max-width: 759.98px) {
  body { background-image: url("assets/art/paper-real-cap.webp"), url("assets/art/paper-real-tile.webp"); }
  .ground { background-image: url("assets/art/chalk-real.webp"); }
}

.skip { position: absolute; left: 12px; top: -80px; z-index: 20; padding: 12px 18px; background: var(--slab) url("assets/art/card-stock-light.webp") center / cover; color: var(--on-slab); font-family: var(--press); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 760px) { :root { --gutter: clamp(56px, 6vw, 96px); } }
main { overflow-x: clip; }

/* ---------- the top bar: switches left; Feedback & ideas and Log in right ---------- */
.top { position: relative; z-index: 5; display: flex; align-items: center; flex-wrap: wrap; row-gap: 10px; min-height: 76px; padding-top: 14px; margin: 0 auto; max-width: 1240px; padding-left: var(--gutter); padding-right: var(--gutter); }
.toggles { display: flex; gap: 22px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; font-family: var(--press); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pencil); white-space: nowrap; }
.toggle:first-child { gap: 22px; }
.toggle__box { width: 40px; height: 22px; overflow: visible; }
.toggle__frame { fill: none; stroke: var(--pencil); stroke-width: 1.6; stroke-linecap: round; }
.toggle__dot { fill: var(--pencil); transition: transform 0.2s ease; }
.toggle[aria-checked="true"] .toggle__frame { stroke: var(--ink); }
.toggle[aria-checked="true"] .toggle__dot { fill: var(--ink); transform: translateX(18px); }
.toggle[aria-checked="true"] .toggle__word { color: var(--ink); }
.toggle__word > span { display: inline-block; min-width: 3.2ch; }
.slab { position: relative; display: inline-flex; align-items: center; min-height: 50px; background: var(--slab) url("assets/art/card-stock-light.webp") center / cover; color: var(--on-slab); text-decoration: none; }
:root[data-theme="dark"] .slab, :root[data-theme="dark"] .store { background-image: url("assets/art/card-stock-dark.webp"); }
.slab-frame { position: absolute; left: 3px; top: 3px; width: calc(100% - 6px); height: calc(100% - 6px); pointer-events: none; color: var(--on-slab); opacity: 0.8; }
.slab-frame .ink-path { stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.feedback { margin-left: auto; margin-right: 14px; min-height: 50px; padding: 0 20px; transform: rotate(-1deg); box-shadow: var(--sh-card); transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease; }
.feedback span { position: relative; font-family: var(--press); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.feedback:hover, .feedback:focus-visible { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 10px 14px rgba(var(--sh-rgb), 0.22); }
.feedback:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* The marker button: the token orange cut to a real marker swath, a cartoon hop on a beat. */
.marker { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; transform-origin: 50% 100%; font-family: var(--press); font-weight: 900; font-size: 22px; line-height: 1.1; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; color: var(--on-marker); transform: rotate(-1deg); animation: hop 2.6s linear 1.2s infinite; }
.marker__ink { position: absolute; inset: 0 -8px 0 -3px; z-index: -1; background: var(--marker); -webkit-mask: url("assets/art/marker-mask.webp") center / 100% 100% no-repeat; mask: url("assets/art/marker-mask.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 3px 0 color-mix(in srgb, var(--marker) 50%, #000)); }
.marker__label { position: relative; white-space: nowrap; }
.marker:active { transform: rotate(-1deg) scale(0.96); animation: none; }
.marker:hover, .marker:focus-visible { animation-duration: 1.1s; }
@keyframes hop {
  0%, 44%, 100% { transform: rotate(-1deg); animation-timing-function: ease-out; }
  50% { transform: rotate(1deg) scale(1.1, 0.84); animation-timing-function: cubic-bezier(0.2, 0.9, 0.4, 1); }
  58% { transform: translateY(-4px) rotate(-1deg) scale(0.94, 1.06); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.5); }
  66% { transform: rotate(-3deg) scale(1.14, 0.82); animation-timing-function: ease-out; }
  72% { transform: translateY(-2px) rotate(-1deg) scale(0.97, 1.03); animation-timing-function: ease-in; }
  78% { transform: rotate(-1deg) scale(1.05, 0.95); }
  83% { transform: rotate(1.2deg); }
  88% { transform: rotate(-2deg); }
  93% { transform: rotate(-0.6deg); }
}
.login-entry { position: relative; }
.login-entry .login.marker { margin: 0; min-height: 50px; padding: 0 24px; color: var(--on-marker); }
.login-entry .login.marker .marker__label { font-size: 15px; letter-spacing: 0.1em; }
.login-callout { position: absolute; right: calc(50% + 64px); top: 100%; width: 168px; margin: 8px 0 0; color: var(--ink); font: 17px/1.3 var(--hand); text-align: right; pointer-events: none; }
.login-arrow { position: absolute; width: 68px; height: auto; left: 50%; margin-left: -57.8px; top: calc(100% + 6px); overflow: visible; pointer-events: none; transform-origin: 85% 0; animation: login-point 2.6s ease-in-out 1.2s infinite; }
.login-arrow path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes login-point { 0%, 44%, 78%, 100% { transform: none; } 58%, 70% { transform: translateY(-5px) rotate(-3deg); } }
@media (max-width: 759.98px) {
  .top { min-height: 60px; padding-top: 8px; column-gap: 8px; }
  .toggles { flex-direction: column; align-items: flex-start; gap: 0; }
  .toggle { font-size: 10.5px; gap: 7px; }
  .toggle:first-child { gap: 7px; }
  .toggle__box { width: 34px; height: 19px; }
  .toggle[aria-checked="true"] .toggle__dot { transform: translateX(15px); }
  .feedback { flex: 1 1 0; min-width: min-content; padding: 0 10px; margin-right: 6px; min-height: 48px; }
  .feedback span { font-size: 11.5px; letter-spacing: 0.02em; }
  .login-entry { margin-left: auto; }
  .login-entry .login.marker { padding: 0 10px; }
  .login-callout { right: calc(50% + 44px); width: 157px; font-size: 13px; }
  .login-arrow { width: 48px; margin-left: -40.8px; }
}

/* ---------- the mark: big, or not there. Never under 150 px. ---------- */
.sticker { position: relative; width: 360px; aspect-ratio: 1.568; margin: 0 0 12px -12px; transform: rotate(-3deg); }
.sticker img { position: absolute; width: 118.3%; left: -9.47%; top: -50.8%; filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(var(--sh-vinyl)); }
@media (max-width: 759.98px) { .sticker { width: 210px; margin-left: -8px; } }

/* ---------- type ---------- */
.h2 { position: relative; text-wrap: balance; margin: 0; font-family: var(--display); font-weight: 400; font-size: 52px; line-height: 0.98; letter-spacing: 0.01em; text-transform: uppercase; }
.h2 .num { font-family: inherit; font-size: 1em; letter-spacing: inherit; }
.h3 { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 25px; line-height: 1.15; }
.label { font-family: var(--press); font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.swipe { background: url("assets/art/highlighter.webp") 0 31% / 100% 190% no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 6px; margin: 0 -6px; color: var(--on-card); }
@media (max-width: 759.98px) { .h2 { font-size: 38px; } .h3 { font-size: 22px; } }

/* ---------- paper things ---------- */
.tape { position: absolute; top: 0; left: 40%; width: 96px; height: auto; aspect-ratio: 512 / 50; transform: translateY(-50%) rotate(-3deg); opacity: 0.92; pointer-events: none; z-index: 2; }
.note { position: relative; isolation: isolate; padding: 40px 28px 28px; color: var(--on-card); background: var(--sheet); }
.note::before { content: ""; position: absolute; inset: 0; z-index: -1; border-style: solid; border-width: 34px 8px 6px 8px; border-image: url("assets/art/note-flat.webp") 90 20 12 20 fill / 34px 8px 6px 8px stretch round; filter: drop-shadow(0 1px 1px rgba(var(--sh-rgb), 0.34)) drop-shadow(0 10px 18px rgba(var(--sh-rgb), 0.3)); }
.stand { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; }
.stand img { height: 330px; width: auto; transform-origin: 50% 100%; filter: drop-shadow(0 6px 5px rgba(var(--sh-rgb), 0.22)); }
.stand__shadow { width: 76%; height: 14px; margin-top: -8px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--sh-rgb), 0.34), rgba(var(--sh-rgb), 0)); }
.stand img:hover { animation: hop 1.3s linear infinite; }

/* A print or postcard in the worn frame, taped on. */
.print { --tilt: -1.2deg; position: relative; margin: 0; border: 11px solid transparent; border-image: url("assets/art/frame-postcard.webp") 80 80 92 80 / 11px 11px 13px 11px stretch; background: var(--card) url("assets/art/card-stock-light.webp") center / cover padding-box; color: var(--on-card); box-shadow: var(--sh-card); transform: rotate(var(--tilt)); transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.25s; }
.print > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.print::before { content: ""; position: absolute; top: -4px; left: calc(var(--tape-x, 50%) - 36px); width: 72px; height: 7px; background: url("assets/art/tape.webp") center / 100% 100% no-repeat; transform: rotate(var(--tape-r, -3deg)); opacity: 0.92; z-index: 2; }
.print figcaption { padding: 6px 6px 4px; font-family: var(--hand); font-size: 16px; line-height: 1.35; }
.print:hover { transform: translateY(-8px) rotate(0deg); box-shadow: 0 16px 22px rgba(var(--sh-rgb), 0.22); animation: lift-bob 1.6s ease-in-out 0.25s infinite; }
@keyframes lift-bob { 50% { transform: translateY(-12px) rotate(0.6deg); } }

/* A hand-drawn box; ticked where its item is done. */
.tick { position: relative; display: inline-block; flex: none; width: 24px; height: 24px; border: 2.2px solid currentColor; transform: rotate(-3deg) skewX(-2deg); }
.tick svg { position: absolute; left: -3px; top: -9px; width: 32px; height: 32px; overflow: visible; }
.tick path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34; stroke-dashoffset: 34; transition: stroke-dashoffset 0.32s ease-out; }
.is-done > .tick path, .tick.is-done path, .is-done .tick path { stroke-dashoffset: 0; }

/* The four ways in: four small, equal cells, two by two. */
.get { --cell: 224px; --cell-h: 60px; display: grid; grid-template-columns: repeat(2, minmax(0, var(--cell))); gap: 12px; width: max-content; max-width: 100%; }
.get .marker, .get .store { width: 100%; min-height: var(--cell-h); height: var(--cell-h); margin: 0; padding: 0 12px; justify-content: center; transform: none; }
.get .marker { font-size: 21px; }
.stores { display: contents; }
.store { position: relative; display: flex; align-items: center; gap: 10px; background: var(--slab) url("assets/art/card-stock-light.webp") center / cover; color: var(--on-slab); text-decoration: none; box-shadow: var(--sh-card); transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease; }
.store__frame { position: absolute; left: 4px; top: 1px; width: calc(100% - 8px); height: calc(100% - 2px); pointer-events: none; opacity: 0.8; }
.store__frame .ink-path { stroke: var(--on-slab); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.store__glyph { position: relative; flex: none; }
.store__glyph--apple { width: 26px; height: 32px; }
.store__glyph--play { width: 28px; height: 30px; }
.store__glyph--microsoft { width: 25px; height: 25px; }
.store__txt { position: relative; text-align: left; }
.store__k { display: block; font-family: var(--press); font-weight: 800; font-size: 8.5px; letter-spacing: 0.15em; text-transform: uppercase; color: color-mix(in srgb, var(--on-slab) 72%, transparent); white-space: nowrap; }
.store__n { display: block; margin-top: 3px; font-family: var(--display); font-size: 20px; line-height: 1.05; color: var(--on-slab); white-space: nowrap; }
.get .store:hover, .get .store:focus-visible { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 10px 14px rgba(var(--sh-rgb), 0.22); }
.store:active { translate: 0 2px; }
@media (max-width: 759.98px) { .get { --cell: 160px; --cell-h: 52px; gap: 10px; } .get .marker { font-size: 16px; padding: 0 8px; } .get .store { gap: 7px; padding: 0 8px; } .store__k { display: none; } .store__glyph--apple { width: 18px; height: 22px; } .store__glyph--play { width: 19px; height: 21px; } .store__glyph--microsoft { width: 17px; height: 17px; } .store__n { font-size: 18px; } }

/* ---------- section dividers: a pencil stroke, never a straight rule ---------- */
.block { position: relative; margin-top: 64px; padding-top: 56px; }
.block::before, .foot__langs::before, .foot__end::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 10px; background: color-mix(in srgb, var(--ink) 34%, transparent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 10' preserveAspectRatio='none'%3E%3Cpath d='M2 5.6C90 3 190 8.2 330 4.4S560 2.4 700 6.6S900 3.2 998 5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 10' preserveAspectRatio='none'%3E%3Cpath d='M2 5.6C90 3 190 8.2 330 4.4S560 2.4 700 6.6S900 3.2 998 5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
:root[data-theme="dark"] .block::before, :root[data-theme="dark"] .foot__langs::before, :root[data-theme="dark"] .foot__end::before { opacity: 0.85; }
@media (max-width: 759.98px) { .block { margin-top: 44px; padding-top: 44px; } }

/* ---------- things pop onto the page as they scroll in: squash, overshoot, settle ---------- */
.js .pop { opacity: 0; translate: 0 18px; scale: 0.86; }
.js .pop.in { animation: pop-in 0.62s cubic-bezier(0.3, 1.5, 0.5, 1) var(--d, 0s) both; }
@keyframes pop-in {
  0% { opacity: 0; translate: 0 18px; scale: 0.86 0.8; }
  55% { opacity: 1; translate: 0 -6px; scale: 1.05 0.95; }
  78% { translate: 0 1px; scale: 0.98 1.02; }
  100% { opacity: 1; translate: 0 0; scale: 1; }
}

/* ---------- the footer: the live site's four groups, on a plain torn sheet in light ---------- */
.foot { position: relative; isolation: isolate; margin-top: 72px; padding: 96px 0 40px; }
.foot::before { content: ""; position: absolute; z-index: -1; inset: 0; border-image: url("assets/art/foot-sheet.webp") 110 0 0 0 fill / 70px 0 0 0 stretch; filter: drop-shadow(0 -1px 3px rgba(var(--sh-rgb), 0.16)); }
:root[data-theme="dark"] .foot::before { display: none; }
.foot__in { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); gap: 34px 30px; }
.foot__h { margin: 0 0 14px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot__col--social ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-family: var(--hand); font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); text-decoration: none; transition: transform 0.18s ease; }
.foot a:hover, .foot a:focus-visible { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; transform: translateX(3px); }
.foot__langs, .foot__end { position: relative; margin-top: 38px; padding-top: 30px; }
.foot__lang-row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 14px; }
.foot__lang-row li { font-family: var(--hand); font-size: 16px; font-weight: 700; color: var(--pencil); }
.foot__lang-row li[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.foot__end { display: flex; align-items: center; gap: 26px; }
.sticker--foot { width: 190px; margin: 0; flex: none; }
.foot__line { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 16px; color: var(--ink); }
@media (max-width: 759.98px) {
  .foot { padding-top: 72px; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__col--social { grid-column: 1 / -1; }
  .foot__end { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .js .pop { opacity: 1; translate: none; scale: none; }
}


/* ================= Blog: the contents page and the post ================= */

/* ---------- the index ---------- */
.bhero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "words toc" "scene toc"; column-gap: 56px; row-gap: 8px; align-items: start; padding-top: 48px; padding-bottom: 8px; }
.bhero__words { grid-area: words; display: flex; flex-direction: column; align-items: flex-start; }
.bhero__title { margin: 6px 0 0; font-family: var(--display); font-weight: 400; font-size: 132px; line-height: 0.9; letter-spacing: 0.01em; text-transform: uppercase; }
.bhero__sig { margin: 14px 0 0; font-family: var(--hand); font-weight: 700; font-size: 26px; line-height: 1.3; text-wrap: balance; }
.bhero__lena { grid-area: scene; justify-self: start; margin-top: 4px; }
.bhero__lena img { height: 350px; }
.toc { grid-area: toc; align-self: center; padding: 56px 40px 40px 44px; transform: rotate(0.8deg); }
.toc .tape { left: 44%; width: 120px; }
.toc__tab { position: absolute; right: -16px; top: 64px; width: 50px; height: 168px; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; background: url("assets/art/sticky-yellow.webp") center / 100% 100% no-repeat; color: #141026; font-size: 12px; box-shadow: 0 6px 10px rgba(var(--sh-rgb), 0.2); }
.toc__h { margin: 0 0 6px; font-family: var(--hand); font-weight: 700; font-size: 36px; line-height: 1.1; }
.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__link { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 56px; column-gap: 14px; align-items: start; padding: 22px 8px 22px 4px; color: var(--on-card); text-decoration: none; border-top: 2px solid var(--on-card); transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1); }
.toc__link:hover, .toc__link:focus-visible { transform: translateX(6px); }
.toc__n { font-size: 22px; font-weight: 600; padding-top: 6px; }
.toc__body { display: grid; gap: 6px; justify-items: start; }
.toc__kind { color: var(--on-card-dim); }
.toc__t { font-family: var(--hand); font-weight: 700; font-size: 32px; line-height: 1.25; text-wrap: balance; }
.toc__date { font-size: 14px; color: var(--on-card-dim); }
.toc__dek { font-family: var(--hand); font-size: 18px; line-height: 1.4; color: var(--on-card); }
.toc__steps { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 8px; font-family: var(--hand); font-weight: 700; font-size: 15px; color: var(--on-card-dim); }
.toc__step { display: inline-flex; align-items: center; gap: 8px; }
.toc__step .tick { width: 18px; height: 18px; border-width: 2px; }
.toc__step .tick svg { width: 24px; height: 24px; left: -2px; top: -7px; }
.toc__link:hover .tick path, .toc__link:focus-visible .tick path { stroke-dashoffset: 0; }
.toc__link:hover .toc__step:nth-child(2) .tick path { transition-delay: 0.08s; }
.toc__link:hover .toc__step:nth-child(3) .tick path { transition-delay: 0.16s; }
.toc__link:hover .toc__step:nth-child(4) .tick path { transition-delay: 0.24s; }
.toc__go { align-self: center; width: 56px; height: 28px; color: var(--on-card); }
.toc__go svg { width: 100%; height: 100%; overflow: visible; }
.toc__go path { fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the post ---------- */
.ahead { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 280px; grid-template-areas: "back back" "words cast"; column-gap: 40px; align-items: end; padding-top: 38px; }
.back { grid-area: back; justify-self: start; min-height: 48px; padding: 0 22px; transform: rotate(-1deg); box-shadow: var(--sh-card); transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1); }
.back span { position: relative; font-family: var(--press); font-weight: 800; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.back span::before { content: "\2190\00a0\00a0"; }
.back:hover, .back:focus-visible { transform: translateY(-4px) rotate(-0.6deg); }
.ahead__words { grid-area: words; padding-top: 28px; }
.ahead__kind { margin: 0 0 12px; color: var(--pencil); }
.ahead__title { margin: 0; max-width: 11em; font-family: var(--display); font-weight: 400; font-size: 76px; line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance; }
.ahead__dek { max-width: 34em; margin: 22px 0 0; font-family: var(--hand); font-size: 22px; line-height: 1.5; }
.ahead__cast { grid-area: cast; align-self: end; }
.ahead__cast img { height: 400px; }

.post { display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 44px; align-items: start; margin-top: 44px; }
.today { position: sticky; top: 18px; padding: 44px 24px 26px 26px; transform: rotate(-1.2deg); }
.today__h { margin: 0 0 14px; font-family: var(--hand); font-weight: 700; font-size: 28px; line-height: 1; }
.today__list, .today__opt { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.today__row, .today__opt li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; min-height: 44px; }
.today__opt li { grid-template-columns: minmax(0, 1fr) auto; padding-left: 40px; }
.today__t { display: flex; align-items: center; min-height: 44px; font-family: var(--hand); font-weight: 700; font-size: 19px; line-height: 1.15; color: var(--on-card); text-decoration: none; padding: 2px 4px; margin: 0 -4px; }
.today__t:hover, .today__t:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.today__w { font-family: var(--hand); font-weight: 700; font-size: 15px; color: var(--on-card-dim); white-space: nowrap; }
.today__row.is-now .today__t { background: url("assets/art/highlighter.webp") 0 40% / 100% 150% no-repeat; }
.today__sum { margin: 10px 0 0; padding-top: 10px; border-top: 2px solid var(--on-card); font-family: var(--hand); font-weight: 700; font-size: 18px; text-align: right; }
.today__opt { margin-top: 14px; padding-top: 10px; border-top: 1.5px dashed color-mix(in srgb, var(--on-card) 45%, transparent); }
.today__opt .today__t { font-size: 16px; color: var(--on-card-dim); }

.sheet { padding: 58px 56px 48px 56px; min-width: 0; }
.sheet .tape { left: 30%; width: 130px; }
.sec { position: relative; margin-top: 0; padding-top: 34px; scroll-margin-top: 24px; }
.sec:first-of-type { padding-top: 0; }
.sec + .sec { border-top: 2px solid color-mix(in srgb, var(--on-card) 80%, transparent); margin-top: 34px; }
.sec p { margin: 0 0 14px; max-width: 36em; font-family: var(--hand); font-size: 20px; line-height: 1.55; }
.sec__h { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; margin: 0 0 16px; font-family: var(--hand); font-weight: 700; font-size: 36px; line-height: 1.1; }
.sec__h--plain { font-size: 32px; }
.sec__n { font-size: 18px; font-weight: 600; color: var(--on-card-dim); }
.sec__min { margin-left: auto; font-size: 20px; color: var(--on-card-dim); }
.sec__h .tick { width: 30px; height: 30px; }
.sec__h .tick svg { width: 40px; height: 40px; left: -3px; top: -12px; }
.sec.is-done .sec__h .tick path, .sec__h .tick.is-done path { stroke-dashoffset: 0; }
.sec__fine { margin-top: 22px; padding: 12px 16px; max-width: 36em; font-size: 17px !important; color: var(--on-card-dim); border-left: 3px solid color-mix(in srgb, var(--on-card) 40%, transparent); }
.sec__print { width: min(100%, 440px); margin: 22px 0 8px auto; }
.sec__art { float: right; width: 190px; margin: 0 0 12px 28px; filter: drop-shadow(0 6px 5px rgba(var(--sh-rgb), 0.22)); }
.sec__art--pair { width: 190px; }
.sec__art--book { width: 170px; margin-top: -6px; }
.sec__art img { width: 100%; height: auto; }
.sec--end::after { content: ""; display: block; clear: both; }
.sec:after { content: ""; display: block; clear: both; }

.opt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.opt__item { display: grid; gap: 12px; align-content: start; padding: 20px 20px 22px; background: var(--card) url("assets/art/card-stock-light.webp") center / cover; box-shadow: var(--sh-card); transform: rotate(-0.8deg); }
.opt__item:nth-child(2) { transform: rotate(0.8deg); }
.opt__item p { margin: 0; font-size: 17px; line-height: 1.45; }
.opt__item .opt__kind { font-family: var(--press); font-size: 11px; color: var(--on-card-dim); margin-bottom: 4px; }
.opt__item .h3 { margin-bottom: 6px; font-size: 25px; }
.opt__art { width: 150px; filter: drop-shadow(0 5px 5px rgba(var(--sh-rgb), 0.22)); }
.opt__art--tab { width: 170px; }
.opt__art img { width: 100%; height: auto; }

.aclose { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: 40px; align-items: end; margin-top: 56px; }
.aclose__cast img { height: 400px; }
.aclose__main { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 22px; padding-bottom: 20px; min-width: 0; }
.sig { --tilt: -0.8deg; width: 100%; max-width: 640px; padding: 40px 32px 22px; transform: rotate(var(--tilt)); }
.sig__t { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 34px; line-height: 1.3; text-wrap: balance; }
.sig .sig__for { margin: 8px 0 0; font-family: var(--hand); font-weight: 700; font-size: 20px; line-height: 1.35; }
.sig__t .num, .sig__for .num { font-weight: 600; }

@media (max-width: 1099.98px) and (min-width: 760px) {
  .bhero__title { font-size: 104px; }
  .bhero { column-gap: 36px; }
  .ahead__title { font-size: 60px; }
  .post { grid-template-columns: 250px minmax(0, 1fr); column-gap: 30px; }
  .sheet { padding: 52px 36px 40px; }
  .opt { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- phone: its own layout ---------- */
@media (max-width: 759.98px) {
  .bhero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "words" "scene" "toc"; row-gap: 14px; padding-top: 24px; }
  .bhero__title { font-size: 84px; margin-top: 4px; }
  .bhero__sig { font-size: 22px; margin-top: 10px; }
  .bhero__lena { justify-self: center; }
  .bhero__lena img { height: 300px; }
  .toc { align-self: stretch; padding: 46px 22px 24px 20px; margin-top: 8px; }
  .toc__tab { right: -10px; top: 52px; width: 40px; height: 136px; font-size: 11px; }
  .toc__h { font-size: 30px; }
  .toc__link { grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; padding-right: 22px; }
  .toc__go { display: none; }
  .toc__n { font-size: 18px; }
  .toc__t { font-size: 25px; }
  .toc__dek { font-size: 16px; }
  
  .ahead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "back" "words" "cast"; padding-top: 18px; }
  .ahead__words { padding-top: 22px; }
  .ahead__title { font-size: 42px; }
  .ahead__dek { font-size: 18px; margin-top: 16px; }
  .ahead__cast { display: none; }
  .post { grid-template-columns: minmax(0, 1fr); margin-top: 30px; row-gap: 34px; }
  .today { position: relative; top: 0; padding: 42px 20px 22px; }
  .sheet { padding: 48px 20px 34px; }
  .sec p { font-size: 18px; }
  .sec__h { font-size: 28px; gap: 8px 10px; }
  .sec__h--plain { font-size: 26px; }
  .sec__min { font-size: 16px; }
  .sec__art, .sec__art--pair, .sec__art--book { float: none; width: 150px; margin: 0 auto 14px; }
  .sec__art--book { width: 140px; }
  .opt { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .aclose { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .aclose__cast { justify-self: center; order: 2; }
  .aclose__cast img { height: 260px; }
  .aclose__main { order: 1; padding-bottom: 0; }
  .sig { padding: 36px 20px 18px; }
  .sig__t { font-size: 24px; }
  .sig .sig__for { font-size: 17px; }
}
@media (max-width: 359.98px) {
  .bhero__lena img { height: 250px; }
}

/* Desktop and landscape: the index's first screen scales with the window's height so it keeps clear paper under it. */
@media (min-width: 760px) {
  .bhero { padding-top: clamp(14px, 4vh, 48px); }
  .bhero .sticker { width: clamp(200px, 30vh, 360px); }
  .bhero__title { font-size: clamp(76px, 13vh, 132px); }
  .bhero__sig { font-size: clamp(20px, 2.6vh, 26px); margin-top: clamp(6px, 1.4vh, 14px); }
  .bhero__lena img { height: clamp(190px, 31vh, 350px); }
}
