/* ==========================================================================
   Kate Lorén — site styles (home, shelf, legal pages, shared components).
   Look: a dark screening room. Warm black, champagne type, a thin line of gold.
   ========================================================================== */

:root {
  --ink-0: #0b0a09;
  --ink-1: #12100f;
  --ink-2: #1a1715;
  --ink-3: #24201d;
  --line: rgba(236, 219, 190, 0.14);
  --line-2: rgba(236, 219, 190, 0.26);
  --cream: #f1e8da;
  --cream-2: #cbc1b2;
  --cream-3: #948b7e;
  --gold: #d8b07a;
  --gold-2: #f0d9ae;
  --gold-deep: #9a7440;
  --accent: var(--gold);
  --accent-rgb: 216, 176, 122;
  --font-display: 'Cormorant Garamond', 'Cormorant', 'Times New Roman', serif;
  --font-text: 'Literata', Georgia, 'Times New Roman', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(20px, 5.4vw, 40px);
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--cream);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(216, 176, 122, 0.35); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* film grain over everything, very quiet */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- small type helpers ---------- */
.caps {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.display { font-family: var(--font-display); font-weight: 500; line-height: 1.02; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(0.975); }
.btn-primary {
  background: linear-gradient(180deg, #f3dfb8 0%, #d8b07a 100%);
  color: #17120b;
  box-shadow: 0 10px 34px -12px rgba(var(--accent-rgb), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(var(--accent-rgb), 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-wide { width: 100%; }
.btn .arr { font-size: 16px; letter-spacing: 0; transform: translateY(-1px); }
.link {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(216, 176, 122, 0.4);
  padding-bottom: 3px;
}
.link:hover { color: var(--gold-2); border-color: var(--gold-2); }

/* ---------- top bar ---------- */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: calc(60px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--pad) 0;
  transition: background-color 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.top.solid {
  background: rgba(11, 10, 9, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-color: var(--line);
}
.wordmark {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
}
.top-nav { display: flex; align-items: center; gap: 6px; }
.top-nav a, .top-nav button {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-2);
  padding: 12px 10px;
  border-radius: 8px;
}
.top-nav a:hover, .top-nav button:hover { color: var(--gold-2); }
.top-nav .lang-on { color: var(--gold); }
.top-nav .sep { width: 1px; height: 14px; background: var(--line-2); margin: 0 4px; }
.shelf-link { position: relative; }
.shelf-link .dot { position: absolute; top: 9px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: none; }
.shelf-link.has .dot { display: block; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) clamp(44px, 9vh, 96px);
  isolation: isolate;
  overflow: hidden;
}
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 10, 9, 0.5) 0%, rgba(11, 10, 9, 0) 22%, rgba(11, 10, 9, 0.12) 46%, rgba(11, 10, 9, 0.86) 74%, var(--ink-0) 100%);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.9rem, 13.6vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 -0.1em 0 0;
}
/* the sections of the site in one thin golden line right under the name: books, the characters' songs,
   Instagram, Telegram. Small on purpose: the faces on the picture stay open. */
.hero-links { color: var(--gold); margin: 10px 0 20px; display: flex; flex-wrap: wrap; gap: 0 14px; }
.hero-links a { padding: 10px 0; transition: color 0.25s; }
.hero-links a:not(:last-child)::after { content: '\00B7'; margin-left: 14px; opacity: 0.7; }
.hero-links a:hover { color: var(--gold-2); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }

/* ---------- gold seam (kintsugi line) ---------- */
.seam { display: block; width: 100%; height: auto; overflow: visible; pointer-events: none; }
.seam path { fill: none; stroke: url(#seam-gold); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.seam .glow { stroke: #f0d9ae; opacity: 0.22; filter: blur(3px); }
.seam-wrap { margin: 0 calc(var(--pad) * -1); opacity: 0.9; }
/* The seam of the home page lies straight in the list of books, which has no side padding: there it must not
   reach past the screen (on a phone that made the whole page a little wider than the screen). */
.books > .seam-wrap { margin-left: 0; margin-right: 0; overflow: hidden; }

/* ---------- continue reading ---------- */
.resume { padding: 4px var(--pad) 0; display: none; }
.resume.on { display: block; }
.resume-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.12), rgba(255, 255, 255, 0.02) 60%);
  max-width: 720px;
  margin: 0 auto;
}
.resume-card img { width: 64px; border-radius: 6px; box-shadow: 0 8px 20px -8px #000; }
.resume-k { color: var(--gold); margin: 0 0 4px; }
.resume-t { font-family: var(--font-display); font-size: 23px; font-weight: 500; line-height: 1.08; margin: 0; }
.resume-s { font-family: var(--font-ui); font-size: 12.5px; color: var(--cream-3); margin: 5px 0 0; }
.resume-bar { height: 2px; background: var(--line); border-radius: 2px; margin-top: 9px; overflow: hidden; }
.resume-bar i { display: block; height: 100%; background: var(--gold); border-radius: 2px; }
.resume-go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--gold-2); font-size: 18px; }

