/* Ascend (asnd.nl). Light, with pastel accents, rounded and moving. */
@font-face { font-family: "Bricolage"; src: url(/static/fonts/bricolage.woff2) format("woff2"); font-weight: 300 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "InterVar"; src: url(/static/fonts/inter.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  color-scheme: light only;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --ink: #17162b;
  --ink2: #474561;
  --muted: #63617a;
  --line: #ecebf3;
  --line2: #dddbe8;
  --lav: #ece8ff; --lav-2: #d9d1ff; --lav-ink: #5a48d6;
  --sky: #e1efff; --sky-2: #c6e0ff; --sky-ink: #2463b0;
  --mint: #dcf6ea; --mint-2: #bdeed7; --mint-ink: #1d7a55;
  --peach: #ffe8dc; --peach-2: #ffd3bd; --peach-ink: #b1522a;
  --butter: #fff4c9;
  --accent: #6c5ce7;
  --grad: var(--accent);
  --grad-soft: var(--lav);
  --radius: 22px;
  --radius-s: 14px;
  --shadow-s: 0 1px 2px rgba(23, 22, 43, 0.05), 0 2px 8px rgba(23, 22, 43, 0.04);
  --shadow: 0 2px 4px rgba(23, 22, 43, 0.04), 0 12px 32px -8px rgba(23, 22, 43, 0.12);
  --shadow-l: 0 30px 60px -20px rgba(60, 50, 140, 0.28), 0 10px 24px -12px rgba(23, 22, 43, 0.12);
  --display: "p-fraunces", Georgia, serif;
  --serif: "p-lora", Georgia, serif;
  --brand: "Bricolage", "InterVar", system-ui, sans-serif;
  --sans: "InterVar", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pill-h: 64px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--lav-ink); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow); }
.skip:focus { left: 16px; }
.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.18em; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h3 { font-weight: 700; letter-spacing: -0.01em; }

/* Top bar: a floating glass pill on desktop. */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.topbar-inner { max-width: 1220px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 12px 20px; }
.topbar.is-scrolled { border-bottom-color: var(--line2); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.logo-mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 6px 12px rgba(110, 120, 240, 0.35)); transition: transform 0.5s var(--ease); }
.brand:hover .logo-mark { transform: translateY(-2px) rotate(-4deg); }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font: 750 21px/1 var(--brand); letter-spacing: -0.04em; }
.brand-sub { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 3px; letter-spacing: 0.01em; }
.topnav { display: flex; gap: 4px; margin: 0 auto; }
.topnav a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--ink2); text-decoration: none; font-weight: 550; font-size: 15px; transition: color 0.25s; }
.topnav a:hover { color: var(--ink); }
.topnav a[aria-current] { color: var(--ink); }
.topnav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.topnav a:hover::after { transform: scaleX(0.4); background: var(--line2); }
.topnav a[aria-current]::after { transform: scaleX(1); background: var(--ink); }
.topnav a.is-soon { color: var(--muted); }
.soon { font-size: 10.5px; font-weight: 650; letter-spacing: 0.02em; color: var(--mint-ink); background: var(--mint); border-radius: 999px; padding: 3px 8px; }
.topbar-cta { flex: none; }

/* Bottom pill bar on phones. */
.pillbar { display: none; }

/* Buttons. */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s, color 0.25s; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(23, 22, 43, 0.55); }
.btn-dark:hover { color: #fff; background: #2b2a45; transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(23, 22, 43, 0.5); }
.btn-dark:hover::before { opacity: 1; }
.btn-ghost { background: rgba(255, 255, 255, 0.7); color: var(--ink); border-color: var(--line2); }
.btn-ghost:hover { background: #fff; color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-large { min-height: 54px; padding: 0 26px; font-size: 16px; }

@keyframes shimmer { to { background-position: 100% 0; } }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--ink2); margin: 0; max-width: 58ch; }

main { display: block; }
.eyebrow { display: block; font-size: 14px; font-weight: 600; color: var(--ink2); margin: 0 0 10px; }

/* Footer. */
.footer { margin-top: 110px; border-top: 1px solid var(--line2); background: var(--bg); }
.footer-inner { max-width: 1220px; margin: 0 auto; padding: 48px 20px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { max-width: 420px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin: 14px 0 0; }
.footer-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; color: var(--ink2); font-size: 14.5px; }
.footer-facts li { display: flex; align-items: center; gap: 10px; }
.footer-facts .icon { color: var(--accent); }
.footer-small { max-width: 1220px; margin: 0 auto; padding: 0 20px 32px; color: var(--muted); font-size: 12.5px; }

