/* Shema Journal. Parchment, olive ink and a thin gold line, after the
   banner. Rounded corners and soft warm shadows, no gradients. */
@font-face { font-family: "Cormorant"; src: url(/static/fonts/cormorant.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/static/fonts/cormorant-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "FrankRuhl"; src: url(/static/fonts/frankruhl-shema.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0590-05FF; }
@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: #fdf7e9;
  --surface: #fffdf8;
  --tint: #f7f0de;
  --ink: #2c3620;
  --ink2: #4a5238;
  --muted: #666a54;
  --line: #ece2c9;
  --line2: #dccdaa;
  --sage: #eef0e0; --sage-2: #d5dbbd; --sage-ink: #46522c;
  --wheat: #f6ecd2; --wheat-2: #e9d7a6; --wheat-ink: #74571b;
  --leaf: #e6edd8; --leaf-2: #c9d8b0; --leaf-ink: #3c5527;
  --clay: #f6e4d6; --clay-2: #e9c6ac; --clay-ink: #8a4623;
  --butter: #f8edc4;
  --accent: #46502e;
  --gold: #c8a05e;
  --gold-ink: #7a5c22;
  --grad: var(--accent);
  --grad-soft: var(--sage);
  --radius: 16px;
  --radius-s: 12px;
  --radius-l: 22px;
  --round: 999px;
  --shadow-s: 0 1px 2px rgba(74, 60, 24, 0.06), 0 6px 16px -9px rgba(74, 60, 24, 0.2);
  --shadow: 0 2px 4px rgba(74, 60, 24, 0.06), 0 14px 30px -14px rgba(74, 60, 24, 0.3);
  --shadow-l: 0 24px 50px -24px rgba(52, 44, 20, 0.35), 0 6px 16px -10px rgba(52, 44, 20, 0.14);
  --display: "Cormorant", "p-cormorant", Georgia, serif;
  --serif: "p-lora", Georgia, serif;
  --hebrew: "FrankRuhl", "Times New Roman", 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; font-variant-numeric: lining-nums; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--sage-ink); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 5px; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: var(--radius); 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: 500; letter-spacing: -0.005em; line-height: 1.1; margin: 0; font-variant-numeric: lining-nums; }
h3 { font-weight: 600; letter-spacing: 0; }

/* Top bar: the name as it is written on the banner, the menu in the middle. */
.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: 10px 20px; }
.topbar.is-scrolled { border-bottom-color: var(--line2); }
.brand { display: inline-grid; justify-items: start; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-name { display: block; width: 160px; height: auto; }
.brand-sub { margin: -1px 0 0 3px; font: italic 500 14px/1 var(--display); font-variant-numeric: lining-nums; color: var(--gold-ink); letter-spacing: 0.01em; white-space: nowrap; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.topnav { display: flex; gap: 2px; 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 > .icon { display: none; }
.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: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.topnav a:hover::after { transform: scaleX(0.4); }
.topnav a[aria-current]::after { transform: scaleX(1); }
.topnav a.is-soon { color: var(--muted); }
.soon { font-size: 10.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-ink); border: 1px solid var(--line2); border-radius: 4px; padding: 3px 6px; }
.topbar-cta { flex: none; }

/* Bottom bar on phones. */
.pillbar { display: none; border-radius: var(--radius-l); }

/* Buttons. */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: var(--round); border: 1px solid transparent; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--accent); color: var(--surface); box-shadow: 0 8px 18px -10px rgba(53, 62, 33, 0.75); }
.btn-dark:hover { color: var(--surface); background: #353e21; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line2); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink2); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-large { min-height: 52px; 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; flex: 1 0 auto; }
.eyebrow { display: block; font-size: 14px; font-weight: 600; color: var(--ink2); margin: 0 0 10px; }

/* A thin gold line with the cross of the banner in the middle. */
.rule { display: flex; align-items: center; gap: 16px; width: min(100%, 340px); color: var(--gold); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.rule svg { width: 20px; height: 25px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* Footer. */
.footer { margin-top: 64px; border-top: 1px solid var(--line2); background: var(--tint); }
.footer-inner { max-width: 1220px; margin: 0 auto; padding: 44px 20px 26px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr); gap: 32px 48px; align-items: start; }
.footer-brand p { color: var(--ink2); font: 400 15.5px/1.55 var(--serif); margin: 14px 0 0; max-width: 34ch; }
.footer-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; color: var(--ink2); font: 400 15px/1.5 var(--serif); }
.footer-facts li { display: flex; align-items: flex-start; gap: 10px; }
.footer-facts .icon { color: var(--gold-ink); margin-top: 3px; }
.footer-verse { margin: 0; display: grid; gap: 4px; justify-items: end; text-align: right; color: var(--ink2); font: italic 500 17px/1.3 var(--display); font-variant-numeric: lining-nums; }
.footer-verse .he { font: 500 30px/1.3 var(--hebrew); color: var(--ink); }
.footer-small { max-width: 1220px; margin: 0 auto; padding: 0 20px 32px; color: var(--muted); font-size: 12.5px; }
.footer-small a { color: inherit; }
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-verse { justify-items: start; text-align: left; }
}

