/* ==========================================================================
   Command Your Quest — public site
   Palette: deep ink navy, parchment, brass, ember, jade.
   ========================================================================== */

:root {
  --ink-900: #061220;
  --ink-800: #0a1826;
  --ink-700: #0f2334;
  --ink-600: #173349;
  --ink-500: #23485f;

  --parchment: #f6efe0;
  --paper: #fffdf7;
  --paper-dim: #efe6d3;

  --brass: #d8a13c;
  --brass-dark: #b07f24;
  --ember: #d4552a;
  --jade: #2e8f7a;

  --text: #16232e;
  --text-muted: #5b6b78;
  --text-on-dark: #e9eef3;
  --text-on-dark-muted: #9fb3c4;

  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-read: 'Spectral', Georgia, serif;

  --shell: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(6, 18, 32, .08);
  --shadow-md: 0 14px 34px rgba(6, 18, 32, .16);
  --shadow-lg: 0 28px 60px rgba(6, 18, 32, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--ink-600); text-decoration-color: rgba(216, 161, 60, .55); text-underline-offset: 3px; }
a:hover { color: var(--ember); }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 50%; top: 0;
  transform: translate(-50%, -140%);
  z-index: 200;
  background: var(--brass);
  color: var(--ink-900);
  font-weight: 700;
  padding: .7rem 1.4rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}
.shell--narrow { width: min(100% - 2.5rem, 740px); }

/* ----------------------------------------------------------- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 24, 38, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216, 161, 60, .28);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--brass);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand:hover { color: var(--brass); }
.brand__mark { width: 38px; height: 38px; flex: 0 0 auto; transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper);
}
.brand__sub {
  font-size: .68rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: .3rem;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__list a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .35rem 0;
  position: relative;
}
.site-nav__list a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.site-nav__list a:hover, .site-nav__list a.is-current { color: var(--brass); }
.site-nav__list a:hover::after, .site-nav__list a.is-current::after { transform: scaleX(1); }

.site-search { display: flex; align-items: center; }
.site-search input {
  width: 160px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(216, 161, 60, .3);
  border-right: none;
  border-radius: 999px 0 0 999px;
  color: var(--paper);
  font: inherit;
  font-size: .88rem;
  padding: .45rem .95rem;
}
.site-search input::placeholder { color: var(--text-on-dark-muted); }
.site-search input:focus { outline: none; border-color: var(--brass); background: rgba(255, 255, 255, .12); }
.site-search button {
  display: grid;
  place-items: center;
  width: 40px;
  padding: 0;
  align-self: stretch;
  background: rgba(216, 161, 60, .18);
  border: 1px solid rgba(216, 161, 60, .3);
  border-radius: 0 999px 999px 0;
  color: var(--brass);
  cursor: pointer;
  transition: background .18s var(--ease);
}
.site-search button:hover { background: var(--brass); color: var(--ink-900); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 42px;
  background: transparent;
  border: 1px solid rgba(216, 161, 60, .4);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 11px 10px;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--brass);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bar + .nav-toggle__bar { margin-top: 5px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 520px at 15% -10%, rgba(46, 143, 122, .28), transparent 65%),
    radial-gradient(900px 480px at 88% 0%, rgba(216, 161, 60, .22), transparent 60%),
    linear-gradient(170deg, var(--ink-800) 0%, var(--ink-900) 100%);
  color: var(--text-on-dark);
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 20% 30%, rgba(255, 255, 255, .45), transparent),
    radial-gradient(1.4px 1.4px at 70% 20%, rgba(255, 255, 255, .35), transparent),
    radial-gradient(1.8px 1.8px at 45% 70%, rgba(255, 255, 255, .3), transparent),
    radial-gradient(1.2px 1.2px at 85% 60%, rgba(255, 255, 255, .4), transparent),
    radial-gradient(1.5px 1.5px at 10% 80%, rgba(255, 255, 255, .28), transparent);
  opacity: .8;
  z-index: -1;
}

.hero__glow {
  position: absolute;
  width: 640px; height: 640px;
  right: -180px; top: -260px;
  background: radial-gradient(circle, rgba(212, 85, 42, .3), transparent 62%);
  filter: blur(18px);
  z-index: -1;
}

.hero__inner { padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem); max-width: 760px; }

.hero__eyebrow {
  margin: 0 0 1.1rem;
  font-size: .74rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  margin: 0 0 1.4rem;
  color: var(--paper);
}
.hero__title-accent {
  background: linear-gradient(100deg, var(--brass) 10%, #f0cd83 55%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  color: var(--text-on-dark-muted);
  max-width: 56ch;
  margin: 0 0 2.2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__strip {
  display: flex;
  gap: 1.6rem;
  padding: .85rem 0;
  border-top: 1px solid rgba(216, 161, 60, .22);
  background: rgba(6, 18, 32, .5);
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(216, 161, 60, .75);
  white-space: nowrap;
  overflow: hidden;
}
.hero__strip span { flex: 0 0 auto; }

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--brass) 0%, var(--brass-dark) 100%);
  color: var(--ink-900);
  box-shadow: 0 8px 24px rgba(216, 161, 60, .3);
}
.btn--primary:hover { color: var(--ink-900); box-shadow: 0 14px 32px rgba(216, 161, 60, .42); }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
  opacity: .92;
}
.btn--ghost:hover { background: rgba(216, 161, 60, .12); color: inherit; }

.btn__price {
  font-size: .82rem;
  font-weight: 700;
  padding: .12rem .55rem;
  border-radius: 999px;
  background: rgba(6, 18, 32, .18);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-600);
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow::after { content: '\2192'; transition: transform .18s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ----------------------------------------------------------- sections --- */

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--tinted { background: var(--parchment); }
.section--featured { background: var(--paper); }

