/* Namok Poster — the whole look, in one file (direction: work/site-v3/DESIGN.md).
   A print table: one warm paper ground, near-black type in Pretendard, and on it only two kinds of
   thing: what was said (large sentences that can be copied) and paper (posters with a thickness and a
   shadow, never in a box). Colour comes from the posters alone; one blue marks the main button, the
   focus ring and progress. Words: src/data/copy.mjs. Motion: transform and opacity. */

:root {
  --paper: #f4f3ec; --paper-2: #eae8df; --sheet: #fffefa;
  --ink: #15140f; --ink-2: #4f4c43; --ink-3: #8c887c;
  --line: rgb(21 20 15 / .14); --line-2: rgb(21 20 15 / .3);
  --blue: #1741e0; --blue-2: #1235bd;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --nav: 64px; --gut: clamp(20px, 5.5vw, 80px); --max: 1280px;
  --W: min(100vw - 2 * var(--gut), var(--max));   /* the width of .wrap, for sizes that follow it */
  --sec: clamp(88px, 11vw, 160px);
  --ease: cubic-bezier(.2, .8, .2, 1);       /* a control answering */
  --ease-out: cubic-bezier(.22, 1, .36, 1);  /* something arriving and settling */
  --ease-io: cubic-bezier(.65, 0, .35, 1);   /* something travelling on screen */
  /* paper lying on the table: a tight shadow where it touches, a wide soft one around it */
  --lie: 0 0 0 1px rgb(21 20 15 / .06), 0 1.5px 0 -.5px rgb(21 20 15 / .2), 0 2px 3px rgb(21 20 15 / .12), 0 18px 36px -14px rgb(21 20 15 / .3);
  --lift: 0 0 0 1px rgb(21 20 15 / .06), 0 1.5px 0 -.5px rgb(21 20 15 / .2), 0 3px 5px rgb(21 20 15 / .1), 0 32px 56px -18px rgb(21 20 15 / .34);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; word-break: keep-all; overflow-wrap: break-word; background: var(--paper); scrollbar-color: var(--ink-3) var(--paper); scroll-padding-top: calc(var(--nav) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.7 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-variant-numeric: tabular-nums; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
/* a title is as large as its longest unit allows on a narrow screen (a unit is never broken) */
h1 { font-size: clamp(34px, max(6.67vw, min(11.3vw, 44px)), 96px); letter-spacing: -.045em; line-height: 1.04; }
h2 { font-size: clamp(26px, max(4.45vw, min(8.2vw, 32px)), 64px); letter-spacing: -.04em; line-height: 1.1; }
.h--long { font-size: clamp(22px, max(4.45vw, min(7.2vw, 30px)), 64px); }
h3 { font-size: clamp(23px, 2.5vw, 36px); letter-spacing: -.035em; line-height: 1.2; }
/* a unit of a heading stays on one line: a line breaks between units, never inside one */
.u { display: inline-block; white-space: nowrap; }
img, video { max-width: 100%; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .9em; letter-spacing: 0; }
button, select { font: inherit; color: inherit; letter-spacing: inherit; }
a, button, summary, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
/* a section that only receives focus after an in-page link (it is not a control) shows no ring */
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
p, dd, li { text-wrap: pretty; }
.nobr { white-space: nowrap; }
.i { display: block; width: 16px; height: 16px; flex: none; }

.lead { font-size: clamp(17px, 1.39vw, 20px); line-height: 1.6; letter-spacing: -.01em; color: var(--ink-2); max-width: 34em; }
.lead__a { color: var(--ink); }
.label { font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ink-2); }
.label__note { margin-left: 12px; color: var(--ink); }
/* what was said: the second largest voice of the page */
.said { font-size: clamp(21px, 2.1vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.4; max-width: 31em; }
mark { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: .1em; text-underline-offset: .2em; }

/* ------------------------------------------------------------------ controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border: 0; border-radius: 12px;
  background: var(--blue); color: #fff; font: 600 17px/1 var(--font); letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms var(--ease), transform 100ms ease-out; }
.btn:active { transform: scale(.97); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn:focus-visible { outline-offset: 3px; border-radius: 12px; }
/* the second action: words and a rule under them */
.more { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; }
.more .i { transition: transform 150ms var(--ease); }
.more--back { background: none; color: var(--ink-2); font-size: 15px; }
.inlink { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.textbtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 6px; margin-right: -10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: 600 14px/1 var(--font); cursor: pointer;
  transition: color 150ms var(--ease), transform 100ms ease-out; }
.textbtn:active { transform: scale(.96); }
.textbtn .i-play { display: none; }
.textbtn[aria-pressed="true"] .i-pause { display: none; }
.textbtn[aria-pressed="true"] .i-play { display: block; }
[hidden] { display: none !important; }

/* a group of radio buttons: an ink mark travels to the chosen one */
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 12px; background: var(--paper-2); isolation: isolate; }
.sec--deep .seg { background: var(--paper); }
.seg__btn { position: relative; z-index: 1; height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: color 180ms var(--ease), transform 100ms ease-out; }
.seg__btn:active { transform: scale(.97); }
.seg__btn[aria-checked="true"] { color: var(--paper); }
.seg:not(.has-ind) .seg__btn[aria-checked="true"] { background: var(--ink); }
.seg__ind { position: absolute; z-index: 0; top: 0; left: 0; border-radius: 9px; background: var(--ink); opacity: 0; transform-origin: 0 0; pointer-events: none; }
.seg__n { margin-left: 2px; font-weight: 500; opacity: .6; }

/* a sentence to paste into Claude Code, and its copy button */
.say { display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 18px; border-radius: 14px; background: var(--sheet); box-shadow: 0 0 0 1px var(--line); }
.say__text { flex: 1; min-width: 0; font-size: 17px; font-weight: 500; line-height: 1.55; letter-spacing: -.01em; color: var(--ink); }
.say__url { font-weight: 600; }
.copy { flex: none; display: inline-grid; place-items: center; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--paper-2); color: var(--ink); font: 600 15px/1 var(--font); cursor: pointer;
  transition: background-color 150ms var(--ease), transform 100ms ease-out; }
