/* The Art of Flaws: ink on paper, three marker colors from the cover. */
:root {
  --paper: #f8f8f5;
  --paper-deep: #eeede7;
  --sheet: #ffffff;
  --ink: #17171a;
  --ink-soft: #4d4d55;
  --pencil: #6f6f78;
  --rule: rgba(23, 23, 26, .14);
  --coral: #e8584f;
  --coral-ink: #b63a2d;
  --sun: #f3b81f;
  --sun-ink: #8a6100;
  --teal: #1a9cc6;
  --teal-ink: #11698a;
  --rose: #d8487e;
  --rose-ink: #ad2f5e;

  --sc-canvas: #f8f8f5;
  --sc-surface: #ffffff;
  --sc-ink: #17171a;
  --sc-ink-soft: #4d4d55;
  --sc-accent: #17171a;
  --sc-accent-ink: #ffffff;
  --sc-shadow-color: 240 8% 22%;
  --sc-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sc-font-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sc-section: clamp(2.75rem, 5vw, 5rem);
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;

  --r-sheet: 14px;
  --start: var(--rose);
  --explore: var(--teal);
  --yours: var(--sun);
  --ease-page: cubic-bezier(.16, 1, .3, 1);
  --shadow-page: 0 1px 0 var(--rule), 0 26px 50px -26px rgba(23, 23, 26, .45);
  --nav-h: 64px;
  --z-nav: 60;
  color-scheme: light;
}

::selection { background: var(--sun); color: var(--ink); }
.sc-grain { opacity: .05; z-index: 2; }
main { overflow-x: clip; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
img { height: auto; }
.sc-display { font-family: var(--sc-font-display); font-weight: 800; letter-spacing: -0.015em; line-height: 1.02; text-wrap: balance; }
.hand { font-family: var(--hand); font-weight: 700; line-height: 1; color: var(--coral-ink); }
.lede { font-size: var(--sc-t-lg); color: var(--ink-soft); line-height: 1.5; max-width: 34ch; text-wrap: pretty; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------------ nav -- */
.nav {
  position: fixed; z-index: var(--z-nav);
  top: max(10px, env(safe-area-inset-top)); left: 0; right: 0; margin-inline: auto;
  width: min(calc(100% - 20px), 44rem);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 9px 0 clamp(16px, 2vw, 22px);
  border-radius: 999px;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 26px -14px rgba(23,23,26,.35);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nav { background: var(--paper); } }
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.wordmark {
  font-family: var(--sc-font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center;
}
.wordmark b { font-weight: 900; margin-left: .22em; }

/* ------------------------------------------------------------- buttons -- */
.btn {
  --btn-h: 54px;
  display: inline-flex; align-items: center; gap: .7rem;
  min-height: var(--btn-h); padding: 0 .5rem 0 1.4rem;
  border-radius: 999px; border: 0;
  background: var(--ink); color: #fff;
  font: 600 1rem/1 var(--sc-font-text);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 12px 26px -14px rgba(23,23,26,.6);
  transition: transform 160ms var(--sc-ease-out), box-shadow 220ms var(--sc-ease-out);
}
.btn__icon {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--sun); color: var(--ink);
  transition: transform 260ms var(--sc-ease-out);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 16px 32px -14px rgba(23,23,26,.65); }
  .btn:hover .btn__icon { transform: translate(2px, -2px) rotate(-8deg); }
}
.btn--sm { --btn-h: 46px; font-size: .95rem; padding: 0 .35rem 0 1.1rem; gap: .55rem; }
.btn--sm .btn__icon { width: 36px; height: 36px; }
.btn--ghost {
  --btn-h: 48px; background: transparent; color: var(--ink); padding: 0 1.15rem; gap: .55rem;
  box-shadow: inset 0 0 0 1.5px var(--rule);
}
.btn--ghost svg { width: 17px; height: 17px; }
.btn--ghost[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); } }

.textlink {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px;
  font-weight: 600; color: var(--ink); text-decoration: none;
  background: linear-gradient(var(--sun), var(--sun)) 0 78% / 100% .38em no-repeat;
}
.textlink svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .textlink:hover svg { transform: translateY(3px); } }

