/* ==========================================================
   Norman Svelund — inner pages (books, about, shop, blog, article, contact, 404)
   Same world as the homepage: night clouds -> breaking light -> golden glory.
   Motion comes from the shared hooks in site.js (data-reveal, data-mask,
   data-words, data-split, data-litlist, data-magnetic) plus js/inner.js.
   ========================================================== */

main { display: block; }
.h2 em, .ih-title em { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--gold-soft); text-transform: none; }
.h2 em { font-size: .7em; margin-top: 6px; }
.on-light .h2 em { color: #A0672A; }
.book-num { font-family: var(--f-display); font-size: 22px; color: var(--gold); margin: 0 0 18px; }
.book-num span { color: var(--mist); font-size: 14px; }
.on-light .book-num span { color: var(--ink-soft); }

/* ---------- Inner hero ---------- */
.ih { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: var(--night); color: var(--vellum); }
.ih--short { min-height: 82vh; min-height: 82svh; }
.ih-bg { position: absolute; inset: -6% 0; will-change: transform; }
.ih-bg picture, .ih-bg img { width: 100%; height: 100%; }
.ih-bg img { object-fit: cover; object-position: var(--pos, 60% 30%); }
.ih-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 18, 32, .94) 0%, rgba(14, 18, 32, .78) 30%, rgba(14, 18, 32, .3) 62%, rgba(14, 18, 32, .05) 100%),
    linear-gradient(0deg, rgba(14, 18, 32, .96) 0%, rgba(14, 18, 32, .35) 38%, transparent 60%),
    linear-gradient(180deg, rgba(14, 18, 32, .55) 0%, transparent 22%);
}
.ih-rays {
  position: absolute; left: 68%; top: 30%; width: 180vmax; height: 180vmax; transform: translate(-50%, -50%); pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 230, 180, .1) 0deg 1.4deg, transparent 1.4deg 7deg);
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent 50%); mask-image: radial-gradient(closest-side, #000, transparent 50%);
  mix-blend-mode: screen; animation: raysTurn 90s linear infinite;
}
@keyframes raysTurn { to { transform: translate(-50%, -50%) rotate(360deg); } }
.is-lite .ih-rays { animation: none; }
.ih-motes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ih-motes i {
  position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: var(--gold-soft);
  box-shadow: 0 0 10px 2px rgba(243, 199, 122, .55); opacity: 0; animation: mote 14s linear infinite;
}
.ih-motes i:nth-child(1) { left: 8%; animation-delay: 0s; } .ih-motes i:nth-child(2) { left: 19%; animation-delay: 3s; animation-duration: 17s; }
.ih-motes i:nth-child(3) { left: 27%; animation-delay: 6s; } .ih-motes i:nth-child(4) { left: 36%; animation-delay: 1.5s; animation-duration: 19s; }
.ih-motes i:nth-child(5) { left: 45%; animation-delay: 8s; } .ih-motes i:nth-child(6) { left: 53%; animation-delay: 4s; animation-duration: 16s; }
.ih-motes i:nth-child(7) { left: 61%; animation-delay: 10s; } .ih-motes i:nth-child(8) { left: 69%; animation-delay: 2s; animation-duration: 18s; }
.ih-motes i:nth-child(9) { left: 76%; animation-delay: 7s; } .ih-motes i:nth-child(10) { left: 84%; animation-delay: 11s; animation-duration: 15s; }
.ih-motes i:nth-child(11) { left: 91%; animation-delay: 5s; } .ih-motes i:nth-child(12) { left: 14%; animation-delay: 12s; animation-duration: 20s; }
.ih-motes i:nth-child(13) { left: 58%; animation-delay: 9s; animation-duration: 21s; } .ih-motes i:nth-child(14) { left: 97%; animation-delay: 13s; }
@keyframes mote { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 10% { opacity: .9; } 85% { opacity: .5; } 100% { transform: translate3d(30px, -95vh, 0); opacity: 0; } }
.ih-copy { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(70px, 12vh, 130px); }
.ih-title {
  font-family: var(--f-display); font-weight: 500; text-transform: uppercase; letter-spacing: .005em;
  font-size: clamp(42px, 6.4vw, 100px); line-height: .98; margin: 0 0 20px; max-width: 15ch; text-wrap: balance;
}
.ih-title em { font-size: .5em; line-height: 1.12; margin-top: 14px; }
.ih-lede { max-width: 44ch; margin: 0 0 30px; color: #EDE3D3; }
.chip {
  display: inline-flex; align-items: center; margin: 0 0 22px; padding: 7px 16px; border-radius: 40px;
  border: 1px solid rgba(233, 180, 95, .45); color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
}

/* ---------- Statement ---------- */
.statement-i-text {
  font-family: var(--f-display); font-size: clamp(28px, 3.6vw, 54px); line-height: 1.18; max-width: 26ch; margin: 0; text-wrap: balance;
}
.statement-i-text .w { color: rgba(29, 26, 23, .2); }
.statement-i-text .w.is-lit { color: var(--ink); }

/* ---------- 3D book (shared with the homepage) ---------- */
.book3d {
  --r: 1.313; --dr: .07;
  --h: calc(var(--w) * var(--r)); --d: calc(var(--w) * var(--dr) + 6px);
  position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d;
}
.b-face { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; opacity: var(--op, 1); background: #2a1d14; }
.b-face img { width: 100%; height: 100%; object-fit: cover; }
.b-front { inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 1px 4px 4px 1px; }
.b-front::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.55) 0, rgba(0,0,0,.15) 1.2%, rgba(255,240,215,.22) 2.4%, rgba(0,0,0,.28) 3.6%, rgba(0,0,0,.06) 6%, transparent 9%),
    linear-gradient(90deg, transparent 55%, rgba(0,0,0,.18) 100%),
    linear-gradient(180deg, rgba(255,245,225,.08), transparent 30%, transparent 75%, rgba(0,0,0,.18));
}
.b-back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); border-radius: 4px 1px 1px 4px; }
.b-back::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(270deg, rgba(0,0,0,.5) 0, rgba(0,0,0,.1) 2%, transparent 7%), linear-gradient(90deg, rgba(0,0,0,.25), transparent 40%); }
.b-spine { top: 0; left: 50%; width: var(--d); height: 100%; margin-left: calc(var(--d) / -2); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.b-spine::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.05) 30%, rgba(255,240,215,.16) 55%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.5)); }
.b-pages {
  top: 1.6%; left: 50%; width: calc(var(--d) - 4px); height: 96.8%; margin-left: calc(var(--d) / -2 + 2px);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 5px));
  background: linear-gradient(90deg, rgba(0,0,0,.25), transparent 20%, transparent 80%, rgba(0,0,0,.25)), repeating-linear-gradient(90deg, #f3ead9 0 1px, #d9ccb4 1px 2px);
}
.b-top, .b-bottom {
  left: 2px; top: 50%; width: calc(var(--w) - 7px); height: calc(var(--d) - 4px); margin-top: calc(var(--d) / -2 + 2px);
  background: linear-gradient(90deg, #3a2618 0 5px, transparent 5px), repeating-linear-gradient(0deg, #f3ead9 0 1px, #d9ccb4 1px 2px);
}
.b-top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 4px)); }
.b-bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2 - 4px)); }
.b-sheen { position: absolute; inset: 0; z-index: 2; background: linear-gradient(105deg, transparent 30%, rgba(255, 240, 210, .22) 46%, transparent 60%); mix-blend-mode: screen; pointer-events: none; transform: translateX(var(--sheen, 0%)); }