/* 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-l); 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 { display: block; flex: none; }
.step-badge .icon { display: none; }
.step-num { color: var(--gold-ink); font: italic 500 44px/1 var(--display); font-variant-numeric: lining-nums; display: block; }
.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: var(--radius); 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: var(--radius); background: var(--surface); color: var(--sage-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: var(--round); background: var(--surface); 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(--sage); color: var(--sage-ink); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.stepper-btn:hover { background: var(--sage-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: 5px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface); 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: var(--radius); 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: var(--surface); }
.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: var(--radius); background: var(--surface); color: var(--accent); box-shadow: var(--shadow-s); }
.paper { display: block; border-radius: 4px; background: var(--surface); 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: var(--surface); box-shadow: 0 0 0 4px var(--sage), var(--shadow-s); }
.choice:has(input:checked) .paper { border-color: var(--accent); background: var(--sage); }
.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: var(--radius); 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: var(--surface); }
.pattern-icon { width: 44px; height: 55px; filter: drop-shadow(0 4px 8px rgba(52, 44, 20, 0.08)); }
.pattern-paper { fill: var(--surface); 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: var(--surface); box-shadow: 0 0 0 4px var(--sage); }
.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: var(--round); 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: var(--surface); }
.colour svg { width: 28px; height: 28px; transition: transform 0.4s var(--ease); }
.colour:has(input:checked) { border-color: var(--accent); background: var(--surface); }
.colour:has(input:checked) svg { transform: scale(1.12); }
.tones { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--round); background: var(--bg); border: 1px solid var(--line); }
.tone { position: relative; }
.tone span { display: block; padding: 9px 18px; border-radius: var(--round); 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(--accent); color: var(--surface); 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: var(--radius); 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: var(--radius); border: 1.5px solid transparent; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.font:hover { background: var(--surface); }
.font:has(input:checked) { border-color: var(--accent); background: var(--surface); 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: var(--radius); 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(--sage); }
.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: var(--radius); 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: var(--surface); 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-l); background: var(--surface); 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: var(--radius); background: var(--bg); }
.summary-figures > div:nth-child(1) { background: var(--sage); }
.summary-figures > div:nth-child(2) { background: var(--wheat); }
.summary-figures > div:nth-child(3) { background: var(--leaf); }
.figure { display: block; font: 500 33px/1 var(--serif); letter-spacing: -0.005em; }
.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: var(--radius-l); 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); }
.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(--clay); color: var(--clay-ink); border-radius: var(--radius); 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: 10px 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: var(--radius-l); background: var(--surface); border: 1px solid var(--line2); box-shadow: 0 12px 30px -12px rgba(60, 50, 20, 0.4), 0 2px 6px rgba(52, 44, 20, 0.06); }
  .pillbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; height: 48px; border-radius: var(--radius); 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(--accent); color: var(--surface); }
  body { ; }
  .footer { margin-top: 56px; padding-bottom: 92px; }
  body.is-designing { padding-bottom: 92px; }
  .journal-grid { padding: 0 12px; }
  .step { padding: 20px 16px 22px; border-radius: var(--radius-l); }
  .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; border-radius: var(--round); }
  .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; position: relative; }
.page-head::before { content: ""; display: block; width: min(100%, 340px); height: 25px; margin-bottom: 20px; background: url(/static/brand/rule.svg) left center / contain no-repeat; }
.page-head::after { content: ""; position: absolute; right: 20px; bottom: 18px; width: clamp(130px, 15vw, 190px); aspect-ratio: 480 / 282; background: url(/static/brand/sprig.webp) center / contain no-repeat; pointer-events: none; }
@media (max-width: 900px) {
  .page-head::after { display: none; }
}
.page-title { font: 500 clamp(40px, 5.4vw, 76px)/1.02 var(--display); font-variant-numeric: lining-nums; letter-spacing: -0.005em; 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 with the banner, what shema asks,
   the three steps, a table of contents, a paper sample, the print guide
   and the subscription. Parchment, olive and gold; no gradients. */
.lp-open, .lp-shema, .lp-how, .lp-make, .lp-plan, .lp-paper, .lp-toc { max-width: 1220px; margin: 0 auto; padding-inline: 20px; }
.lp-open { padding-top: clamp(4px, 1.5vh, 18px); display: grid; justify-items: center; text-align: center; }
.lp-banner { display: block; width: min(100%, 880px); }
.lp-banner img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent); mask-composite: intersect; }
.lp-title { margin-top: clamp(6px, 1.6vh, 18px); font: 500 clamp(34px, 4.4vw, 56px)/1.08 var(--display); font-variant-numeric: lining-nums; letter-spacing: -0.005em; text-wrap: balance; }
.lp-title em { display: block; font-style: italic; color: var(--gold-ink); }
.lp-lede { margin: 22px 0 0; font: 400 clamp(17px, 1.4vw, 19.5px)/1.65 var(--serif); color: var(--ink2); max-width: 60ch; text-wrap: pretty; }
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: 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(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: text-decoration-color 0.25s; }
.lp-link:hover { color: var(--ink); text-decoration-color: var(--accent); }
.lp-h2 { font: 500 clamp(32px, 3.8vw, 50px)/1.08 var(--display); font-variant-numeric: lining-nums; letter-spacing: -0.005em; margin: 0 0 22px; }
.lp-soon { display: inline-flex; align-items: flex-start; gap: 8px; margin: 22px 0 0; font-size: 14.5px; color: var(--muted); text-align: left; }
.lp-soon .icon { width: 17px; height: 17px; flex: none; margin-top: 2px; }

/* What shema asks: hear, listen, give your attention. Under it the Shema
   itself, set as a bookplate. */
.lp-shema { margin-top: clamp(70px, 11vh, 130px); }
.lp-shema-head { display: grid; justify-items: center; text-align: center; }
.lp-shema-head .lp-h2 { margin: 16px 0 16px; font-style: italic; }
.lp-shema-head p { margin: 0; max-width: 58ch; font: 400 18px/1.65 var(--serif); color: var(--ink2); text-wrap: pretty; }
.lp-three { list-style: none; margin: clamp(36px, 6vh, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-three > li { padding: 2px clamp(18px, 3vw, 44px) 6px; border-left: 1px solid var(--line2); }
.lp-three > li:first-child { border-left: 0; padding-left: 0; }
.lp-three > li:last-child { padding-right: 0; }
.lp-three h3 { font: italic 500 clamp(30px, 3vw, 40px)/1.1 var(--display); font-variant-numeric: lining-nums; letter-spacing: 0; color: var(--accent); }
.lp-three p { margin: 12px 0 0; max-width: 38ch; font: 400 16.5px/1.65 var(--serif); color: var(--ink2); }
.shema { position: relative; max-width: 820px; margin: clamp(56px, 9vh, 96px) auto 0; padding: clamp(30px, 5vw, 56px) clamp(22px, 6vw, 76px) clamp(26px, 4vw, 44px); text-align: center; background: var(--surface); border: 1px solid var(--gold); outline: 1px solid var(--line2); outline-offset: 6px; }
.shema-sprig { position: absolute; top: -46px; right: -34px; width: clamp(120px, 17vw, 200px); height: auto; pointer-events: none; }
.shema-he { margin: 0; font: 500 clamp(40px, 6vw, 66px)/1.35 var(--hebrew); color: var(--ink); }
.shema blockquote { margin: 0; }
.shema-first { margin: 8px 0 0; font: italic 500 clamp(24px, 2.8vw, 34px)/1.25 var(--display); font-variant-numeric: lining-nums; color: var(--accent); text-wrap: balance; }
.shema-rest { margin: 20px auto 0; max-width: 62ch; font: 400 16.5px/1.8 var(--serif); color: var(--ink2); text-align: left; }
.shema-rest sup { margin-right: 3px; font: 650 10.5px/1 var(--sans); color: var(--gold-ink); vertical-align: 0.55em; }
.shema figcaption { margin-top: 22px; font: 600 12px/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); }

/* How it works: three steps side by side. */
.lp-how { margin-top: clamp(80px, 13vh, 150px); }
.lp-how-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.lp-how-list > li { position: relative; padding-top: 18px; border-top: 1px solid var(--line2); }
.lp-how-n { display: block; font: italic 500 clamp(50px, 5.4vw, 76px)/1 var(--display); font-variant-numeric: lining-nums; color: var(--gold); }
.lp-how-list h3 { margin: 6px 0 10px; font: 600 clamp(24px, 2.4vw, 31px)/1.15 var(--display); font-variant-numeric: lining-nums; letter-spacing: 0; }
.lp-how-list p { margin: 0; max-width: 38ch; font: 400 16.5px/1.6 var(--serif); color: var(--ink2); }
.lp-how-list .lp-how-meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--gold-ink); font: 600 13.5px/1.2 var(--sans); }
.lp-how-meta .icon { width: 16px; height: 16px; flex: none; }