/* --------------------------------------------------------- cover letters -- */
.l-outline { color: var(--paper); -webkit-text-stroke: .045em var(--ink); paint-order: stroke fill; }
.l-coral { color: var(--coral); }
.l-sun { color: var(--sun); }
.l-teal { color: var(--teal); }
.l-hatch {
  color: transparent;
  background:
    repeating-linear-gradient(45deg, var(--ink) 0 .02em, transparent .02em .075em),
    repeating-linear-gradient(-45deg, var(--ink) 0 .02em, transparent .02em .075em);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: .022em var(--ink);
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100dvh; display: grid; align-items: center;
  padding: calc(var(--nav-h) + max(10px, env(safe-area-inset-top)) + 1.75rem) var(--sc-gutter) clamp(2rem, 6vh, 4rem);
}
.hero__grid { width: 100%; max-width: 82rem; margin-inline: auto; display: grid; gap: clamp(1.5rem, 5vw, 3rem); align-items: center; }
.hero__copy { display: grid; gap: 1.35rem; justify-items: start; position: relative; z-index: 3; }
.hero__note { font-size: clamp(1.5rem, 1.25rem + .9vw, 1.95rem); transform: rotate(-2.5deg); transform-origin: left center; }
.title { font-family: var(--sc-font-display); font-weight: 900; letter-spacing: -.02em; line-height: .9; }
.title__top { display: block; font-size: clamp(2.3rem, 1.3rem + 4vw, 5.1rem); }
.title__of { font-size: .6em; font-weight: 700; }
.title__flaws { display: block; font-size: clamp(4.5rem, 1.8rem + 10.5vw, 10.25rem); line-height: .88; }
.hero__sub { max-width: 31ch; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; margin-top: .3rem; }

.hero__art { position: relative; display: grid; place-items: center; padding-block: 1rem 2.5rem; }
.hero__far {
  position: absolute; z-index: -1; pointer-events: none;
  width: min(1100px, 130vw); aspect-ratio: 600 / 575;
  left: 50%; top: 50%; translate: -42% -50%;
  background: url("assets/paint-line.jpg") center / cover no-repeat;
  opacity: .18;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
}
.dot { position: absolute; border-radius: 50%; pointer-events: none; z-index: 2; }
.dot--fill { background: var(--c); box-shadow: 0 6px 14px -6px color-mix(in oklab, var(--c) 70%, black); }
.dot--ring { border: 3px solid var(--c); background: var(--sheet); }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; }
  .hero__art { min-height: 620px; padding: 0; }
}