/* Journal page. */
.journal-grid { max-width: 1220px; margin: 0 auto; padding: 8px 20px 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.journal-form { display: grid; gap: 18px; min-width: 0; }
.step { margin: 0; min-width: 0; padding: 26px 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.step-head { display: flex; align-items: center; gap: 14px; padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.step-head + * { clear: both; }
.step-badge { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad-soft); color: var(--lav-ink); flex: none; }
.step-badge .icon { width: 21px; height: 21px; }
.step-num { position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 11px/20px var(--sans); text-align: center; box-shadow: 0 0 0 3px #fff; }
.step-title { font: 650 19px/1.2 var(--sans); letter-spacing: -0.01em; }
.step-hint { clear: both; color: var(--muted); font-size: 14px; margin: 6px 0 14px 58px; }
.sublegend { font-weight: 650; font-size: 14px; margin: 22px 0 10px; }
.hint { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13.5px; margin: 16px 0 0; }
.hint .icon { color: var(--accent); margin-top: 2px; }

.parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.part { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--bg); border: 1px solid transparent; transition: background 0.3s, border-color 0.3s, opacity 0.3s; }
.part:hover { border-color: var(--line2); }
.part-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--lav-ink); box-shadow: var(--shadow-s); }
.part-name { display: block; font-weight: 650; }
.part-desc { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.part.is-off .part-text, .part.is-off .part-icon { opacity: 0.45; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid var(--line2); }
.stepper input { width: 3.2em; min-height: 34px; border: 0; background: transparent; text-align: center; font: 650 16px var(--sans); color: var(--ink); -moz-appearance: textfield; padding: 0; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html:not(.js) .stepper input { width: 4.2em; }
.stepper-btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--lav); color: var(--lav-ink); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.stepper-btn:hover { background: var(--lav-2); }
.stepper-btn:active { transform: scale(0.92); }
.unit { color: var(--muted); font-size: 13px; padding: 0 8px 0 4px; }
.part-move { display: flex; flex-direction: column; gap: 2px; }
.icon-btn { display: grid; place-items: center; width: 30px; height: 24px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: #fff; color: var(--ink); }
.icon-btn:disabled { opacity: 0.25; cursor: default; background: transparent; }

.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }
.choice { position: relative; display: grid; gap: 2px; align-content: start; padding: 16px; border-radius: 16px; background: var(--bg); border: 1.5px solid transparent; cursor: pointer; transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease), box-shadow 0.3s; }
.choice:hover { transform: translateY(-2px); box-shadow: var(--shadow-s); background: #fff; }
.choice input, .pattern input, .colour input, .tone input, .font input, .switch input[type=checkbox] { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.choice-title { display: block; font: 650 16.5px/1.25 var(--sans); letter-spacing: -0.005em; }
.choice-text { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.choice-row { grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.choice-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--accent); box-shadow: var(--shadow-s); }
.paper { display: block; border-radius: 4px; background: #fff; border: 1.5px solid var(--line2); margin-bottom: 10px; transition: border-color 0.25s, background 0.25s; }
.paper-a4 { width: 30px; height: 42px; }
.paper-a5 { width: 24px; height: 34px; margin-top: 8px; }
.paper-a6 { width: 18px; height: 25px; margin-top: 17px; }
.choice:has(input:checked) { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--lav), var(--shadow-s); }
.choice:has(input:checked) .paper { border-color: var(--accent); background: var(--lav); }
.choice:has(input:focus-visible), .pattern:has(input:focus-visible), .colour:has(input:focus-visible), .tone:has(input:focus-visible), .font:has(input:focus-visible), .switch:has(input:focus-visible) { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.choice:has(input:disabled) { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.patterns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pattern { position: relative; display: grid; justify-items: center; gap: 8px; padding: 14px 6px 10px; border-radius: 16px; background: var(--bg); border: 1.5px solid transparent; font-size: 12.5px; font-weight: 550; text-align: center; line-height: 1.25; cursor: pointer; transition: transform 0.3s var(--ease), border-color 0.25s, background 0.25s; }
.pattern:hover { transform: translateY(-2px); background: #fff; }
.pattern-icon { width: 44px; height: 55px; filter: drop-shadow(0 4px 8px rgba(23, 22, 43, 0.08)); }
.pattern-paper { fill: #fff; stroke: var(--line2); }
.pat-lines, .pat-grid { fill: none; stroke-width: 1; }
.pat-lines { stroke: var(--pat-lines); stroke-width: 1.4; }
.pat-grid { stroke: var(--pat-grid); }
.pat-dots { fill: var(--pat-dots); }
.pattern:has(input:checked) { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--lav); }
.colours { display: flex; flex-wrap: wrap; gap: 8px; }
.colour { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--bg); border: 1.5px solid transparent; font-size: 14px; font-weight: 550; cursor: pointer; transition: transform 0.3s var(--ease), border-color 0.25s; }
.colour:hover { transform: translateY(-2px); background: #fff; }
.colour svg { width: 28px; height: 28px; transition: transform 0.4s var(--ease); }
.colour:has(input:checked) { border-color: var(--accent); background: #fff; }
.colour:has(input:checked) svg { transform: scale(1.12); }
.tones { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.tone { position: relative; }
.tone span { display: block; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--ink2); transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.tone:has(input:checked) span { background: var(--ink); color: #fff; box-shadow: var(--shadow-s); }

.font-pickers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.font-picker .sublegend { margin-top: 6px; }
.fonts { position: relative; max-height: 360px; overflow-y: auto; padding: 0 8px 10px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); scroll-padding: 44px; overscroll-behavior: contain; scrollbar-width: thin; }
.font-group { position: sticky; top: 0; z-index: 1; margin: 0 -8px; padding: 12px 16px 8px; background: var(--bg); font-size: 13px; font-weight: 650; color: var(--accent); }
.font { position: relative; display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.font:hover { background: #fff; }
.font:has(input:checked) { border-color: var(--accent); background: #fff; box-shadow: var(--shadow-s); }
.font-sample { font-size: calc(19px * var(--fs, 1)); line-height: 1.4; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 0; }
.font-sample-head { font-size: calc(26px * var(--fs, 1)); }
.font-name { font-size: 12px; color: var(--muted); font-weight: 550; }

.field { display: grid; gap: 8px; margin-top: 14px; font-size: 14.5px; font-weight: 550; }
input.text, select, .with-unit input { font: 500 16px var(--sans); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line2); border-radius: 12px; padding: 10px 14px; min-height: 46px; transition: border-color 0.2s, box-shadow 0.2s; }
input.text:focus, select:focus, .with-unit input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--lav); }
.with-unit { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.with-unit input { width: 5.5em; }
.switches { display: grid; gap: 12px; margin-top: 18px; }
.switch { position: relative; display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; width: fit-content; }
.switch-ui { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--line2); transition: background 0.3s; flex: none; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.35s var(--ease); }
.switch:has(input:checked) .switch-ui { background: var(--accent); }
.switch:has(input:checked) .switch-ui::after { transform: translateX(18px); }
.form-actions { display: flex; gap: 10px; }

/* Summary. */
.summary { position: sticky; top: 100px; }
.summary-card { position: relative; padding: 26px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-s); border: 1px solid var(--line2); transition: opacity 0.25s; }
.summary.is-busy .summary-card { opacity: 0.55; }
.summary-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 6px; }
.summary-figures > div { padding: 14px 12px; border-radius: 16px; background: var(--bg); }
.summary-figures > div:nth-child(1) { background: var(--lav); }
.summary-figures > div:nth-child(2) { background: var(--sky); }
.summary-figures > div:nth-child(3) { background: var(--mint); }
.figure { display: block; font: 400 38px/1 var(--display); letter-spacing: -0.02em; }
.figure-label { display: block; font-size: 12.5px; color: var(--ink2); margin-top: 6px; }
.downloads { display: grid; gap: 10px; margin: 20px 0 18px; }
.downloads .btn { width: 100%; }
.howto { border-radius: 16px; background: var(--bg); padding: 4px 16px; }
.howto summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-weight: 650; cursor: pointer; list-style: none; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary .icon { color: var(--accent); }
.howto-chevron { margin-left: auto; transition: transform 0.3s var(--ease); color: var(--muted) !important; }
.howto[open] .howto-chevron { transform: rotate(180deg); }
.steps-list { margin: 0 0 14px; padding-left: 1.3em; font-size: 14.5px; color: var(--ink2); }
.steps-list li { margin: 0 0 8px; padding-left: 4px; }
.steps-list li::marker { color: var(--accent); font-weight: 700; }
.summary-notes { display: grid; gap: 10px; margin-top: 16px; }
.summary-notes p { display: flex; gap: 10px; margin: 0; font-size: 13.5px; color: var(--muted); }
.summary-notes .icon { color: var(--accent); margin-top: 2px; }
.errors { display: flex; gap: 12px; background: var(--peach); color: var(--peach-ink); border-radius: 16px; padding: 14px 16px; font-size: 14.5px; }
.errors p { margin: 0; }
.errors p + p { margin-top: 6px; }

/* Scroll reveal. */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js .no-js { display: none; }
html:not(.js) .js-only { display: none; }

@media (max-width: 1060px) {
  .journal-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}

/* Phones: no top bar navigation, a compact pill at the bottom. */
@media (max-width: 760px) {
  html { scroll-padding-top: 20px; }
  .topbar { position: static; padding: 12px 14px 0; }
  .topbar-inner { padding: 4px 2px; }
  .topnav, .topbar-cta { display: none; }
  .pillbar { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: max(10px, calc(env(safe-area-inset-bottom) - 14px)); display: flex; gap: 4px; padding: 5px; width: min(22rem, calc(100vw - 24px)); justify-content: space-between; border-radius: 999px; background: #fff; border: 1px solid var(--line2); box-shadow: 0 12px 34px -10px rgba(40, 30, 110, 0.3), 0 2px 6px rgba(23, 22, 43, 0.06); }
  .pillbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; height: 48px; border-radius: 999px; color: var(--ink2); text-decoration: none; font-size: 14px; font-weight: 650; transition: background 0.35s var(--ease), color 0.35s, flex 0.45s var(--ease); white-space: nowrap; }
  .pillbar .icon { width: 22px; height: 22px; }
  .pillbar a:not([aria-current]) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pillbar a[aria-current] { flex: 2.2; background: var(--ink); color: #fff; }
  body { padding-bottom: 92px; }
  .footer { margin-top: 80px; }
  .journal-grid { padding: 0 12px; }
  .step { padding: 20px 16px 22px; }
  .step-hint { margin-left: 0; }
  .part { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px; }
  .part-move { grid-column: 3; grid-row: 1; flex-direction: row; }
  .stepper { grid-column: 1 / -1; justify-self: start; }
  .choices { gap: 8px; }
  .choice { padding: 12px; }
  .choice-text { font-size: 12px; }
  .choices-2 { grid-template-columns: minmax(0, 1fr); }
  .patterns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .font-pickers { grid-template-columns: minmax(0, 1fr); }
  .fonts { max-height: 300px; }
}
/* A plain page heading: a serif title and a short paragraph. */
.page-head { max-width: 1220px; margin: 0 auto; padding: clamp(36px, 7vh, 80px) 20px 34px; }
.page-title { font: 400 clamp(40px, 5.4vw, 76px)/1.02 var(--display); letter-spacing: -0.025em; max-width: 18ch; text-wrap: balance; margin: 0; }
.page-lede { margin: 20px 0 0; max-width: 46ch; font: 400 clamp(17px, 1.4vw, 20px)/1.6 var(--serif); color: var(--ink2); }
.page-actions { margin: 28px 0 0; }
.st-head .page-title { font-size: clamp(36px, 4.4vw, 60px); }
@media (max-width: 760px) { .page-head { padding: 24px 16px 22px; } }

/* Home: set like a book. A title page, a sheet that folds, a paper
   sample and a table of contents. Flat pastels, no gradients. */
.lp-open, .lp-fold, .lp-paper, .lp-toc { max-width: 1220px; margin: 0 auto; padding-inline: 20px; }
.lp-open { padding-top: clamp(48px, 9vh, 110px); }
.lp-title { font: 400 clamp(46px, 7.6vw, 116px)/0.98 "p-fraunces", Georgia, serif; letter-spacing: -0.025em; max-width: 14ch; text-wrap: balance; }
.lp-hand { position: relative; white-space: nowrap; }
.lp-hand svg { position: absolute; left: -2%; bottom: -0.12em; width: 104%; height: 0.32em; z-index: -1; overflow: visible; }
.lp-hand path { fill: none; stroke: #c9bfff; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; transition: stroke-dashoffset 1.3s var(--ease) 0.6s; }
html:not(.js) .lp-hand path, .is-in .lp-hand path { stroke-dashoffset: 0; }
.lp-open-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: clamp(32px, 6vh, 64px); }
.lp-open-foot > * { grid-column: 6 / -1; }
.lp-lede { margin: 0; font: 400 clamp(18px, 1.5vw, 21px)/1.6 "p-lora", Georgia, serif; color: var(--ink2); max-width: 40ch; }
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.lp-actions .btn .icon { transition: transform 0.4s var(--ease); }
.lp-actions .btn:hover .icon { transform: translateX(4px); }
.lp-link { color: var(--ink); font-weight: 550; text-decoration: underline; text-decoration-color: var(--line2); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color 0.25s; }
.lp-link:hover { color: var(--ink); text-decoration-color: var(--accent); }
.lp-h2 { font: 400 clamp(34px, 4vw, 54px)/1.04 "p-fraunces", Georgia, serif; letter-spacing: -0.02em; margin: 0 0 24px; }

/* The fold. */
.lp-fold { margin-top: clamp(70px, 12vh, 140px); --fold: 0; --stack: 0; }
.lp-fold-stick { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.lp-note { margin: 0 0 18px; max-width: 34ch; font: 400 18px/1.55 "p-lora", Georgia, serif; color: var(--ink2); transition: color 0.5s var(--ease); }
.lp-stage { position: relative; padding: clamp(28px, 4vw, 56px); background: var(--lav); border-radius: 4px; }
.crop { position: absolute; width: 18px; height: 18px; border-color: rgba(23, 22, 43, 0.45); border-style: solid; border-width: 0; }
.crop-tl { left: 10px; top: 10px; border-right-width: 1px; border-bottom-width: 1px; }
.crop-tr { right: 10px; top: 10px; border-left-width: 1px; border-bottom-width: 1px; }
.crop-bl { left: 10px; bottom: 10px; border-right-width: 1px; border-top-width: 1px; }
.crop-br { right: 10px; bottom: 10px; border-left-width: 1px; border-top-width: 1px; }
.lp-book { position: relative; width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: 297 / 210; perspective: 1800px; transform: rotate(calc(var(--stack) * -3deg)); }
.lp-sheet { position: absolute; inset: 0; display: flex; transform-style: preserve-3d; transform: translateX(calc(var(--fold) * -25%)); }
.lp-sheet::after { content: ""; position: absolute; left: 50%; top: 4%; bottom: 4%; border-left: 1px dashed rgba(23, 22, 43, 0.35); opacity: calc(1 - var(--fold) * 4); pointer-events: none; }
.lp-half { position: relative; width: 50%; height: 100%; transform-style: preserve-3d; }
.lp-half-left { transform-origin: right center; transform: rotateY(calc(var(--fold) * -180deg)) translateZ(-1px); }
.lp-half-right { transform: translateZ(1px); }
.lp-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lp-face-back { transform: rotateY(180deg); }
.lp-pg { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 9% 9% 7%; background: #fff; box-shadow: 0 1px 2px rgba(23, 22, 43, 0.08); }
.lp-half-left .lp-face-front .lp-pg { box-shadow: inset -14px 0 18px -16px rgba(23, 22, 43, 0.25); }
.lp-pg-head { font-size: clamp(13px, 1.6vw, 20px); color: var(--ink); border-bottom: 1px solid #d9d4f6; padding-bottom: 6px; }
.lp-pg-lines::after { content: ""; flex: 1; margin-top: 8%; background: repeating-linear-gradient(to bottom, transparent 0 calc(7% - 1px), #d6d0f5 calc(7% - 1px) 7%); background-size: 100% 100%; }
.lp-pg-dots::before { content: ""; flex: 1; background-image: radial-gradient(circle, #a9cbf3 1.1px, transparent 1.5px); background-size: 11px 11px; }
.lp-pg-cover { align-items: center; justify-content: center; text-align: center; gap: 6px; }
.lp-pg-rule { width: 22%; border-top: 1px solid #8fa98b; margin-bottom: 4px; }
.lp-pg-title { font-size: clamp(18px, 2.6vw, 32px); color: #2f3a2d; }
.lp-pg-sub { font-size: clamp(7px, 0.8vw, 10px); color: var(--muted); }
.lp-pg-num { order: 2; margin-top: auto; padding-top: 6%; align-self: center; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lp-pg-cover .lp-pg-num { position: absolute; bottom: 7%; }
.lp-under { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; background: #fff; box-shadow: 0 1px 2px rgba(23, 22, 43, 0.1); opacity: calc(var(--stack) * 1.4); }
.lp-under-1 { transform: translate(calc(var(--fold) * -50% + var(--stack) * 4px), calc(var(--stack) * 4px)); }
.lp-under-2 { transform: translate(calc(var(--fold) * -50% + var(--stack) * 8px), calc(var(--stack) * 8px)); }
.lp-under-3 { transform: translate(calc(var(--fold) * -50% + var(--stack) * 12px), calc(var(--stack) * 12px)); box-shadow: 0 18px 34px -18px rgba(40, 30, 110, 0.35); }
.has-fold .lp-fold { height: 300vh; }
.has-fold .lp-fold-stick { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: 90px 30px; }
.has-fold .lp-note { color: var(--muted); }
.has-fold .lp-note.is-on { color: var(--ink); }

/* The paper sample. */
.lp-paper { margin-top: clamp(80px, 12vh, 150px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.lp-paper-copy { order: 2; }
.lp-paper-copy > p { margin: 0; font: 400 18px/1.6 "p-lora", Georgia, serif; color: var(--ink2); max-width: 42ch; }
.lp-pick { border: 0; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-pick legend { padding: 0; margin-bottom: 10px; font-size: 13.5px; font-weight: 650; color: var(--ink2); }
.lp-chip, .lp-dot { position: relative; cursor: pointer; }
.lp-chip input, .lp-dot input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.lp-chip span { display: inline-block; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; font-size: 14px; font-weight: 550; color: var(--ink2); transition: background 0.25s, color 0.25s, border-color 0.25s; }
.lp-chip:hover span { border-color: var(--ink2); }
.lp-chip:has(input:checked) span { background: var(--ink); border-color: var(--ink); color: #fff; }
.lp-dot svg { display: block; width: 34px; height: 34px; border-radius: 50%; transition: transform 0.3s var(--ease); }
.lp-dot:hover svg { transform: scale(1.08); }
.lp-dot:has(input:checked) svg { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.lp-chip:has(input:focus-visible) span, .lp-dot:has(input:focus-visible) svg { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.lp-specimen { position: relative; display: grid; place-items: center; padding: clamp(30px, 5vw, 60px) 0; }
.lp-specimen::before { content: ""; position: absolute; inset: 8% 4% 8% 12%; background: var(--mint); border-radius: 4px; transform: rotate(2.5deg); }
.lp-spec-page { position: relative; width: min(100%, 420px); aspect-ratio: 148 / 210; display: flex; flex-direction: column; padding: 9% 9% 8%; background: #fff; box-shadow: 0 1px 2px rgba(23, 22, 43, 0.08), 0 30px 50px -30px rgba(40, 50, 40, 0.35); transform: rotate(-1.5deg); --g: 26px; }
.lp-spec-head { font-size: 30px; color: var(--ink); line-height: 1.1; }
.lp-spec-date { margin: 4px 0 18px; font-size: 12px; color: var(--muted); }
.lp-spec-area { flex: 1; display: block; padding-top: 6px; transition: opacity 0.3s; }
.lp-spec-area.is-swap { animation: paperin 0.45s var(--ease); }
@keyframes paperin { from { opacity: 0.2; } }
.lp-spec-hand { display: block; font-size: 25px; line-height: var(--g); color: #2c3e63; transform: translateY(-5px); }
.lp-spec-hand:nth-child(2) { padding-left: 1.2em; }
[data-pattern="lines"] .lp-spec-area { background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--g) - 1.4px), var(--pat-lines) calc(var(--g) - 1.4px) var(--g)); }
[data-pattern="small"] .lp-spec-area { background-image: linear-gradient(var(--pat-grid) 1px, transparent 1px), linear-gradient(90deg, var(--pat-grid) 1px, transparent 1px); background-size: 13px 13px; }
[data-pattern="large"] .lp-spec-area { background-image: linear-gradient(var(--pat-grid) 1px, transparent 1px), linear-gradient(90deg, var(--pat-grid) 1px, transparent 1px); background-size: 18.5px 18.5px; }
[data-pattern="dots"] .lp-spec-area { background-image: radial-gradient(circle, var(--pat-dots) 1.2px, transparent 1.7px); background-size: 13px 13px; background-position: -6px -6px; }

/* Contents. */
.lp-toc { max-width: 980px; margin-top: clamp(90px, 14vh, 170px); }
.lp-toc h2 { font: 400 clamp(30px, 3.4vw, 44px)/1 "p-fraunces", Georgia, serif; letter-spacing: -0.02em; margin: 0 0 26px; }
.lp-toc-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line2); }
.lp-toc-list a { display: block; padding: 24px 0 26px; border-top: 1px solid var(--line2); color: var(--ink); text-decoration: none; }
.lp-toc-row { display: flex; align-items: baseline; gap: 16px; }
.lp-toc-title { font: 400 clamp(24px, 2.8vw, 36px)/1.15 "p-fraunces", Georgia, serif; letter-spacing: -0.015em; transition: transform 0.5s var(--ease); }
.lp-toc-dots { flex: 1; min-width: 30px; border-bottom: 2px dotted var(--line2); transform: translateY(-7px); transition: border-color 0.3s; }
.lp-toc-meta { font-size: 13.5px; font-weight: 600; color: var(--ink2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lp-toc-text { display: block; margin-top: 8px; max-width: 58ch; font: 400 16.5px/1.55 "p-lora", Georgia, serif; color: var(--ink2); }
.lp-toc-list a:hover .lp-toc-title { transform: translateX(10px); }
.lp-toc-list a:hover .lp-toc-dots { border-color: var(--accent); }
.lp-colophon { margin: 56px auto 0; max-width: 46ch; text-align: center; font: 400 15px/1.6 "p-lora", Georgia, serif; color: var(--muted); }

@media (max-width: 900px) {
  .lp-open-foot > * { grid-column: 1 / -1; }
  .lp-fold-stick { grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: center; }
  .has-fold .lp-fold-stick { padding-block: 24px 110px; }
  .lp-fold-notes { min-height: 0; }
  .has-fold .lp-note:not(.is-on) { display: none; }
  .lp-h2 { margin-bottom: 14px; }
  .lp-paper { grid-template-columns: minmax(0, 1fr); }
  .lp-paper-copy { order: 0; }
}
@media (max-width: 760px) {
  .lp-open, .lp-fold, .lp-paper, .lp-toc { padding-inline: 16px; }
  .lp-open { padding-top: 34px; }
  .lp-toc-meta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Text on a journal page: like the PDF, without kerning or ligatures. */
.pdf-mul { mix-blend-mode: multiply; }
.pdf-text { font-kerning: none; font-variant-ligatures: none; font-feature-settings: "kern" 0, "liga" 0, "calt" 0, "locl" 0, "dlig" 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Bible booklets. */
.bk-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px 10px; }
.bk-book { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; font-size: 14px; cursor: pointer; }
.bk-book:hover { background: var(--bg); }
.bk-book input { width: 17px; height: 17px; accent-color: var(--accent); }
.bk-book:has(input:checked) { background: var(--lav); font-weight: 600; }
.bk-fonts { max-height: 300px; margin-bottom: 12px; }
.step .field select { font: 500 15px var(--sans); padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--bg); }

/* Logging in and the account. */
.auth { max-width: 1220px; margin: 0 auto; padding: clamp(40px, 8vh, 96px) 20px 80px; display: grid; justify-items: center; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 40px); }
.auth-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--lav); color: var(--lav-ink); margin-bottom: 18px; }
.auth-icon .icon { width: 24px; height: 24px; }
.auth-title { font-size: clamp(34px, 5vw, 46px); }
.auth-lede { color: var(--ink2); margin: 12px 0 22px; }
.auth-h2 { font: 400 24px/1.2 var(--display); margin: 34px 0 14px; padding-top: 26px; border-top: 1px solid var(--line); }
.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink2); }
.auth-field input { font: 500 16px var(--sans); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line2); border-radius: 12px; padding: 10px 14px; min-height: 48px; width: 100%; transition: border-color 0.2s, box-shadow 0.2s; }
.auth-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--lav); }
.auth-submit { margin-top: 6px; width: 100%; }
.auth-actions { margin: 0; }
.auth-out { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.auth-error, .auth-note { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; margin: 0 0 18px; font-size: 15px; }
.auth-error { background: var(--peach); color: var(--peach-ink); }
.auth-note { background: var(--mint); color: var(--mint-ink); }
.auth-error .icon, .auth-note .icon { flex: none; margin-top: 2px; }
.lp-toc-list .lp-toc-item { display: block; padding: 24px 0 26px; border-top: 1px solid var(--line2); color: var(--ink); }
@media (max-width: 600px) { .auth { padding-inline: 16px; } }