.copy:active { transform: scale(.96); }
.copy__words { display: grid; }
.copy__words > span { grid-area: 1 / 1; transition: opacity 150ms var(--ease), transform 150ms var(--ease); }
.copy__words > span:last-child { opacity: 0; transform: translateY(5px); }
.copy.is-copied .copy__words > span:first-child { opacity: 0; transform: translateY(-5px); }
.copy.is-copied .copy__words > span:last-child { opacity: 1; transform: none; }
.say--xl { gap: 24px; padding: 20px 20px 20px 28px; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgb(21 20 15 / .24); }
.say--xl .say__text { font-size: clamp(19px, 2.1vw, 30px); font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }
.say--xl .say__url { font-weight: 700; }
.say--xl .copy, .dt__ask .copy { background: var(--blue); color: #fff; }
.say--xl .copy { height: 52px; padding: 0 24px; border-radius: 12px; font-size: 17px; }
.say--lg .say__text { font-size: clamp(19px, 1.67vw, 24px); font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.say--sm { padding: 8px 8px 8px 14px; border-radius: 12px; gap: 12px; }
.say--code .say__text { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.say--sm .copy { height: 36px; padding: 0 12px; font-size: 14px; background: none; color: var(--ink-2); }

/* ------------------------------------------------------------------ the nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav); background: var(--paper); }
.nav::after, .lib__bar::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); opacity: 0; transition: opacity 200ms var(--ease); pointer-events: none; }
.nav.is-stuck::after, .lib__bar.is-stuck::after { opacity: 1; }
.nav__bar { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; }
.skip { position: absolute; left: 0; top: 12px; z-index: 2; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }
.nav__logo { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; font-weight: 700; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.nav__links { display: flex; gap: 2px; }
.nav__link { padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color 150ms var(--ease); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav__link[aria-current="true"] { color: var(--ink); }
.nav__cta { margin-left: auto; }
/* on the landing page the nav's button waits until the same button of the first screen has scrolled away */
html.js[data-page="home"] .nav__cta { opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 0s 160ms, background-color 150ms var(--ease); }
html.js[data-page="home"] .nav.has-cta .nav__cta { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease-out), visibility 0s, background-color 150ms var(--ease); }
.nav__toggle { display: none; place-items: center; width: 44px; height: 44px; margin-right: -12px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; transition: transform 100ms ease-out; }
.nav__toggle:active { transform: scale(.94); }
.nav__toggle .i { width: 20px; height: 20px; }
.nav__toggle .i-x { display: none; }
.nav.is-open .nav__toggle .i-bars { display: none; }
.nav.is-open .nav__toggle .i-x { display: block; }

/* ------------------------------------------------------------------ paper */
/* a caption under a sheet: its letter and the name of its style */
.cap { display: flex; gap: 8px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.cap b { font-weight: 700; }
.cap__link, .foot__col a { position: relative; color: inherit; text-decoration: none; }
.cap__link::before, .foot__col a::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform 180ms var(--ease); }
.foot__col a::before { bottom: 3px; }

/* ------------------------------------------------------------------ the first screen */
.hero { display: flex; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav) + 28px) 0 28px; }
.hero__in { display: flex; flex-direction: column; }
.hero__head { display: flex; align-items: center; justify-content: space-between; gap: 20px 48px; margin-top: 18px; }
.hero__head .lead { max-width: 640px; }
.hero__head .actions { flex: none; flex-wrap: nowrap; }
.demo { --gap: 28px; --rest: 484px; display: flex; align-items: flex-start; gap: 40px; margin-top: 44px;
  /* a sheet is as tall as the screen leaves room for (--rest is everything else on the first screen), and no wider than the row allows */
  --pw: min(clamp(184px, (100svh - var(--rest)) * .7071, var(--pmax, 300px)), (var(--W) - 284px - 40px - 2 * var(--gap)) / 3); }
.demo__side { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.demo__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin: -7px 0 3px; }