/* ----------------------------------------------------------------- book -- */
.book { --w: clamp(220px, 26vw, 350px); --d: calc(var(--w) * .07); position: relative; z-index: 1; width: var(--w); aspect-ratio: 1000 / 1499; perspective: 1700px; }
.book__enter, .book__tilt, .book__body { position: absolute; inset: 0; transform-style: preserve-3d; }
.book__body { transform: rotateY(calc(26deg + var(--spin, 0deg))) rotateX(5deg); }
.book__face { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 2px 5px 5px 2px; backface-visibility: hidden; }
.book__front { transform: translateZ(calc(var(--d) / 2)); }
.book__front-shade {
  position: absolute; inset: 0; pointer-events: none; border-radius: 2px 5px 5px 2px;
  transform: translateZ(calc(var(--d) / 2 + 1px));
  background: linear-gradient(90deg, rgba(0,0,0,.2) 0, rgba(255,255,255,.22) 2%, transparent 6%, transparent 72%, rgba(255,255,255,.1) 100%);
}
.book__back { transform: translateZ(calc(var(--d) / -2)) rotateY(180deg); }
.book__spine {
  position: absolute; top: 0; left: 0; width: var(--d); height: 100%;
  transform: translateX(calc(var(--d) / -2)) rotateY(-90deg);
  background: linear-gradient(90deg, #e4e4df, #fdfdfb 45%, #ececE7);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 1.1em 0; font-size: calc(var(--d) * .38); overflow: hidden;
}
.book__spine span { writing-mode: vertical-rl; font-family: var(--sc-font-display); font-weight: 800; letter-spacing: .14em; white-space: nowrap; color: var(--ink); }
.book__spine i { width: .8em; height: .8em; border-radius: 50%; background: var(--coral); display: block; flex: none; }
.book__pages {
  position: absolute; top: 1%; right: 0; width: var(--d); height: 98%;
  transform: translateX(calc(var(--d) / 2)) rotateY(90deg);
  background: repeating-linear-gradient(90deg, #f5f5f1 0 1px, #dadad4 1px 2px);
}
.book__shadow {
  position: absolute; left: 4%; right: -6%; bottom: -6%; height: 11%;
  background: radial-gradient(closest-side, rgba(23,23,26,.32), transparent);
  filter: blur(5px); pointer-events: none;
}
.hero .book__body { --spin: calc((var(--sc-p, .5) - .5) * 40deg); }
.hero .book { animation: book-fade 900ms var(--sc-ease-out) 150ms both; }
.hero .book__enter { animation: book-in 1300ms cubic-bezier(.16, 1, .3, 1) 150ms both; }
@keyframes book-fade { from { opacity: 0; } }
@keyframes book-in { from { transform: translateY(46px) rotateY(-56deg) rotateZ(-5deg); } }

/* -------------------------------------------------------- make it yours -- */
.make { padding: var(--sc-section) var(--sc-gutter); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.make__grid { max-width: 82rem; margin-inline: auto; display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
.make__copy { display: grid; gap: 1.2rem; justify-items: start; }
.make__copy h2 { font-size: var(--sc-t-4xl); line-height: .95; }
.make__controls { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .3rem; }
.make__done {
  display: grid; gap: .9rem; justify-items: start; margin-top: .4rem;
  padding: 1.25rem 1.35rem 1.35rem; border-radius: var(--r-sheet); background: var(--sheet);
  box-shadow: 0 2px 4px rgba(23,23,26,.05), 0 18px 40px -22px rgba(23,23,26,.45);
  opacity: 0; transform: translateY(10px); visibility: hidden;
  transition: opacity 420ms var(--sc-ease-out), transform 420ms var(--sc-ease-out), visibility 0s linear 420ms;
}
.make__done.is-on { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.make__done p { font-weight: 600; max-width: 30ch; line-height: 1.45; }

.sheet-wrap { position: relative; justify-self: center; width: min(100%, 620px); }
.sheet {
  position: relative; background: var(--sheet); padding: clamp(10px, 1.6vw, 18px);
  border-radius: 6px; rotate: 1.4deg;
  box-shadow: 0 1px 2px rgba(23,23,26,.08), 0 30px 60px -28px rgba(23,23,26,.5);
}
.sheet::before {
  content: ""; position: absolute; inset: 10px -10px -10px 10px; z-index: -1; border-radius: 6px;
  background: #efefea; rotate: -3deg; box-shadow: 0 20px 40px -26px rgba(23,23,26,.4);
}
.paint {
  display: block; width: 100%; aspect-ratio: 600 / 575; touch-action: none; cursor: crosshair; border-radius: 2px;
  background: #fff url("assets/paint-line.jpg") center / cover;
}
.sheet-wrap figcaption { margin-top: 1.6rem; text-align: center; color: var(--pencil); font-size: var(--sc-t-sm); }
.hint {
  position: absolute; z-index: 2; top: -2.9rem; right: 6%;
  display: flex; align-items: flex-end; gap: .2rem; font-size: 1.75rem;
  rotate: 4deg; pointer-events: none; transition: opacity 400ms var(--sc-ease-out);
}
.hint svg { width: 46px; height: 40px; fill: none; stroke: var(--coral-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: -1.2rem; }
.hint.is-gone { opacity: 0; }
@media (min-width: 960px) { .make__grid { grid-template-columns: .8fr 1.2fr; } }

.swatches { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .2rem; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--c); appearance: none;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.14), 0 4px 10px -6px rgba(23,23,26,.5);
  transition: transform 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.swatch[aria-checked="true"] { box-shadow: inset 0 -3px 0 rgba(0,0,0,.14), 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); transform: translateY(-2px); }
.swatch:active { transform: scale(.94); }
.swatch:focus-visible { outline-offset: 5px; border-radius: 50%; }
.tools { display: inline-flex; gap: .25rem; padding: .25rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--rule); }
.tool { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1.05rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 600 .95rem/1 var(--sc-font-text); cursor: pointer; transition: background-color 160ms ease-out, color 160ms ease-out, transform 160ms ease-out; }
.tool svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool[aria-checked="true"] { background: var(--ink); color: #fff; }
.tool:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .tool[aria-checked="false"]:hover { background: var(--sheet); } }

/* -------------------------------------------------------------- inside -- */
.inside { padding: var(--sc-section) var(--sc-gutter); }
.inside__grid { max-width: 82rem; margin-inline: auto; display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
.inside h2 { font-size: var(--sc-t-3xl); }
.big60 { display: grid; gap: .35rem; align-content: start; }
.big60__n { font-family: var(--sc-font-display); font-weight: 900; font-size: clamp(8rem, 4.5rem + 16vw, 18rem); line-height: .82; letter-spacing: -.045em; color: var(--coral); font-variant-numeric: lining-nums tabular-nums; }
.big60__label { font-size: var(--sc-t-xl); font-weight: 600; }
.big60__sub { color: var(--ink-soft); max-width: 32ch; line-height: 1.5; margin-top: .3rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; }
.fact { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.25rem; align-items: baseline; padding: 1.35rem 0; }
.fact + .fact { border-top: 1px solid var(--rule); }
.fact__n { font-family: var(--sc-font-display); font-weight: 800; font-size: var(--sc-t-xl); line-height: 1.05; }
.fact__t { color: var(--ink-soft); line-height: 1.5; }
.fact__t strong { color: var(--ink); font-weight: 600; }
@media (max-width: 420px) { .fact { grid-template-columns: 1fr; gap: .35rem; } }
@media (min-width: 900px) {
  .inside__grid { grid-template-columns: 1fr 1fr; }
  .inside h2 { grid-column: 1 / -1; }
}

/* -------------------------------------------------------------- author -- */
.author { padding: var(--sc-section) var(--sc-gutter); }
.author__grid { max-width: 72rem; margin-inline: auto; display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.author__pics { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: .75rem; align-items: end; width: min(100%, 34rem); justify-self: center; }
.author__pics img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 14px; }
.author__pics img:first-child { aspect-ratio: 3 / 4; }
.author__pics img:last-child { aspect-ratio: 1; }
.author__copy { display: grid; gap: 1.2rem; }
.author__copy h2 { font-size: var(--sc-t-3xl); }
.author__copy > p { color: var(--ink-soft); max-width: 46ch; line-height: 1.6; font-size: var(--sc-t-lg); }
.quote { margin-top: .6rem; padding-left: 1.2rem; box-shadow: inset 3px 0 0 var(--sun); }
.quote p { font-family: var(--sc-font-display); font-style: italic; font-weight: 500; font-size: var(--sc-t-xl); color: var(--ink); line-height: 1.25; }
.quote cite { display: block; margin-top: .5rem; font-style: normal; font-size: var(--sc-t-sm); color: var(--pencil); }
@media (min-width: 900px) { .author__grid { grid-template-columns: .9fr 1.1fr; } }

/* --------------------------------------------------------------- close -- */
.close [data-sc-stage] { display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.close__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("assets/paint-color.jpg") center / cover;
  opacity: .22;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 45%, transparent 35%, #000 100%);
  mask-image: radial-gradient(75% 70% at 50% 45%, transparent 35%, #000 100%);
}
.close__inner {
  position: relative; z-index: 2; width: 100%; max-width: 70rem; margin: 0 auto;
  padding: calc(var(--nav-h) + 2.5rem) var(--sc-gutter) 1rem;
  display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; align-content: center; justify-items: center; text-align: center;
}
.close .book { --w: clamp(140px, 18vw, 250px); margin-left: calc(var(--w) * .1); }
.close__copy { display: grid; gap: 1rem; justify-items: center; }
.close__copy h2 { font-size: var(--sc-t-4xl); line-height: .95; }
.close__meta { color: var(--ink-soft); font-size: var(--sc-t-lg); max-width: 34ch; line-height: 1.45; }
.close__copy .btn { margin-top: .5rem; }
.foot {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; justify-content: space-between;
  padding: 1rem var(--sc-gutter) max(1.1rem, env(safe-area-inset-bottom));
  font-size: var(--sc-t-xs); color: var(--ink-soft);
}
@media (min-width: 900px) {
  .close__inner { grid-template-columns: auto 1fr; text-align: left; justify-items: start; }
  .close__copy { justify-items: start; }
}
@media (max-height: 720px) and (max-width: 899px) { .close .book { display: none; } }

/* ------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .hero .book, .hero .book__enter { animation: none; }
  .hero .book__body { --spin: 0deg; }
  .btn, .btn__icon, .textlink svg, .make__done, .hint { transition-duration: 1ms; }
}

/* ---- new sections (mocks A-E) ---- */
:where(#sweep, #closer, #meeting, #flip, #first-page, #hands, #shelf) { padding: var(--sc-section) var(--sc-gutter); }
.sec-inner { max-width: 72rem; margin-inline: auto; }
.sec-title { font: 800 clamp(2.1rem, 5vw, 3.6rem)/1.02 var(--sc-font-display); letter-spacing: -.02em; text-wrap: balance; }
.sec-title em { font-style: italic; font-weight: 700; color: var(--coral-ink); }
.sec-body { margin-top: 1rem; font-size: 1.06rem; line-height: 1.6; color: var(--ink-soft); max-width: 40ch; text-wrap: pretty; }
.hand-note { font: 700 1.55rem/1 var(--hand); color: var(--coral-ink); transform: rotate(-2.5deg); display: inline-block; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.chip { min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 0; background: transparent; color: var(--ink); font: 600 .95rem/1 var(--sc-font-text); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--rule); transition: background-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out; }
.chip[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chip:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); } }
:where(.sweepsec, .loupesec, .stacksec, .freesheet, .manifesto) img { display: block; max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
  :where(#sweep, #closer, #meeting, #flip, #first-page, #hands, #shelf) :is(*, *::before, *::after) { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}

/* A. pen sweep */
.sweepsec { display: grid; gap: 2.5rem; align-items: center; }
.sweep { margin: 0; width: min(100%, 30rem); justify-self: center; }
.sweep__stage { position: relative; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; background: var(--sheet); box-shadow: var(--shadow-page); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.sweep__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sweep__stage .lay-hatch { clip-path: inset(0 0 0 var(--b, 0%)); }
.sweep__stage .lay-line { clip-path: inset(0 0 0 var(--a, 0%)); }
.sweep__pen { position: absolute; top: 0; bottom: 0; left: var(--x, 0%); width: 0; pointer-events: none; }
.sweep__nibwrap { position: absolute; top: 50%; left: clamp(28px, var(--x, 0%), calc(100% - 28px)); width: 0; height: 0; pointer-events: none; }
.sweep__pen::before { content: ""; position: absolute; inset: 0 auto 0 -1px; width: 2px; background: var(--ink); opacity: .8; }
.sweep__nib { position: absolute; top: 0; left: -24px; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 3px solid var(--explore); box-shadow: 0 8px 20px -8px rgba(23, 23, 26, .55); transition: border-color 200ms ease-out; }
.sweep[data-pass="2"] .sweep__nib { border-color: var(--yours); }
.sweep__nib svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sweep__range { display: block; width: 100%; height: 44px; margin: .75rem 0 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.sweep__range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--start) 0 25%, var(--explore) 25% 75%, var(--yours) 75%); }
.sweep__range::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--start) 0 25%, var(--explore) 25% 75%, var(--yours) 75%); }
.sweep__range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); transition: transform 160ms ease-out; }
.sweep__range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.sweep__range:active::-webkit-slider-thumb { transform: scale(.92); }
.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .25rem 0 0; padding: 0; list-style: none; text-align: center; font: 600 .72rem/1.2 var(--sc-font-text); letter-spacing: .2em; text-transform: uppercase; color: var(--pencil); }
.legend li { padding-top: .6rem; border-top: 3px solid transparent; transition: color 200ms ease-out, border-color 200ms ease-out; }
.legend li[data-on] { color: var(--ink); }
.legend li:nth-child(1)[data-on] { border-color: var(--start); }
.legend li:nth-child(2)[data-on] { border-color: var(--explore); }
.legend li:nth-child(3)[data-on] { border-color: var(--yours); }
@media (min-width: 900px) {
  .sweepsec { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 6rem); }
}

