/* =========================================================
   Nicks Walker — Author Website
   "Ally of Yellow, enemy of the sun."
   ========================================================= */

:root {
  --ink: #141313;
  --ink-soft: #3a3836;
  --muted: #74706a;
  --paper: #ffffff;
  --cream: #faf7f0;
  --line: #ebe6db;
  --yellow: #f5c518;
  --yellow-soft: #fff4c7;
  --yellow-deep: #d9a800;
  --radius: 18px;
  --shadow: 0 30px 60px -30px rgba(20, 19, 19, .28);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.6rem; }
em, .italic { font-style: italic; }
p { margin: 0 0 1.1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--yellow-soft);
}

.hl {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
  padding: 0 .08em;
}

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0,0,0,.45); }
.btn--yellow { --bg: var(--yellow); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}
.brand__img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 2px solid var(--yellow);
  padding: 2px;
  background: #fff;
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand__name small {
  display: block;
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .3rem;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links .btn { padding: .65rem 1.2rem; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
  transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle span { top: 21px; }
.menu-toggle span::before { top: -7px; left: 0; right: 0; }
.menu-toggle span::after { top: 7px; left: 0; right: 0; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(3.6rem, 10vw, 8.2rem);
  line-height: .9;
  letter-spacing: -0.045em;
  margin-bottom: 1.6rem;
}
.hero h1 .italic { color: var(--ink-soft); }
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.hero__meta div { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.hero__meta strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  color: var(--ink);
}

/* Portrait with eclipsing sun */
.portrait {
  position: relative;
  width: min(100%, 440px);
  margin-inline: auto;
  aspect-ratio: 4 / 5;
}
.portrait__sun {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
  top: -6%;
  right: -10%;
  z-index: 0;
  animation: sunDrift 9s ease-in-out infinite alternate;
}
.portrait__sun::after {
  /* the "enemy of the sun" eclipse */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--paper);
  transform: translate(38%, -8%);
  animation: eclipse 9s ease-in-out infinite alternate;
}
@keyframes sunDrift { to { transform: translate(-6%, 6%); } }
@keyframes eclipse { from { transform: translate(44%, -10%); } to { transform: translate(26%, -4%); } }

.portrait__frame {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: 220px 220px 24px 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 10px solid #fff;
  outline: 1px solid var(--line);
}
.portrait__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 48% 28%;
  image-rendering: auto;
  filter: contrast(1.03) saturate(1.04);
}
.portrait__badge {
  position: absolute;
  z-index: 2;
  left: -34px;
  bottom: 40px;
  width: 132px; height: 132px;
}
.portrait__badge svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.portrait__badge::after {
  content: "✶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  color: var(--ink);
}
.portrait__badge circle { fill: #fff; stroke: var(--ink); stroke-width: 1; }
.portrait__badge text {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  fill: var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--ink);
  background: var(--yellow);
  overflow: hidden;
  padding: 1rem 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee 38s linear infinite;
}
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee span::after { content: "✶"; font-style: normal; font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--cream { background: var(--cream); }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3.2rem;
  flex-wrap: wrap;
}
.section__head p { max-width: 46ch; color: var(--muted); margin: 0; }

/* ---------- Showreel (book mockup "video") ---------- */
.reel {
  position: relative;
  isolation: isolate;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.reel__screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.reel__stage {
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 58%, var(--yellow-soft) 0 34%, transparent 35%),
    linear-gradient(180deg, #fffdf6, #fff);
  perspective: 1400px;
  overflow: hidden;
}
.reel__stage::before {
  /* floor shadow */
  content: "";
  position: absolute;
  bottom: 13%;
  left: 50%;
  width: 220px; height: 26px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0,0,0,.22), transparent 70%);
  filter: blur(4px);
}
.reel__rec {
  position: absolute;
  top: 20px; left: 22px;
  display: flex; align-items: center; gap: .5rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}