/* From sheet to journal: the print guide of a ring binder and a booklet. */
.lp-make { margin-top: clamp(80px, 12vh, 150px); }
.lp-make-head { max-width: 760px; }
.lp-make-head > p { margin: 0; font: 400 18px/1.6 var(--serif); color: var(--ink2); max-width: 56ch; }
.lp-make-guide { margin-top: 34px; padding: clamp(14px, 2.4vw, 28px); border: 1px solid var(--line2); border-radius: var(--radius-l); background: var(--surface); }
.lp-make-name { margin: 0 0 16px; font: 600 17px/1.2 var(--sans); color: var(--ink2); }
.lp-make .pg-steps { font-size: 15.5px; }
.lp-make:has(input[value="ring"]:checked) .lp-make-booklet, .lp-make:has(input[value="booklet"]:checked) .lp-make-ring { display: none; }
.lp-make:has(input:checked) .lp-make-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* On a narrow screen the picture stays in sight above the steps. */
@media (max-width: 899px) and (min-height: 620px) {
  .lp-make .pg-stage { position: sticky; top: 10px; z-index: 3; box-shadow: 0 -12px 0 0 var(--surface); }
}

/* The subscription on the home page. */
.lp-plan { margin-top: clamp(90px, 14vh, 170px); }
.lp-plan-head { max-width: 760px; margin-bottom: 36px; }
.lp-plan-head > p { margin: 0; font: 400 18px/1.6 var(--serif); color: var(--ink2); max-width: 52ch; }

/* 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 var(--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: var(--round); border: 1px solid var(--line2); background: var(--surface); 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(--accent); border-color: var(--accent); color: var(--surface); }
.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(--sage-2); 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(52, 44, 20, 0.1), 0 30px 50px -30px rgba(52, 44, 20, 0.4); 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 { margin-top: clamp(90px, 14vh, 170px); }
.lp-toc h2 { font: 500 clamp(30px, 3.4vw, 44px)/1 var(--display); font-variant-numeric: lining-nums; letter-spacing: -0.005em; 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: 22px 0 24px; 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: 500 clamp(25px, 2.9vw, 37px)/1.15 var(--display); font-variant-numeric: lining-nums; 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: lining-nums tabular-nums; }
.lp-toc-text { display: block; margin-top: 8px; max-width: 58ch; font: 400 16.5px/1.55 var(--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(--gold); }

@media (max-width: 900px) {
  .lp-three { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .lp-three > li { border-left: 0; padding: 22px 0 0; border-top: 1px solid var(--line2); }
  .lp-three > li:first-child { border-top: 0; padding-top: 0; }
  .lp-three p { max-width: 56ch; }
  .lp-how-list { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .lp-how-list p { max-width: 52ch; }
  .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-shema, .lp-how, .lp-make, .lp-plan, .lp-paper, .lp-toc { padding-inline: 16px; }
  .lp-banner { width: calc(100% + 32px); margin-inline: -16px; }
  .shema { margin-inline: 6px; }
  .shema-sprig { top: -34px; right: -14px; }
  .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: var(--radius-s); 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(--sage); font-weight: 600; }
.bk-fonts { max-height: 300px; margin-bottom: 12px; }
.step .field select { font: 500 15px var(--sans); padding: 10px 12px; border-radius: var(--radius); 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-l); padding: clamp(24px, 5vw, 40px); box-shadow: var(--shadow); }
.auth-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--sage); color: var(--sage-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; font: 400 17px/1.55 var(--serif); }
.auth-h2 { font: 500 24px/1.2 var(--display); font-variant-numeric: lining-nums; 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: var(--radius); 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(--sage); }
.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: var(--radius); padding: 12px 14px; margin: 0 0 18px; font-size: 15px; }
.auth-error { background: var(--clay); color: var(--clay-ink); }
.auth-note { background: var(--leaf); color: var(--leaf-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; } }
.auth-alt { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }
.auth-alt + .auth-alt { margin-top: 8px; }
.auth-lede a, .auth-alt a { color: var(--sage-ink); font-weight: 600; }
.auth-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-state { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; color: var(--ink2); font-size: 15px; }
.auth-state .icon { flex: none; margin-top: 2px; color: var(--accent); }
.auth-danger { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink2); }
.auth-danger summary { cursor: pointer; font-weight: 600; color: var(--clay-ink); }
.auth-danger p { margin: 12px 0 16px; }
.btn:disabled { background: var(--line); color: var(--muted); border-color: var(--line2); box-shadow: none; cursor: not-allowed; transform: none; }
.btn:disabled::before { display: none; }

/* The subscription: three ways to use Ascend. */
.plan { max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.plan-note { display: flex; gap: 10px; align-items: flex-start; max-width: 720px; padding: 14px 16px; margin: 0 0 26px; color: var(--leaf-ink); font: 400 15.5px/1.55 var(--serif); border-radius: var(--radius); background: var(--leaf); }
.plan-note .icon { flex: none; margin-top: 3px; }
.plan-warn { background: var(--butter); color: var(--gold-ink); }
.plan-warn a { color: inherit; font-weight: 600; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line2); border-radius: var(--radius-l); box-shadow: var(--shadow-s); padding: clamp(22px, 2.6vw, 32px); }
.plan-card-main { border-color: var(--gold); box-shadow: var(--shadow); }
.plan-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--sage); color: var(--sage-ink); margin-bottom: 18px; }
.plan-icon-mint { background: var(--leaf); color: var(--leaf-ink); }
.plan-icon-sky { background: var(--wheat); color: var(--wheat-ink); }
.plan-icon .icon { width: 24px; height: 24px; }
.plan-name { font: 600 17px/1.2 var(--sans); margin: 0; color: var(--ink2); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 8px 0 18px; }
.plan-amount { font: 500 clamp(28px, 2.8vw, 38px)/1.1 var(--serif); letter-spacing: -0.005em; }
.plan-amount-word { font-size: clamp(28px, 2.8vw, 36px); }
.plan-per { color: var(--muted); font-size: 15px; }
.plan-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; color: var(--ink2); font: 400 15.5px/1.5 var(--serif); }
.plan-list li { position: relative; padding-left: 26px; }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan-action { margin: auto 0 0; }
.plan-action .btn { width: 100%; min-height: 54px; }
.plan-state { display: flex; gap: 10px; align-items: flex-start; margin: auto 0 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--leaf); color: var(--leaf-ink); font-size: 15px; }
.plan-state .icon { flex: none; margin-top: 2px; }
.plan-small { margin: auto 0 14px; color: var(--muted); font: 400 14.5px/1.5 var(--serif); }
.plan-state + .plan-small, .plan-state + .plan-action, .plan-small + .plan-action { margin-top: 0; }
.plan-small a { color: var(--sage-ink); font-weight: 600; }
@media (max-width: 980px) { .plan-grid { grid-template-columns: 1fr; max-width: 560px; } .plan-card-main { order: -1; } }
@media (max-width: 760px) { .plan { padding: 0 16px; } }