/* the Claude Code window: a bar with its name, the talk, the field */
.cc { display: flex; flex-direction: column; height: clamp(232px, 100svh - 614px, 286px); border-radius: 16px; background: var(--sheet); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(21 20 15 / .05), 0 24px 48px -22px rgb(21 20 15 / .2); overflow: hidden; }
.cc__bar { flex: none; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; line-height: 1; }
.cc__dots { display: flex; gap: 5px; }
.cc__dots i { width: 9px; height: 9px; border-radius: 50%; background: #dad7cb; }
.cc__body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px 12px 4px; overflow: hidden; }
.cc__said { align-self: flex-end; max-width: 100%; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--paper); font-size: 15px; font-weight: 500; line-height: 1.55; letter-spacing: -.01em; transition: opacity 160ms var(--ease); }
.cc__said.is-out { opacity: 0; }
.cc__said.is-typing { background: none; box-shadow: inset 0 0 0 1px var(--line-2); align-self: stretch; min-height: 2.6em; }
.cc__reply { display: flex; align-items: center; gap: 8px; padding-left: 2px; font-size: 15px; font-weight: 500; line-height: 1.4; opacity: 0; transition: opacity 180ms var(--ease); }
.cc__reply.is-busy, .cc__reply.is-done { opacity: 1; }
.cc__reply .i { width: 18px; height: 18px; display: none; }
.cc__reply.is-busy { color: var(--ink-2); }
.cc__reply.is-busy .i--busy { display: block; animation: spin 900ms linear infinite; }
.cc__reply.is-done .i--done { display: block; color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }
.cc__field { flex: none; display: flex; align-items: flex-end; gap: 8px; min-height: 44px; margin: 0 10px 10px; padding: 6px 6px 6px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.cc__field.is-typing { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cc__input { flex: 1; min-width: 0; padding: 4px 0; font-size: 15px; font-weight: 500; line-height: 1.55; letter-spacing: -.01em; }
/* the caret stands after the last letter while the request is written */
.is-typing > .cc__input::after, .cc__said.is-typing::after { content: ''; display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -.2em; background: var(--blue); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.cc__send { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--paper-2); color: var(--ink-3); transition: background-color 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease); }
.cc__field.is-typing .cc__send { background: var(--ink); color: var(--paper); }
.cc__field.is-sent .cc__send { background: var(--blue); color: #fff; transform: scale(.9); }

/* the requests to choose from: a list in large type, the chosen one in ink */
.picks { display: flex; flex-direction: column; align-items: flex-start; margin-top: 16px; }
.pick { position: relative; max-width: 100%; padding: 0; border: 0; background: none; color: var(--ink-3); font: 700 22px/36px var(--font); letter-spacing: -.03em; cursor: pointer; white-space: nowrap; transition: color 150ms var(--ease), transform 100ms ease-out; }
/* a name longer than the column (a title from runs.json) ends in an ellipsis rather than running under the posters */
.pick > span { display: block; overflow: hidden; text-overflow: ellipsis; }
.pick:active { transform: scale(.98); }
.pick[aria-pressed="true"] { color: var(--ink); }
.pick__bar { position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.pick:not([aria-pressed="true"]) .pick__bar { opacity: 0; }

/* the three sheets: each lies on its pile; a new one lands over the one that lay there */
.demo__sheets { flex: none; display: flex; gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.slot { width: var(--pw); }
.slot__pile { position: relative; aspect-ratio: 1200 / 1697; perspective: 1400px; }
.slot__pile::before { content: ''; position: absolute; inset: 0; box-shadow: var(--lie); opacity: 0; transition: opacity 320ms var(--ease); }
.slot.has-sheet .slot__pile::before { opacity: 1; }
.sheet { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; transform-origin: 50% 70%; backface-visibility: hidden; transition: transform 200ms var(--ease); }
.sheet__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sheet__cast { position: absolute; inset: 4%; background: rgb(21 20 15 / .5); box-shadow: 0 0 44px 22px rgb(21 20 15 / .5); opacity: 0; pointer-events: none; }
.slot .cap { margin-top: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 40px 0 0; list-style: none; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ink-2); }
/* until the script lands them, the sheets the page came with wait off the table (the head script lifts this by itself) */
.demo-wait .demo .sheet, .demo-wait .demo .slot .slot__pile::before, .demo-wait .cc__reply:not(.is-busy) { opacity: 0; }

/* ------------------------------------------------------------------ sections */
.sec { padding: var(--sec) 0; scroll-margin-top: calc(24px - var(--sec)); }
.sec--deep { background: var(--paper-2); }
.sec__head { display: grid; grid-template-columns: 7fr 5fr; align-items: end; gap: 24px 48px; margin-bottom: clamp(48px, 5.6vw, 80px); }
.sec__head--row > div { display: contents; }
.sec__head--row .btn { grid-column: 2; justify-self: start; margin-top: -4px; }
.sub { margin-top: clamp(72px, 8vw, 120px); scroll-margin-top: 24px; }

/* one run: what was said, then the three posters it gave */
.run + .run { margin-top: clamp(72px, 8.4vw, 120px); }
.run__said { display: grid; gap: 8px; }
.run__got { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-top: 28px; }
.trio { --T: 100cqw; --g: clamp(10px, 2.5cqw, 32px); --cw: calc((var(--T) - 2 * var(--g)) / 3); --ch: calc(var(--cw) * 1.41417); margin-top: 12px; container-type: inline-size; }
@supports not (width: 1cqw) { .trio { --T: var(--W); --g: clamp(10px, 2.2vw, 32px); } }
.trio__stage { position: relative; height: var(--ch); }
.paper { position: absolute; left: calc(var(--k) * (var(--cw) + var(--g))); top: 0; width: var(--cw); height: var(--ch); padding: 0; border: 0; background: var(--paper-2); box-shadow: var(--lie); overflow: hidden; cursor: zoom-in; transition: transform 200ms var(--ease); }
.paper__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-shape="a3"] .paper__img--wide, [data-shape="wide"] .paper__img--a3 { opacity: 0; visibility: hidden; }
/* in 16:9 the three sheets lie in a step down the same table, each a little over the one before */
.trio[data-shape="wide"] .paper { --ww: calc(var(--T) * .44); width: var(--ww); height: calc(var(--ww) * .5625); left: calc(var(--k) * (var(--T) - var(--ww)) / 2); top: calc(var(--k) * (var(--ch) - var(--ww) * .5625) / 2); z-index: calc(1 + var(--k)); }
.trio__caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); margin: 16px 0 0; padding: 0; list-style: none; }