/* ---------- section heading ---------- */
.sec-head { padding: clamp(56px, 11vw, 110px) var(--pad) 8px; text-align: center; }
.sec-head .caps { color: var(--gold); }
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 9vw, 3.8rem);
  line-height: 1;
  margin: 14px 0 0;
}
.sec-head p { color: var(--cream-2); max-width: 34em; margin: 18px auto 0; text-wrap: pretty; }

/* ---------- book "scenes" ---------- */
.books { counter-reset: bk; }
.bk {
  position: relative;
  padding: clamp(52px, 12vw, 120px) var(--pad);
  isolation: isolate;
  scroll-margin-top: 40px;
}
.bk::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 46% at 50% 12%, rgba(var(--accent-rgb), 0.2), transparent 70%),
    linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.035) 50%, transparent);
}
.bk + .bk { border-top: 1px solid var(--line); }
.bk-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); }
.bk-poster { position: relative; width: min(66vw, 320px); margin: 0 auto; }
.bk-poster a { display: block; position: relative; border-radius: 10px; transition: transform 0.6s var(--ease); }
.bk-poster img, .bk-poster .cover-typo {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 40px 70px -30px rgba(0, 0, 0, 0.9), 0 18px 60px -18px rgba(var(--accent-rgb), 0.35);
  background: var(--ink-2);
}
.bk-poster a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 28%);
  pointer-events: none;
}
.bk-age {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(11, 10, 9, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.bk-body { max-width: 34em; margin: 0 auto; width: 100%; min-width: 0; }
.bk-kicker { color: var(--accent); margin: 0 0 14px; }
.bk-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 11vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
.bk-sub { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 5.4vw, 1.7rem); line-height: 1.15; margin: 10px 0 0; color: var(--cream-2); }
.bk-hook {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.32rem, 5.6vw, 1.7rem);
  line-height: 1.24;
  color: var(--accent);
  margin: 18px 0 0;
  text-wrap: balance;
}
.bk-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.bk-meta li {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cream-2);
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.bk-meta li.age { color: var(--cream); border-color: var(--line-2); }
.bk-meta li.free { color: #17120b; background: var(--accent); border-color: transparent; letter-spacing: 0.12em; text-transform: uppercase; font-size: 10.5px; font-weight: 700; }

.bk-anno { position: relative; margin-top: 24px; color: var(--cream-2); overflow: hidden; }
.bk-anno p { margin: 0 0 0.85em; text-wrap: pretty; }
.bk-anno p:last-child { margin-bottom: 0; }
.bk-anno p.quote {
  font-style: italic;
  color: var(--cream);
  border-left: 1px solid var(--accent);
  padding: 2px 0 2px 16px;
  margin: 1.1em 0;
}
.bk-anno p.beat { color: var(--cream); font-style: italic; }
.bk-anno .series-about { font-size: 0.94em; padding-top: 1em; margin-top: 1.2em; border-top: 1px solid var(--line); color: var(--cream-3); }
.js .bk-anno.collapsed { max-height: 7.9em; -webkit-mask-image: linear-gradient(180deg, #000 34%, transparent 100%); mask-image: linear-gradient(180deg, #000 34%, transparent 100%); }
.js .bk-anno { transition: max-height 0.6s var(--ease); }
.bk-more {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 0;
  color: var(--accent);
}
.js .bk-more { display: inline-flex; }
.bk-more .chev { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 0.4s var(--ease); }
.bk-more[aria-expanded='true'] .chev { transform: translateY(2px) rotate(-135deg); }
.bk-note { font-family: var(--font-ui); font-size: 12.5px; line-height: 1.5; color: var(--cream-3); margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.bk-note b { color: var(--cream-2); font-weight: 600; }
.bk-cta { margin-top: 28px; display: grid; gap: 14px; }
.bk-free { font-family: var(--font-ui); font-size: 12.5px; color: var(--cream-3); margin: 0; text-align: center; }
.bk-free b { color: var(--cream-2); font-weight: 600; }
.bk-what { color: var(--gold); border-bottom: 1px solid rgba(216, 176, 122, 0.4); white-space: nowrap; }
.bk-what:hover { color: var(--gold-2); border-color: var(--gold-2); }
.bk-cta .btn { width: 100%; }
/* the printed book on Amazon: outlined buttons right under the main button, a little lower and quieter than it */
.bk-print { margin-top: 14px; display: grid; gap: 10px; }
.bk-print .caps { color: var(--cream-3); margin: 6px 0 0; text-align: center; }
.bk-print-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bk-print .btn { width: 100%; min-height: 48px; padding: 6px 14px; font-size: 12px; letter-spacing: 0.12em; }
.bk-print .btn .arr { display: inline-block; font-size: 14px; }
/* "Share": a small quiet control at the bottom of a book's card */
.bk-share { margin: 16px 0 0; text-align: center; }
.bk-share button { display: inline-flex; align-items: center; gap: 9px; padding: 10px 6px; color: var(--cream-3); transition: color 0.25s; }
.bk-share button:hover { color: var(--gold-2); }
.bk-share svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bk-owned { display: none; }
.bk.owned .bk-owned { display: inline; color: var(--gold-2); }
.bk.owned .bk-price { display: none; }

/* a book that is announced but not out yet */
.bk-poster-in { display: block; position: relative; border-radius: 10px; }
.bk-ribbon {
  position: absolute;
  top: 14px;
  left: -6px;
  padding: 8px 14px 8px 16px;
  border-radius: 3px 999px 999px 3px;
  background: var(--accent);
  color: #17120b;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.9);
}
.btn-soon { cursor: default; color: var(--cream-2); border-style: dashed; }
.btn-soon:hover { border-color: var(--line-2); color: var(--cream-2); }

/* ---------- a book's extras: its soundtrack and extra pictures ---------- */
.bk-extras { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.bk-extra { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.02); min-width: 0; overflow: hidden; }
.bk-extra summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; color: var(--accent); }
.bk-extra summary::-webkit-details-marker { display: none; }
.bk-extra summary .n { margin-left: auto; font-family: var(--font-ui); font-size: 12.5px; color: var(--cream-3); }
.bk-extra summary::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.3s var(--ease); }
.bk-extra[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.bk-extra-p { margin: 0; padding: 0 16px 10px; font-family: var(--font-ui); font-size: 13px; line-height: 1.5; color: var(--cream-3); }
/* soundtracks: the colours of the song lists and of the player on these dark pages (the rules are in player.css) */
.ost, .pl {
  --pl-fg: var(--cream);
  --pl-muted: var(--cream-3);
  --pl-line: var(--line-2);
  --pl-hover: rgba(255, 255, 255, 0.05);
  --pl-accent: var(--accent);
  --pl-ink: #17120b;
  --pl-bg: rgba(18, 16, 15, 0.92);
}
.bk-extra .ost { padding: 0 8px 8px; }
.bk-extra-p .bk-what { margin-left: 4px; }
.shots { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 16px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.shot { flex: none; scroll-snap-align: start; border-radius: 10px; overflow: hidden; }
.shot img { height: 230px; width: auto; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(6, 5, 4, 0.92); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 80px -20px #000; }
.lightbox button { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--cream); font-size: 22px; line-height: 1; }

/* ---------- Instagram + Telegram ---------- */
.social { padding-bottom: clamp(20px, 5vw, 48px); }
.soc-in { max-width: 760px; margin: clamp(26px, 5vw, 44px) auto 0; padding: 0 var(--pad); display: grid; gap: 14px; }
.soc-card { position: relative; display: grid; gap: 6px; padding: 24px 56px 24px 22px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(140deg, rgba(216, 176, 122, 0.1), rgba(255, 255, 255, 0.015) 60%); transition: border-color 0.25s, transform 0.25s var(--ease); }
.soc-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.soc-card .caps { color: var(--gold); }
.soc-card b { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 6.6vw, 2.1rem); line-height: 1.08; }
.soc-card .p { color: var(--cream-2); font-size: 0.96em; text-wrap: pretty; }
.soc-card .go { position: absolute; top: 22px; right: 22px; color: var(--gold-2); font-size: 20px; }
@media (min-width: 720px) {
  .soc-in { grid-template-columns: 1fr 1fr; }
  .soc-music { grid-column: 1 / -1; }
}

/* ---------- the music page ---------- */
.mu { max-width: 860px; margin: 0 auto; padding: calc(100px + env(safe-area-inset-top)) var(--pad) 70px; }
.mu-head { text-align: center; padding-bottom: clamp(30px, 7vw, 54px); }
.mu-head .caps { color: var(--gold); margin: 0; }
.mu-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 13vw, 4.8rem); line-height: 1; margin: 12px 0 0; }
.mu-head .lead { color: var(--cream-2); max-width: 30em; margin: 16px auto 0; text-wrap: pretty; }
.mu-go { display: grid; justify-items: center; gap: 12px; margin-top: 26px; }
.mu-go .tri { width: 0; height: 0; border: 7px solid transparent; border-left: 11px solid currentColor; border-right: 0; }
.mu-total { font-family: var(--font-ui); font-size: 12.5px; color: var(--cream-3); }
.mu-album { position: relative; padding: clamp(26px, 6vw, 42px) 0 clamp(18px, 4vw, 28px); border-top: 1px solid var(--line); scroll-margin-top: 62px; isolation: isolate; }
.mu-album::before { content: ''; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1; background: radial-gradient(70% 90% at 12% 0%, rgba(var(--accent-rgb), 0.16), transparent 70%); pointer-events: none; }
.mu-album-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.mu-covers { display: flex; flex: none; }
.mu-covers a { display: block; width: 76px; border-radius: 6px; overflow: hidden; box-shadow: 0 14px 28px -14px #000, 0 0 0 1px rgba(255, 255, 255, 0.08); transition: transform 0.3s var(--ease); }
.mu-covers a + a { margin-left: -40px; }
.mu-covers a:hover { transform: translateY(-4px); position: relative; z-index: 1; }
.mu-covers img { width: 100%; height: auto; }
.mu-album-t { min-width: 0; }
.mu-album-t .caps { color: var(--accent); margin: 0 0 6px; }
.mu-album h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 7vw, 2.5rem); line-height: 1.04; margin: 0; text-wrap: balance; }
.mu-n, .mu-books { font-family: var(--font-ui); font-size: 12.5px; line-height: 1.5; color: var(--cream-3); margin: 8px 0 0; }
.mu-books a { color: var(--cream-2); border-bottom: 1px solid var(--line-2); }
.mu-books a:hover { color: var(--gold-2); border-color: var(--gold-2); }
.mu-album .ost { margin: 0 -8px; }