/* B. loupe */
.loupesec { display: grid; justify-items: center; text-align: center; }
.loupesec .sec-body { margin-inline: auto; }
.loupe-wrap { position: relative; margin-top: clamp(2rem, 5vw, 3.5rem); width: min(100%, 30rem); }
.loupe { position: relative; margin: 0; border-radius: 4px; box-shadow: var(--shadow-page); background: var(--sheet); cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.loupe img { width: 100%; border-radius: 4px; pointer-events: none; }
.loupe__lens { --L: 150px; position: absolute; top: 0; left: 0; width: var(--L); height: var(--L); border-radius: 50%; background-color: var(--sheet); background-repeat: no-repeat; border: 4px solid var(--sheet); box-shadow: 0 0 0 1.5px var(--ink), 0 20px 40px -14px rgba(23, 23, 26, .55); touch-action: none; cursor: grab; will-change: transform; }
.loupe__lens::after { content: ""; position: absolute; right: -26px; bottom: -40px; width: 13px; height: 56px; border-radius: 7px; background: var(--ink); transform: rotate(-45deg); }
.loupe__lens:active { cursor: grabbing; }
.loupe-notes { display: none; }
@media (min-width: 768px) { .loupe__lens { --L: 190px; } }
@media (min-width: 1000px) {
  .loupe-notes { display: block; }
  .loupe-notes .hand-note { position: absolute; width: 11rem; text-align: left; }
  .loupe-notes .hand-note:nth-child(1) { left: -14rem; top: 18%; }
  .loupe-notes .hand-note:nth-child(2) { right: -14rem; top: 62%; transform: rotate(2deg); }
}

/* D. the meeting page */
.freesheet { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding: clamp(24px, 5vw, 64px); border-radius: var(--r-sheet); background: var(--sheet); border: 1px solid var(--rule); box-shadow: 0 30px 60px -40px rgba(23, 23, 26, .35); overflow: hidden; }
.freesheet .hand-note { font-size: 1.5rem; }
.freesheet .sec-title { margin-top: .6rem; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.freesheet .btn { margin-top: 2rem; }
@media (hover: hover) and (pointer: fine) { .freesheet .btn:hover .btn__icon { transform: translateY(2px); } }
.fine { margin-top: .5rem; font-size: .85rem; color: var(--pencil); }
.freesheet__art { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; align-content: center; }
.freesheet__art figure { position: relative; margin: 0; box-shadow: var(--shadow-page); border-radius: 3px; background: var(--sheet); }
.freesheet__art img { border-radius: 3px; }
.tape { position: absolute; top: -12px; left: 50%; width: 76px; height: 24px; margin-left: -38px; background: rgba(238, 237, 231, .85); box-shadow: 0 1px 2px rgba(23, 23, 26, .12); transform: rotate(-4deg); }
@media (min-width: 900px) {
  .freesheet { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); }
  .freesheet__art { display: block; min-height: 26rem; }
  .freesheet__art figure { position: absolute; width: 60%; }
  .freesheet__art figure:nth-child(1) { left: 0; top: 2%; transform: rotate(-4deg); }
  .freesheet__art figure:nth-child(2) { right: 0; top: 30%; transform: rotate(3deg); }
}
.team { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.team p { color: var(--ink-soft); }
.team strong { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .team .textlink:hover svg { transform: translate(2px, -2px); } }

/* C. page stack */
.stacksec { display: grid; gap: 3rem; align-items: center; }
.stack { position: relative; width: min(74vw, 21rem); aspect-ratio: 2 / 3; justify-self: center; margin-block: 1rem 2rem; }
.stack__page { position: absolute; inset: 0; margin: 0; border-radius: 4px; overflow: hidden; background: var(--sheet); box-shadow: var(--shadow-page); touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transform: translate(var(--dx, 0px), calc(var(--i, 0) * 7px + var(--dy, 0px))) rotate(calc(var(--r, 0deg) + var(--dr, 0deg))) scale(calc(1 - var(--i, 0) * .035));
  transition: transform 460ms var(--ease-page), opacity 300ms ease-out; }
.stack__page img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.stack__page.is-top { cursor: grab; }
.stack__page.is-drag { transition: none; cursor: grabbing; }
.stack__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; max-width: 26rem; }
.stack__cap { font: 700 1.45rem/1 var(--hand); color: var(--ink-soft); }
@media (min-width: 900px) {
  .stacksec { grid-template-columns: 6fr 5fr; }
  .stacksec .stack { order: -1; }
}

/* E. manifesto */
.manifesto { max-width: 58rem; margin-inline: auto; }
.manifesto__text { font: 700 clamp(1.8rem, 4.2vw, 3.3rem)/1.14 var(--sc-font-display); letter-spacing: -.012em; }
.manifesto__text .ln { display: block; text-wrap: balance; }
.manifesto__text .ln + .ln { margin-top: .55em; }
.manifesto__text .crooked { font-style: italic; color: var(--coral-ink); text-decoration: underline wavy var(--coral); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.manifesto__sign { display: block; margin-top: 2rem; font-size: clamp(2rem, 4vw, 2.8rem); }
.manifesto__src { margin-top: 1.25rem; font-size: .9rem; color: var(--pencil); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .manifesto__text .ln { animation: drop linear both; animation-timeline: view(); animation-range: entry 35% cover 38%; }
  }
}
@keyframes drop { from { opacity: 0; transform: translateY(-.6em); } to { opacity: 1; transform: none; } }

/* F. real hands */
.hands-grid { display: grid; gap: 2rem; }
.snaps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.snap { margin: 0; }
.snap__frame { position: relative; padding: 8px 8px 0; background: var(--sheet); border-radius: 3px; box-shadow: var(--shadow-page); }
.snap__frame img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.snap figcaption { padding: .55rem .15rem .7rem; font: 700 1.15rem/1.1 var(--hand); color: var(--ink-soft); }
.snap .tape { top: -10px; width: 64px; height: 20px; margin-left: -32px; }
@media (min-width: 900px) {
  .hands-grid { gap: 3rem; }
  .hands-copy .sec-body { max-width: 46ch; }
  .snaps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.25rem); padding-inline: .5rem; }
  .snap:nth-child(1) { transform: rotate(-2.5deg); }
  .snap:nth-child(2) { transform: rotate(2deg) translateY(1.5rem); }
  .snap:nth-child(3) { transform: rotate(-1.5deg) translateY(-.5rem); }
  .snap:nth-child(4) { transform: rotate(2.5deg) translateY(1rem); }
}