.reel__rec::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #e5392f; animation: blink 1.4s steps(2) infinite;
}
.reel.is-paused .reel__rec::before { animation: none; background: var(--muted); }
@keyframes blink { 50% { opacity: 0; } }

.reel__info {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.reel__slide { display: none; }
.reel__slide.is-active { display: block; animation: slideIn .7s cubic-bezier(.2,.7,.2,1); }
@keyframes slideIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reel__slide .tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  background: var(--yellow-soft); color: var(--ink);
  padding: .35rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
.reel__slide h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: .3em; }
.reel__slide .by { color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }
.reel__slide p { color: var(--ink-soft); }

.reel__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.reel__btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s ease;
  flex: none;
}
.reel__btn:hover { background: var(--yellow); }
.reel__btn svg { width: 16px; height: 16px; }
.reel__btn--play { background: var(--ink); color: #fff; }
.reel__btn--play:hover { background: var(--ink-soft); }
.reel__progress { display: flex; gap: 6px; flex: 1; }
.reel__bar {
  flex: 1; height: 4px; border-radius: 4px;
  background: var(--line); overflow: hidden; cursor: pointer; border: 0; padding: 0;
}
.reel__bar i { display: block; height: 100%; width: 0; background: var(--ink); }
.reel__bar.done i { width: 100%; }
.reel__time { font-variant-numeric: tabular-nums; font-size: .8rem; color: var(--muted); min-width: 44px; text-align: right; }

/* ---------- 3D Book mockup ---------- */
.book3d {
  --w: 210px;
  --h: 300px;
  --d: 34px;
  position: relative;
  width: var(--w);
  height: var(--h);
  transform-style: preserve-3d;
  transform: rotateY(-28deg) rotateX(6deg);
}
.reel .book3d { animation: turn 5s ease-in-out infinite; }
.reel.is-paused .book3d { animation-play-state: paused; }
@keyframes turn {
  0%   { transform: translateY(14px) rotateY(-42deg) rotateX(8deg); }
  50%  { transform: translateY(-8px) rotateY(-14deg) rotateX(3deg); }
  100% { transform: translateY(14px) rotateY(-42deg) rotateX(8deg); }
}
.book3d > div { position: absolute; }
.book3d__front {
  inset: 0;
  transform: translateZ(calc(var(--d) / 2));
  border-radius: 2px 6px 6px 2px;
  overflow: hidden;
  box-shadow: inset 4px 0 8px rgba(0,0,0,.18);
}
.book3d__back {
  inset: 0;
  transform: rotateY(180deg) translateZ(calc(var(--d) / 2));
  background: var(--c2, #222);
  border-radius: 6px 2px 2px 6px;
}
.book3d__spine {
  top: 0; left: 0;
  width: var(--d); height: var(--h);
  transform: rotateY(-90deg) translateZ(calc(var(--d) / 2));
  background: var(--c2, #222);
  color: var(--spine-fg, #fff);
  display: grid; place-items: center;
}
.book3d__spine b {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--serif);
  font-weight: 400;
  font-size: .78rem;
  letter-spacing: .08em;
  white-space: nowrap;
}
.book3d__pages {
  top: 3px; left: calc(var(--w) - var(--d) / 2 - 3px);
  width: var(--d); height: calc(var(--h) - 6px);
  transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #fbf8f1 0 2px, #e9e3d6 2px 3px);
}
.book3d__top {
  top: 0; left: 0;
  width: var(--w); height: var(--d);
  transform: rotateX(90deg) translateZ(calc(var(--d) / 2));
  background: #f1ece1;
}

/* ---------- Covers (stylised, CSS-only) ---------- */
.cover {
  position: absolute; inset: 0;
  padding: 22px 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff;
  font-family: var(--serif);
}
.cover__title { font-size: 1.55rem; line-height: 1.02; letter-spacing: -0.02em; }
.cover__author { font-family: var(--sans); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 700; }
.cover__press { font-family: var(--sans); font-size: .55rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }

.cover--vapour {
  background:
    linear-gradient(transparent 58%, rgba(255,255,255,.0) 58%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.55) 0 1px, transparent 1px 16px) 0 100% / 100% 42% no-repeat,
    radial-gradient(circle at 50% 58%, #ffd36e 0 18%, #ff6fb5 19% 20%, transparent 21%),
    linear-gradient(180deg, #2b1055 0%, #7b2ff7 45%, #ff71ce 75%, #01cdfe 100%);
}
.cover--vapour .cover__title { text-shadow: 3px 3px 0 #01cdfe, -2px -2px 0 #ff71ce; text-transform: uppercase; font-size: 1.3rem; }

.cover--unreal {
  background:
    radial-gradient(circle at 75% 25%, #ff3d6e 0 22%, transparent 23%),
    radial-gradient(circle at 30% 70%, #ffb3c7 0 14%, transparent 15%),
    #1b0b14;
}
.cover--unreal .cover__title { font-style: italic; font-size: 2.2rem; }

.cover--spec {
  background:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 15%, #fff, transparent),
    radial-gradient(1px 1px at 40% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 85% 70%, #fff, transparent),
    radial-gradient(1px 1px at 15% 85%, #fff, transparent),
    radial-gradient(circle at 50% 120%, #3e7bfa 0 40%, transparent 41%),
    linear-gradient(180deg, #071233, #12245e);
}

.cover--dreich {
  background:
    radial-gradient(circle at 50% 44%, #fff 0 20%, transparent 21%),
    linear-gradient(180deg, #f5c518 0 60%, #f08a24 60% 100%);
  color: var(--ink);
}
.cover--dreich .cover__title { font-size: 1.9rem; }

.cover--sherlock {
  background:
    radial-gradient(circle at 62% 46%, transparent 0 17%, #e8d9b0 17.5% 19.5%, transparent 20%),
    linear-gradient(135deg, #0f3b2e, #072019);
  color: #f1e6c8;
}

/* ---------- Bookshelf grid ---------- */
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.6rem;
}
.book-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.book-card__visual {
  display: grid;
  place-items: center;
  height: 280px;
  margin: -0.4rem -0.4rem 1.2rem;
  border-radius: 12px;
  background: var(--cream);
  perspective: 1100px;
  text-decoration: none;
}
.book-card .book3d { --w: 150px; --h: 214px; --d: 24px; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.book-card:hover .book3d { transform: rotateY(-8deg) rotateX(2deg) translateY(-6px); }
.book-card .cover { padding: 16px 13px; }
.book-card .cover__title { font-size: 1.1rem; }
.book-card .cover--unreal .cover__title { font-size: 1.5rem; }
.book-card .cover--dreich .cover__title { font-size: 1.3rem; }
.book-card .cover--vapour .cover__title { font-size: .95rem; }
.book-card .cover__author { font-size: .5rem; }
.book-card .cover__press { font-size: .45rem; }
.book-card .book3d__spine b { font-size: .6rem; }

.book-card__meta { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.book-card h3 { font-size: 1.45rem; margin-bottom: .35em; }
.book-card h3 a { text-decoration: none; }
.book-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }  /* whole card clickable */
.book-card p { font-size: .94rem; color: var(--ink-soft); flex: 1; }
.book-card__piece { font-size: .86rem; color: var(--ink); margin-bottom: 1rem; }
.book-card__piece em { background: var(--yellow-soft); padding: 0 .3em; border-radius: 4px; }

.buy-row {
  position: relative;
  z-index: 1;            /* sits above the stretched card link */
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}
.buy-row .btn { padding: .6rem 1rem; font-size: .84rem; margin-right: auto; }
.book-card .buy-row { flex-wrap: wrap; }
.book-card .buy-row .btn { width: 100%; justify-content: center; margin: 0 0 .5rem; }
@media (min-width: 1100px) { .shelf { grid-template-columns: repeat(5, 1fr); gap: 1.1rem; } .book-card { padding: 1.3rem 1.1rem 1.1rem; } }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  position: relative;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn--cart { background: var(--yellow); border-color: var(--yellow); }
.icon-btn--cart:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); }
.icon-btn--amazon:hover { background: #ff9900; border-color: #ff9900; color: #111; }
.icon-btn--goodreads:hover { background: #553b08; border-color: #553b08; color: #f4f1ea; }
.icon-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 4px);
  background: var(--ink);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: .3rem .55rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.icon-btn[data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); }

.fineprint { font-size: .8rem; color: var(--muted); margin-top: 2rem; }

/* ---------- Split about teaser ---------- */
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.stamp {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 460px;
  box-shadow: var(--shadow);
}
.stamp img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 30%; }
.stamp figcaption {
  position: absolute;
  left: 16px; bottom: 16px;
  background: #fff;
  border-radius: 999px;
  padding: .45rem .9rem;
  font-size: .78rem;
  font-weight: 700;
  display: flex; align-items: center; gap: .45rem;
}
.stamp figcaption svg { width: 14px; height: 14px; }

.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.25;
  font-style: italic;
  margin: 0 0 1.6rem;
  padding-left: 1.4rem;
  border-left: 4px solid var(--yellow);
}
.pullquote cite { display: block; font-style: normal; font-family: var(--sans); font-size: .8rem; color: var(--muted); margin-top: .8rem; letter-spacing: .04em; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 2rem; padding: 0; list-style: none; }
.chips li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .82rem;
  font-weight: 600;
  background: #fff;
}

/* ---------- Free reads ---------- */
.reads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  border-top: 1px solid var(--ink);
}
.read {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.4rem .4rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .25s ease, padding .25s ease;
}
.read:hover { background: var(--yellow-soft); padding-inline: 1rem; }
.read__type {
  font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  width: 66px; color: var(--muted);
}
.read__title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }
.read__mag { display: block; font-family: var(--sans); font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.read__cw { display: inline-block; font-family: var(--sans); font-size: .66rem; font-weight: 700; color: #9b2c1f; background: #fdecea; padding: .1rem .45rem; border-radius: 4px; margin-left: .4rem; vertical-align: middle; }
.read__arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; transition: background .2s ease, transform .3s ease; }
.read:hover .read__arrow { background: var(--ink); color: #fff; transform: rotate(-45deg); }
.read__arrow svg { width: 14px; height: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: 32px;
  background: var(--ink);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: var(--yellow);
  right: -110px; top: -170px;
  opacity: .95;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: var(--ink);
  right: -190px; top: -140px;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.75); }
.cta-band .socials { align-self: end; }
.socials { display: flex; flex-wrap: wrap; gap: .7rem; }
.social {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.social svg { width: 18px; height: 18px; }
.cta-band .social { color: #fff; }
.cta-band .social:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); line-height: .95; letter-spacing: -0.04em; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- About page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about-portrait { position: sticky; top: 110px; }
.about-portrait .frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
}
.about-portrait .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 34%; }
.about-portrait .sun-dot {
  position: absolute;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--yellow);
  right: -30px; top: -30px;
  z-index: -1;
}
.about-portrait .facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 1.4rem;
}
.facts div { background: #fff; padding: 1rem 1.1rem; font-size: .85rem; line-height: 1.4; }
.facts span { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }

.prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); }

.detail-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1rem; }
.detail {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 1rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: border-color .25s ease;
}
.detail:hover { border-color: var(--yellow); }
.detail__icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--yellow-soft);
  display: grid; place-items: center;
}
.detail__icon svg { width: 22px; height: 22px; }
.detail h4 { font-family: var(--sans); font-weight: 800; font-size: 1rem; letter-spacing: 0; margin: .1rem 0 .3rem; }
.detail p { margin: 0; font-size: .95rem; }
.detail a { text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.2rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 1.4rem 1.4rem 4.6rem;
  background: var(--cream);
  border-radius: 18px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.3rem; top: 1.25rem;
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink);
  border-bottom: 3px solid var(--yellow);
}
.steps h4 { font-family: var(--sans); font-weight: 800; font-size: 1.02rem; margin: 0 0 .3rem; letter-spacing: 0; }
.steps p { margin: 0; font-size: .94rem; color: var(--ink-soft); }
.steps ul { margin: .6rem 0 0; padding-left: 1.1rem; font-size: .92rem; color: var(--ink-soft); }
.steps a { text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.15rem; }
.field label { font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: .9rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 4px var(--yellow-soft);
}
.topic-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.topic-pills input { position: absolute; opacity: 0; pointer-events: none; }
.topic-pills label {
  font-size: .85rem; font-weight: 600; letter-spacing: 0;
  padding: .55rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: all .2s ease;
}
.topic-pills input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }
.topic-pills input:focus-visible + label { box-shadow: 0 0 0 4px var(--yellow-soft); }
.hp { position: absolute; left: -9999px; }
.form-status {
  display: none;
  margin-top: 1rem;
  padding: .9rem 1.1rem;
  border-radius: 12px;
  font-size: .92rem;
}
.form-status.ok { display: block; background: #eaf7ee; color: #17602f; }
.form-status.err { display: block; background: #fdecea; color: #9b2c1f; }
.form-success { display: none; text-align: center; padding: 2rem 0; }
.form-success .tick {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--yellow); display: grid; place-items: center;
  margin: 0 auto 1.4rem;
}
.form-success .tick svg { width: 38px; height: 38px; }
.sent .form-body { display: none; }
.sent .form-success { display: block; animation: slideIn .6s ease; }

.contact-aside { display: grid; gap: 1.2rem; }
.info-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  background: #fff;
}
.info-card h3 { font-size: 1.3rem; margin-bottom: .8rem; }
.info-line { display: flex; gap: .9rem; align-items: center; padding: .6rem 0; text-decoration: none; }
.info-line + .info-line { border-top: 1px solid var(--line); }
.info-line .ico {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--yellow-soft); display: grid; place-items: center; flex: none;
}
.info-line .ico svg { width: 19px; height: 19px; }
.info-line small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info-line span { font-weight: 600; font-size: .95rem; word-break: break-word; }
a.info-line:hover span { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }

.social-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.social-tile {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1.1rem .5rem;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.social-tile svg { width: 26px; height: 26px; }
.social-tile small { font-weight: 500; color: var(--muted); font-size: .7rem; }
.social-tile:hover { transform: translateY(-3px); border-color: var(--ink); background: var(--yellow-soft); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.footer-grid h4 { font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.footer-big {
  font-family: var(--serif);
  font-size: clamp(3rem, 12vw, 10rem);
  line-height: .9;
  letter-spacing: -0.05em;
  margin: 3rem 0 1.4rem;
  color: var(--ink);
}
.footer-big em { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.4rem; }
.footer-icons { display: flex; gap: .5rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .split, .about-hero, .contact-grid, .cta-band { grid-template-columns: 1fr; }
  .reel__screen { grid-template-columns: 1fr; }
  .reel__stage { min-height: 400px; }
  .about-portrait { position: static; max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero__visual { order: -1; }
  .portrait { width: min(80%, 360px); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem 24px 1.6rem;
    transform: translateY(-120%);
    transition: transform .4s ease;
    z-index: -1;
  }
  .menu-open .nav__links { transform: none; }
  .nav__links li { width: 100%; }
  .nav__links a:not(.btn) { display: block; padding: .9rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .portrait__badge { width: 104px; height: 104px; left: -14px; }
  .reads { grid-template-columns: 1fr; }
  .social-tiles { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.reel__stage-inner { perspective: 1400px; display: grid; place-items: center; width: 100%; height: 100%; }
@media (max-width: 760px) {
  .reel .book3d { --w: 160px; --h: 230px; --d: 26px; }
  .reel__stage { min-height: 340px; }
  .reel .cover__title { font-size: 1.1rem; }
}