/* What a visitor without a subscription sees where a print file would be. */
.locked { display: grid; justify-items: start; gap: 10px; margin: 20px 0 22px; padding: 18px; border-radius: var(--radius-l); background: var(--butter); color: #4f3f0c; }
.locked-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--surface); color: var(--gold-ink); }
.locked-title { margin: 0; font-weight: 700; font-size: 16px; }
.locked-text { margin: 0 0 6px; font-size: 14.5px; }
.locked .btn { width: 100%; }

/* Running text, as on the privacy page. */
.prose { max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.prose > * { max-width: 62ch; }
.prose h2 { font: 500 26px/1.2 var(--display); font-variant-numeric: lining-nums; margin: 34px 0 8px; }
.prose p { margin: 0 0 12px; color: var(--ink2); font: 400 17px/1.65 var(--serif); }
.prose a { color: var(--sage-ink); }
.prose code { font-size: 0.9em; background: var(--line); border-radius: 4px; padding: 1px 6px; }
.footer-small a { color: inherit; }

/* The print guide: how to print, cut, stack, fold and punch. The steps come
   from the imposition (internal/impose); guide.js draws a picture of each. */
.pg { display: grid; gap: 14px; text-align: left; }
.pg-steps { margin: 0; padding-left: 1.3em; font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
.pg-steps > li { margin: 0 0 8px; padding-left: 4px; }
.pg-steps > li::marker { color: var(--accent); font-weight: 700; }
.pg-on .pg-steps { padding: 0; list-style: none; counter-reset: pg; display: grid; gap: 2px; }
.pg-on .pg-steps > li { position: relative; margin: 0; padding: 0; counter-increment: pg; border-radius: var(--radius); transition: background 0.3s ease; }
.pg-on .pg-steps > li::before { content: counter(pg); position: absolute; left: 9px; top: 9px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 650 12px/1 var(--sans); background: var(--line); color: var(--ink2); pointer-events: none; transition: background 0.3s ease, color 0.3s ease; }
.pg-step { display: block; width: 100%; padding: 9px 12px 9px 42px; border: 0; border-radius: inherit; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pg-step:hover { color: var(--ink); }
.pg-step:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pg-on .pg-steps > li.is-on { background: var(--sage); color: var(--ink); }
.pg-on .pg-steps > li.is-on::before { background: var(--accent); color: var(--surface); }
.pg-stage { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-s); background: var(--sage); overflow: hidden; container-type: inline-size; }
.pg-scene { position: absolute; inset: 0; perspective: 900px; }
.pg-scene > *, .pg-book > * { position: absolute; }
.pg-paper { display: grid; background: var(--surface); box-shadow: 0 0 0 1px rgba(52, 44, 20, 0.16); }
.pg-pile > .pg-paper, .pg-half > .pg-paper { position: absolute; inset: 0; }
.pg-deep-1 { box-shadow: 0 0 0 1px rgba(52, 44, 20, 0.16), 3px 3px 0 0 var(--surface), 3px 3px 0 1px rgba(52, 44, 20, 0.16); }
.pg-deep-2 { box-shadow: 0 0 0 1px rgba(52, 44, 20, 0.16), 3px 3px 0 0 var(--surface), 3px 3px 0 1px rgba(52, 44, 20, 0.16), 6px 6px 0 0 var(--surface), 6px 6px 0 1px rgba(52, 44, 20, 0.16); }
.pg-deep-3 { box-shadow: 0 0 0 1px rgba(52, 44, 20, 0.16), 3px 3px 0 0 var(--surface), 3px 3px 0 1px rgba(52, 44, 20, 0.16), 6px 6px 0 0 var(--surface), 6px 6px 0 1px rgba(52, 44, 20, 0.16), 9px 9px 0 0 var(--surface), 9px 9px 0 1px rgba(52, 44, 20, 0.16); }
.pg-cell { display: grid; place-items: center; min-width: 0; font: 650 15px/1 var(--sans); font-size: 4.6cqw; font-variant-numeric: lining-nums tabular-nums; color: var(--ink2); box-shadow: inset 1px 0 0 rgba(52, 44, 20, 0.1), inset 0 1px 0 rgba(52, 44, 20, 0.1); }
.pg-cell.is-mark { background: var(--butter); color: var(--ink); }
.pg-label { transform: translate(-50%, -100%); white-space: nowrap; font: 550 11px/1.2 var(--sans); font-size: clamp(10px, 3cqw, 14px); color: var(--ink2); }
.pg-chip { padding: 0.35em 0.9em; border-radius: var(--round); background: var(--surface); color: var(--sage-ink); }
.pg-hinge { border-left: 2px dotted var(--accent); }
.pg-turn { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pg-cut { z-index: 8; }
.pg-cut-v { border-left: 2px dashed var(--clay-ink); }
.pg-cut-h { border-top: 2px dashed var(--clay-ink); }
.pg-front { z-index: 5; }
.pg-pile.is-blank .pg-paper { background: rgba(255, 255, 255, 0.55); box-shadow: none; outline: 1.5px dashed rgba(52, 44, 20, 0.38); outline-offset: -1px; }
.pg-pile.is-blank .pg-cell { box-shadow: none; }
.pg-tag { position: absolute; inset: 0; display: grid; place-items: center; font: 550 11px/1 var(--sans); font-size: clamp(10px, 3cqw, 14px); color: var(--muted); }
.pg-rank { position: absolute; right: 3%; bottom: 3%; width: 5.2cqw; min-width: 16px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--surface); font: 700 11px/1 var(--sans); font-size: clamp(10px, 3cqw, 14px); }
.pg-under .pg-cell { opacity: 0; animation: pg-out 0.45s ease calc(var(--wait, 0.9s) + 0.5s) both; }
.pg-book { transform-style: preserve-3d; }
.pg-half { top: 0; width: 50%; height: 100%; }
.pg-half-l { left: 0; transform-origin: 100% 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pg-half-l .pg-paper { box-shadow: 0 0 0 1px rgba(52, 44, 20, 0.16), inset -12px 0 14px -12px rgba(52, 44, 20, 0.22); }
.pg-half-r { left: 50%; transform: translateZ(1px); }
.pg-crease { left: 50%; top: 4%; bottom: 4%; border-left: 1.5px dashed rgba(52, 44, 20, 0.4); transform: translateZ(2px); }
.pg-spine { border-left: 3px solid var(--ink2); }
.pg-fold { left: 50%; top: 0; bottom: 0; border-left: 3px solid var(--ink2); transform: translateZ(2px); }
.pg-staple { border-radius: 2px; background: var(--ink); z-index: 6; }
.pg-margin { background: rgba(70, 80, 46, 0.09); }
.pg-hole { border-radius: 50%; background: var(--sage); box-shadow: inset 0 0 0 1.5px rgba(52, 44, 20, 0.5); z-index: 6; }
.pg-move { transform: var(--to, none); animation: pg-move var(--dur, 1.15s) var(--ease) var(--wait, 0.6s) both; }
.pg-out { opacity: 0; animation: pg-out 0.45s ease var(--wait, 1.9s) both; }
.pg-fade { animation: pg-fade 0.5s ease var(--wait, 0.3s) both; }
.pg-pop { animation: pg-pop 0.4s var(--ease) var(--wait, 0.5s) both; }
@keyframes pg-move { from { transform: var(--from, none); } }
@keyframes pg-out { from { opacity: var(--shown, 1); } }
@keyframes pg-fade { from { opacity: 0; } }
@keyframes pg-pop { from { transform: scale(0); } }
.pg-still .pg-move { animation: none; transform: var(--mid, var(--to, none)); }
.pg-still .pg-out, .pg-still .pg-under .pg-cell { animation: none; opacity: var(--shown, 1); }
.pg-still .pg-fade, .pg-still .pg-pop { animation: none; }
@media (min-width: 900px) {
  .pg-wide { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px; align-items: start; }
}

/* Having a journal made: the order form and the page that follows it. */
.order-head { padding-bottom: 26px; }
.order-head .page-title { font-size: clamp(32px, 3.8vw, 52px); max-width: 22ch; }
.order-number { margin: 0 0 10px; font: 600 14px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage-ink); }
.order { max-width: 1220px; margin: 0 auto; padding: 0 20px 80px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.order-main, .order-side { display: grid; gap: 22px; min-width: 0; }
.order-card { background: var(--surface); border: 1px solid var(--line2); border-radius: var(--radius-l); box-shadow: var(--shadow-s); padding: clamp(20px, 2.6vw, 30px); min-width: 0; }
.order-summary { position: sticky; top: 96px; }
.order-card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--sage); color: var(--sage-ink); margin-bottom: 14px; }
.order-card-icon-sky { background: var(--wheat); color: var(--wheat-ink); }
.order-card-icon .icon { width: 22px; height: 22px; }
.order-h2 { font: 500 24px/1.2 var(--display); font-variant-numeric: lining-nums; margin: 0 0 14px; overflow-wrap: anywhere; }
.order-form .order-h2 { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.order-form .order-h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.order-spec { margin: -6px 0 16px; color: var(--ink2); font-size: 15px; }
.order-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.order-wide { grid-column: 1 / -1; }
.auth-field em { font-style: normal; font-weight: 400; color: var(--muted); }
.auth-field select, .auth-field textarea { font: 500 16px var(--sans); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line2); border-radius: var(--radius); padding: 10px 14px; min-height: 48px; width: 100%; transition: border-color 0.2s, box-shadow 0.2s; }
.auth-field textarea { resize: vertical; line-height: 1.5; }
.auth-field select:focus, .auth-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--sage); }
.auth-field [aria-invalid="true"], .order-check [aria-invalid="true"] { border-color: var(--clay-ink); }
.field-error { display: block; font-size: 14px; font-weight: 500; color: var(--clay-ink); }
.order-check { display: flex; gap: 12px; align-items: flex-start; margin: 26px 0 6px; font-size: 15px; color: var(--ink2); }
.order-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.order-check a, .order-small a, .order-help a { color: var(--sage-ink); font-weight: 600; }
.order-submit { margin-top: 18px; width: 100%; }
.order-small { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.order-lines { margin: 0; display: grid; gap: 0; font-size: 15px; }
.order-lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.order-lines > div:first-child { border-top: 0; }
.order-lines dt { color: var(--muted); }
.order-lines dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.order-total dt, .order-total dd { font-size: 17px; color: var(--ink); font-weight: 700; }
.order-code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; letter-spacing: 0.02em; }
.order-facts { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14.5px; color: var(--ink2); }
.order-facts li { display: flex; gap: 10px; align-items: flex-start; }
.order-facts .icon { flex: none; margin-top: 2px; color: var(--accent); }
.order-actions { margin: 18px 0 0; }
.order-pay { display: grid; gap: 14px; justify-items: start; border-color: var(--sage-2); }
.order-pay p { margin: 0; color: var(--ink2); }
.order-address { font-style: normal; font-size: 16px; line-height: 1.6; color: var(--ink); }
.order-help { margin: 0; }
.order .plan-note { margin: 0; max-width: none; }
.order-form .plan-note { margin-bottom: 22px; }