/* ------------------------------------------------------------------ follow-ups */
.follow { display: grid; grid-template-columns: 5fr 7fr; gap: 0 48px; align-items: start; }
.follow__text { display: grid; gap: 24px; }
.asks { margin: 24px 0 0; padding: 0; list-style: none; }
.ask { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.ask:last-child { border-bottom: 1px solid var(--line); }
.ask__pick { flex: 1; min-width: 0; padding: 17px 0; border: 0; background: none; text-align: left; font: 600 clamp(19px, 1.95vw, 28px)/1.35 var(--font); letter-spacing: -.025em; color: var(--ink-3); cursor: pointer; transition: color 150ms var(--ease); }
.ask__pick[aria-pressed="true"] { color: var(--ink); }
.ask .copy { height: 36px; padding: 0 10px; margin-right: -10px; background: none; color: var(--ink-2); font-size: 14px; }
.follow__stage { display: grid; justify-items: center; gap: 18px; }
.follow__box { position: relative; width: 100%; height: clamp(320px, 44vw, 620px); container-type: size; }
.follow__cap { font-size: 14px; font-weight: 600; line-height: 1.4; }
.fsheet { position: absolute; inset: 0; margin: auto; height: min(100cqh, 100cqw / var(--ar)); aspect-ratio: var(--ar); padding: 0; border: 0; background: var(--paper-2); box-shadow: var(--lie); overflow: hidden; cursor: zoom-in; transition: transform 200ms var(--ease); }
@supports not (width: 1cqw) { .fsheet { height: 100%; max-width: 100%; } }
.fsheet__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; }
.fsheet__img.is-on { opacity: 1; visibility: visible; }
.follow > noscript { display: block; grid-column: 1 / -1; }
.follow__all { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.follow__all img { display: block; width: auto; height: 240px; box-shadow: var(--lie); }

/* ------------------------------------------------------------------ the wall of styles */
.wall { overflow: hidden; }
.wall__group + .wall__group { margin-top: 40px; }
.wall__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-bottom: 14px; }
.wall__title p { color: var(--ink-2); }
.wall__row { --tile: clamp(124px, 12vw, 172px); overflow-x: auto; overflow-y: hidden; padding: 10px 0 40px; margin-bottom: -18px; scrollbar-width: none; }
.wall__row::-webkit-scrollbar { display: none; }
.wall.is-moving .wall__row { overflow: hidden; }
.wall__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; }
.wall__track > li { flex: none; padding-right: 20px; }
.tile { position: relative; display: block; width: var(--tile); box-shadow: var(--lie); text-decoration: none; transition: transform 200ms var(--ease); }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 1414; object-fit: cover; background: var(--paper); }
.tile:active { transform: scale(.98); }
.tile__name { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 6px 9px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; line-height: 1.35; opacity: 0; transform: translateY(4px); transition: opacity 150ms var(--ease), transform 150ms var(--ease); pointer-events: none; }
.tile:focus-visible .tile__name { opacity: 1; transform: none; }
.tile:focus-visible { outline-offset: 4px; border-radius: 0; }
.wall__pause { margin-left: auto; align-self: center; }
#styles { padding-bottom: clamp(64px, 7vw, 104px); }

/* ------------------------------------------------------------------ a guide: its film and its steps */
.guide { display: grid; grid-template-columns: 7fr 5fr; gap: 0 clamp(32px, 4.4vw, 64px); align-items: start; margin-top: clamp(40px, 4.4vw, 64px); }
.guide__film { position: sticky; top: calc(var(--nav) + 20px); }
/* the film stands on the page without a frame: its own ground is the page's, and its edges fade into it */
.film { position: relative; margin: 0 -2.5%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4.5%, #000 95.5%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 4.5%, #000 95.5%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent); mask-composite: intersect; }
.film__still, .film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__still { opacity: 0; transition: opacity 200ms var(--ease); }
.film__still.is-on { opacity: 1; }
.guide.is-picked .film__still:not([data-still=""]).is-on, .guide.is-picked .film__still[data-still=""] { transition: opacity 200ms var(--ease); }
.film__video { opacity: 0; transition: opacity 240ms var(--ease); }
.guide.is-live .film__video { opacity: 1; }
.guide.is-seeking .film__video { opacity: 0; transition-duration: 120ms; }
.guide__ctl { display: flex; justify-content: flex-end; margin-top: 2px; }
.steps { margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 22px 0 30px; }
.step__rule { position: absolute; inset: 0 0 auto; height: 1px; background: var(--line); }
.step__rule i { position: absolute; inset: -1px 0 auto; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; }
.step__head { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 6px; }
.step__num { flex: none; min-width: 26px; font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--ink-3); transition: color 200ms var(--ease); }
.step.is-on .step__num, .guide:not([data-has-video]) .step__num { color: var(--blue); }
.step__title { font-size: clamp(19px, 1.53vw, 22px); font-weight: 700; line-height: 1.35; letter-spacing: -.025em; }
.step__body { display: grid; gap: 12px; margin-top: 10px; padding-left: 40px; color: var(--ink-2); }
.step__note { font-size: 15px; line-height: 1.65; }
.help { display: grid; gap: 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.manual { margin-top: 20px; }
.manual > summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; list-style: none; border-radius: 6px; transition: color 150ms var(--ease); }
.manual > summary::-webkit-details-marker { display: none; }
.manual > summary .i { width: 12px; height: 12px; transition: transform 200ms var(--ease); }
.manual[open] > summary .i { transform: rotate(180deg); }
.manual__in { display: grid; gap: 10px; padding-top: 8px; font-size: 15px; color: var(--ink-2); }

