/* Quantum Editions — public site
   Between the sea and the stars: deep-water navy, habitat-lamp amber, porthole seafoam.
   Big Shoulders (condensed, signage-like) for display and UI; Literata for reading. */

@font-face { font-family: "Big Shoulders Display"; font-weight: 700; font-display: swap; src: url(fonts/big-shoulders-display-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url(fonts/big-shoulders-display-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Text"; font-weight: 600; font-display: swap; src: url(fonts/big-shoulders-text-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Text"; font-weight: 700; font-display: swap; src: url(fonts/big-shoulders-text-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/literata-latin-opsz-normal.woff2) format("woff2-variations"), url(fonts/literata-latin-opsz-normal.woff2) format("woff2"); }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(fonts/literata-latin-opsz-italic.woff2) format("woff2-variations"), url(fonts/literata-latin-opsz-italic.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  /* palette */
  --space: #050f1c;        /* top of the sky */
  --abyss: #071a2b;        /* page ground */
  --deep: #0e2b44;         /* raised surfaces */
  --tide: #2e6f86;         /* lines, quiet accents */
  --foam: #a8dcd1;         /* porthole light: secondary accent, small headings */
  --amber: #f3a63b;        /* habitat lamp: actions */
  --paper: #eef2f1;        /* reading sections */
  --ink: #0d2236;          /* text on paper */
  --ink-soft: #4b5f6e;
  --on-ink: #e8f0f0;
  --on-ink-soft: #9fb3bd;
  /* names the Look Inside reader uses */
  --brass: var(--amber);
  --text: var(--ink);
  --text-soft: var(--ink-soft);

  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, Impact, sans-serif;
  --font-ui: "Big Shoulders Text", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, sans-serif;
  --font-body: "Literata", "Iowan Old Style", Georgia, serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --cover-h: clamp(150px, 19vw, 236px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--abyss); color: var(--on-ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 14px; z-index: 200; font: 700 1rem var(--font-ui); }
.skip:focus { left: 8px; }
.ssr { max-width: 46em; margin: 0 auto; padding: 120px var(--gutter) 60px; }
.view { animation: fade-in .4s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.display {
  font: 800 clamp(2.7rem, 5.6vw, 5.1rem)/.9 var(--font-display);
  letter-spacing: .004em; text-wrap: balance; max-width: 15ch;
}
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--on-ink-soft); max-width: 36em; }

/* ---------------------------------------------------------------- buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .62em 1.1em .66em;
  font: 700 1.08rem/1.1 var(--font-ui); letter-spacing: .02em; text-decoration: none;
  border-radius: 4px; border: 1.5px solid transparent; cursor: pointer; background: none; color: inherit;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-brass { background: var(--amber); color: var(--ink); }
.btn-brass:hover { background: #ffbb5c; }
.btn-ghost { border-color: rgba(168, 220, 209, .38); color: var(--on-ink); }
.btn-ghost:hover { border-color: var(--foam); background: rgba(168, 220, 209, .08); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--deep); }
.paper .btn-ghost { border-color: rgba(13, 34, 54, .3); color: var(--ink); }
.paper .btn-ghost:hover { border-color: var(--ink); background: rgba(13, 34, 54, .05); }

/* ---------------------------------------------------------------- header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .25s, box-shadow .25s; }
.site-header.solid { background: rgba(5, 15, 28, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(168, 220, 209, .12); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font: 800 1.55rem/1 var(--font-display); letter-spacing: .01em; }
.wordmark span { font: 600 .86rem/1 var(--font-ui); color: var(--foam); margin-top: 4px; letter-spacing: .02em; }
.nav { display: flex; gap: clamp(14px, 2.6vw, 30px); }
.nav a { font: 700 1.08rem/1 var(--font-ui); text-decoration: none; color: var(--on-ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--on-ink); }
.nav a[aria-current="page"] { color: var(--on-ink); border-bottom-color: var(--amber); }
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .wordmark span { display: none; }
  .wordmark b { font-size: 1.35rem; }
}

/* ---------------------------------------------------------------- hero: covers standing on the waterline */
.hero {
  position: relative; padding-top: clamp(112px, 14vh, 150px); overflow: hidden;
  background:
    radial-gradient(120% 60% at 70% 100%, rgba(46, 111, 134, .45), transparent 70%),
    linear-gradient(180deg, var(--space) 0%, #0a2238 78%, #123a55 100%);
}
.hero::before { /* a scatter of stars in the upper sky */
  content: ""; position: absolute; inset: 0 0 45% 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 27% 64%, #cfe 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 58% 48%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 71% 12%, #dff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 83% 36%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 70%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 82%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 88%, #cfe 50%, transparent 51%), radial-gradient(1px 1px at 64% 78%, #fff 50%, transparent 51%);
}
.hero-copy { position: relative; }
.hero .lead { margin-top: 22px; }
.hero .actions { margin-top: 26px; }

.waterline {
  --reflect: .52;
  --tag-h: 26px; /* room above the covers for the "Series" label */
  position: relative; margin-top: clamp(14px, 3vh, 38px);
  height: calc(var(--cover-h) * (1 + var(--reflect)) + var(--tag-h) + 2px);
}
.waterline::before { /* the sea: undersea-colony artwork beneath the surface line */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--cover-h) * var(--reflect) + 2px);
  background:
    linear-gradient(180deg, rgba(10, 40, 62, .55) 0%, rgba(7, 26, 43, .92) 70%, var(--abyss) 100%),
    url(../media/undersea-colony.jpg) center 38% / cover;
  border-top: 1px solid rgba(168, 220, 209, .55);
  box-shadow: 0 -1px 18px rgba(168, 220, 209, .25);
}
.shore {
  position: relative; display: flex; gap: clamp(10px, 1.4vw, 18px); align-items: flex-start;
  padding: 0 var(--gutter); overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  height: 100%;
}
.shore::-webkit-scrollbar { display: none; }
.spine { flex: none; width: calc(var(--cover-h) * 2 / 3); text-decoration: none; }
.spine-tag {
  display: flex; align-items: flex-end; gap: 6px; height: var(--tag-h); padding-bottom: 6px;
  font: 700 .98rem/1 var(--font-ui); letter-spacing: .02em; color: var(--foam);
}
.spine-tag:not(:empty)::after { content: ""; flex: 1; height: 1px; margin-bottom: 4px; background: rgba(168, 220, 209, .4); }
.spine:hover .spine-tag { color: var(--amber); }
.spine img { width: 100%; height: var(--cover-h); object-fit: cover; box-shadow: 0 -2px 24px rgba(0, 0, 0, .35); }
.spine .reflect {
  transform: scaleY(-1); margin-top: 2px; opacity: .42; filter: blur(1px) saturate(.7);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 52%); mask-image: linear-gradient(to top, #000 0%, transparent 52%);
  box-shadow: none;
}
.spine:hover img:not(.reflect), .spine:focus-visible img:not(.reflect) { outline: 2px solid var(--amber); outline-offset: 3px; }
.shore { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.shore-btn {
  position: absolute; top: calc(var(--tag-h) + var(--cover-h) / 2 - 26px); z-index: 2;
  width: 52px; height: 52px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1.5px solid rgba(168, 220, 209, .45); cursor: pointer;
  background: rgba(5, 15, 28, .82); color: var(--amber);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: background-color .15s, border-color .15s;
}
.shore-btn svg { width: 26px; height: 26px; }
.shore-btn:hover { background: var(--deep); border-color: var(--amber); }
.shore-btn.prev { left: max(10px, calc((100vw - var(--max)) / 2 - 8px)); }
.shore-btn.next { right: 18px; }
.shore-btn[hidden] { display: none; }
@media (hover: none) and (pointer: coarse) { .shore-btn { display: none; } } /* phones and tablets swipe */
/* Mouse and trackpad: show a slim scrollbar along the bottom of the sea as well as the arrows */
@media (hover: hover), (pointer: fine) {
  .shore { scrollbar-width: thin; scrollbar-color: rgba(168, 220, 209, .55) rgba(5, 15, 28, .6); }
  .shore::-webkit-scrollbar { display: block; height: 10px; }
  .shore::-webkit-scrollbar-track { background: rgba(5, 15, 28, .6); }
  .shore::-webkit-scrollbar-thumb { background: rgba(168, 220, 209, .55); border-radius: 5px; border: 2px solid rgba(5, 15, 28, .6); }
  .shore::-webkit-scrollbar-thumb:hover { background: var(--amber); }
}

/* ---------------------------------------------------------------- shelf jump links */
.shelf-nav { position: relative; background: var(--abyss); border-bottom: 1px solid rgba(168, 220, 209, .12); }
.shelf-nav .wrap { display: flex; flex-wrap: wrap; gap: 4px 28px; padding-top: 18px; padding-bottom: 18px; }
.shelf-nav a { font: 700 1.12rem/1.3 var(--font-ui); color: var(--on-ink); text-decoration: none; }
.shelf-nav a span { color: var(--foam); font-weight: 600; margin-left: 4px; }
.shelf-nav a:hover { color: var(--amber); }

/* ---------------------------------------------------------------- shelves */
.shelf { padding: clamp(56px, 8vw, 104px) 0; }
.shelf + .shelf { border-top: 1px solid rgba(168, 220, 209, .1); }
.shelf-fiction { background: #0a2236; }
.shelf-science { background: linear-gradient(180deg, #0b2a40, #08243a); }
.shelf-faith { background: var(--paper); color: var(--ink); }
.shelf-grid { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.shelf-head { position: sticky; top: 100px; }
.shelf-head h2 { font: 800 clamp(2.3rem, 4.2vw, 3.6rem)/.92 var(--font-display); text-wrap: balance; }
.shelf-head p { margin-top: 18px; color: var(--on-ink-soft); font-size: 1rem; line-height: 1.6; }
.shelf-faith .shelf-head p { color: var(--ink-soft); }
.shelf-art { margin-top: 26px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; border-radius: 4px;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); }
@media (max-width: 860px) {
  .shelf-grid { grid-template-columns: 1fr; }
  .shelf-head { position: static; }
  .shelf-art { display: none; }
}

.series + .series { margin-top: 48px; }
.series-name {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px;
  font: 700 1.5rem/1.1 var(--font-ui); color: var(--foam);
}
.series-name::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .25; align-self: center; }
.series-name span { font-size: .95rem; font-weight: 600; color: var(--on-ink-soft); order: 2; }
.shelf-faith .series-name { color: #1d5b6e; }
.shelf-faith .series-name span { color: var(--ink-soft); }

.row { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 30px clamp(14px, 2vw, 24px); }
@media (max-width: 560px) { .row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; } .card h4 { font-size: 1.02rem; } .card-sub { display: none; } }
.card { text-decoration: none; display: block; }
.card-cover { position: relative; }
.card .cover { box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .7); transition: transform .2s ease; }
.card:hover .cover { transform: translateY(-4px); }
.card h4 { margin-top: 12px; font: 700 1.2rem/1.08 var(--font-ui); }
.card:hover h4 { color: var(--amber); }
.shelf-faith .card:hover h4 { color: #9a5b07; }
.card-sub { margin: 4px 0 0; font-size: .86rem; line-height: 1.4; color: var(--on-ink-soft); }
.shelf-faith .card-sub { color: var(--ink-soft); }
.card.is-coming .cover img { filter: saturate(.75); }
.chip {
  position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 8px 5px; border-radius: 3px; background: rgba(5, 15, 28, .86); color: var(--amber);
  font: 700 .82rem/1 var(--font-ui); letter-spacing: .02em;
}
.chip svg { width: 13px; height: 13px; }

/* covers */
.cover { position: relative; aspect-ratio: 2 / 3; background: var(--deep); overflow: hidden; border-radius: 2px; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cover-type { /* used when a book has no cover image yet */
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12%;
  background:
    linear-gradient(180deg, rgba(5, 15, 28, .1), rgba(5, 15, 28, .85)),
    url(../media/aquatica-art.jpg) center / cover;
  color: var(--on-ink);
}
.cover-type .a { font: 600 .8em/1 var(--font-ui); color: var(--foam); margin-bottom: auto; }
.cover-type .t { font: 800 clamp(1.4rem, 2.4vw, 2.2rem)/.9 var(--font-display); }
.cover-type .s { font: 600 .82rem/1.2 var(--font-ui); color: var(--on-ink-soft); }

/* ---------------------------------------------------------------- featured video */
.feature-video { padding: 0 0 clamp(56px, 8vw, 96px); }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video.blur > img { filter: blur(22px) saturate(1.2); transform: scale(1.15); opacity: .5; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: radial-gradient(circle at center, rgba(5, 15, 28, .2), rgba(5, 15, 28, .7)); border: 0; cursor: pointer; color: var(--on-ink);
  font: 700 clamp(1.2rem, 2.4vw, 1.8rem)/1.1 var(--font-ui); padding: 20px; text-align: center;
}
.video-play svg { width: 74px; height: 74px; padding: 22px 20px 22px 26px; border-radius: 50%; background: var(--amber); color: var(--ink); transition: transform .15s; }
.video-play:hover svg { transform: scale(1.07); }
.feature-video .video { max-width: 960px; }

/* ---------------------------------------------------------------- author band (home) */
.author-band { padding: clamp(64px, 9vw, 112px) 0; background: linear-gradient(180deg, #0a2236, var(--space)); }
.author-band .wrap { display: grid; grid-template-columns: 200px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 980px; }
.author-band h2 { font: 800 clamp(2.4rem, 4.6vw, 3.8rem)/.92 var(--font-display); }
.author-band .role { font: 600 1.15rem/1.35 var(--font-ui); color: var(--foam); margin: 10px 0 20px; }
.author-band p:not(.role) { color: var(--on-ink-soft); max-width: 38em; }
.portrait img { width: 100%; aspect-ratio: 1 / 1.06; object-fit: cover; border-radius: 50%; border: 2px solid rgba(168, 220, 209, .45); }
@media (max-width: 640px) { .author-band .wrap { grid-template-columns: 1fr; } .author-band .portrait { width: 150px; } }

/* ---------------------------------------------------------------- page heads (author, about, 404) */
.page-head { padding: clamp(128px, 18vh, 180px) 0 clamp(56px, 8vw, 88px); background: linear-gradient(180deg, var(--space), #0c2c46); }
.page-head .lead { margin-top: 20px; }
.page-head .btn { margin-top: 26px; }
.author-head { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.author-head .display { max-width: none; }
.listen { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.listen span { font: 700 1.08rem/1.2 var(--font-ui); color: var(--foam); }
.listen audio { width: min(360px, 100%); height: 40px; }
@media (max-width: 640px) { .author-head { grid-template-columns: 1fr; } .author-head .portrait { width: 150px; } }

/* ---------------------------------------------------------------- paper (reading) sections */
.paper { background: var(--paper); color: var(--ink); padding: clamp(56px, 8vw, 96px) 0; }
.paper a:not(.btn) { color: #1d5b6e; }
.reading { max-width: 820px; }
.reading h2 { font: 800 clamp(1.9rem, 3.4vw, 2.6rem)/1 var(--font-display); margin: 0 0 22px; }
.reading .prose + h2 { margin-top: 56px; }
.prose { font-size: 1.1rem; line-height: 1.72; max-width: 36em; }
.prose p { margin: 0 0 1.1em; }
.reading .btn { margin-top: 12px; }

/* ---------------------------------------------------------------- book page */
.book-hero { padding: clamp(112px, 15vh, 150px) 0 clamp(48px, 7vw, 80px); background: linear-gradient(180deg, var(--space), #0d2e4a); }
.book-hero .wrap { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.cover-col .cover { box-shadow: 0 40px 60px -28px rgba(0, 0, 0, .85), 0 0 0 1px rgba(168, 220, 209, .08); }
.back { display: inline-flex; align-items: center; gap: 4px; font: 700 1rem/1 var(--font-ui); color: var(--foam); text-decoration: none; margin-bottom: 22px; }
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--amber); }
.series-tag { font: 700 1.15rem/1.2 var(--font-ui); color: var(--foam); margin: 0 0 8px; }
.book-info h1 { font: 800 clamp(2.6rem, 6vw, 5.2rem)/.9 var(--font-display); text-wrap: balance; }
.subtitle { font: italic 400 clamp(1.1rem, 1.8vw, 1.35rem)/1.4 var(--font-body); color: var(--on-ink-soft); margin: 14px 0 0; max-width: 32em; }
.status { display: inline-block; margin: 18px 0 0; padding: 5px 10px 6px; border: 1.5px solid var(--amber); border-radius: 3px; color: var(--amber); font: 700 1rem/1 var(--font-ui); }
.tagline { font-size: 1.15rem; line-height: 1.5; margin: 22px 0 28px; max-width: 32em; }
.pull { margin: 32px 0 0; padding-left: 18px; border-left: 2px solid var(--amber); font-style: italic; max-width: 34em; color: var(--on-ink-soft); }
.pull cite { display: block; margin-top: 8px; font: 600 .98rem var(--font-ui); font-style: normal; color: var(--foam); }
@media (max-width: 720px) {
  .book-hero .wrap { grid-template-columns: 1fr; }
  .cover-col { width: min(220px, 60vw); }
}

.book-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.note { margin-top: 36px; padding: 22px 24px; background: #e1e9e8; border-radius: 4px; }
.note h2 { font: 700 1.3rem/1 var(--font-ui); margin-bottom: 12px; }
.note p:last-child { margin: 0; }
.facts { margin: 0; display: grid; gap: 14px; }
.facts div { border-top: 1px solid rgba(13, 34, 54, .14); padding-top: 10px; }
.facts dt { font: 700 .98rem/1 var(--font-ui); color: var(--ink-soft); }
.facts dd { margin: 5px 0 0; font-size: .98rem; }
.in-series { margin-top: 34px; }
.in-series h2 { font: 700 1.3rem/1.1 var(--font-ui); margin-bottom: 14px; }
.in-series ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.in-series a { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--ink) !important; padding: 4px; border-radius: 4px; }
.in-series a:hover { background: #e1e9e8; }
.in-series [aria-current] a { background: #dde7e6; box-shadow: inset 3px 0 0 var(--amber); }
.in-series b { display: block; font: 700 1.08rem/1.1 var(--font-ui); }
.in-series i { font: 600 .88rem var(--font-ui); color: #9a5b07; font-style: normal; }
@media (max-width: 860px) { .book-body { grid-template-columns: 1fr; } }

.trailer, .reviews-wrap { margin-top: clamp(48px, 7vw, 80px); max-width: 900px; }
.trailer h2, .reviews-wrap h2 { font: 800 clamp(1.8rem, 3vw, 2.4rem)/1 var(--font-display); margin-bottom: 22px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.review { margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--tide); }
.review blockquote { margin: 0; font-style: italic; }
.review figcaption { margin-top: 8px; font: 600 .98rem var(--font-ui); color: var(--ink-soft); }

.more { padding: clamp(56px, 8vw, 96px) 0; }
.more h2 { font: 800 clamp(1.9rem, 3.4vw, 2.6rem)/1 var(--font-display); margin-bottom: 28px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #03101c; padding: clamp(56px, 8vw, 88px) 0 32px; border-top: 1px solid rgba(168, 220, 209, .12); }
.foot-main h2 { font: 800 clamp(2.2rem, 4vw, 3.2rem)/.95 var(--font-display); }
.foot-main p { color: var(--on-ink-soft); max-width: 34em; margin: 16px 0 26px; }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(168, 220, 209, .12); font-size: .9rem; color: var(--on-ink-soft); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--on-ink); }

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

/* ======================================================================
   Look Inside reader
   ====================================================================== */
body.reading { overflow: hidden; }
.reader {
  position: fixed; inset: 0; z-index: 100; background: #04111e; color: var(--on-ink);
  display: grid; grid-template-rows: auto 1fr auto; animation: fade-in .3s ease both;
  user-select: none; -webkit-user-select: none;
}
.reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); border-bottom: 1px solid rgba(255,255,255,.06); }
.reader-bar .ttl { min-width: 0; }
.reader-bar .ttl b { display: block; font: 600 1.25rem/1.15 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-bar .ttl span { font: 500 .74rem/1 var(--font-ui); color: var(--on-ink-soft); letter-spacing: .06em; }
.reader-bar .tools { display: flex; gap: 8px; align-items: center; flex: none; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); cursor: pointer; color: var(--on-ink);
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn[disabled] { opacity: .25; cursor: default; }

.reader-stage { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 20px 76px; touch-action: pan-y pinch-zoom; }
.spread { display: flex; justify-content: center; align-items: center; height: 100%; max-width: 100%; gap: 0; }
.leaf {
  height: 100%; max-height: 100%; background: #fff; position: relative; flex: 0 1 auto;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
}
.leaf img { height: 100%; width: auto; max-width: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.spread.two .leaf:first-child::after { /* gutter shadow */
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 30px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.18));
}
.spread.two .leaf:last-child::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30px;
  background: linear-gradient(270deg, transparent, rgba(0,0,0,.18));
}
.leaf.loading { aspect-ratio: 6/9; background: #0e2b44; }
.leaf.loading img { opacity: 0; }
.leaf img { transition: opacity .25s; }
.spread.turn-next { animation: turn-next .32s ease both; }
.spread.turn-prev { animation: turn-prev .32s ease both; }
@keyframes turn-next { from { opacity: .3; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes turn-prev { from { opacity: .3; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.zoomed .reader-stage { overflow: auto; align-items: flex-start; padding: 20px; }
.zoomed .spread { height: auto; }
.zoomed .leaf, .zoomed .leaf img { height: auto; width: min(1100px, 100%); }

.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 52px; height: 52px; }
.nav-arrow.prev { left: 14px; }
.nav-arrow.next { right: 14px; }
@media (max-width: 700px) {
  .reader-stage { padding: 12px; }
  .nav-arrow { display: none; }
}

.reader-foot { display: flex; align-items: center; gap: 18px; padding: 14px var(--gutter) max(14px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.06); }
.reader-foot .count { font: 600 .8rem/1 var(--font-ui); color: var(--on-ink-soft); min-width: 92px; font-variant-numeric: tabular-nums; }
.reader-foot input[type=range] { flex: 1; accent-color: var(--brass); }
.reader-foot .btn { padding: .75em 1.1em; font-size: .82rem; }
@media (max-width: 560px) { .reader-foot .btn span { display: none; } }

.endcard {
  height: 100%; max-height: 640px; aspect-ratio: 6/9; background: var(--paper); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 8% 9%; gap: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
}
.endcard .cover { width: 42%; }
.endcard h3 { font: 800 2rem/1 var(--font-display); }
.endcard p { margin: 0; color: var(--text-soft); font-size: .95rem; }
.zoomed .endcard { height: auto; width: min(480px, 100%); }
.reader .notice { font: 500 .8rem/1.4 var(--font-ui); color: var(--on-ink-soft); text-align: center; }