/* ---------- Volumes: turning book + Vol 1 / Vol 2 switch ---------- */
.vols { position: relative; background: var(--dusk); }
.vols-pin { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding: calc(var(--header-h) + 20px) 0 60px; }
.vols-light { position: absolute; inset: 0; background: radial-gradient(55% 70% at 28% 50%, rgba(233, 180, 95, .2), transparent 70%); pointer-events: none; }
.vols-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 90px); align-items: center; max-width: 1440px; }
.vols-stage { --w: clamp(230px, 23vw, 350px); position: relative; height: min(76vh, 700px); display: grid; place-items: center; perspective: 1400px; touch-action: pan-y; cursor: grab; }
.vols-stage:active { cursor: grabbing; }
.vols-glow { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(243, 199, 122, .34), transparent); }
.vols-book { position: absolute; transform-style: preserve-3d; visibility: hidden; --op: 0; transform: rotateX(-7deg) rotateY(32deg); transition: --op .5s; }
.vols-book.is-active { visibility: visible; --op: 1; }
.vols-shadow { position: absolute; bottom: 5%; width: 46%; height: 34px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.drag-hint { position: absolute; bottom: 0; margin: 0; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--mist); }
.vols-copy .h2 { font-size: clamp(32px, 3.6vw, 54px); }
.vol-switch { display: inline-flex; gap: 4px; padding: 5px; margin: 6px 0 28px; border: 1px solid rgba(233, 180, 95, .3); border-radius: 50px; background: rgba(14, 18, 32, .35); }
.vol-tab {
  height: 42px; padding: 0 24px; border: 0; border-radius: 40px; background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--mist);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.vol-tab:hover { color: var(--gold-soft); }