.section__head { margin-bottom: 2.4rem; }
.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section__eyebrow {
  margin: 0 0 .5rem;
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--path-accent, var(--brass-dark));
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.18;
  margin: 0;
  color: var(--ink-800);
}

.section__sub {
  margin: .6rem 0 0;
  color: var(--text-muted);
  max-width: 62ch;
}

/* -------------------------------------------------------------- grids --- */

.grid { display: grid; gap: 2rem 1.6rem; }

.grid--books { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid--paths { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.grid--authors { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.6rem; }

/* ---------------------------------------------------------- book card --- */

.book-card__link {
  display: flex;
  flex-direction: column;
  gap: .95rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.book-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--ink-600), var(--ink-800));
  box-shadow: var(--shadow-md);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.book-card__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .34) 0 4%, rgba(255, 255, 255, .14) 5.5%, transparent 10%);
  pointer-events: none;
}
.book-card__link:hover .book-card__cover,
.book-card__link:focus-visible .book-card__cover {
  transform: translateY(-6px) rotate(-.8deg);
  box-shadow: var(--shadow-lg);
}
.book-card__cover img { width: 100%; height: 100%; object-fit: cover; }

.book-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  padding: 1.2rem;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 10px, transparent 10px 20px),
    linear-gradient(150deg, var(--ink-600), var(--ink-900));
  border: 1px solid rgba(216, 161, 60, .35);
}
.book-card__placeholder--large { aspect-ratio: 2 / 3; border-radius: 8px; }
.book-card__placeholder-title {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.3;
  color: var(--brass);
  letter-spacing: .04em;
}

.book-card__number {
  position: absolute;
  top: .6rem; right: .6rem;
  background: rgba(6, 18, 32, .82);
  color: var(--brass);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 161, 60, .45);
}

.book-card__body { display: flex; flex-direction: column; gap: .28rem; }
.book-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.28;
  color: var(--ink-800);
}
.book-card__link:hover .book-card__title { color: var(--ember); }
.book-card__subtitle { font-size: .88rem; color: var(--text-muted); font-style: italic; }
.book-card__author { font-size: .84rem; color: var(--text-muted); }

.pill {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .24rem .7rem;
  border-radius: 999px;
  background: rgba(23, 51, 73, .08);
  color: var(--ink-600);
  border: 1px solid rgba(23, 51, 73, .12);
  width: fit-content;
  margin-top: .25rem;
}
.pill--age { background: rgba(46, 143, 122, .12); color: #1f6b5a; border-color: rgba(46, 143, 122, .25); }

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.2rem 0; }
.pill-row .pill { margin-top: 0; }

/* -------------------------------------------------------- path cards --- */

.path-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(23, 51, 73, .1);
  border-top: 4px solid var(--path-accent, var(--brass));
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: inherit; }

