/* Orli Diggers — a Kigali publishing & creative house.
   Orange jacket, navy ink, bone paper, the letterhead's gold script.
   Libre Caslon for books, Schibsted Grotesk for everything else. */

@font-face { font-family: "Libre Caslon Display"; font-weight: 400; font-display: swap; src: url("caslon-display.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-weight: 400; font-display: swap; src: url("caslon-text.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap; src: url("caslon-text-italic.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 700; font-display: swap; src: url("schibsted.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 500; font-display: swap; src: url("caveat.woff2") format("woff2"); }
@font-face { font-family: "Great Vibes"; font-weight: 400; font-display: swap; src: url("great-vibes.woff2") format("woff2"); }

:root {
  --serif: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif-text: "Libre Caslon Text", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Great Vibes", cursive;
  --hand: "Caveat", "Segoe Print", cursive;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --g: clamp(20px, 3.4vw, 56px);
  --inset: 12px;
  --r: 22px;
  --r-lg: 30px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --head-h: 84px;
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 20px); }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
body.is-locked { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--orange) 30%, transparent); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 99; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.w { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--g); }
.w--text { max-width: 820px; }
.sec { padding: clamp(72px, 9vw, 136px) 0; }
.sec--tight { padding: clamp(48px, 6vw, 88px) 0; }
.sec--top0 { padding-top: 0; }
.inset { margin: 0 var(--inset); border-radius: var(--r-lg); }
.inset + .inset { margin-top: var(--inset); }

/* ---------- type ---------- */
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5.6vw, 92px); line-height: 0.98; letter-spacing: -0.015em; text-wrap: balance; }
.title { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.4vw, 66px); line-height: 1.03; letter-spacing: -0.01em; text-wrap: balance; }
.title-sm { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; }
.sub { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--soft); max-width: 54ch; margin-top: 18px; }
.kicker { font-size: 14px; font-weight: 500; color: var(--soft); }
.on-ink .kicker, .on-ink .sub { color: #a9b2bf; }
.prose { font-family: var(--serif-text); font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin-top: 1.6em; }
.prose h2 { font-size: 34px; } .prose h3 { font-size: 26px; }
.prose a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.2em; } .prose ol { list-style: decimal; padding-left: 1.2em; }
.prose blockquote { font-style: italic; font-size: 24px; line-height: 1.5; padding-left: 24px; border-left: 2px solid var(--orange); }
.prose img { border-radius: var(--r-sm); }
.prose figure { margin: 1.8em 0; }
.prose figure img { width: 100%; border-radius: var(--r); }
.prose figcaption { font-family: var(--sans); font-size: 14px; color: var(--soft); text-align: center; margin-top: 10px; }
.prose img { margin: 1.6em auto; border-radius: var(--r); }
.prose .video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--ink); }
.prose .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose hr { border: 0; height: 1px; margin: 2.4em 0; background: var(--line); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em; padding: 0.15em 0.4em; border-radius: 6px; background: var(--bone); }
.prose pre { font-size: 15px; line-height: 1.6; padding: 18px 20px; border-radius: var(--r-sm); background: var(--ink); color: var(--bone); overflow-x: auto; }
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose h2 + p, .prose h3 + p { margin-top: 0.7em; }
.prose li + li { margin-top: 0.35em; }
.prose--sans { font-family: var(--sans); font-size: 17px; line-height: 1.7; }