.vol-tab.is-active { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #1b1408; }
.vol-panel { animation: panelIn .7s var(--ease); }
.vol-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.vol-from { font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.vol-panel .prose { margin-bottom: 28px; }
.vol-panel .prose p { color: #D7CCBE; }

/* ---------- Inside: lit list ---------- */
.inside { background: var(--night); }
.inside-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 110px); align-items: start; }
.inside-head { position: sticky; top: calc(var(--header-h) + 40px); }
.litlist { list-style: none; margin: 0; padding: 0; }
.litlist li { display: grid; grid-template-columns: 60px 1fr; align-items: baseline; padding: 22px 0; border-bottom: 1px solid rgba(233, 180, 95, .22); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .litlist li { opacity: .22; }
.js .litlist li.is-lit { opacity: 1; }
.ll-n { font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.ll-t { font-family: var(--f-display); font-size: clamp(26px, 3vw, 46px); line-height: 1.1; }
.litlist--light li { border-bottom-color: rgba(160, 103, 42, .25); }
.litlist--light .ll-n { color: #A0672A; }

/* ---------- Excerpt spread ---------- */
.excerpt { text-align: center; overflow: hidden; }
.excerpt-title { margin-bottom: 50px; }
.spread {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; max-width: 1040px; margin: 0 auto; text-align: left;
  filter: drop-shadow(0 40px 50px rgba(60, 40, 20, .3)); perspective: 1600px;
}
.spread-page { position: relative; min-height: 460px; padding: clamp(30px, 5vw, 64px); background: #FBF6EC; display: flex; flex-direction: column; }
.spread-page--l { border-radius: 6px 0 0 6px; background: linear-gradient(90deg, #FBF6EC 82%, #EADFCB); transform-origin: right; transform: rotateY(4deg); }
.spread-page--r { border-radius: 0 6px 6px 0; background: linear-gradient(270deg, #FBF6EC 82%, #EADFCB); transform-origin: left; transform: rotateY(-4deg); }
.spread-run { margin: 0 0 30px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.spread-ph { font-family: var(--f-serif); font-size: 22px; margin: 0 0 14px; color: var(--ink); }
.spread-note { font-family: var(--f-serif); font-style: italic; font-size: 21px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.spread-folio { margin: auto 0 0; padding-top: 30px; text-align: center; font-family: var(--f-serif); font-size: 15px; color: var(--ink-soft); }

/* ---------- Get the book: volume cards ---------- */
.getbook { background: var(--night); }
.vol-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.vol-card {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 30px;
  border: 1px solid rgba(233, 180, 95, .2); background: linear-gradient(160deg, rgba(35, 28, 44, .9), rgba(14, 18, 32, .9)); border-radius: var(--radius);
}
.vol-card-n { font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.vol-card .h3 { font-size: clamp(22px, 2vw, 30px); margin-bottom: 22px; }
.mini-stage { --w: clamp(120px, 11vw, 160px); position: relative; display: grid; place-items: center; width: calc(var(--w) * 1.35); height: calc(var(--w) * 1.62); perspective: 1000px; }
.mini-stage::before { content: ""; position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(243, 199, 122, .22), transparent); }
.mini-stage::after { content: ""; position: absolute; bottom: 0; width: 80%; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent); }
.mini-set { position: relative; z-index: 1; transform-style: preserve-3d; transform: rotateX(-6deg) rotateY(30deg); transition: transform .9s var(--ease); }
.vol-card:hover .mini-set, .shop-vol:hover .mini-set { transform: rotateX(-4deg) rotateY(12deg) translateY(-6px); }

/* ---------- More books ---------- */
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 20px; }
.more-card {
  display: grid; grid-template-columns: 130px 1fr; gap: 26px; align-items: center; padding: 26px; text-decoration: none;
  background: #FBF6EC; border: 1px solid var(--vellum-2); border-radius: var(--radius); transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.more-card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(60, 40, 20, .45); }
.more-cover { margin: 0; box-shadow: 0 18px 30px -14px rgba(40, 25, 10, .55); transform: rotate(-2deg); transition: transform .6s var(--ease); }
.more-card:hover .more-cover { transform: rotate(0) scale(1.03); }
.more-card .eyebrow { font-size: 10px; margin-bottom: 10px; }
.more-card .h3 { font-size: clamp(22px, 2vw, 30px); }

/* ---------- Closing band ---------- */
.closing { position: relative; overflow: hidden; padding: clamp(100px, 16vw, 200px) 0; text-align: center; background: var(--night); }
.closing-sky { position: absolute; inset: -10% 0; }
.closing-sky img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.closing-light { position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 40%, rgba(243, 199, 122, .3), transparent 70%), linear-gradient(180deg, rgba(14, 18, 32, .6), rgba(14, 18, 32, .2) 40%, rgba(14, 18, 32, .75)); }
.closing-inner { position: relative; display: grid; justify-items: center; }
.closing-star { width: 40px; height: 40px; color: var(--gold-soft); margin-bottom: 26px; filter: drop-shadow(0 0 18px rgba(243, 199, 122, .8)); animation: starPulse 4s ease-in-out infinite; }
@keyframes starPulse { 50% { transform: scale(1.15) rotate(22deg); } }
.closing-title { max-width: 18ch; }
.closing .lede { max-width: 46ch; color: #EDE3D3; margin: 0 0 34px; }
.closing .btn-row { justify-content: center; }

/* ---------- About ---------- */
.about-hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: grid; align-items: center; background: var(--night); }
.about-hero-sky { position: absolute; inset: -8% 0; }
.about-hero-sky img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.about-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 18, 32, .92), rgba(14, 18, 32, .45) 70%), linear-gradient(0deg, rgba(14, 18, 32, .9), transparent 40%); pointer-events: none; }
.about-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 6vw, 100px); align-items: center; padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px; }
.about-photo { margin: 0; padding: 14px; background: #E8DCC6; transform: rotate(2deg); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8); max-width: 420px; justify-self: end; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 640 / 826; object-fit: cover; filter: sepia(.1); }
.about-photo figcaption { font-family: var(--f-serif); font-style: italic; font-size: 17px; color: var(--ink-soft); padding: 12px 4px 2px; }

.chapters { background: var(--vellum); color: var(--ink); }
.chapters-grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(30px, 6vw, 110px); align-items: start; }
.ch-index { position: sticky; top: calc(var(--header-h) + 40px); }
.ch-index-title { font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #A0672A; margin: 0 0 18px; }
.ch-index ol { list-style: none; margin: 0; padding: 0; }
.ch-index a {
  display: grid; grid-template-columns: 34px 1fr; padding: 11px 0; text-decoration: none; color: var(--ink-soft);
  font-family: var(--f-serif); font-size: 19px; line-height: 1.25; border-bottom: 1px solid rgba(29, 26, 23, .1); transition: color .4s, padding .5s var(--ease);
}
.ch-index a span { font-family: var(--f-sans); font-size: 11px; letter-spacing: .14em; padding-top: 5px; color: #A0672A; }
.ch-index a:hover, .ch-index a.is-active { color: var(--ink); }
.ch-index a.is-active { padding-left: 8px; }
.ch-progress { position: relative; height: 2px; margin-top: 22px; background: rgba(29, 26, 23, .1); }
.ch-progress i { position: absolute; inset: 0; background: #A0672A; transform-origin: left; transform: scaleX(0); }
.ch { padding: 0 0 clamp(70px, 10vw, 130px); }
.ch + .ch { padding-top: clamp(60px, 8vw, 110px); border-top: 1px solid rgba(29, 26, 23, .1); }
.ch-n { font-family: var(--f-display); font-size: 15px; color: #A0672A; margin: 0 0 14px; letter-spacing: .1em; }
.ch .prose p { color: #3b342d; }
.ch-quote { font-family: var(--f-display); font-size: clamp(26px, 3vw, 44px); line-height: 1.22; margin: 0; max-width: 24ch; }
.ch-quote .w { color: rgba(29, 26, 23, .2); }
.ch-quote .w.is-lit { color: var(--ink); }
.ch-img { margin: 40px 0 0; overflow: hidden; border-radius: var(--radius); }
.ch-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ch-img--photo { max-width: 380px; padding: 12px; background: #E8DCC6; }
.ch-img--photo img { aspect-ratio: 640 / 826; }
.marquee { overflow: hidden; padding: 28px 0; border-top: 1px solid rgba(233, 180, 95, .2); border-bottom: 1px solid rgba(233, 180, 95, .2); }
.marquee--dark { background: var(--night); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--f-display); font-size: clamp(26px, 3vw, 44px); white-space: nowrap; color: var(--vellum); }
.marquee-track i { width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Shop ---------- */
.shop-row { background: var(--night); }
.shop-row.on-light { background: var(--vellum); }
.shop-row-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.shop-row .h2 { font-size: clamp(32px, 3.6vw, 54px); }
.shop-row-head .muted { max-width: 46ch; margin: 0 0 22px; }
.shop-vols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shop-vol {
  display: grid; justify-items: center; text-align: center; padding: 26px 20px 30px; border-radius: var(--radius);
  border: 1px solid rgba(233, 180, 95, .2); background: linear-gradient(160deg, rgba(35, 28, 44, .7), rgba(14, 18, 32, .7));
  scroll-margin-top: calc(var(--header-h) + 30px);
}
.on-light .shop-vol { background: #FBF6EC; border-color: var(--vellum-2); }
.shop-vol .mini-stage { margin-bottom: 14px; }
.shop-vol .h3 { font-size: clamp(19px, 1.6vw, 24px); margin-bottom: 18px; }
.shop-vol:target { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 50px -10px rgba(243, 199, 122, .5); }
.shop-buy { display: grid; justify-items: center; gap: 10px; }
.btn--ph { opacity: .55; cursor: not-allowed; }
.btn--ph:hover { transform: none; }

/* ---------- Blog ---------- */
.journal-i-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 36px; }
.journal-i-head .muted { margin: 0; max-width: 48ch; }
.jfilter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; }
.jf {
  height: 42px; padding: 0 20px; border-radius: 40px; border: 1px solid rgba(29, 26, 23, .25); background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); transition: background-color .4s, color .4s, border-color .4s;
}
.jf:hover { border-color: #A0672A; color: #A0672A; }
.jf.is-active { background: var(--ink); border-color: var(--ink); color: var(--vellum); }
.jgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.jc { display: block; text-decoration: none; color: var(--ink); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.jc.is-hidden { display: none; }
.jc--feature { grid-column: span 2; }
.jc-img { margin: 0 0 18px; overflow: hidden; border-radius: var(--radius); }
.jc-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.jc--feature .jc-img img { aspect-ratio: 16 / 9; }
.jc:hover .jc-img img { transform: scale(1.05); }
.jc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #A0672A; }
.jc .h3 { font-size: clamp(22px, 2vw, 30px); }
.jc .muted { margin: 0 0 14px; }
.jc .link-arrow { color: #A0672A; }

/* ---------- Article ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; pointer-events: none; }
.read-progress i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px rgba(243, 199, 122, .7); }
.post { background: var(--vellum); color: var(--ink); }
.post-hero { position: relative; overflow: hidden; background: var(--night); color: var(--vellum); padding: calc(var(--header-h) + 80px) 0 clamp(150px, 20vw, 240px); }
.post-hero-sky { position: absolute; inset: -10% 0; }
.post-hero-sky img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.post-hero-inner { position: relative; max-width: 980px; }
.post-hero .jc-meta { color: var(--gold); margin: 28px 0 18px; }
.post-title { max-width: 18ch; }
.post-hero .lede { max-width: 46ch; color: #EDE3D3; margin: 0; }
.link-arrow--back::after { content: none; }
.link-arrow--back::before { content: "\2190"; transition: transform .4s var(--ease); }
.link-arrow--back:hover::before { transform: translateX(-6px); }
.post-cover { position: relative; margin-top: clamp(-130px, -14vw, -90px); margin-bottom: 0; max-width: 1100px; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); box-shadow: 0 50px 80px -50px rgba(40, 25, 10, .7); }
.post-body { max-width: 760px; padding-top: clamp(50px, 7vw, 90px); padding-bottom: clamp(70px, 9vw, 120px); font-size: clamp(17px, 1.2vw, 19px); }
.post-body p { margin: 0 0 1.3em; color: #3b342d; }
.post-body .h3 { margin-top: 1.6em; }
.post-drop::first-letter { float: left; font-family: var(--f-display); font-size: 4.2em; line-height: .82; padding: 6px 12px 0 0; color: #A0672A; }
.post-quote { margin: 2em 0; padding: 10px 0 10px 28px; border-left: 2px solid var(--gold); }
.post-quote p { font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.35; color: var(--ink); margin: 0; }
.post-end { display: flex; align-items: center; gap: 20px; margin-top: 50px; padding-top: 30px; border-top: 1px solid rgba(29, 26, 23, .12); }
.post-end .star-ico { color: #A0672A; width: 22px; height: 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact-text { position: sticky; top: calc(var(--header-h) + 40px); }
.contact-text .lede { color: var(--ink-soft); margin: 0 0 30px; }
.contact-star { width: 34px; height: 34px; color: #A0672A; animation: starPulse 5s ease-in-out infinite; }
.contact-form { display: grid; gap: 22px; padding: clamp(26px, 4vw, 48px); background: #FBF6EC; border: 1px solid var(--vellum-2); border-radius: var(--radius); box-shadow: 0 40px 70px -50px rgba(60, 40, 20, .5); }
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid rgba(29, 26, 23, .2); border-radius: var(--radius); transition: border-color .3s, box-shadow .3s;
}
.field input { height: 54px; }
.field select { height: 54px; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #A0672A; box-shadow: 0 0 0 3px rgba(160, 103, 42, .15); }
.field.is-error input, .field.is-error textarea { border-color: var(--robe); }
.contact-form .btn { justify-self: start; }
.form-msg { margin: 0; font-size: 15px; color: var(--ink-soft); min-height: 1.4em; }

/* ---------- 404 ---------- */
.nf { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: var(--night); text-align: center; }
.nf-sky { position: absolute; inset: 0; }
.nf-sky img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.nf .ih-rays { left: 50%; top: 40%; }
.nf-inner { position: relative; z-index: 2; display: grid; justify-items: center; padding-top: var(--header-h); padding-bottom: 60px; }
.nf-star { width: 54px; height: 54px; color: var(--gold-soft); margin-bottom: 26px; filter: drop-shadow(0 0 22px rgba(243, 199, 122, .9)); animation: starPulse 4s ease-in-out infinite; }
.nf-title { margin-left: auto; margin-right: auto; font-size: clamp(36px, 5.4vw, 84px); }
.nf .lede { max-width: 40ch; color: #EDE3D3; margin: 0 0 34px; }
.nf .btn-row { justify-content: center; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .vols-pin { min-height: 0; padding: 70px 0 80px; }
  .vols-grid { grid-template-columns: 1fr; gap: 10px; }
  .vols-stage { --w: min(48vw, 240px); height: calc(var(--w) * 1.75); }
  .inside-grid, .shop-row-grid, .contact-grid, .journal-i-head { grid-template-columns: 1fr; }
  .inside-head, .contact-text { position: static; }
  .chapters-grid { grid-template-columns: 1fr; }
  .ch-index { position: sticky; top: var(--header-h); z-index: 5; background: rgba(245, 238, 226, .96); margin: 0 calc(var(--gutter) * -1); padding: 12px var(--gutter); border-bottom: 1px solid rgba(29, 26, 23, .1); }
  .ch-index-title { display: none; }
  .ch-index ol { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ch-index ol::-webkit-scrollbar { display: none; }
  .ch-index a { display: inline-flex; gap: 8px; white-space: nowrap; border: 1px solid rgba(29, 26, 23, .15); border-radius: 40px; padding: 8px 14px; font-size: 16px; }
  .ch-index a span { padding-top: 0; align-self: center; }
  .ch-index a.is-active { padding-left: 14px; background: var(--ink); color: var(--vellum); border-color: var(--ink); }
  .ch-progress { display: none; }
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-photo { justify-self: start; max-width: 320px; }
  .vol-cards, .more-grid { grid-template-columns: 1fr; }
  .jgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .ih { align-items: end; }
  .ih-bg img { object-position: 50% 20%; }
  .ih-shade { background: linear-gradient(180deg, rgba(14, 18, 32, .35) 0%, rgba(14, 18, 32, .2) 30%, rgba(14, 18, 32, .85) 62%, rgba(14, 18, 32, .97) 100%); }
  .ih-rays { left: 50%; top: 22%; }
  .ih-copy { padding-bottom: 70px; }
  .ih .btn-row .btn { flex: 1 1 auto; }
  .spread { grid-template-columns: 1fr; }
  .spread-page { min-height: 0; }
  .spread-page--l, .spread-page--r { transform: none; border-radius: 6px; background: #FBF6EC; }
  .spread-page--l { border-bottom: 1px solid var(--vellum-2); border-radius: 6px 6px 0 0; }
  .spread-page--r { border-radius: 0 0 6px 6px; }
  .vol-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .more-card { grid-template-columns: 96px 1fr; gap: 18px; padding: 18px; }
  .shop-vols { grid-template-columns: 1fr; }
  .jgrid { grid-template-columns: 1fr; }
  .jc--feature { grid-column: auto; }
  .vol-tab { padding: 0 18px; }
  .about-hero-grid { padding-top: calc(var(--header-h) + 30px); }
  .about-photo { max-width: 260px; }
  .post-cover img { aspect-ratio: 4 / 3; }
}
@media (max-width: 380px) {
  .vol-switch { display: flex; }
  .vol-tab { flex: 1; padding: 0 10px; letter-spacing: .14em; }
}

/* ---------- Reduced motion: plain, readable page ---------- */
@media (prefers-reduced-motion: reduce) {
  .ih-rays, .ih-motes, .marquee-track, .closing-star, .nf-star, .contact-star { animation: none !important; }
  .ih-motes { display: none; }
  .js .litlist li { opacity: 1; }
  .statement-i-text .w, .ch-quote .w { color: inherit; }
}

/* grid children may shrink below their content width (prevents sideways scroll on small phones) */
.more-card > div, .chapters-grid > *, .vols-grid > *, .shop-row-grid > *, .contact-grid > *, .inside-grid > * { min-width: 0; }
.post-cover { overflow: hidden; border-radius: var(--radius); }
.ch-index ol { max-width: 100%; }
.more-card .eyebrow { display: block; } .more-card .eyebrow::before { display: none; }
.vol-ex { margin-top: 4px; }

/* demo excerpt text on the open-book spread */
.spread-text p { font-family: var(--f-serif); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: #2c2620; margin: 0 0 1em; text-wrap: pretty; }
.spread-text p:first-child::first-letter { float: left; font-family: var(--f-display); font-size: 3.2em; line-height: .85; padding: 5px 10px 0 0; color: #A0672A; }

/* article: keep reading */
.post-related { padding: 0 0 clamp(70px, 9vw, 120px); }
.post-related .h3 { margin-bottom: 30px; }
.rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 767px) { .rel-grid { grid-template-columns: 1fr; } }