/* G. book cards + books page */
.shelf {
  --gap: clamp(14px, 1.8vw, 26px);
  list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 var(--gap);
}
.shelf--grid { grid-template-columns: repeat(auto-fill, minmax(min(150px, 40%), 1fr)); row-gap: clamp(2.25rem, 4vw, 3rem); }
.bk { position: relative; display: grid; color: var(--ink); text-decoration: none; border-radius: 6px; }
.bk:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.bk__cover { position: relative; display: block; aspect-ratio: 2 / 3; }
.bk__cover::after {
  content: ""; position: absolute; left: calc(var(--gap) / -2); right: calc(var(--gap) / -2); bottom: -11px; height: 11px;
  background: var(--paper-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 var(--rule), 0 12px 16px -12px rgba(23, 23, 26, .4);
}
.bk__lift { position: relative; display: block; height: 100%; transition: transform 220ms var(--ease-page); }
.bk__lift::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 6%; z-index: 1; border-radius: 2px 0 0 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .24), rgba(255, 255, 255, .2) 45%, transparent);
}
.bk__lift img {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px 4px 4px 2px; background: var(--paper-deep);
  box-shadow: 0 1px 0 var(--rule), 0 14px 22px -14px rgba(23, 23, 26, .55);
  transition: box-shadow 220ms var(--ease-page);
}
.bk__lift img::after { content: ""; position: absolute; inset: 0; border-radius: 2px 4px 4px 2px; background: var(--paper-deep); }
.bk__title {
  margin-top: 1.5rem; font: 600 .95rem/1.3 var(--sc-font-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bk__meta { margin-top: .2rem; font-size: .82rem; line-height: 1.35; color: var(--pencil); }
@media (hover: hover) and (pointer: fine) {
  .bk:hover .bk__lift { transform: translateY(-6px); }
  .bk:hover .bk__lift img { box-shadow: 0 1px 0 var(--rule), 0 22px 30px -16px rgba(23, 23, 26, .55); }
  .bkfoot .textlink:hover svg { transform: translateX(3px); }
  #shelf .textlink:hover svg { transform: translateX(3px); }
}
.bk:focus-visible .bk__lift { transform: translateY(-6px); }
.bk:focus-visible .bk__lift img { box-shadow: 0 1px 0 var(--rule), 0 22px 30px -16px rgba(23, 23, 26, .55); }
.bk:active .bk__lift { transform: translateY(-2px) scale(.98); }

.shelfsec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
@media (max-width: 899px) {
  #shelf .shelf {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: clamp(132px, 40vw, 190px);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--sc-gutter);
    margin-inline: calc(-1 * var(--sc-gutter)); padding: 14px calc(var(--sc-gutter) + 28px) 12px var(--sc-gutter);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  #shelf .shelf::-webkit-scrollbar { display: none; }
  #shelf .shelf > li { scroll-snap-align: start; }
}

.bkhead { padding: calc(var(--nav-h) + max(10px, env(safe-area-inset-top)) + clamp(2rem, 6vw, 4.5rem)) var(--sc-gutter) 0; }
.bkhead h1 { font: 800 var(--sc-t-3xl)/1.02 var(--sc-font-display); letter-spacing: -.015em; text-wrap: balance; }
.bkhead .lede { margin-top: 1rem; }
.bkjump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.bkjump .chip { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.bkjump .chip span { color: var(--pencil); font-weight: 500; }
.bkfeature-wrap { padding: clamp(2rem, 4vw, 3rem) var(--sc-gutter) 0; }
.bkfeature {
  display: grid; gap: 2rem; align-items: center; padding: clamp(24px, 5vw, 64px);
  border-radius: var(--r-sheet); background: var(--sheet); border: 1px solid var(--rule);
  box-shadow: 0 30px 60px -40px rgba(23, 23, 26, .35);
}
.bkfeature__art { justify-self: center; }
.bkfeature__art img {
  display: block; width: clamp(170px, 22vw, 260px); height: auto; border-radius: 2px 5px 5px 2px;
  box-shadow: 0 26px 50px -26px rgba(23, 23, 26, .55); transform: rotate(-2deg);
}
.bkfeature .sec-title { margin-top: .6rem; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.bkfeature__meta { margin-top: .6rem; font-weight: 600; }
.bkfeature__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; margin-top: 1.75rem; }
@media (min-width: 900px) {
  .bkfeature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.bkseries { padding: var(--sc-section) var(--sc-gutter) 0; }
.bkseries__title { font: 800 clamp(1.7rem, 3.4vw, 2.5rem)/1.05 var(--sc-font-display); letter-spacing: -.015em; }
.bkseries__fact { margin-top: .9rem; font: 600 .75rem/1.3 var(--sc-font-text); letter-spacing: .2em; text-transform: uppercase; color: var(--pencil); }
.bkpage main { padding-bottom: var(--sc-section); }
:where(.bkseries, .bkfeature-wrap) { scroll-margin-top: calc(var(--nav-h) + max(10px, env(safe-area-inset-top)) + 1rem); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    :where(#shelf, .bkpage) .shelf { animation: shelf-in linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  }
}
@keyframes shelf-in { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
  .bkpage :is(*, *::before, *::after) { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