.track { list-style: none; margin: 0; padding: 0; display: grid; }
.track-step { position: relative; display: flex; gap: 14px; align-items: flex-start; padding-bottom: 22px; color: var(--muted); }
.track-step:last-child { padding-bottom: 0; }
.track-step::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line2); }
.track-step:last-child::before { display: none; }
.track-step.is-done::before { background: var(--leaf-2); }
.track-step.is-now::before { background: var(--line2); }
.track-dot { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line2); color: var(--muted); }
.track-dot .icon { width: 19px; height: 19px; }
.track-step.is-done .track-dot { background: var(--leaf); border-color: var(--leaf-2); color: var(--leaf-ink); }
.track-step.is-now .track-dot { background: var(--accent); border-color: var(--accent); color: var(--surface); box-shadow: 0 0 0 5px var(--sage); }
.track-text { display: grid; gap: 1px; padding-top: 1px; }
.track-name { font-weight: 600; font-size: 16px; }
.track-step.is-done .track-name { color: var(--ink); }
.track-when { font-size: 14px; }

.order-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 10px; }
.order-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line2); border-radius: var(--radius); background: var(--bg); }
.order-list a { display: grid; gap: 2px; min-width: 0; text-decoration: none; color: var(--ink); }
.order-list-name { font-weight: 600; overflow-wrap: anywhere; }
.order-list-when { font-size: 13.5px; color: var(--muted); }
.order-list a:hover .order-list-name { color: var(--sage-ink); }