/* ------------------------------------------------------------------ questions */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: 40px 48px; align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav) + 40px); display: grid; gap: 20px; justify-items: start; }
.qa { margin: 0; }
.qa__item { padding: 28px 0 30px; border-top: 1px solid var(--line); }
.qa__item:last-child { border-bottom: 1px solid var(--line); }
.qa dt { font-size: clamp(19px, 1.53vw, 22px); font-weight: 700; line-height: 1.4; letter-spacing: -.025em; }
.qa dd { margin-top: 10px; color: var(--ink-2); }
.qa dd > p { max-width: 37em; }
/* the shapes a poster comes in: one poster in each, at one height */
.shapes { --h: clamp(96px, 11vw, 148px); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; margin: 24px 0 4px; padding: 0; list-style: none; }
.shapes > li { display: grid; gap: 10px; width: calc(var(--h) * var(--ar)); }
.shapes img { display: block; width: 100%; height: var(--h); object-fit: cover; box-shadow: var(--lie); }
.shapes span { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink); white-space: nowrap; }

/* ------------------------------------------------------------------ the end, and the foot */
.end { padding-bottom: clamp(72px, 8vw, 120px); }
.end__grid { display: grid; grid-template-columns: 8fr 4fr; gap: 48px; align-items: center; }
.end__text { display: grid; gap: clamp(24px, 2.8vw, 40px); justify-items: start; }
.end__text .say { justify-self: stretch; }
/* a loose pile of prints: each turned a little round a point under the pile */
.pile { position: relative; height: clamp(280px, 33vw, 460px); margin: 0; padding: 0; list-style: none; }
.pile > li { position: absolute; left: 50%; bottom: 4%; width: 44%; margin-left: -22%; transform-origin: 50% 135%; transform: rotate(calc((var(--i) - (var(--n) - 1) / 2) * 9deg)); transition: transform 320ms var(--ease-out); }
/* beside the last sentence the pile stands in a narrow column: its sheets are larger there and reach a little into the margin */
@media (min-width: 1000px) {
  .end__grid .pile { height: clamp(340px, 34vw, 500px); }
  .end__grid .pile > li { width: 58%; margin-left: -29%; transform: rotate(calc((var(--i) - (var(--n) - 1) / 2) * 8deg)); }
}
.pile__sheet { display: block; box-shadow: var(--lie); transition: transform 200ms var(--ease); }
.pile__sheet img { display: block; width: 100%; height: auto; }
.foot { padding: 56px 0 44px; background: var(--paper-2); font-size: 15px; line-height: 1.6; }
.foot__grid { display: grid; grid-template-columns: 5fr repeat(3, 2fr) 1fr; gap: 40px 24px; padding-top: 44px; border-top: 1px solid var(--line); }
.foot__name { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.foot__lede { margin-top: 8px; max-width: 18em; color: var(--ink-2); }
.foot__title { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.foot__col ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.foot__col a { display: inline-block; padding: 4px 0; }
.foot__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
html[data-page="lib"] .foot, html[data-page="style"] .foot, html[data-page="nf"] .foot { background: none; }

/* ------------------------------------------------------------------ the window a poster grows into */
.zoom { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: none; overflow: hidden; overscroll-behavior: contain; }
.zoom::backdrop { background: none; }
.zoom__veil { position: absolute; inset: 0; background: rgb(244 243 236 / .96); }
.zoom__fig { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: 14px; padding: 28px 24px 22px; cursor: zoom-out; }
.zoom__img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: var(--lift); transform-origin: 0 0; }
.zoom__cap { font-size: 14px; font-weight: 600; line-height: 1.4; cursor: default; }
.zoom__close, .sheetdlg__close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--ink); color: var(--paper); cursor: pointer; transition: transform 100ms ease-out; }
.zoom__close:active, .sheetdlg__close:active { transform: scale(.94); }
.zoom__close { position: absolute; z-index: 2; top: 16px; right: 16px; }