.mute { color: color-mix(in srgb, currentColor 46%, transparent); }
.hero .mute { color: color-mix(in srgb, var(--ink) 52%, var(--orange)); }
.closing .mute { color: color-mix(in srgb, var(--ink) 52%, var(--orange)); }
.closing--ink .mute, .on-ink .mute { color: #7f8b9b; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 26px; border-radius: 14px; background: var(--ink); color: #fff; border: 1px solid var(--ink); font-weight: 500; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap; transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s; }
.btn:hover { background: #050b14; transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn svg, .link svg { width: 16px; height: 16px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg, .link:hover svg { transform: translateX(3px); }
.btn--orange { background: var(--orange); border-color: var(--orange); }
.btn--orange:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.btn--bone { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn--bone:hover { background: #fff; }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.btn--line:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; border-radius: 12px; }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; padding-bottom: 3px; border-bottom: 1px solid currentColor; white-space: nowrap; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(36px, 4vw, 56px); }
.head-row > div { max-width: 760px; }

/* ---------- announcement + header ---------- */
.top { background: var(--ink); color: #d6dbe2; font-size: 13px; text-align: center; padding: 9px var(--g); }
.top a { text-decoration: underline; text-underline-offset: 3px; }
.head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.head.is-scrolled { border-bottom-color: var(--stone); }
.head__bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; height: var(--head-h); }
.head__logo img { height: 48px; width: auto; }
.nav { display: flex; justify-content: center; gap: clamp(18px, 2.2vw, 34px); }
.nav a { font-size: 13.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--ink); }
.tools { display: flex; align-items: center; gap: 6px; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px; border-radius: 12px; font-size: 13.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; transition: background 0.25s; }
.tool:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.tool svg { width: 20px; height: 20px; }
.tool .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 12px; letter-spacing: 0; }
.tools .btn { margin-left: 8px; text-transform: uppercase; letter-spacing: 0.07em; font-size: 13px; }
.burger { display: none; }
.drawer { position: fixed; inset: var(--head-h) 0 0; z-index: 39; background: var(--paper); padding: 20px var(--g) 32px; display: flex; flex-direction: column; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s; }
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer a.drawer__link { font-family: var(--serif); font-size: 34px; line-height: 1.2; padding: 12px 0; border-bottom: 1px solid var(--stone); }
.drawer__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
@media (max-width: 1100px) {
  .head__bar { grid-template-columns: auto 1fr auto; }
  .nav, .tools .btn, .tool--search span, .tool--account { display: none; }
  .burger { display: inline-flex; }
  .tools { justify-self: end; }
}
@media (max-width: 560px) { :root { --head-h: 68px; --inset: 8px; } .head__logo img { height: 40px; } }

/* ---------- hero: one scene with the header, fading into the page ---------- */
.t-index .top { position: relative; z-index: 41; background: transparent; color: var(--ink); }
.t-index .top a { color: var(--ink); }
.t-index .head:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.t-index main { margin-top: calc(-1 * var(--chrome-h, 121px)); }
.hero { position: relative; overflow: hidden; min-height: max(760px, 100vh); padding-top: var(--chrome-h, 121px); display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--ink); background: #e9a23b; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 28%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 220, 140, 0.5) 0%, rgba(255, 200, 110, 0.14) 30%, rgba(255, 200, 110, 0) 46%, rgba(14, 27, 44, 0.18) 60%, rgba(251, 249, 245, 0.55) 80%, var(--paper) 96%); }
.hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: clamp(32px, 6vh, 80px) var(--g) 0; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 7.6vw, 124px); line-height: 0.92; letter-spacing: -0.02em; text-wrap: balance; }
.hero__lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: #2b1606; margin: 18px 0 28px; max-width: 46ch; }
.hero .acts { justify-content: center; gap: 12px; }