.tag { display: inline-block; flex: none; border-radius: var(--round); padding: 3px 11px; font: 600 13px/1.5 var(--sans); white-space: nowrap; background: var(--line); color: var(--ink2); }
.tag-new { background: var(--butter); color: var(--gold-ink); }
.tag-paid, .tag-pay-paid { background: var(--sage); color: var(--sage-ink); }
.tag-made { background: var(--wheat); color: var(--wheat-ink); }
.tag-shipped { background: var(--clay); color: var(--clay-ink); }
.tag-delivered { background: var(--leaf); color: var(--leaf-ink); }
.tag-pay-open { background: var(--butter); color: var(--gold-ink); }

@media (max-width: 900px) {
  .order { grid-template-columns: 1fr; padding: 0 16px 64px; }
  .order-summary { position: static; order: -1; }
}
@media (max-width: 520px) { .order-fields { grid-template-columns: 1fr; } }

/* The administration. */
.admin { max-width: 1220px; margin: 0 auto; padding: clamp(24px, 5vh, 56px) 20px 80px; display: grid; gap: 22px; }
.admin > * { min-width: 0; }
.admin-kicker { margin: 0 0 6px; font: 600 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-ink); }
.admin-title { font: 500 clamp(30px, 3.6vw, 46px)/1.1 var(--display); font-variant-numeric: lining-nums; letter-spacing: -0.005em; margin: 0 0 18px; overflow-wrap: anywhere; }
.admin-tabs, .filters { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-tabs a, .filters a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: var(--round); border: 1px solid var(--line2); background: var(--surface); color: var(--ink2); font-weight: 600; font-size: 15px; text-decoration: none; }
.admin-tabs a:hover, .filters a:hover { border-color: var(--sage-2); color: var(--sage-ink); }
.admin-tabs a[aria-current="true"], .filters a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.filters a { min-height: 38px; padding: 6px 14px; font-size: 14.5px; }
.filters a span { font-weight: 500; opacity: 0.85; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile { display: grid; gap: 4px; padding: 18px; border-radius: var(--radius-l); border: 1px solid var(--line2); background: var(--surface); box-shadow: var(--shadow-s); color: var(--ink); text-decoration: none; }
.tile:hover { border-color: var(--sage-2); color: var(--ink); }
.tile-value { font: 500 29px/1 var(--serif); }
.tile-label { font-size: 14px; color: var(--muted); }
.admin-card { background: var(--surface); border: 1px solid var(--line2); border-radius: var(--radius-l); box-shadow: var(--shadow-s); padding: clamp(18px, 2.4vw, 28px); min-width: 0; }
.admin-h2 { font: 500 22px/1.2 var(--display); font-variant-numeric: lining-nums; margin: 0 0 14px; }
.admin-h3 { font: 600 15px/1.3 var(--sans); margin: 24px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink2); }
.admin-text { margin: 0 0 16px; color: var(--ink2); font-size: 15.5px; }
.admin-empty { margin: 0; color: var(--muted); font-size: 15px; }
.admin-count { margin: 0; color: var(--ink2); font-size: 15px; }
.admin-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.admin-cols-wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.admin-stack { display: grid; gap: 22px; min-width: 0; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.admin-form { display: grid; gap: 14px; max-width: 460px; justify-items: start; }
.admin-form .auth-field { width: 100%; }
.admin-status { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; color: var(--ink2); }
.admin-search { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.admin-search .auth-field { flex: 1 1 260px; max-width: 420px; }
.admin-quote { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--butter); color: #4a3a0c; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.admin .plan-note { margin: 0; }
.admin .auth-danger p { margin: 12px 0 14px; }
.table-wrap { overflow-x: auto; margin: 0 -6px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 11px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.table thead th { border-top: 0; font: 600 13px/1.3 var(--sans); color: var(--muted); white-space: nowrap; }
.table tbody th { font-weight: 600; white-space: nowrap; }
.table .num { text-align: right; white-space: nowrap; }
.table a { color: var(--sage-ink); font-weight: 600; }
.table-sub { display: block; font-size: 13.5px; color: var(--muted); font-weight: 400; }
.table .tag { margin-left: 4px; }
.table td > .tag { margin-left: 0; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.history li { display: grid; gap: 1px; }
.history-what { font-weight: 600; }
.history-when { font-size: 13.5px; color: var(--muted); }
@media (max-width: 1060px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .admin-cols, .admin-cols-wide { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .admin { padding-inline: 16px; } }
/* On a phone a table reads as a list: each row a block, each cell a line
   with the name of its column in front. */
@media (max-width: 700px) {
  .table-wrap { overflow-x: visible; margin: 0; }
  .table, .table tbody, .table tr, .table th, .table td { display: block; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table tr { padding: 12px 0; border-top: 1px solid var(--line); }
  .table tbody tr:first-child { border-top: 0; padding-top: 0; }
  .table tbody tr:last-child { padding-bottom: 0; }
  .table th, .table td { border: 0; padding: 3px 0; }
  .table tbody th { white-space: normal; font-size: 16px; padding-bottom: 6px; }
  .table td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; text-align: right; overflow-wrap: anywhere; }
  .table td::before { content: attr(data-label); flex: none; color: var(--muted); font-size: 13.5px; text-align: left; }
  .table td.num { white-space: normal; }
}
@media (max-width: 520px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The shop: shelves of products, the page of a product, and the cart. */
.topbar-cart { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--round); border: 1px solid transparent; color: var(--ink); text-decoration: none; transition: background 0.25s, border-color 0.25s; }
.topbar-cart:hover, .topbar-cart[aria-current] { background: var(--surface); border-color: var(--line2); color: var(--ink); }
.topbar-cart .icon { width: 22px; height: 22px; }
.topbar-cart-count { position: absolute; top: 1px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--radius); background: var(--sage-ink); color: var(--surface); font: 700 11.5px/20px var(--sans); text-align: center; }

.art { display: block; width: 100%; height: auto; }
.photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.dot { display: inline-block; flex: none; width: 13px; height: 13px; margin-right: 7px; vertical-align: -1px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(52, 44, 20, 0.14); }

.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: 0 0 18px; font-size: 14.5px; color: var(--muted); }
.crumbs a { color: var(--ink2); font-weight: 550; text-decoration: none; }
.crumbs a:hover { color: var(--sage-ink); text-decoration: underline; }
.crumbs [aria-current] { overflow-wrap: anywhere; }

.shop-head { padding-bottom: 26px; }
.shop-head .page-title { font-size: clamp(36px, 4.6vw, 64px); }
.shop { max-width: 1220px; margin: 0 auto; padding: 0 20px 80px; display: grid; gap: 36px; }
.shop > * { min-width: 0; }
.shop .plan-note { margin: 0; }
.shop-empty { display: grid; justify-items: center; gap: 14px; padding: 44px 20px; border: 1.5px dashed var(--line2); border-radius: var(--radius); text-align: center; color: var(--ink2); }
.shop-empty .art { width: 180px; }
.shop-empty p { margin: 0; max-width: 44ch; }
.shelf { display: grid; gap: 18px; }
.shelf-head { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-end; justify-content: space-between; }
.shelf-title { font: 500 clamp(26px, 2.6vw, 34px)/1.15 var(--display); font-variant-numeric: lining-nums; letter-spacing: -0.005em; margin: 0; }
.shelf-intro { margin: 6px 0 0; max-width: 56ch; font: 400 16.5px/1.55 var(--serif); color: var(--ink2); }
.shelf-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--sage-ink); text-decoration: none; }
.shelf-more:hover { text-decoration: underline; }
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-grid > li { display: flex; min-width: 0; }
@media (min-width: 1000px) {
  .shelf:has(> .shelf-head) { grid-template-columns: 250px minmax(0, 1fr); gap: 18px 40px; align-items: start; padding-top: 26px; border-top: 1px solid var(--line2); }
  .shelf:has(> .shelf-head) .shelf-head { display: grid; gap: 14px; justify-content: start; }
  .shelf:has(> .shelf-head) .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.product-card { display: flex; flex-direction: column; width: 100%; overflow: hidden; border-radius: var(--radius-l); border: 1px solid var(--line2); background: var(--surface); box-shadow: var(--shadow-s); color: var(--ink); text-decoration: none; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s; }
.product-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.product-card-figure .art { transition: transform 0.6s var(--ease); }
.product-card:hover .art { transform: scale(1.04); }
.product-card-figure { display: block; aspect-ratio: 5 / 4; overflow: hidden; background: var(--tint); }
.product-card-body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 16px 18px 18px; }
.product-brand { margin: 0; font: 600 12px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.product-name { font: 600 21px/1.2 var(--display); font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.product-summary { margin: 0; color: var(--ink2); font: 400 15px/1.5 var(--serif); }
.product-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.product-price { margin: 0; font: 500 17px/1.3 var(--serif); }
.shop-facts { list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 15px; color: var(--ink2); }
.shop-facts li { display: flex; gap: 10px; align-items: center; }
.shop-facts .icon { color: var(--accent); }

.product { max-width: 1220px; margin: 0 auto; padding: clamp(24px, 5vh, 56px) 20px 80px; }
.product .plan-note { margin: 0 0 22px; }
.product-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.product-figure { position: sticky; top: 96px; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--tint); }
.product-buy { min-width: 0; }
.product-title { font: 500 clamp(30px, 3.6vw, 48px)/1.08 var(--display); font-variant-numeric: lining-nums; letter-spacing: -0.005em; margin: 6px 0 0; overflow-wrap: anywhere; text-wrap: balance; }
.product-title .tag { vertical-align: middle; margin-left: 8px; }
.product-lede { margin: 14px 0 0; max-width: 46ch; font: 400 18px/1.6 var(--serif); color: var(--ink2); }
.product-cost { margin: 18px 0 0; font: 500 26px/1.1 var(--serif); }
.product-form { display: grid; gap: 18px; justify-items: start; margin-top: 22px; }
.product-pick { width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.product-pick legend { padding: 0; margin-bottom: 10px; font: 600 14.5px/1.3 var(--sans); color: var(--ink2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--round); border: 1.5px solid var(--line2); background: var(--surface); color: var(--ink2); font-weight: 600; font-size: 15px; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.chip:hover span { border-color: var(--sage-2); }
.chip input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--surface); }
.chip input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.parts-count { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--sage-ink); }
.parts-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.parts-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.parts-list label { display: flex; align-items: center; min-width: 0; font-size: 15px; font-weight: 550; }
.parts-name { min-width: 0; overflow-wrap: break-word; }
.parts-list input { flex: none; width: 68px; min-height: 44px; padding: 6px 8px; text-align: center; font: 600 16px var(--sans); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line2); border-radius: var(--radius); }
.parts-list input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--sage); }
.parts-list input:disabled { opacity: 0.45; }
.parts-out { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.product-stock { margin: 0; font-size: 15px; font-weight: 600; color: var(--leaf-ink); }
.product-stock:empty { display: none; }
.product-count { width: 120px; }
.product-add { min-width: min(100%, 280px); }
.product-facts { width: 100%; }
.product-text { margin-top: 48px; padding: 0; }

.cart-empty { max-width: 1220px; margin: 0 auto; padding: 0 20px 80px; display: grid; gap: 14px; justify-items: start; }
.cart-empty .plan-note { margin: 0; }
.cart-empty .order-card-icon { margin: 0; }
.cart-empty-text { margin: 0; font: 400 20px/1.5 var(--serif); color: var(--ink2); }
.cart-rows { list-style: none; margin: 0; padding: 0; }
.cart-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.cart-row:first-child { border-top: 0; padding-top: 0; }
.cart-row:last-child { padding-bottom: 0; }
.cart-thumb { display: block; width: 72px; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.cart-thumb-journal { display: grid; place-items: center; background: var(--sage); color: var(--sage-ink); }
.cart-thumb-journal .icon { width: 26px; height: 26px; }
.cart-what { min-width: 0; }
.cart-name { margin: 0; font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.cart-name a { color: var(--ink); text-decoration: none; }
.cart-name a:hover { color: var(--sage-ink); text-decoration: underline; }
.cart-detail { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.cart-copies { display: flex; gap: 8px; align-items: center; }
.cart-copies select { min-height: 44px; padding: 6px 10px; font: 600 15px var(--sans); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line2); border-radius: var(--radius); }
.cart-sum { margin: 0; min-width: 76px; text-align: right; font-weight: 650; white-space: nowrap; }
.cart-remove { display: flex; }
.cart-remove .icon-btn { width: 44px; height: 44px; border-radius: var(--radius); }
.cart-remove .icon-btn:hover { background: var(--clay); color: var(--clay-ink); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line2); border-radius: var(--round); background: var(--bg); }
.qty button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: var(--round); background: transparent; color: var(--ink); cursor: pointer; }
.qty button:hover { background: var(--sage); color: var(--sage-ink); }
.qty button:disabled { opacity: 0.3; cursor: default; background: transparent; color: var(--ink); }
.qty-count { min-width: 26px; text-align: center; font-weight: 650; }
.cart-on { margin: 0; }
.cart-on a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--sage-ink); text-decoration: none; }
.cart-on a:hover { text-decoration: underline; }
.order-small.cart-free { color: var(--leaf-ink); font-weight: 600; }