.path-card__age {
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--path-accent, var(--brass-dark));
}
.path-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-800);
  line-height: 1.25;
}
.path-card__desc { font-size: .92rem; color: var(--text-muted); }
.path-card__count {
  margin-top: auto;
  padding-top: .8rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-600);
}

/* ------------------------------------------------------ author cards --- */

.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 1.6rem 1.2rem;
  border-radius: var(--radius);
  background: var(--parchment);
  border: 1px solid rgba(23, 51, 73, .08);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.author-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: inherit; }

.author-card__photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink-700);
  display: grid;
  place-items: center;
  border: 3px solid var(--brass);
  margin-bottom: .6rem;
}
.author-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.author-card__initials {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brass);
  letter-spacing: .05em;
}
.author-card__initials--large { font-size: 3.4rem; }

.author-card__name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink-800); }
.author-card__tagline { font-size: .88rem; color: var(--text-muted); }
.author-card__count { font-size: .8rem; font-weight: 600; color: var(--brass-dark); margin-top: .3rem; }

/* --------------------------------------------------------- page heads --- */

.page-head {
  background:
    radial-gradient(900px 400px at 12% -40%, rgba(46, 143, 122, .22), transparent 62%),
    linear-gradient(165deg, var(--ink-800), var(--ink-900));
  color: var(--text-on-dark);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.4rem, 4vw, 3.4rem);
}
.page-head--accent { border-bottom: 4px solid var(--path-accent, var(--brass)); }

.page-head__eyebrow {
  margin: 0 0 .9rem;
  font-size: .72rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass);
}
.page-head__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  margin: 0;
  color: var(--paper);
}
.page-head__lede {
  margin: 1.1rem 0 0;
  color: var(--text-on-dark-muted);
  max-width: 62ch;
  font-size: 1.04rem;
}
.page-head__lede.prose p { color: var(--text-on-dark-muted); }

/* ------------------------------------------------------- series jump --- */

.series-jump { padding: 1.4rem 0 0; }
.series-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.series-jump a {
  display: inline-block;
  padding: .4rem 1rem;
  border-radius: 999px;
  background: var(--parchment);
  border: 1px solid rgba(23, 51, 73, .12);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-600);
}
.series-jump a:hover { background: var(--brass); color: var(--ink-900); border-color: var(--brass); }

/* ---------------------------------------------------------- book page --- */

.book-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--ink-800), var(--ink-900));
  color: var(--text-on-dark);
  padding: 1.6rem 0 clamp(3rem, 6vw, 4.5rem);
}
.book-hero__backdrop {
  position: absolute;
  inset: 0;
  opacity: .16;
  filter: blur(46px) saturate(1.3);
  transform: scale(1.25);
}
.book-hero__backdrop img { width: 100%; height: 100%; object-fit: cover; }
.book-hero__inner { position: relative; }

.book-hero__grid {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: clamp(2rem, 5vw, 3.6rem);
  align-items: start;
  margin-top: 2rem;
}

.book-hero__cover img,
.book-hero__cover .book-card__placeholder {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(216, 161, 60, .25);
}

.book-hero__series { margin: 0 0 .7rem; font-size: .84rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.book-hero__series a { color: var(--brass); text-decoration: none; }
.book-hero__series a:hover { text-decoration: underline; }
.book-hero__series span { margin: 0 .35rem; opacity: .6; }

.book-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.1;
  margin: 0;
  color: var(--paper);
}
.book-hero__subtitle {
  font-family: var(--font-read);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-on-dark-muted);
  margin: .6rem 0 0;
}
.book-hero__byline { margin: 1rem 0 0; color: var(--text-on-dark); font-size: 1rem; }
.book-hero__byline a { color: var(--brass); text-decoration: none; font-weight: 600; }
.book-hero__byline a:hover { text-decoration: underline; }

.book-hero .pill { background: rgba(255, 255, 255, .08); color: var(--text-on-dark); border-color: rgba(216, 161, 60, .3); }
.book-hero .pill--age { background: rgba(46, 143, 122, .22); color: #8fe0cd; border-color: rgba(46, 143, 122, .45); }

.book-hero__blurb {
  font-family: var(--font-read);
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-on-dark);
  margin: 0 0 1.8rem;
  max-width: 56ch;
}

.book-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.book-hero__actions .btn--ghost { color: var(--paper); }