.desk { position: relative; z-index: 2; margin-top: auto; padding-bottom: clamp(28px, 5vh, 56px); display: flex; justify-content: center; align-items: flex-end; gap: 4.5em; font-size: clamp(8.5px, 0.92vw, 14px); }
.obj { position: relative; display: block; }
.obj__cap { position: absolute; bottom: calc(100% + 0.6em); left: 0; right: 0; text-align: center; font-family: var(--hand); font-size: 2.3em; line-height: 1; color: #fff; text-shadow: 0 1px 10px rgba(14, 27, 44, 0.55); white-space: nowrap; }

/* sticky note */
.obj--note { margin-bottom: 4.4em; transform: rotate(-6deg); transition: transform .6s var(--ease); }
.note { position: relative; width: 17em; height: 17em; padding: 2em 1.7em; text-align: left; border-radius: 2px 2px 2px 2px; background: var(--grain), linear-gradient(160deg, #ffe680 0%, #ffd950 55%, #f4c53a 100%); background-blend-mode: multiply, normal; box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 1.6em 2.4em -1.2em rgba(40, 24, 0, 0.55); }
.note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 3.2em; height: 3.2em; background: linear-gradient(135deg, rgba(255,255,255,0) 50%, #e8b52c 50%, #f7d878 100%); border-radius: 0 0 2px 0; box-shadow: -0.3em -0.3em 0.6em -0.2em rgba(0,0,0,.18); }
.note__tape { position: absolute; top: -1.1em; left: 50%; width: 7em; height: 2.2em; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 255, 255, 0.55); box-shadow: 0 1px 2px rgba(0,0,0,.08); clip-path: polygon(3% 0, 97% 4%, 100% 30%, 97% 60%, 100% 100%, 2% 96%, 0 70%, 3% 40%, 0 12%); }
.note p { font-family: var(--hand); font-size: 2.55em; line-height: 1.12; color: #23324a; transform: rotate(-1deg); }

/* manuscript */
.obj--ms { margin-bottom: -1.4em; transform: rotate(2deg); transition: transform .6s var(--ease); }
.ms { position: relative; width: 22em; height: 28em; }
.ms__sheet, .ms__page { position: absolute; inset: 0; border-radius: 3px; background: var(--grain), #fdfcf9; background-blend-mode: multiply, normal; box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 1.6em 2.6em -1.4em rgba(40, 24, 0, 0.5); }
.ms__sheet--b { transform: rotate(-4deg) translate(-0.8em, 0.4em); background-color: #f5f2ea; }
.ms__sheet--a { transform: rotate(3deg) translate(0.6em, 0.2em); background-color: #faf7f0; }
.ms__page { padding: 2.6em 2.2em 2em; text-align: left; overflow: hidden; }
.ms__page p:last-of-type { margin-bottom: 0; }
.ms__page p { font-family: var(--serif-text); font-size: 0.86em; line-height: 1.75; color: #2a2a2a; margin-bottom: 0.9em; }
.ms__page .ms__chap { font-family: var(--serif); font-size: 1.5em; line-height: 1.1; margin-bottom: 1em; color: var(--ink); }
.ms__page del { text-decoration: none; position: relative; }
.ms__page del::after { content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px; background: #c8322a; transform: rotate(-4deg); border-radius: 2px; }
.ms__page ins { text-decoration: none; position: relative; font-family: var(--hand); font-size: 1.35em; color: #c8322a; margin-left: 0.2em; }
.ms__ring { position: relative; }
.ms__ring::after { content: ""; position: absolute; inset: -0.25em -0.45em; border: 2px solid #c8322a; border-radius: 50%; transform: rotate(-6deg); }
.ms__note { position: absolute; right: 1.6em; bottom: 1.1em; font-family: var(--hand); font-size: 1.6em; color: #c8322a; transform: rotate(-6deg); }
.ms__clip { position: absolute; top: -1.6em; left: 2.2em; width: 1.6em; height: 4.4em; }
.ms__clip path { fill: none; stroke: #9aa3ad; stroke-width: 2.2; stroke-linecap: round; }
.pen { position: absolute; z-index: 3; left: -4.6em; bottom: 0.7em; width: 16.5em; height: auto; overflow: visible; transform: rotate(-17deg); filter: drop-shadow(0 0.7em 0.5em rgba(30, 18, 6, 0.35)) drop-shadow(0 0.15em 0.1em rgba(30, 18, 6, 0.3)); }

/* 3D book */
.obj--book { --bw: 16em; --bt: 2.4em; margin-bottom: 2.4em; perspective: 90em; transition: transform .6s var(--ease); }
.b3 { position: relative; display: block; width: var(--bw); aspect-ratio: 2 / 3; transform-style: preserve-3d; transform: rotateY(-26deg) rotateX(3deg); transition: transform .8s var(--ease); }
.b3__front { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 2px 6px 6px 2px; transform: translateZ(calc(var(--bt) / 2)); box-shadow: inset 4px 0 6px -3px rgba(0,0,0,.35); }
.b3::before { content: ""; position: absolute; top: 1.5%; bottom: 1.5%; left: 0; width: calc(var(--bt) - 4px); transform: translateX(calc(var(--bw) - var(--bt) / 2 - 3px)) rotateY(90deg) translateX(calc(var(--bt) / 2)); background: repeating-linear-gradient(90deg, #fbf8f1 0 2px, #e6dfd0 2px 3px); }
.b3::after { content: ""; position: absolute; inset: 0; border-radius: 2px 6px 6px 2px; background: #2a1d12; transform: translateZ(calc(var(--bt) / -2)); box-shadow: -1.6em 1.6em 3em 0.4em rgba(20, 12, 4, 0.45); }
.b3__blank { display: flex; flex-direction: column; justify-content: space-between; padding: 2em 1.6em 1.6em; background: linear-gradient(160deg, #16273d 0%, #0e1b2c 70%); color: var(--bone); text-align: left; }
.b3__blank img { width: 3.2em; height: auto; }
.b3__blank b { font-family: var(--serif); font-weight: 400; font-size: 2.6em; line-height: 1; margin-top: auto; }
.b3__blank small { font-size: 0.9em; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-top: 1em; }
.b3__tag { position: absolute; z-index: 2; right: -1.6em; top: 3em; background: var(--ink); color: #fff; border-radius: 0.9em; padding: 0.6em 0.95em; font-size: 1.05em; font-weight: 600; transform: rotate(7deg); box-shadow: 0 0.8em 1.6em -0.8em rgba(0,0,0,.55); }
.obj--note:hover { transform: rotate(-3deg) translateY(-0.6em); }
.obj--ms:hover { transform: rotate(0deg) translateY(-0.6em); }
.obj--book:hover .b3 { transform: rotateY(-12deg) rotateX(2deg) translateY(-0.6em); }
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero__bg img { object-position: 64% 28%; }
  .desk { font-size: 6px; gap: 2.4em; margin-top: 40px; }
  .obj__cap { font-size: 2.8em; }
}

/* ---------- letterhead band ---------- */
.band { margin: 0 var(--inset); border-radius: var(--r); background: var(--night); color: var(--gold); display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 28px); padding: 20px var(--g); overflow: hidden; }
.band__rule { flex: 1; max-width: 340px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.band__rule:last-child { transform: scaleX(-1); }
.band__text { font-family: var(--script); font-size: clamp(28px, 3vw, 42px); line-height: 1.1; white-space: nowrap; display: inline-flex; align-items: center; gap: 16px; }
.band__star { width: 20px; height: 20px; color: #ffd77a; }
@media (max-width: 680px) { .band__rule { display: none; } .band__text { white-space: normal; flex-wrap: wrap; justify-content: center; text-align: center; gap: 0 12px; } }

/* ---------- four houses ---------- */
.houses { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 56px 28px; }
.house { display: flex; flex-direction: column; gap: 16px; }
.house__img { border-radius: var(--r); overflow: hidden; background: var(--stone); aspect-ratio: 4 / 3; }
.house__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.house:hover .house__img img { transform: scale(1.03); }
.house:nth-child(4n + 1) { grid-row: span 2; }
.house:nth-child(4n + 1) .house__img { aspect-ratio: 4 / 5.3; }
.house:nth-child(4n + 4) { grid-column: span 2; }
.house:nth-child(4n + 4) .house__img { aspect-ratio: 2.4 / 1; }
.house h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.6vw, 38px); line-height: 1.05; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.house h3 small { font-family: var(--sans); font-size: 13px; color: var(--soft); }
.house p { color: var(--soft); max-width: 50ch; }
.house ul { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 15px; font-weight: 500; }
.house li a:hover { color: var(--orange-deep); }
.house li:not(:last-child)::after { content: "/"; color: var(--stone); margin: 0 10px; }
@media (max-width: 980px) { .houses { grid-template-columns: 1fr 1fr; } .house:nth-child(4n + 1) { grid-row: auto; grid-column: span 2; } .house:nth-child(4n + 1) .house__img { aspect-ratio: 16 / 9; } }
@media (max-width: 620px) { .houses { grid-template-columns: 1fr; gap: 44px; } .house:nth-child(n) { grid-column: auto; } .house:nth-child(n) .house__img { aspect-ratio: 4 / 3; } }

/* ---------- bookstore band ---------- */
.store { background: var(--ink); color: var(--bone); }
.store .link { color: var(--bone); }
.feature { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; margin-bottom: clamp(64px, 7vw, 96px); }
.feature__stage { background: var(--ink-2); border-radius: var(--r); padding: 12% 16%; }
.feature__stage img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px 8px 8px 4px; box-shadow: 0 2px 2px rgba(0,0,0,.2), 0 40px 60px -26px rgba(0,0,0,.75); }
.feature__meta { font-size: 14px; font-weight: 500; color: var(--orange); }
.feature h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; margin: 12px 0 10px; }
.feature__by { font-family: var(--serif-text); font-style: italic; font-size: 20px; color: #c9d0da; }
.feature__blurb { font-family: var(--serif-text); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; margin: 28px 0 32px; max-width: 42ch; color: var(--bone); }
.feature__price { font-size: 20px; font-weight: 500; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature__stage { max-width: 380px; } }

/* ---------- book grid ---------- */
.books { display: grid; grid-template-columns: repeat(var(--cols, 6), 1fr); gap: clamp(32px, 3vw, 48px) clamp(16px, 2vw, 28px); }
.bk { display: flex; flex-direction: column; gap: 12px; }
.bk__cover { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 4px 9px 9px 4px; overflow: hidden; background: var(--stone); box-shadow: 0 1px 1px rgba(14,27,44,.06), 0 22px 36px -22px rgba(14,27,44,.55); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.bk__cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5%; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(255,255,255,.1) 60%, transparent); z-index: 1; pointer-events: none; }
.bk__cover img { width: 100%; height: 100%; object-fit: cover; }
.bk:hover .bk__cover { transform: translateY(-6px); box-shadow: 0 2px 2px rgba(14,27,44,.06), 0 30px 44px -22px rgba(14,27,44,.6); }
.bk__ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; background: var(--ink); color: var(--bone); font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.bk__ph small { font-family: var(--sans); font-size: 11px; opacity: .7; }
.bk__flag { position: absolute; top: 10px; left: 12px; z-index: 2; background: var(--bone); color: var(--ink); font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 8px; }
.bk__title { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.2; }
.bk__title a:hover { color: var(--orange-deep); }
.bk__meta { font-size: 14px; color: var(--soft); }
.store .bk__meta { color: #a9b2bf; }
.store .bk__title a:hover { color: var(--orange); }
.store .bk__cover { box-shadow: 0 24px 40px -22px rgba(0,0,0,.85); }
@media (max-width: 1100px) { .books { --cols: 4 !important; } }
@media (max-width: 760px) { .books { --cols: 3 !important; } }
@media (max-width: 520px) { .books { --cols: 2 !important; } .bk__title { font-size: 17px; } }

/* ---------- split (photo + copy) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--inset); margin: 0 var(--inset); }
.split__media { border-radius: var(--r-lg); overflow: hidden; min-height: 520px; position: relative; background: var(--stone); }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__copy { border-radius: var(--r-lg); background: var(--bone); padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.split--flip .split__media { order: 2; }
.split--ink .split__copy { background: var(--ink); color: var(--bone); }
.split--ink .sub, .split--ink .steps li { color: #c3cad4; }
.split--ink .steps, .split--ink .steps li { border-color: #24364e; }
.steps { counter-reset: s; margin: 32px 0 36px; border-top: 1px solid var(--stone); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 54px 1fr; padding: 17px 0; border-bottom: 1px solid var(--stone); font-size: 16.5px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); font-size: 22px; line-height: 1.2; color: var(--orange-deep); }
.split--ink .steps li::before { color: var(--orange); }
.steps strong { font-weight: 600; color: var(--text); }
.split--ink .steps strong { color: #fff; }
.checks { display: grid; gap: 12px; margin: 28px 0 34px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 16.5px; }
.checks svg { width: 18px; height: 18px; margin-top: 4px; color: var(--orange-deep); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--flip .split__media { order: 0; } .split__media { min-height: 0; aspect-ratio: 4 / 3; } }

/* ---------- closing CTA ---------- */
.closing { margin: var(--inset); border-radius: var(--r-lg); background: var(--orange); color: var(--ink); padding: clamp(64px, 8vw, 128px) 0; }
.closing__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.closing h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 6.6vw, 112px); line-height: 0.95; letter-spacing: -0.015em; text-wrap: balance; }
.closing p { font-size: 19px; color: var(--orange-ink); margin-bottom: 26px; max-width: 40ch; }
.closing__contact { display: grid; gap: 6px; font-family: var(--serif-text); font-size: clamp(19px, 1.6vw, 23px); margin-bottom: 30px; }
.closing__contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.closing--ink { background: var(--ink); color: var(--bone); }
.closing--ink p { color: #c3cad4; }
@media (max-width: 860px) { .closing__grid { grid-template-columns: 1fr; } }

/* ---------- testimonial ---------- */
.voice { text-align: center; display: grid; justify-items: center; gap: 28px; }
.voice blockquote { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 50px); line-height: 1.2; max-width: 22ch; text-wrap: balance; }
.voice figcaption { font-size: 15px; color: var(--soft); }
.voice figcaption b { color: var(--text); font-weight: 600; }

/* ---------- journal ---------- */
.journal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; }
.post { display: flex; flex-direction: column; gap: 18px; }
.post__img { display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--bone); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post__img img { transform: scale(1.03); }
.post__ph { width: 100%; height: 100%; display: grid; place-items: center; }
.post__ph img { width: 56px !important; height: auto !important; }
.post__body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post__tag { font-size: 13px; font-weight: 600; color: var(--orange-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; }
.post h3 a:hover { color: var(--orange-deep); }
.post__excerpt { color: var(--soft); font-size: 15.5px; line-height: 1.55; }
.post__meta { margin-top: auto; padding-top: 6px; display: flex; gap: 8px; font-size: 13.5px; color: var(--soft); }
@media (max-width: 900px) { .journal { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .journal { grid-template-columns: 1fr; } }
.article-head { text-align: center; display: grid; justify-items: center; gap: 20px; padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); }
.article-head .title { max-width: 20ch; }
.article-cover { margin: 0 var(--inset); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--bone); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--stone); font-size: 14px; }
.share a { padding: 8px 14px; border-radius: 10px; background: var(--bone); font-weight: 500; }
.share a:hover { background: var(--stone); }

/* ---------- inner page head ---------- */
.page-head { padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 5vw, 72px); }
.page-head__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px 64px; align-items: end; }
.page-head .kicker { margin-bottom: 18px; }
.page-head .sub { margin-top: 0; }
.page-head__media { margin: 0 var(--inset); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 8; background: var(--bone); }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; }
.page-head--orange { margin: var(--inset); border-radius: var(--r-lg); background: var(--orange); color: var(--ink); }
.page-head--orange .sub, .page-head--orange .kicker { color: var(--orange-ink); }
.page-head--ink { margin: var(--inset); border-radius: var(--r-lg); background: var(--ink); color: var(--bone); }
.page-head--ink .sub, .page-head--ink .kicker { color: #a9b2bf; }
@media (max-width: 860px) { .page-head__grid { grid-template-columns: 1fr; } .page-head__media { aspect-ratio: 4 / 3; } }

/* ---------- vision & mission ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--inset); margin: 0 var(--inset); }
.duo__card { border-radius: var(--r-lg); padding: clamp(36px, 5vw, 72px); min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.duo__card:first-child { background: var(--ink); color: var(--bone); }
.duo__card:last-child { background: var(--orange); color: var(--ink); }
.duo__card p { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 36px); line-height: 1.25; }
.duo__card h2 { font-size: 15px; font-weight: 600; }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } .duo__card { min-height: 0; } }

/* ---------- numbered list (values, reasons) ---------- */
.ledger { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); column-gap: clamp(32px, 5vw, 80px); border-top: 1px solid var(--line); }
.ledger__item { display: grid; grid-template-columns: 60px 1fr; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ledger__n { font-family: var(--serif); font-size: 22px; color: var(--orange-deep); line-height: 1.3; }
.ledger__item h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; }
.ledger__item p { color: var(--soft); margin-top: 8px; max-width: 48ch; }
.on-ink .ledger { border-color: #24364e; } .on-ink .ledger__item { border-color: #24364e; } .on-ink .ledger__item p { color: #a9b2bf; } .on-ink .ledger__n { color: var(--orange); }
.lead-col { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.lead-col__intro { position: sticky; top: calc(var(--head-h) + 32px); }
@media (max-width: 900px) { .ledger { --cols: 1 !important; } .lead-col { grid-template-columns: 1fr; } .lead-col__intro { position: static; } }

/* ---------- services page ---------- */
.svc { border-top: 1px solid var(--line); }
.svc__row { display: grid; grid-template-columns: 70px 1fr 1fr 320px; gap: 24px clamp(24px, 3vw, 48px); padding: clamp(32px, 4vw, 52px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.svc__n { font-family: var(--serif); font-size: 24px; color: var(--orange-deep); line-height: 1.2; }
.svc__row h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.05; }
.svc__row .sub { margin-top: 12px; font-size: 16.5px; }
.svc__body { display: grid; gap: 20px; }
.svc__body .checks { margin: 0; }
.svc__body .checks li { font-size: 15.5px; }
.svc__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bone); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; }
.svc__row--noimg { grid-template-columns: 70px 1fr 1fr; }
.svc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.svc-jump a { padding: 9px 14px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 7%, transparent); font-size: 14px; font-weight: 500; transition: background 0.25s; }
.svc-jump a:hover { background: color-mix(in srgb, var(--ink) 14%, transparent); }
@media (max-width: 1100px) { .svc__row { grid-template-columns: 56px 1fr 1fr; } .svc__img { grid-column: 2 / -1; aspect-ratio: 21 / 9; } }
@media (max-width: 720px) { .svc__row, .svc__row--noimg { grid-template-columns: 1fr; } .svc__img { grid-column: auto; } }

/* ---------- service cards ---------- */
.svc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--inset); }
.svc-card { background: var(--bone); border-radius: var(--r); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 10px; scroll-margin-top: calc(var(--head-h) + 20px); }
.svc-card__img { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 10px; }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; }
.svc-card__n { font-family: var(--serif); font-size: 18px; color: var(--orange-deep); }
.svc-card h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.1; }
.svc-card__sum { color: var(--soft); font-size: 16px; }
.svc-card__more { border-top: 1px solid var(--line); margin-top: 8px; }
.svc-card__more summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 14.5px; font-weight: 600; }
.svc-card__more summary::-webkit-details-marker { display: none; }
.svc-card__more summary svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.svc-card__more[open] summary svg { transform: rotate(45deg); }
.svc-card__more .checks { margin: 14px 0 6px; }
.svc-card__more .checks li { font-size: 15px; }
.svc-card__acts { margin-top: auto; padding-top: 14px; }
.svc-card:target { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 820px) { .svc-cards { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.form-wrap__intro { position: sticky; top: calc(var(--head-h) + 32px); }
.form-card { background: var(--bone); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 48px); }
.on-bone .form-card { background: var(--paper); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label small { font-weight: 400; color: var(--soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 13px 16px; border-radius: var(--r-sm); border: 1px solid var(--stone); background: var(--paper); font-size: 15.5px; transition: border-color 0.25s, box-shadow 0.25s; -webkit-appearance: none; appearance: none; }
.on-bone .field input, .on-bone .field select, .on-bone .field textarea { background: var(--bone); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%235a6270' stroke-width='1.6' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 9%, transparent); }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.form-foot p { font-size: 13.5px; color: var(--soft); max-width: 36ch; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status { font-size: 14px; margin-top: 12px; }
.status.is-ok { color: #1c7a4a; } .status.is-error { color: #b42318; }
.on-ink .status.is-ok { color: #8fe0b5; } .on-ink .status.is-error { color: #ffb4a8; }
.done { text-align: center; display: grid; justify-items: center; gap: 14px; padding: 32px 8px; }
.done__mark { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; }
.done__mark svg { width: 26px; height: 26px; }
.reach { display: grid; gap: 2px; margin-top: 32px; border-top: 1px solid var(--line); }
.reach a, .reach div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.reach small { display: block; font-size: 13px; color: var(--soft); }
.reach strong { font-family: var(--serif-text); font-weight: 400; font-size: 19px; }
.reach svg { width: 20px; height: 20px; color: var(--orange-deep); }
.reach a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.inline { display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: var(--paper); border: 1px solid var(--stone); max-width: 520px; }
.inline input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; font-size: 15.5px; outline: none; }
.inline .btn { min-height: 46px; border-radius: 11px; }
.on-ink .inline { background: color-mix(in srgb, #fff 7%, transparent); border-color: #2a3d57; }
.on-ink .inline input { color: #fff; } .on-ink .inline input::placeholder { color: #8d98a7; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } .form-wrap__intro { position: static; } }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--inset); margin: 0 var(--inset); }
.way { border-radius: var(--r); background: var(--bone); padding: 28px 26px; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; transition: background 0.3s var(--ease); }
a.way:hover { background: var(--stone); }
.way small { font-size: 14px; font-weight: 600; }
.way strong { font-family: var(--serif-text); font-weight: 400; font-size: 21px; line-height: 1.35; word-break: break-word; }
.way--wa { background: var(--ink); color: var(--bone); } a.way--wa:hover { background: #050b14; }
.way--wa small { color: #25d366; }
.map { margin: var(--inset); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 7; background: var(--bone); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4); }
@media (max-width: 980px) { .ways { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ways { grid-template-columns: 1fr; } .way { min-height: 0; } .map { aspect-ratio: 4 / 3; } }

/* ---------- gallery ---------- */
.gallery { columns: 3 300px; column-gap: var(--inset); padding: 0 var(--inset); }
.gallery__item { break-inside: avoid; display: block; width: 100%; margin-bottom: var(--inset); border-radius: var(--r); overflow: hidden; position: relative; background: var(--bone); text-align: left; }
.gallery__item img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__cap { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--paper); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.gallery__cap small { display: block; font-size: 12.5px; color: var(--orange-deep); font-weight: 600; }
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }
@media (hover: none) { .gallery__cap { opacity: 1; transform: none; } }
.gallery__empty { aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 14px; color: var(--soft); border: 1px dashed var(--stone); background: transparent; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); }
.lightbox::backdrop { background: rgba(10, 16, 26, 0.88); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: var(--r); }
.lightbox p { color: #fff; text-align: center; margin-top: 12px; font-size: 14px; }
.lightbox__x { position: fixed; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.lightbox__x svg { width: 20px; height: 20px; }

/* ---------- catalogue ---------- */
.cat-head { padding: clamp(48px, 7vw, 96px) 0 28px; }
.cat-head__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; }
.genres { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 36px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.genres a { color: var(--soft); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.genres a:hover { color: var(--text); }
.genres a.is-on { color: var(--text); border-bottom-color: var(--orange); }
.genres span { margin-left: auto; color: var(--soft); font-weight: 400; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: clamp(48px, 5vw, 72px); }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 12px; font-size: 14.5px; font-weight: 500; }
.pager a:hover { background: var(--bone); }
.pager .is-on { background: var(--ink); color: #fff; }
.pager .is-off { opacity: .35; }
.pager svg { width: 16px; height: 16px; }
.empty { text-align: center; display: grid; justify-items: center; gap: 16px; padding: 72px 0; }
.empty .title-sm { max-width: 22ch; }

/* ---------- book page ---------- */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; padding: var(--inset) var(--inset) clamp(72px, 8vw, 120px); }
.book__stage { position: sticky; top: calc(var(--head-h) + var(--inset)); border-radius: var(--r-lg); background: var(--bone); aspect-ratio: 1 / 1.05; display: grid; place-items: center; }
.book__cover { position: relative; width: 56%; aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: 0 2px 3px rgba(14,27,44,.1), 0 46px 70px -28px rgba(14,27,44,.55); background: var(--stone); }
.book__cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5%; background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(255,255,255,.1) 60%, transparent); z-index: 1; }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__thumbs { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.book__thumbs button { width: 44px; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; opacity: .5; outline: 1px solid transparent; transition: opacity .25s; }
.book__thumbs button.is-on { opacity: 1; outline-color: var(--ink); }
.book__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.book__info { padding-top: clamp(16px, 4vw, 56px); padding-right: var(--g); display: grid; gap: 24px; }
.crumbs { font-size: 14px; color: var(--soft); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.book__title { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.015em; text-wrap: balance; }
.book__by { font-family: var(--serif-text); font-style: italic; font-size: 21px; color: var(--soft); margin-top: 12px; }
.book__price { font-size: 26px; font-weight: 500; }
.buybox { background: var(--bone); border-radius: var(--r); padding: 20px; display: grid; gap: 12px; }
.buybox__row { display: flex; gap: 10px; }
.buybox__row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; height: 54px; border-radius: 14px; background: var(--paper); border: 1px solid var(--stone); }
.qty button { width: 42px; height: 100%; font-size: 18px; color: var(--soft); }
.qty input { width: 34px; border: 0; background: transparent; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.paywith { font-size: 13px; color: var(--soft); text-align: center; }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--soft); }
.facts dd { font-size: 16px; font-weight: 500; }
.book__about h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-bottom: 14px; }
.sold { color: #b42318; font-weight: 600; }
@media (max-width: 900px) { .book { grid-template-columns: 1fr; } .book__stage { position: static; aspect-ratio: 1 / 0.95; } .book__info { padding: 0 var(--g); } }

/* ---------- cart ---------- */
.cart { display: grid; grid-template-columns: 1fr 400px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.line:first-child { border-top: 1px solid var(--line); }
.line__img { aspect-ratio: 2 / 3; border-radius: 3px 7px 7px 3px; overflow: hidden; background: var(--stone); box-shadow: 0 16px 24px -16px rgba(14,27,44,.5); }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__title { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.line__price { color: var(--soft); font-size: 14px; margin-top: 2px; }
.line__acts { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.line__acts .qty { height: 42px; }
.line__acts .qty button { width: 34px; }
.line__rm { font-size: 13.5px; color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }
.line__total { font-weight: 600; }
.line__warn { color: #b42318; font-size: 13px; }
.summary { position: sticky; top: calc(var(--head-h) + 24px); background: var(--bone); border-radius: var(--r-lg); padding: 30px; display: grid; gap: 16px; }
.summary__row { display: flex; justify-content: space-between; align-items: baseline; }
.summary__row strong { font-size: 24px; font-weight: 600; }
.summary p { font-size: 14px; color: var(--soft); }
@media (max-width: 900px) { .cart { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 520px) { .line { grid-template-columns: 70px 1fr; } .line__total { grid-column: 2; } }

/* ---------- accounts & misc ---------- */
.card-narrow { max-width: 520px; margin: 0 auto; background: var(--bone); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); display: grid; gap: 22px; }
.switch { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--paper); }
.switch button { flex: 1; min-height: 44px; border-radius: 11px; font-weight: 600; font-size: 14.5px; color: var(--soft); transition: background .25s; }
.switch button.is-on { background: var(--ink); color: #fff; }
.stack { display: grid; gap: 14px; }
.acct-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 36px; }
.acct-nav a, .acct-nav button { padding: 10px 16px; border-radius: 12px; background: var(--bone); font-size: 14.5px; font-weight: 500; }
.acct-nav .is-on { background: var(--ink); color: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--soft); padding: 12px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 16px 0; border-bottom: 1px solid var(--line); }
.table th:last-child, .table td:last-child { text-align: right; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--bone); font-size: 13px; font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { background: var(--bone); border-radius: var(--r); padding: 24px; display: grid; gap: 8px; align-content: start; }
.lines { display: grid; gap: 10px; }
.lines li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.lines li.total { border: 0; font-weight: 700; font-size: 18px; }
.thanks { max-width: 640px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 22px; padding: clamp(56px, 8vw, 112px) 0; }
.thanks .lines { width: 100%; text-align: left; }
.lost { text-align: center; display: grid; justify-items: center; gap: 22px; padding: clamp(80px, 12vw, 160px) 0; }
.lost__n { font-family: var(--serif); font-size: clamp(110px, 18vw, 220px); line-height: .85; color: var(--orange); }
.search { display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: var(--bone); max-width: 640px; margin-top: 28px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; font-size: 16px; outline: none; }

/* ---------- footer ---------- */
.foot__band { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 28px); padding: 34px 0 6px; color: var(--gold); }
.foot__band .band__rule { flex: 1; max-width: 340px; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 70%, transparent)); }
.foot__band .band__rule:last-child { transform: scaleX(-1); }
.foot { background: var(--ink); color: #b8c0cb; border-radius: var(--r-lg); margin: 0 var(--inset) var(--inset); }
.foot a:hover { color: #fff; }
.foot__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px 48px; padding: clamp(56px, 7vw, 88px) 0 48px; }
.foot__brand img { height: 54px; width: auto; margin-bottom: 22px; }
.foot__brand p { max-width: 34ch; font-size: 15px; }
.foot h2 { color: #fff; font-size: 15px; font-weight: 500; margin-bottom: 16px; }
.foot ul { display: grid; gap: 9px; font-size: 15px; }
.foot__news p { font-size: 15px; margin-bottom: 14px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #16273d; transition: background .25s; }
.socials a:hover { background: #22385a; }
.socials svg { width: 18px; height: 18px; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0 32px; border-top: 1px solid #22344b; font-size: 13.5px; color: #7f8a99; }
@media (max-width: 980px) { .foot__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__top { grid-template-columns: 1fr; } }

/* ---------- WhatsApp + toast ---------- */
.wa { position: fixed; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); z-index: 45; display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 16px; border-radius: 18px; background: #1faa59; color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 14px 34px -12px rgba(10, 70, 35, 0.6); transition: transform .35s var(--ease); }
.wa:hover { transform: translateY(-2px); }
.wa svg { width: 26px; height: 26px; }
@media (max-width: 640px) { .wa { width: 58px; padding: 0; justify-content: center; } .wa span { display: none; } }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 20px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 15px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.5); transform: translate(-50%, 20px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .btn { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