.quick-list { list-style: none; margin: 0; padding: 0; }
.quick { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.quick:first-child { border-top: 0; padding-top: 0; }
.quick:last-child { padding-bottom: 0; }
.quick-figure { display: block; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.quick-body { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.quick-name { margin: 0; font: 600 16.5px/1.3 var(--sans); }
.quick-name a { color: var(--ink); text-decoration: none; }
.quick-name a:hover { color: var(--sage-ink); text-decoration: underline; }
.quick-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.quick-form select { max-width: 100%; min-height: 40px; padding: 6px 10px; font: 500 15px var(--sans); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line2); border-radius: var(--radius); }
.extras-lines { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; font-size: 14.5px; color: var(--ink2); }

/* The shop in the administration. */
.pick { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; font-size: 15.5px; }
.pick li { display: flex; gap: 10px; align-items: baseline; }
.pick-count { flex: none; min-width: 34px; text-align: right; font-weight: 700; }
.pick-name { min-width: 0; overflow-wrap: anywhere; }
.admin-back { margin: 0; }
.admin-back a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--sage-ink); text-decoration: none; }
.admin-back a:hover { text-decoration: underline; }
.icon-back { transform: scaleX(-1); }
.admin-card-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.admin-card-head .admin-h2 { margin: 0; }
.admin-h2 .tag { vertical-align: middle; margin-left: 6px; }
.product-edit { display: grid; gap: 16px; }
.product-edit > * { min-width: 0; }
.product-edit > .btn { justify-self: start; }
.product-edit .admin-h2, .product-edit .admin-text { margin: 0; }
.product-edit .admin-h3 { margin: 8px 0 0; }
.product-edit .order-check { margin: 6px 0; }
.variant-rows { display: grid; gap: 12px; }
.variant-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line2); border-radius: var(--radius); background: var(--bg); }
.variant-row .auth-field input { background: var(--surface); }
.variant-colours { grid-column: 1 / 3; }
.variant-del { display: flex; gap: 8px; align-items: center; align-self: end; min-height: 48px; font-size: 14.5px; font-weight: 600; color: var(--clay-ink); }
.variant-del input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--clay-ink); }
.product-edit:not([data-composed]) .variant-pack { display: none; }
.product-edit[data-composed] .variant-stock { display: none; }
.product-preview { aspect-ratio: 5 / 4; overflow: hidden; margin-bottom: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--tint); }
.auth-field input[type="file"] { padding: 9px 10px; font-size: 14.5px; }
.stock-table th, .stock-table td { vertical-align: middle; }
.goods-table { table-layout: fixed; }
.goods-table tbody th { white-space: normal; overflow-wrap: break-word; }
.goods-status { width: 130px; }
.goods-count { width: 110px; }
.goods-price, .goods-stock { width: 150px; }
.stock-cell { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; }
.stock-input { width: 96px; min-height: 44px; padding: 6px 10px; text-align: right; font: 600 16px var(--sans); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line2); border-radius: var(--radius); }
.stock-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--sage); }
.stock-save { justify-content: flex-end; }

@media (max-width: 1060px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .product-cols { grid-template-columns: 1fr; }
  .product-figure { position: static; }
  .extras .order-side { order: -1; }
}
@media (max-width: 760px) {
  .topbar-cart { margin-left: auto; border-radius: var(--round); }
  .shop { padding: 0 16px 64px; gap: 28px; }
  .shop-shelves { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .shop-shelves a { flex: none; }
  .product { padding: 20px 16px 64px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card-body { padding: 12px 14px 14px; }
  .product-card .product-summary { display: none; }
  .cart-empty { padding: 0 16px 64px; }
  .parts-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cart-row { grid-template-columns: 60px minmax(0, 1fr) auto; grid-template-areas: "thumb what remove" "thumb count sum"; gap: 10px 12px; }
  .cart-thumb { grid-area: thumb; align-self: start; width: 60px; }
  .cart-what { grid-area: what; }
  .cart-row .qty, .cart-copies { grid-area: count; justify-self: start; }
  .cart-sum { grid-area: sum; }
  .cart-remove { grid-area: remove; align-self: start; }
  .quick { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .variant-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .variant-name, .variant-colours { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card, .product-card-figure .art { transition: none; }
  .product-card:hover, .product-card:hover .art { transform: none; }
}
