/* Boukin site, concept A "La pile qui monte". Brand "Table de libraire": cream, fir green, ink; brass for one detail (the bookmark). */
@font-face { font-family: "Literata"; src: url("font/Literata.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("font/Literata-Italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
:root {
  --paper: #F6EFDD;
  --paper2: #EDE4CE;
  --cell: #FCF8EE;
  --ink: #1F1B16;
  --muted: #5F584B;
  --fir: #36552B;
  --fir-hover: #2E4A25;
  --fir-deep: #263C1F;
  --brass: #A47524;
  --line: rgba(31, 27, 22, .14);
  --hh: 56px;
  --gut: 32px;
  --max: 1200px;
  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (max-width: 759px) { :root { --hh: 52px; --gut: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--body); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--fir); text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.012em; line-height: 1.08; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0; }
.w { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--fir); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------ header */
.hd { position: sticky; top: 0; z-index: 20; height: var(--hh); background: var(--paper); border-bottom: 1px solid var(--line); }
.hd .w { height: 100%; display: flex; align-items: center; gap: 8px; }
.logo { display: flex; align-items: center; margin-left: -12px; flex: none; min-height: 44px; }
.logo img { height: 48px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 560; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; white-space: nowrap; }
.nav a:hover { background: var(--paper2); }
.nav a.on, .nav a[aria-current="page"] { color: var(--fir); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .n-wide, .nav .n-full { display: none; }
.nav a.btn { margin-left: 10px; color: var(--cell); }
.nav a.btn:hover { background: var(--fir-hover); }
@media (min-width: 760px) { .nav .n-wide { display: inline-flex; } }
@media (min-width: 1100px) { .nav .n-full { display: inline-flex; } .nav .n-short { display: none; } }
@media (max-width: 759px) { .logo img { height: 44px; } .logo { margin-left: -10px; } .nav a { padding: 0 11px; font-size: 16px; } }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; background: var(--fir); color: var(--cell); font: 650 17px/1 var(--body); text-decoration: none; transition: transform .15s ease-out, background-color .15s ease-out; }
.btn:hover { background: var(--fir-hover); }
.btn:active { transform: scale(.97); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 11px; }
.btn.idle { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); cursor: default; }
.btn.idle:active { transform: none; }
.price-line { font-size: 15.5px; color: var(--muted); }

/* ------------------------------------------------------------ sections: one flat colour each */
.kick { font: 650 13.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--fir); margin-bottom: 18px; }
.sec { position: relative; min-height: calc(100svh - var(--hh)); display: grid; align-items: center; padding: 72px 0; scroll-margin-top: var(--hh); }
.sec h2 { font-size: clamp(36px, 4.4vw, 60px); }
.s-paper2 { background: var(--paper2); }
.s-fir { background: var(--fir); color: var(--paper); }
.s-fir .kick { color: #CFDCC2; }
.s-fir .txt > p { color: #DCE3D2; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.cols.flip > :first-child { order: 2; }
.txt { max-width: 34rem; }
.txt > p { margin-top: 18px; font-size: 19px; color: var(--muted); }
.txt > p.strong { color: var(--ink); font-weight: 600; }
.more { margin-top: 22px; font-weight: 600; }

/* ------------------------------------------------------------ hero: fills the first screen exactly */
.hero { height: calc(100svh - var(--hh)); min-height: 500px; overflow: hidden; scroll-margin-top: var(--hh); }
.hero-in { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.hero-txt { max-width: 600px; }
.hero h1 { font-size: clamp(40px, min(4.2vw, 7.2svh), 62px); line-height: 1.06; }
.hero h1 .fir { color: var(--fir); }
.hero .sub { margin-top: 22px; font-size: clamp(18px, 1.4vw, 20px); color: var(--muted); max-width: 31rem; }
.diff { list-style: none; padding: 0; margin: 20px 0 30px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 640; font-size: 17px; }
.diff li { display: flex; align-items: center; gap: 9px; }
.diff li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fir); flex: none; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.stage { --pw: clamp(220px, min(21vw, calc((100svh - var(--hh) - 110px) * .44)), 300px); --pile: calc(var(--pw) * 1.36); position: relative; width: calc(var(--pile) + var(--pw) * .62); height: calc(var(--pw) * 2.24 + 30px); }
.hero-phone { position: absolute; right: 0; top: 0; }
.pile { position: absolute; left: 0; bottom: 30px; width: var(--pile); display: flex; flex-direction: column; z-index: 2; filter: drop-shadow(0 18px 22px rgba(31, 27, 22, .16)); }
.ex { position: absolute; right: 0; bottom: 0; width: calc(var(--pw) * 1.7); text-align: right; font-size: 13px; color: var(--muted); line-height: 1.3; }

/* book spine (same tint and motif as the generated cover) */
.sp { position: relative; display: flex; align-items: center; gap: calc(var(--pile) * .03); height: calc(var(--pile) * var(--t) * .8); width: calc(var(--pile) * var(--f)); margin-left: calc(var(--pile) * var(--x)); padding: 0 calc(var(--pile) * .04) 0 calc(var(--pile) * .13); background: var(--bg); color: var(--fg); border-radius: 3px 4px 4px 3px; transform: rotate(var(--r)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 2px rgba(28, 33, 30, .2); overflow: hidden; }
.sp b { flex: 1; min-width: 0; font: 600 calc(var(--pile) * .041)/1.1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp em { flex: none; font: 500 calc(var(--pile) * .023)/1 var(--body); font-style: normal; letter-spacing: .07em; text-transform: uppercase; opacity: .85; white-space: nowrap; }
.sp i { position: absolute; display: block; }
.s-moon { left: 5%; top: 50%; width: calc(var(--pile) * var(--t) * .4); aspect-ratio: 1; margin-top: calc(var(--pile) * var(--t) * -.2); border-radius: 50%; background: var(--ac); }
.s-band { left: 6%; top: 0; bottom: 0; width: 4.5%; background: var(--ac); }
.s-frame { inset: 4px 5px; border: 1.5px solid var(--ac); border-radius: 2px; }
.s-split { left: 0; top: 0; bottom: 0; width: 12%; background: var(--ac); }
.s-dots { left: 4%; top: 20%; bottom: 20%; width: 8%; background-image: radial-gradient(var(--ac) 1.3px, transparent 1.6px); background-size: 50% 50%; }
.s-arch { left: 5%; top: 22%; bottom: 22%; width: 7%; border-radius: 999px; background: var(--ac); }
.s-rules { left: 6%; top: 0; bottom: 0; width: 5%; border-left: 1.5px solid var(--ac); border-right: 1.5px solid var(--ac); }

/* generated cover (validation-2/kit.css), sized by --cw */
.cv { --cw: 74px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; flex: none; width: var(--cw); height: calc(var(--cw) * 1.5); padding: calc(var(--cw) * .09) calc(var(--cw) * .09) calc(var(--cw) * .1); background: var(--bg); color: var(--fg); border-radius: 3px 5px 5px 3px; overflow: hidden; box-shadow: inset 3px 0 0 rgba(0, 0, 0, .14), inset 4px 0 0 rgba(255, 255, 255, .08), 0 1px 2px rgba(28, 33, 30, .25), 0 6px 14px rgba(20, 30, 16, .22); }
.cv.top { justify-content: flex-start; }
.cv b { position: relative; z-index: 1; font: 600 calc(var(--cw) * var(--r))/1.08 var(--serif); letter-spacing: -.005em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; hyphens: auto; overflow-wrap: anywhere; }
.cv em { position: relative; z-index: 1; margin-top: calc(var(--cw) * .05); font: 500 calc(var(--cw) * .066)/1.1 var(--body); font-style: normal; letter-spacing: .02em; text-transform: uppercase; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv i { position: absolute; display: block; }
.m-moon { width: 46%; aspect-ratio: 1; border-radius: 50%; left: 27%; top: 14%; background: var(--ac); }
.cv.top .m-moon { top: auto; bottom: 12%; }
.m-band { left: 0; right: 0; top: 24%; height: 11%; background: var(--ac); }
.cv.top .m-band { top: auto; bottom: 22%; }
.m-frame { inset: 6%; border: 1.5px solid var(--ac); border-radius: 2px; }
.m-split { left: 0; right: 0; top: 0; height: 42%; background: var(--ac); }
.cv.top .m-split { top: auto; bottom: 0; }
.m-dots { left: 12%; top: 12%; width: 76%; height: 34%; background-image: radial-gradient(var(--ac) 1.2px, transparent 1.5px); background-size: 12% 26%; }
.cv.top .m-dots { top: auto; bottom: 12%; }
.m-arch { left: 22%; width: 56%; top: 12%; height: 42%; border-radius: 999px 999px 0 0; background: var(--ac); }
.cv.top .m-arch { top: auto; bottom: 10%; }
.m-rules { left: 9%; right: 9%; top: 30%; height: 7%; border-top: 1.5px solid var(--ac); border-bottom: 1.5px solid var(--ac); }
.cv.top .m-rules { top: auto; bottom: 22%; }

/* ------------------------------------------------------------ phone outline */
.phone { margin: 0; width: var(--pw, 300px); flex: none; }
.bezel { padding: calc(var(--pw, 300px) * .034); background: var(--ink); border-radius: calc(var(--pw, 300px) * .17); box-shadow: 0 40px 70px -40px rgba(31, 27, 22, .55); }
.screen { position: relative; aspect-ratio: 1170 / 2535; overflow: hidden; border-radius: calc(var(--pw, 300px) * .136); background: var(--paper); }
.screen > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen .ov { position: absolute; height: auto; }
.cap { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); }
.phone-wrap { display: flex; justify-content: center; }

/* ------------------------------------------------------------ how it works: three phones climbing like the pile */
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 22px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; font-size: 19px; }
.steps li::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--fir); color: var(--cell); display: grid; place-items: center; font: 600 18px/1 var(--serif); }
.steps b { display: block; font-weight: 650; }
.steps span { color: var(--muted); font-size: 17px; }
.how { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.trio { --pw: clamp(150px, 13.5vw, 196px); display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.trio .phone:nth-child(2) { margin-bottom: 44px; }
.trio .phone:nth-child(3) { margin-bottom: 88px; }
.trio .cap { margin: 12px auto 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fir); color: var(--cell); font: 600 15px/1 var(--serif); }

/* ------------------------------------------------------------ checked lists */
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; font-size: 18px; }
.checks svg { margin-top: 2px; color: var(--fir); }
.checks b { font-weight: 650; }
.checks span { color: var(--ink); }

/* ------------------------------------------------------------ shelves (fir green) */
.shelves { margin-top: 34px; display: grid; gap: 20px; }
.shelf-name { font: 650 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #CFDCC2; margin-bottom: 10px; }
.shelf .row { display: flex; gap: 10px; align-items: flex-end; padding: 0 6px 0; border-bottom: 4px solid #8FA67F; box-shadow: 0 6px 0 -2px rgba(0, 0, 0, .12); }
.with-quote { flex-direction: column; align-items: center; gap: 26px; }
.pull { margin: 0; max-width: 21rem; text-align: center; }
.pull p { font: italic 400 21px/1.35 var(--serif); color: var(--paper); }
.pull footer { margin-top: 8px; font-size: 14px; color: #CFDCC2; }

/* ------------------------------------------------------------ bookshops: two phones */
.duo { --pw: clamp(200px, 19vw, 270px); display: flex; justify-content: center; }
.duo .phone:nth-child(2) { margin: 70px 0 0 -40px; position: relative; z-index: 1; }

/* ------------------------------------------------------------ privacy */
.flow { width: 100%; border-collapse: collapse; font-size: 17px; }
.flow caption { text-align: left; font: 600 24px/1.2 var(--serif); padding-bottom: 14px; }
.flow th, .flow td { text-align: left; vertical-align: top; padding: 15px 0; border-top: 1px solid var(--line); }
.flow th { font-weight: 600; width: 46%; padding-right: 24px; }
.flow td { color: var(--muted); }
.flow td b { color: var(--ink); font-weight: 650; display: block; }
.flow tr.out td b { color: var(--fir); }
.promises { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: 18px; }
.promises li { display: flex; gap: 12px; align-items: baseline; }
.promises li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--fir); transform: translateY(-3px); }

/* ------------------------------------------------------------ price */
.price h2 .num { white-space: nowrap; color: var(--fir); }
.terms { list-style: none; padding: 0; margin: 30px 0 32px; border-top: 1px solid var(--line); }
.terms li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 11rem 1fr; gap: 16px; font-size: 17px; }
.terms b { font-weight: 650; }
.terms span { color: var(--muted); }
.fine { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------ faq + final call with the brass bookmark */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 60px; padding: 14px 0; font: 600 19px/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--fir); transition: transform .2s ease-out; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 40px 20px 0; color: var(--muted); font-size: 17px; }
.final { margin-top: 96px; display: grid; justify-items: center; text-align: center; gap: 0; }
.final h2 { font-size: clamp(34px, 4.2vw, 56px); max-width: 16ch; }
.btn-wrap { position: relative; margin-top: 34px; display: inline-block; }
.ribbon { position: absolute; right: 22px; top: -10px; width: 18px; height: 33px; z-index: 2; fill: var(--brass); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.final .price-line { margin-top: 12px; }

/* ------------------------------------------------------------ footer (fir) */
.ft { background: var(--fir-deep); color: #D8DFCE; padding: 56px 0 40px; font-size: 15px; }
.ft a { color: #F1E4C2; }
.ft-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; align-items: flex-start; }
.ft-top img { height: 48px; width: auto; margin-left: -12px; }
.ft nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.ft nav a { color: var(--paper); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 8px; font-weight: 560; }
.ft nav a:hover { background: rgba(255, 255, 255, .08); }
.ft-mid { margin-top: 24px; display: grid; gap: 6px; }
.ft-small { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(246, 239, 221, .16); display: grid; gap: 6px; font-size: 13px; color: #B5C0A9; }

/* ------------------------------------------------------------ secondary pages */
.phead { padding: 72px 0 40px; border-bottom: 1px solid var(--line); background: var(--paper2); }
.phead h1 { font-size: clamp(40px, 5vw, 64px); }
.phead .lead { margin-top: 18px; max-width: 42rem; font-size: 19px; color: var(--muted); }
.phead .lead p + p { margin-top: 10px; }
.doc { display: grid; grid-template-columns: 15rem minmax(0, 42rem); gap: 64px; padding-top: 48px; padding-bottom: 96px; }
.doc.single { grid-template-columns: minmax(0, 42rem); }
.toc { position: sticky; top: calc(var(--hh) + 32px); align-self: start; font-size: 15px; max-height: calc(100vh - var(--hh) - 64px); overflow: auto; }
.toc .k { display: block; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--fir); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { color: var(--ink); text-decoration: none; display: block; padding: 6px 0; line-height: 1.3; }
.toc a:hover { color: var(--fir); }
.ds { scroll-margin-top: calc(var(--hh) + 16px); padding-top: 8px; }
.ds + .ds { margin-top: 40px; }
.ds h2 { font-size: 28px; margin-bottom: 14px; }
.ds h3 { font-size: 20px; margin: 22px 0 8px; }
.ds p, .ds li { font-size: 17px; }
.ds p + p { margin-top: 12px; }
.ds ul, .ds ol { padding-left: 1.2em; margin: 12px 0; display: grid; gap: 6px; }
.ds a { overflow-wrap: anywhere; }
.tw { overflow-x: auto; margin: 16px 0; }
.ds table { width: 100%; border-collapse: collapse; font-size: 16px; }
.ds th, .ds td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.ds th { font-weight: 650; }
.ds code { font-size: .92em; background: var(--paper2); padding: 1px 5px; border-radius: 5px; }
mark.todo { background: #F4E7C8; color: #5A3E0C; padding: 1px 4px; border-radius: 4px; box-shadow: inset 0 -2px 0 #C99A3E; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1099px) {
  .cols { gap: 48px; }
  .how { grid-template-columns: 1fr; gap: 48px; }
  .how .txt { max-width: 640px; }
  .trio { --pw: min(196px, 27vw); }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-in { gap: 32px; }
}
@media (max-width: 899px) {
  .hero-in { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-txt { flex: none; padding-top: clamp(18px, 3.4svh, 44px); max-width: 640px; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 56px); }
  .hero .sub { margin-top: 12px; font-size: 16.5px; }
  .diff { margin: 12px 0 16px; font-size: 15.5px; gap: 4px 14px; }
  .cta-row { gap: 8px 16px; }
  .stage { flex: 1; min-height: 0; width: 100%; height: auto; margin-top: 18px; --pw: min(240px, 46vw); --pile: min(330px, 66vw); }
  .hero-phone { right: max(0px, calc(50% - var(--pw) - 10px)); top: 0; }
  .pile { left: max(0px, calc(50% - var(--pile) * .9)); bottom: 14px; }
  .ex { display: none; }
  .cols, .cols.flip { grid-template-columns: 1fr; gap: 44px; }
  .cols.flip > :first-child { order: 0; }
  .txt { max-width: 640px; }
  .duo { --pw: min(230px, 40vw); }
}
@media (max-width: 759px) {
  body { font-size: 16.5px; }
  .sec { padding: 52px 0; }
  .sec h2 { font-size: clamp(31px, 8.4vw, 44px); }
  .txt > p { font-size: 17.5px; }
  .hero .sub { display: none; }
  .sp em { display: none; }
  .sp b { font-size: calc(var(--pile) * .05); }
  .hero h1 { font-size: clamp(29px, 8.6vw, 40px); line-height: 1.08; }
  .btn { min-height: 50px; padding: 0 20px; font-size: 16.5px; }
  .phone-wrap { --pw: min(260px, 68vw); }
  .trio { --pw: 29vw; gap: 8px; }
  .trio .phone:nth-child(2) { margin-bottom: 7vw; }
  .trio .phone:nth-child(3) { margin-bottom: 14vw; }
  .duo { --pw: 44vw; }
  .duo .phone:nth-child(2) { margin: 50px 0 0 -6vw; }
  .shelf .row { gap: 8px; }
  .cv { --cw: min(66px, calc((100vw - 2 * var(--gut) - 36px) / 4)); }
  .row .cv:nth-child(n+5) { display: none; }
  .terms li { grid-template-columns: 1fr; gap: 4px; }
  .flow th { width: 44%; padding-right: 14px; }
  .flow { font-size: 15.5px; }
  .final { margin-top: 72px; }
  .doc, .doc.single { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .toc { position: static; max-height: none; }
  .phead { padding: 44px 0 28px; }
  .ds h2 { font-size: 24px; }
  .ds table { font-size: 15px; }
}
@media (max-height: 760px) and (min-width: 900px) {
  .hero .sub { margin-top: 14px; }
  .diff { margin: 14px 0 20px; }
}

/* ------------------------------------------------------------ motion: one animation per block, played once.
   html.motion is set only when animations are allowed; without it the page is static and complete. */
@keyframes fall {
  from { opacity: 0; transform: translateY(calc(var(--pile) * -.8)) rotate(calc(var(--r) + 5deg)); }
  40% { opacity: 1; }
  to { opacity: 1; transform: rotate(var(--r)); }
}
@keyframes rise { from { transform: translateY(102%); } to { transform: none; } }
@keyframes row { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes mark { from { opacity: 0; transform: translateY(-22px); } to { opacity: 1; transform: none; } }

.motion .hero[data-anim]:not(.in) .sp { opacity: 0; }
.motion .hero[data-anim].in .sp { animation: fall .45s cubic-bezier(.2, .7, .3, 1) both; animation-delay: calc(var(--i) * 160ms); }
.motion [data-anim]:not(.in) .a-rise { transform: translateY(102%); }
.motion [data-anim].in .a-rise { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.motion [data-anim]:not(.in) .a-row { opacity: 0; }
.motion [data-anim].in .a-row { animation: row .4s ease-out both; animation-delay: calc(var(--i) * 30ms); }
.motion .final[data-anim]:not(.in) .ribbon { opacity: 0; }
.motion .final[data-anim].in .ribbon { animation: mark .4s cubic-bezier(.2, .8, .2, 1) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 404 page: space before the English half */
.nf .lead h2 { margin-top: 36px; }