/* ------------------------------------------------------------------ the library */
.lib { padding: calc(var(--nav) + clamp(32px, 4.4vw, 64px)) 0 var(--sec); }
.lib__head { display: grid; gap: 16px; }
.lib__bar { position: sticky; top: var(--nav); z-index: 20; margin-top: 28px; padding: 12px 0; background: var(--paper); }
.lib__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.pickbox { position: relative; display: inline-flex; align-items: center; height: 44px; padding-left: 14px; border-radius: 12px; background: var(--paper-2); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pickbox__select { height: 44px; padding: 0 34px 0 8px; border: 0; border-radius: 12px; background-color: var(--paper-2); color: var(--ink); font-size: 14px; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer; }
.pickbox .i { position: absolute; right: 13px; width: 12px; height: 12px; pointer-events: none; }
.lib__count { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.chips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
.chip { height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap; transition: background-color 150ms var(--ease), color 150ms var(--ease), transform 100ms ease-out; }
.chip:not(:disabled):active { transform: scale(.97); }
.chip[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.chip:disabled { opacity: .38; cursor: default; }
/* the two sets stand apart, each under its own title */
.lib__group { margin-top: clamp(48px, 5vw, 72px); }
.lib__group + .lib__group { margin-top: clamp(72px, 7.8vw, 112px); }
.lib__ghead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-bottom: 28px; }
.lib__ghead h2 { font-size: clamp(23px, 2.5vw, 36px); letter-spacing: -.035em; line-height: 1.2; }
.lib__ghead p { color: var(--ink-2); }
.lib__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 24px; margin: 0; padding: 0; list-style: none; }
[data-shape="wide"] .lib__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { scroll-margin-top: 200px; }
.card__link { display: block; text-decoration: none; }
.card__pic { position: relative; display: block; aspect-ratio: 1000 / 1414; background: var(--paper-2); box-shadow: var(--lie); overflow: hidden; transition: transform 200ms var(--ease); }
[data-shape="wide"] .card__pic { aspect-ratio: 16 / 9; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-shape="a3"] .card__img--wide, [data-shape="wide"] .card__img--a3 { opacity: 0; visibility: hidden; }
.card__name { display: block; margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
/* a Blender style says so at its name too (a card can be reached from an address, far under its group's title) */
.card__set { margin-left: 4px; font-size: 13px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.card__link:active .card__pic { transform: scale(.985); }
.card__link.is-loading .card__pic { opacity: .7; }
.card.is-target .card__pic { outline: 2px solid var(--blue); outline-offset: 5px; }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible .card__pic { outline: 2px solid var(--blue); outline-offset: 4px; }
.lib__empty { display: grid; gap: 20px; justify-items: start; padding: 72px 0; font-size: 20px; }

/* the sheet a card opens into */
.sheetdlg { width: min(1160px, 100vw - 32px); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain; box-shadow: 0 40px 80px -24px rgb(21 20 15 / .5); transition: opacity 200ms var(--ease); }
.sheetdlg::backdrop { background: rgb(21 20 15 / .44); transition: opacity 200ms var(--ease); }
.sheetdlg[open] { animation: fade 220ms var(--ease) both; }
.sheetdlg[open]::backdrop { animation: fade 220ms var(--ease) both; }
.sheetdlg.is-closing, .sheetdlg.is-closing::backdrop { opacity: 0; }
@keyframes fade { from { opacity: 0; } }
.sheetdlg__close { position: sticky; z-index: 3; top: 14px; margin: 14px 14px -58px auto; }
.sheetdlg__body { padding: clamp(20px, 3.4vw, 48px); }
html:has(.sheetdlg[open], .zoom[open]) { overflow: hidden; scrollbar-gutter: stable; }

/* ------------------------------------------------------------------ one style */
.dtp { padding: calc(var(--nav) + 28px) 0 var(--sec); }
.dtp__back { margin-bottom: 24px; }
.dt__top { display: grid; grid-template-columns: 5fr 7fr; gap: 0 clamp(32px, 4.4vw, 64px); align-items: start; }
.dt:not(.dt--both) .dt__top { grid-template-columns: 1fr; }
.shot { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); box-shadow: var(--lie); cursor: zoom-in; transition: transform 200ms var(--ease); }
.shot__img { display: block; width: 100%; height: auto; transition: opacity 160ms var(--ease); }
.shot__img.is-swapping { opacity: 0; }
.dt__side { display: grid; gap: clamp(28px, 3.4vw, 48px); }
.dt__text { display: grid; gap: 16px; justify-items: start; }
.dt__kind { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
/* which set a style belongs to, said at its name */
.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 9px; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.tag--default { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.tag--blender { background: var(--blue); color: #fff; }
.dt__name { font-size: clamp(30px, 3.34vw, 48px); letter-spacing: -.04em; line-height: 1.12; }
.dt__id { margin-left: 6px; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.dt__set { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.dt__label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: 0; color: var(--ink-2); }
.dt__ask { justify-self: stretch; margin-top: 8px; }
.dt__motifs { margin-top: clamp(56px, 6.2vw, 88px); }
.dt__motifs > ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 8px 0 0; padding: 0; list-style: none; }
.motif { display: grid; gap: 12px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 4px; }
.motif__pic { display: block; box-shadow: var(--lie); transition: transform 200ms var(--ease); }
.motif__pic img { display: block; width: 100%; height: auto; }
.motif[aria-pressed="true"] .motif__pic { outline: 2px solid var(--ink); outline-offset: 4px; }
.motif:active .motif__pic { transform: scale(.985); }
.motif__text { display: grid; gap: 2px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.motif__text b { font-size: 16px; font-weight: 700; color: var(--ink); }
.motif__text code { font-size: 13px; }
.pager { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(56px, 6.2vw, 88px); padding-top: 24px; border-top: 1px solid var(--line); }
.pager__link { display: grid; gap: 2px; text-decoration: none; border-radius: 6px; transition: transform 100ms ease-out; }
.pager__link:active { transform: scale(.98); }
.pager__link--next { text-align: right; justify-items: end; }
.pager__dir { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.pager__dir .i { transition: transform 150ms var(--ease); }
.pager__name { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }

/* ------------------------------------------------------------------ no page at this address */
.nf { padding: calc(var(--nav) + clamp(48px, 9vh, 120px)) 0 var(--sec); }
.nf__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.nf__grid > div { display: grid; gap: 24px; justify-items: start; }

/* ------------------------------------------------------------------ a fine pointer: things answer it */
@media (hover: hover) and (pointer: fine) {
  .btn:hover, .say--xl .copy:hover, .dt__ask .copy:hover { background: var(--blue-2); }
  .copy:hover { background: #dedbd0; }
  .say--sm .copy:hover, .ask .copy:hover { background: none; color: var(--ink); }
  .more:hover .i--arrow, .pager__link--next:hover .i { transform: translateX(3px); }
  .more:hover .i--back, .pager__link:not(.pager__link--next):hover .i { transform: translateX(-3px); }
  .more--back:hover, .textbtn:hover, .nav__link:hover, .seg__btn:not([aria-checked="true"]):hover, .manual > summary:hover { color: var(--ink); }
  .chip:not(:disabled):not([aria-checked="true"]):hover { background: var(--paper-2); color: var(--ink); }
  .pick:not([aria-pressed="true"]):hover, .ask__pick:not([aria-pressed="true"]):hover { color: var(--ink-2); }
  .cap__link:hover::before, .foot__col a:hover::before { transform: scaleX(1); }
  .tile:hover { transform: translateY(-6px); }
  .sheet:hover { transform: translateY(-5px); }
  .paper:hover, .fsheet:hover, .shot:hover { transform: translateY(-5px); }
  .tile:hover .tile__name { opacity: 1; transform: none; }
  .card__link:hover .card__pic, .motif:hover .motif__pic { transform: translateY(-4px); }
  .pile:hover > li { transform: rotate(calc((var(--i) - (var(--n) - 1) / 2) * 12deg)); }
  .pile__sheet:hover { transform: translateY(-14px); }
  /* in the step of three wide sheets, the one under the pointer comes to the top */
  .trio[data-shape="wide"] .paper:hover { z-index: 5; }
  .step__head:hover .step__num { color: var(--blue); }
}

/* a browser without the small-viewport unit: the sheets are sized by the row alone */
@supports not (height: 1svh) {
  .demo { --pw: min(300px, (var(--W) - 284px - 40px - 2 * var(--gap)) / 3); }
  .cc { height: 286px; }
}

/* a large screen: the page is wider, the title and the three sheets larger, so the first screen is still full */
@media (min-width: 1680px) and (min-height: 960px) {
  :root { --max: 1440px; }
  h1 { font-size: 108px; }
  .demo { --pmax: 352px; --rest: 500px; }
}
@media (min-width: 1000px) and (max-width: 1279px) {
  .demo { --gap: 20px; gap: 32px; --pw: min(clamp(184px, (100svh - var(--rest)) * .7071, 300px), (var(--W) - 264px - 32px - 2 * var(--gap)) / 3); }
}
/* a wide but low screen (a small laptop): the requests go in a row, so the first screen still holds everything */
@media (min-width: 1000px) and (max-height: 819px) {
  .demo { --rest: 418px; margin-top: 30px; }
  .picks { flex-direction: row; flex-wrap: wrap; gap: 0 22px; margin-top: 12px; }
  .pick { font-size: 18px; line-height: 32px; }
  .facts { padding-top: 20px; }
}

/* ------------------------------------------------------------------ a touch screen: controls a thumb can hit */
@media (pointer: coarse) {
  /* small text controls keep their size on the page; the area a thumb can hit reaches 44px round them */
  .more, .textbtn, .manual > summary, .nav__link { position: relative; }
  .more::after, .textbtn::after, .manual > summary::after { content: ''; position: absolute; inset: -6px -4px; }
  .seg__btn, .chip { height: 44px; }
  .copy, .say--sm .copy, .ask .copy { height: 44px; }
  .foot__col a { padding: 10px 0; }
  .foot__col ul { gap: 0; }
  .inlink { padding: 12px 0; }
  .pager__link { padding: 6px 0; }
}

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 1099px) {
  .lib__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  [data-shape="wide"] .lib__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  /* the first screen stacks: the window across, the requests in a row, the three sheets across */
  .hero__head { flex-direction: column; align-items: flex-start; }
  .demo { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 30px; --gap: clamp(8px, 2.4vw, 20px); }
  .cc { height: auto; }
  .cc__body { padding-bottom: 14px; min-height: 108px; }
  .cc__field { display: none; }
  .picks { flex-direction: row; gap: 4px; margin: 12px calc(-1 * var(--gut)) 0; padding: 0 var(--gut); overflow-x: auto; scrollbar-width: none; }
  .picks::-webkit-scrollbar { display: none; }
  .pick { flex: none; height: 40px; padding: 0 13px; border-radius: 10px; color: var(--ink-2); font: 600 14px/1 var(--font); letter-spacing: -.01em; }
  .pick[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
  .pick__bar { display: none; }
  .demo__sheets { align-self: stretch; }
  .slot { flex: 1 1 0; width: auto; min-width: 0; }
  .sec__head { grid-template-columns: 1fr; align-items: start; }
  .sec__head--row .btn { grid-column: 1; margin-top: 4px; }
  .follow, .guide, .faq, .end__grid, .nf__grid, .dt__top { grid-template-columns: 1fr; }
  .follow { gap: 40px; }
  .follow__stage { order: 2; }
  .guide { gap: 32px; }
  .guide__film, .faq__head { position: static; }
  .film { margin: 0; }
  .end__grid .pile, .nf__grid .pile { height: clamp(260px, 56vw, 420px); }
  .dt__top { gap: 32px; }
  .dt__pic--a3 { max-width: 420px; }
  .foot__grid { grid-template-columns: repeat(3, 1fr); }
  .foot__about { grid-column: 1 / -1; }
}
@media (max-width: 819px) {
  :root { --nav: 56px; }
  .nav__bar { gap: 8px; }
  .nav__toggle { display: grid; }
  .nav__links { position: fixed; inset: var(--nav) 0 auto; flex-direction: column; gap: 0; padding: 4px var(--gut) 20px; background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 28px 40px -28px rgb(21 20 15 / .3);
    opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity 140ms var(--ease), transform 140ms var(--ease), visibility 0s 140ms; }
  .nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; transition: opacity 200ms var(--ease), transform 200ms var(--ease-out), visibility 0s; }
  .nav__link { padding: 13px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
  .nav__link:last-child { border-bottom: 0; }
}
@media (max-width: 699px) {
  /* a phone: the title, the window, the three sheets and the requests come first, on one screen */
  .hero { padding: calc(var(--nav) + 12px) 0 16px; }
  .hero__head, .demo, .demo__side { display: contents; }
  .demo__top { order: 1; margin: 6px 0 3px; }
  .cc { order: 2; }
  .cc__bar { height: 28px; }
  .cc__body { min-height: 0; padding: 10px; gap: 10px; }
  .demo__sheets { order: 3; margin-top: 12px; }
  .slot .cap { margin-top: 8px; gap: 5px; font-size: 12px; line-height: 1.35; }
  .slot .cap__link { position: relative; }
  .slot .cap__link::after { content: ''; position: absolute; inset: -8px -4px -14px -18px; }
  .picks { order: 4; margin-top: 10px; }
  .hero__head .lead { order: 5; margin-top: 14px; }
  .actions { order: 6; margin-top: 12px; }
  .facts { order: 7; gap: 2px 20px; padding-top: 12px; }
  .say--xl { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
  .say--xl .copy { height: 52px; }
  /* three posters: one large, two beside it, on a table whose height does not change with the shape */
  .trio { --g: 10px; --sw: calc((var(--T) - var(--g) - var(--g) / 1.41417) / 3); --bw: calc(var(--T) - var(--g) - var(--sw)); --ch: calc(var(--bw) * 1.41417); }
  .paper:nth-child(1) { left: 0; top: 0; width: var(--bw); height: var(--ch); }
  .paper:nth-child(2), .paper:nth-child(3) { left: calc(var(--bw) + var(--g)); width: var(--sw); height: calc(var(--sw) * 1.41417); }
  .paper:nth-child(3) { top: calc(var(--sw) * 1.41417 + var(--g)); }
  .trio[data-shape="wide"] .paper:nth-child(1) { left: 0; top: 0; width: var(--T); height: calc(var(--T) * .5625); z-index: auto; }
  .trio[data-shape="wide"] .paper:nth-child(2), .trio[data-shape="wide"] .paper:nth-child(3) { top: calc(var(--T) * .5625 + var(--g)); width: calc((var(--T) - var(--g)) / 2); height: calc((var(--T) - var(--g)) / 2 * .5625); left: 0; z-index: auto; }
  .trio[data-shape="wide"] .paper:nth-child(3) { left: calc((var(--T) + var(--g)) / 2); }
  /* under the three posters their names stand as a list, each row tall enough for a thumb */
  .trio__caps { grid-template-columns: 1fr; gap: 0; margin-top: 12px; }
  .trio__caps .cap { align-items: center; min-height: 44px; border-top: 1px solid var(--line); }
  .trio__caps .cap:last-child { border-bottom: 1px solid var(--line); }
  .trio__caps .cap__link { flex: 1; padding: 11px 0; }
  .run__got { margin-top: 20px; }
  .follow__box { height: 92vw; }
  .ask__pick { padding: 14px 0; }
  .wall__title { margin-bottom: 8px; }
  .wall__row { --tile: 112px; padding-bottom: 34px; }
  .wall__track > li { padding-right: 12px; }
  .step__body { padding-left: 0; }
  .lib__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  [data-shape="wide"] .lib__grid { grid-template-columns: 1fr; }
  .lib__bar { position: static; padding: 8px 0; }
  .lib__bar::after { display: none; }
  .lib__filters { gap: 8px; }
  .lib__count { flex-basis: 100%; margin-left: 0; order: 9; }
  .chips { flex-wrap: nowrap; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .seg__btn { padding: 0 11px; }
  .pickbox { padding-left: 11px; }
  .dt__motifs > ul { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .sheetdlg { width: 100vw; max-height: 100vh; max-height: 100dvh; border-radius: 0; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .zoom__fig { padding: 68px 12px 16px; }
}

/* ------------------------------------------------------------------ a picture goes with its link across pages */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 320ms; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; }

/* ------------------------------------------------------------------ less motion asked for */
@media (prefers-reduced-motion: reduce) {
  .btn, .copy, .seg__btn, .chip, .tile, .card__pic, .motif__pic, .pile > li, .pile__sheet, .more .i, .pager__dir .i, .textbtn, .nav__toggle, .pick, .pager__link, .zoom__close, .sheetdlg__close, .manual > summary .i { transition-property: background-color, color, opacity, box-shadow; }
  .sheet:hover, .paper:hover, .fsheet:hover, .shot:hover, .btn:active, .copy:active, .seg__btn:active, .chip:active, .tile:active, .tile:hover, .card__link:hover .card__pic, .card__link:active .card__pic, .motif:hover .motif__pic, .motif:active .motif__pic, .pile:hover > li, .pile__sheet:hover, .textbtn:active, .nav__toggle:active, .pick:active, .pager__link:active, .zoom__close:active, .sheetdlg__close:active { transform: none; }
  .pile:hover > li { transform: rotate(calc((var(--i) - (var(--n) - 1) / 2) * 9deg)); }
  .more:hover .i, .pager__link:hover .i { transform: none !important; }
  .copy__words > span, .tile__name { transform: none !important; }
  .nav__links, .nav__cta { transform: none !important; }
  .cc__reply.is-busy .i--busy, .is-typing > .cc__input::after, .cc__said.is-typing::after { animation: none; }
  .cap__link::before, .foot__col a::before { transition: none; }
  @view-transition { navigation: none; }
}