/* typographic stand-in cover (used until a real cover file is added) */
.cover-typo {
  aspect-ratio: 2 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 11% 9% 10%;
  text-align: center;
  background: #14110f var(--typo-art, none) center / cover no-repeat !important;
  position: relative;
  overflow: hidden;
  container-type: inline-size;
}
.cover-typo::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 45%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62)); }
.cover-typo > * { position: relative; }
.cover-typo .ct-author { font-family: var(--font-display); font-weight: 500; font-size: 7.4cqw; letter-spacing: 0.34em; margin-right: -0.34em; text-transform: uppercase; color: #ecd7b0; }
.cover-typo .ct-title { font-family: var(--font-display); font-weight: 400; font-size: 17cqw; line-height: 0.95; letter-spacing: 0.04em; text-transform: uppercase; color: #e9dcc6; }
.cover-typo .ct-title i { display: block; font-size: 0.8em; font-weight: 500; text-transform: none; letter-spacing: 0; color: #e6c48c; margin-bottom: 0.04em; }
.cover-typo .ct-tag { font-family: var(--font-display); font-size: 4.3cqw; letter-spacing: 0.2em; text-transform: uppercase; color: #e9dcc6; line-height: 1.5; }

/* ---------- about the author: the second screen, right after the name ---------- */
.about { padding: clamp(44px, 9vw, 96px) var(--pad) clamp(8px, 2vw, 20px); position: relative; }
.about-in { max-width: 36em; margin: 0 auto; text-align: center; }
.about h2 { color: var(--gold); margin: 0 0 18px; }
/* her three professions stand right above the text that begins "Three professions, one passion" */
.about-roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; margin: 0 0 22px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 6.2vw, 2.1rem); line-height: 1.15; letter-spacing: 0.03em; color: var(--cream); }
.about-roles span:not(:last-child)::after { content: '·'; margin-left: 14px; color: var(--gold); }

/* ---------- the quick list of the books by cycle: posters in rows, like a cinema bill ---------- */
.cat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 1180px; margin: clamp(30px, 6vw, 52px) auto clamp(6px, 2vw, 18px); padding: 0 var(--pad); }
.cat-row { min-width: 0; max-width: 100%; }
.cat-h { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-family: var(--font-display); font-weight: 500; font-size: 1.55rem; line-height: 1.1; }
.cat-h .caps { color: var(--gold); }
.cat-list { display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px 4px; margin: -6px -2px 0; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cat-list::-webkit-scrollbar { display: none; }
.cat-item { flex: none; width: 103px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; scroll-snap-align: start; }
.cat-cover { display: block; width: 100%; aspect-ratio: 2 / 3; margin-bottom: 6px; border-radius: 6px; overflow: hidden; background: var(--ink-2); box-shadow: 0 16px 30px -16px #000, 0 0 0 1px rgba(255, 255, 255, 0.08); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.cat-cover img, .cat-cover .cover-typo { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.cat-item:hover .cat-cover { transform: translateY(-5px); box-shadow: 0 22px 34px -16px #000, 0 0 0 1px var(--accent); }
.cat-n { font-size: 9.5px; letter-spacing: 0.2em; color: var(--cream-3); }
.cat-t { font-family: var(--font-display); font-weight: 500; font-size: 1.14rem; line-height: 1.1; color: var(--cream); overflow-wrap: anywhere; }
.cat-tag { margin-top: 2px; font-family: var(--font-ui); font-size: 11px; font-weight: 650; letter-spacing: 0.06em; color: var(--cream-2); }
.cat-tag.free { color: var(--accent); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.cat-tag.soon { color: var(--cream-3); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
@media (min-width: 900px) {
  .cat { display: flex; flex-wrap: wrap; justify-content: center; gap: 38px 40px; }
  .cat-item { width: 116px; }
  .cat-h { font-size: 1.75rem; }
}
.about-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.45rem, 5.9vw, 2rem);
  line-height: 1.24;
  color: var(--cream);
  margin: 0 0 24px;
  text-wrap: balance;
}
.about p.t { color: var(--cream-2); margin: 0 0 1em; text-wrap: pretty; }

/* ---------- "you bought a book — what next?" ---------- */
.how { padding-bottom: clamp(56px, 10vw, 100px); border-top: 1px solid var(--line); margin-top: clamp(40px, 8vw, 80px); }
.how-in { max-width: 760px; margin: clamp(26px, 5vw, 44px) auto 0; padding: 0 var(--pad); display: grid; gap: 16px; }
.how-card { border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px; background: rgba(255, 255, 255, 0.02); }
.how-n { color: var(--gold); margin: 0 0 8px; }
.how-card h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 6.6vw, 2.1rem); line-height: 1.08; margin: 0 0 16px; }
.how-card h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; line-height: 1.12; margin: 0 0 12px; color: var(--cream); }
.how-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--cream-2); }
.how-list li { position: relative; padding-left: 26px; text-wrap: pretty; }
.how-list li::before { content: ''; position: absolute; left: 3px; top: 0.62em; width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--gold); }
.how-find { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------- how not to lose the site: steps with pictures of the buttons ---------- */
.keep-card {
  margin-top: 22px;
  padding: 24px 20px;
  border: 1px solid rgba(216, 176, 122, 0.34);
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(216, 176, 122, 0.12), rgba(255, 255, 255, 0.015) 60%);
  scroll-margin-top: 84px;
}
.keep-k { color: var(--gold); margin: 0 0 8px; }
.how-card .keep-card h3 { font-size: clamp(1.5rem, 6vw, 1.85rem); margin: 0 0 10px; }
.keep-p { color: var(--cream-2); margin: 0 0 18px; text-wrap: pretty; }
.keep-inapp { border: 1px solid var(--gold-deep); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; color: var(--gold-2); font-family: var(--font-ui); font-size: 14.5px; line-height: 1.5; }
.keep-install { width: 100%; margin: 0 0 16px; }
.keep-tabs { display: none; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; margin: 0 0 6px; }
.js .keep-tabs { display: grid; }
.keep-tabs button { min-height: 40px; border-radius: 999px; font-family: var(--font-ui); font-size: 12.5px; font-weight: 650; letter-spacing: 0.06em; color: var(--cream-2); }
.keep-tabs button[aria-pressed='true'] { background: linear-gradient(180deg, #f3dfb8, #d8b07a); color: #17120b; }
.keep-steps h4 { font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin: 22px 0 0; }
.js .keep-steps { display: none; }
.js .keep-steps.on { display: block; }
.js .keep-steps h4 { display: none; }
.keep-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.keep-steps li { counter-increment: st; position: relative; padding: 16px 0 16px 48px; border-top: 1px solid var(--line); }
.keep-steps li:first-child { border-top: 0; }
.keep-steps li::before {
  content: counter(st);
  position: absolute;
  left: 0;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f3dfb8, #d8b07a);
  color: #17120b;
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
}
.ks-main { display: block; color: var(--cream); font-size: 1.06em; line-height: 1.45; }
.ks-hint { display: block; margin-top: 6px; font-family: var(--font-ui); font-size: 13.5px; line-height: 1.5; color: var(--cream-3); }
.ki { display: inline-block; width: 1.75em; height: 1.75em; padding: 0.28em; margin: 0 0.12em; vertical-align: -0.5em; border: 1px solid var(--line-2); border-radius: 0.45em; background: rgba(255, 255, 255, 0.06); fill: none; stroke: var(--gold-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ki-fill { fill: var(--gold-2); stroke: none; }
.keep-or { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.how-card .keep-or h4 { font-size: 1.3rem; margin: 0 0 8px; }
.keep-or p { color: var(--cream-2); margin: 0 0 16px; font-size: 0.96em; }
.keep-or .btn { width: 100%; }
.keep-card.done .keep-tabs, .keep-card.done .keep-steps, .keep-card.done .keep-install { display: none !important; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px var(--pad) calc(44px + env(safe-area-inset-bottom)); text-align: center; }
.foot .wordmark { font-size: 16px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 22px 0 18px; padding: 0; list-style: none; }
.foot-links a { font-family: var(--font-ui); font-size: 12.5px; color: var(--cream-2); padding: 6px 0; }
.foot-links a:hover { color: var(--gold-2); }
.foot small { font-family: var(--font-ui); font-size: 11.5px; color: var(--cream-3); display: block; line-height: 1.6; }

/* ---------- reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js .bk-anno { transition: none; }
}

/* ---------- simple text pages (legal, shelf) ---------- */
.page { max-width: 46em; margin: 0 auto; padding: calc(96px + env(safe-area-inset-top)) var(--pad) 80px; }
.page h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 8.4vw, 3.4rem); line-height: 1.04; margin: 0 0 12px; }
.page .lead { color: var(--cream-2); margin: 0 0 30px; }
.page h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; line-height: 1.15; margin: 2em 0 0.5em; }
.page p, .page li { color: var(--cream-2); }
.page ul, .page ol { padding-left: 1.2em; }
.page a.inline { color: var(--gold); border-bottom: 1px solid rgba(216, 176, 122, 0.4); }
/* a button that reads as a link inside a text (the privacy page: "do not count my visits"); once pressed it is plain text */
.linkish { display: inline; font: inherit; text-align: left; color: var(--gold); border-bottom: 1px solid rgba(216, 176, 122, 0.4); }
.linkish:hover { color: var(--gold-2); border-color: var(--gold-2); }
.linkish:disabled { color: var(--cream); border-bottom-color: transparent; cursor: default; }
.page .draft { border: 1px dashed var(--gold-deep); border-radius: 14px; padding: 14px 16px; font-family: var(--font-ui); font-size: 13.5px; color: var(--gold-2); margin: 0 0 28px; }
.page .fill { background: rgba(216, 176, 122, 0.16); color: var(--gold-2); padding: 0 5px; border-radius: 4px; font-family: var(--font-ui); font-size: 0.9em; }

/* shelf */
.shelf-grid { display: grid; gap: 14px; margin: 18px 0 0; }
.shelf-item { display: grid; grid-template-columns: 78px 1fr; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.02); }
.shelf-item img, .shelf-item .cover-typo { width: 78px; border-radius: 6px; }
.shelf-item h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.08; margin: 0; color: var(--cream); }
.shelf-item .s { font-family: var(--font-ui); font-size: 12.5px; color: var(--cream-3); margin: 5px 0 10px; }
.shelf-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cream);
}
.chip.gold { background: linear-gradient(180deg, #f3dfb8, #d8b07a); color: #17120b; border-color: transparent; }
.chip:hover { border-color: var(--gold); }
.empty { border: 1px dashed var(--line-2); border-radius: 18px; padding: 26px 20px; text-align: center; color: var(--cream-3); font-family: var(--font-ui); font-size: 14px; }
.field { display: grid; gap: 8px; margin: 14px 0; }
.field label { font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-3); }
.input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 17px;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.input:focus { border-color: var(--gold); background: rgba(255, 255, 255, 0.07); }
.input::placeholder { color: var(--cream-3); }
.msg { font-family: var(--font-ui); font-size: 13.5px; margin: 10px 0 0; color: var(--gold-2); min-height: 1.4em; }
.msg.err { color: #ff9c8a; }

/* ---------- small phones ---------- */
@media (max-width: 599px) {
  .top-nav a:first-child { display: none; }
  .top { gap: 8px; }
  .top-nav { gap: 0; }
  .top-nav a, .top-nav button { padding: 12px 6px; letter-spacing: 0.12em; }
  .top-nav .sep { margin: 0 2px; }
  .wordmark { font-size: 16px; letter-spacing: 0.2em; }
  .hero-links { gap: 0 7px; font-size: 10px; letter-spacing: 0.09em; }
  .hero-links a:not(:last-child)::after { margin-left: 7px; }
  .mu-covers a { width: 62px; }
  .mu-covers a + a { margin-left: -36px; }
  .mu-album-head { gap: 14px; }
  .how-card { padding: 24px 18px; }
  .keep-card { margin-left: -8px; margin-right: -8px; padding: 22px 16px; }
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  body { font-size: 18px; }
  .hero { justify-content: center; padding-bottom: 0; min-height: min(100vh, 880px); }
  .hero-art img { object-position: 50% 30%; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(11, 10, 9, 0.88) 0%, rgba(11, 10, 9, 0.55) 34%, rgba(11, 10, 9, 0) 62%),
      linear-gradient(180deg, rgba(11, 10, 9, 0.55) 0%, rgba(11, 10, 9, 0) 20%, rgba(11, 10, 9, 0) 70%, var(--ink-0) 100%);
  }
  .hero-in { max-width: 1240px; width: 100%; margin: 0 auto; padding-top: 60px; }
  .hero-text { max-width: 600px; }
  .bk-in { grid-template-columns: minmax(280px, 400px) 1fr; align-items: start; }
  .bk-poster { width: 100%; position: sticky; top: 96px; }
  .bk-body { margin: 0; padding-top: 18px; }
  .bk:nth-child(even) .bk-in { grid-template-columns: 1fr minmax(280px, 400px); }
  .bk:nth-child(even) .bk-poster { order: 2; }
  .bk:nth-child(even) .bk-body { margin-left: auto; }
  .bk-poster a:hover { transform: translateY(-6px) rotate(-0.6deg); }
  .bk-cta { grid-template-columns: auto 1fr; align-items: center; gap: 22px; }
  .bk-free { text-align: left; }
  /* two buttons (read the excerpt + Amazon): side by side, the note under them */
  .bk-cta-2 { grid-template-columns: auto auto 1fr; gap: 14px; }
  .bk-cta-2 .bk-free { grid-column: 1 / -1; }
  .bk-share { text-align: left; }
  .bk-print { justify-items: start; }
  .bk-print .caps { text-align: left; }
  .bk-print-links { grid-template-columns: auto auto; }
  .bk-print .btn { width: auto; padding: 6px 22px; }
  .bk::before { background: radial-gradient(60% 70% at 22% 40%, rgba(var(--accent-rgb), 0.17), transparent 70%); }
  .bk:nth-child(even)::before { background: radial-gradient(60% 70% at 78% 40%, rgba(var(--accent-rgb), 0.17), transparent 70%); }
  .wordmark { font-size: 21px; }
}

/* ---------- narrow phones: the top line still holds the name, Music, Shelf and the language switch ---------- */
@media (max-width: 380px) {
  .wordmark { font-size: 15px; letter-spacing: 0.12em; }
  .top-nav a, .top-nav button { padding: 12px 4px; }
}
@media (max-width: 340px) {
  .top-nav .shelf-link { display: none; }
}