.book-hero__isbn { margin: 1.4rem 0 0; font-size: .82rem; color: var(--text-on-dark-muted); letter-spacing: .06em; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .82rem;
  color: var(--text-on-dark-muted);
}
.breadcrumb li + li::before { content: '/'; margin-right: .5rem; opacity: .5; }
.breadcrumb a { color: var(--text-on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brass); }

/* -------------------------------------------------------- author page --- */

.author-hero {
  background: linear-gradient(165deg, var(--ink-800), var(--ink-900));
  color: var(--text-on-dark);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.author-hero__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 5vw, 3.4rem);
  align-items: start;
}
.author-hero__photo {
  width: 220px; height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--brass);
  background: var(--ink-700);
  display: grid;
  place-items: center;
}
.author-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.author-hero__tagline {
  font-family: var(--font-read);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--brass);
  margin: .9rem 0 1.2rem;
}
.author-hero .prose p { color: var(--text-on-dark-muted); }

.author-list { display: flex; flex-direction: column; gap: 3rem; }
.author-row { display: grid; grid-template-columns: 160px 1fr; gap: 2rem; align-items: start; }
.author-row__photo {
  width: 160px; height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--brass);
  background: var(--ink-700);
  display: grid;
  place-items: center;
}
.author-row__photo img { width: 100%; height: 100%; object-fit: cover; }
.author-row__name { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 .3rem; }
.author-row__name a { color: var(--ink-800); text-decoration: none; }
.author-row__name a:hover { color: var(--ember); }
.author-row__tagline { font-family: var(--font-read); font-style: italic; color: var(--brass-dark); margin: 0 0 .8rem; }

/* -------------------------------------------------------------- prose --- */

.prose { font-family: var(--font-read); color: var(--text); }
.prose p { margin: 0 0 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 2rem 0 .8rem; color: var(--ink-800); }
.prose h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 1.6rem 0 .6rem; color: var(--ink-800); }
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote {
  margin: 1.4rem 0;
  padding: .3rem 0 .3rem 1.2rem;
  border-left: 3px solid var(--brass);
  font-style: italic;
  color: var(--text-muted);
}
.prose--lg { font-size: 1.1rem; line-height: 1.8; }

/* ------------------------------------------------------- misc blocks --- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  border: 2px dashed rgba(23, 51, 73, .18);
  border-radius: var(--radius);
  background: var(--parchment);
}

.search-form { display: flex; gap: .7rem; margin-top: 1.6rem; max-width: 520px; flex-wrap: wrap; }
.search-form input {
  flex: 1 1 240px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(216, 161, 60, .35);
  border-radius: 999px;
  padding: .75rem 1.2rem;
  color: var(--paper);
  font: inherit;
}
.search-form input::placeholder { color: var(--text-on-dark-muted); }

.result-count { color: var(--text-muted); margin: 0 0 1.6rem; font-size: .92rem; }

.error-detail {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--ink-900);
  color: #ffd9a0;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* ------------------------------------------------------------ footer --- */

.site-footer {
  background: var(--ink-900);
  color: var(--text-on-dark-muted);
  padding: 3.2rem 0 2.2rem;
  border-top: 3px solid var(--brass);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
}
.site-footer__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 .6rem;
}
.site-footer__blurb { margin: 0; max-width: 46ch; font-size: .92rem; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.site-footer__nav a { color: var(--text-on-dark-muted); text-decoration: none; font-size: .92rem; }
.site-footer__nav a:hover { color: var(--brass); }
.site-footer__legal {
  grid-column: 1 / -1;
  margin: 1.6rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .82rem;
}

/* ------------------------------------------------------- responsive --- */

@media (max-width: 900px) {
  .book-hero__grid { grid-template-columns: 1fr; }
  .book-hero__cover { max-width: 260px; }
  .author-hero__inner { grid-template-columns: 1fr; justify-items: start; }
  .author-row { grid-template-columns: 1fr; gap: 1.2rem; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.2rem 1.25rem 1.6rem;
    background: var(--ink-900);
    border-bottom: 1px solid rgba(216, 161, 60, .28);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open { display: flex; }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list li + li { border-top: 1px solid rgba(255, 255, 255, .07); }
  .site-nav__list a { display: block; padding: .85rem 0; font-size: 1rem; }
  .site-nav__list a::after { display: none; }

  .site-search input { width: 100%; flex: 1; }

  .grid--books { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 1.6rem 1.1rem; }

  .site-footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
