/* ============================================================
   Pramod Rastogi - dark editorial theme
   ============================================================ */

:root {
  --ink: #0a0a0b;
  --ink-2: #101012;
  --surface: #16161a;
  --line: rgba(255, 255, 255, 0.11);
  /* opaque equivalent of --line over --ink-2, for strokes that overlap */
  --line-op: #2a2a2c;
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #f1efea;
  --muted: #a09b93;
  --muted-2: #8d887f;
  --gold: #c6a15b;
  --gold-soft: #e0c48c;

  --serif:
    "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;

  --pad: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1240px;
  --readw: 62ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  line-height: 1.72;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--gold);
  color: #141310;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: #141310;
  padding: 0.7rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* ---------- type ---------- */

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.75rem);
}
.h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.8vw, 4.25rem);
}
.h2 {
  font-size: clamp(1.85rem, 1.25rem + 2.4vw, 3rem);
}
.h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  letter-spacing: -0.006em;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line) 0%, transparent 90%);
  max-width: 9rem;
}
.kicker--plain::after {
  display: none;
}

.lede {
  font-size: clamp(1.1rem, 1rem + 0.55vw, 1.375rem);
  line-height: 1.62;
  color: #ddd8d0;
  font-weight: 330;
}

.prose {
  max-width: var(--readw);
}
.prose p {
  margin: 0 0 1.35em;
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose a {
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(198, 161, 91, 0.4);
  transition:
    border-color 0.25s,
    color 0.25s;
}
.prose a:hover {
  color: #fff;
  border-color: #fff;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
/* kept as a hook, but deliberately the SAME width as .wrap: differing
   values made the text edge zig-zag between consecutive sections */
.wrap--wide {
  max-width: var(--maxw);
}

section {
  position: relative;
}

main {
  scroll-margin-top: 5.5rem;
}
main:focus:not(:focus-visible) {
  outline: none;
}

.section {
  padding-block: clamp(4rem, 9vw, 8.5rem);
}
.section--tight {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.section--alt {
  background: var(--ink-2);
}
.rule-top {
  border-top: 1px solid var(--line-soft);
}

.grid-2 {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .grid-2--aside {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
  .grid-2--media {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 8, 9, 0.72), transparent);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.site-header.is-stuck {
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-soft);
}
.site-header.is-stuck::before {
  opacity: 0;
}

.nav {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.05rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.brand {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.25s;
}
.brand span {
  color: var(--gold);
}
.brand:hover {
  color: #fff;
}

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 1000px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 0.735rem;
  font-weight: 450;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #cfc9c1;
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.nav-links a:hover {
  color: #fff;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav-links a[aria-current="page"] {
  color: #fff;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  align-items: flex-end;
}
@media (min-width: 1000px) {
  .burger {
    display: none;
  }
}
.burger i {
  display: block;
  height: 1px;
  width: 26px;
  background: var(--text);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1),
    opacity 0.2s,
    width 0.35s;
}
.burger i:nth-child(2) {
  width: 18px;
}
.burger[aria-expanded="true"] i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger[aria-expanded="true"] i:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 26px;
}

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(8, 8, 9, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 5.5rem var(--pad) 3rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s;
}
.drawer.is-open {
  opacity: 1;
  visibility: visible;
}
@media (min-width: 1000px) {
  .drawer {
    display: none;
  }
}

.drawer ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.drawer li {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.drawer.is-open li {
  opacity: 1;
  transform: none;
}
.drawer.is-open li:nth-child(1) {
  transition-delay: 0.06s;
}
.drawer.is-open li:nth-child(2) {
  transition-delay: 0.11s;
}
.drawer.is-open li:nth-child(3) {
  transition-delay: 0.16s;
}
.drawer.is-open li:nth-child(4) {
  transition-delay: 0.21s;
}
.drawer.is-open li:nth-child(5) {
  transition-delay: 0.26s;
}
.drawer.is-open li:nth-child(6) {
  transition-delay: 0.31s;
}

.drawer a {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 2.9rem);
  font-weight: 300;
  line-height: 1.35;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.drawer a[aria-current="page"] {
  color: var(--gold-soft);
}
.drawer .num {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  transform: translateY(-0.4em);
}
.drawer-foot {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.drawer-foot a:hover {
  color: var(--gold-soft);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(7rem, 14vh, 10rem) clamp(3rem, 8vh, 5.5rem);
  overflow: hidden;
  background: #000;
}
.hero--page {
  min-height: min(76vh, 720px);
  min-height: min(76svh, 720px);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: saturate(0.72) contrast(1.06) brightness(0.86);
  transform: scale(1.045);
  animation: slowzoom 24s ease-out forwards;
}
@keyframes slowzoom {
  to {
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img {
    animation: none;
    transform: none;
  }
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      var(--ink) 2%,
      rgba(10, 10, 11, 0.82) 26%,
      rgba(10, 10, 11, 0.28) 62%,
      rgba(10, 10, 11, 0.55) 100%
    ),
    linear-gradient(to right, rgba(10, 10, 11, 0.62), transparent 65%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-title {
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: normal;
  display: block;
  color: var(--gold-soft);
}
.hero-sub {
  max-width: 46ch;
  color: #dcd6ce;
  font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.3rem);
  line-height: 1.6;
  margin: 0;
}
.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-roles li {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.hero-roles li + li::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.scroll-cue {
  position: absolute;
  left: max(var(--pad), calc(50% - var(--maxw) / 2 + var(--pad)));
  bottom: 1.5rem;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
}
@media (min-width: 900px) and (min-height: 660px) {
  .scroll-cue {
    display: flex;
  }
}
.scroll-cue::before {
  content: "";
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.4;
  }
  50% {
    transform: translateX(8px);
    opacity: 1;
  }
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-op);
  border-left: 1px solid var(--line-op);
}
/* empty cells in a partial last row leave the box open - draw the closing
   right/bottom edges over the whole grid instead of per-cell */
.stats::after {
  content: "";
  position: absolute;
  inset: 0;
  border-right: 1px solid var(--line-op);
  border-bottom: 1px solid var(--line-op);
  pointer-events: none;
}
@media (min-width: 720px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1060px) {
  .stats--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.stat {
  border-right: 1px solid var(--line-op);
  border-bottom: 1px solid var(--line-op);
  padding: clamp(1.4rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.6rem);
  transition: background-color 0.4s ease;
}
.stat:hover {
  background: rgba(198, 161, 91, 0.045);
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3.1rem);
  line-height: 1.06;
  color: var(--gold-soft);
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}
.stat span {
  display: block;
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- quote ---------- */

.quote {
  border-left: 2px solid var(--gold);
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 34ch;
  margin: 0;
}
.quote p {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.4rem);
  line-height: 1.25;
  color: #efeae2;
  margin: 0;
}
.quote cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- paths ---------- */

.paths {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .paths {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1080px) {
  .paths {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1080px) {
  .paths--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.path {
  background: var(--ink);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.35rem, 2.5vw, 2rem)
    clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  min-height: clamp(15rem, 26vw, 20rem);
  transition: background-color 0.45s ease;
}
.path:hover {
  background: var(--surface);
}
.path .num {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.path h3 {
  margin: 2.5rem 0 0.85rem;
}
.path p {
  margin: 0 0 auto;
  padding-bottom: 1.6rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
}
.path .go {
  font-size: 0.68rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: #e6e1d9;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.path .go::after {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.path:hover .go::after {
  width: 38px;
}

/* ---------- feature (book) ---------- */

.feature {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .feature {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  }
}

.cover {
  position: relative;
  max-width: 330px;
  margin-inline: auto;
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 24px 60px -18px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@media (min-width: 860px) {
  .cover {
    margin-inline: 0;
    max-width: 360px;
  }
}
a.cover:hover {
  transform: translateY(-6px);
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.14),
    transparent 42%
  );
  pointer-events: none;
}
.cover--lg {
  max-width: 400px;
}

.badge {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(198, 161, 91, 0.42);
  border-radius: 99px;
  padding: 0.4rem 0.95rem;
  margin-bottom: 1.5rem;
}

/* ---------- book cards (typographic) ---------- */

.books {
  display: grid;
  gap: clamp(1rem, 3vw, 2.25rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 600px) {
  .books {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 172px), 1fr));
  }
}

/* cover photo: same 2:3 frame for every book, with a spine shadow on the
   left, a soft sheen and a fine edge so white covers stand out on the dark
   background. (.book-cover below = typographic fallback, no photo) */
.book-img {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 2px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 14px 34px -14px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.09);
  transition:
    transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.5s;
}
.book-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-img::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.38),
    rgba(255, 255, 255, 0.1) 55%,
    transparent
  );
  z-index: 1;
  pointer-events: none;
}
.book-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, 0.1),
    transparent 38%
  );
  z-index: 1;
  pointer-events: none;
}
.book:hover .book-img {
  transform: translateY(-5px);
  box-shadow:
    0 22px 44px -14px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.16);
}
@media (prefers-reduced-motion: reduce) {
  .book:hover .book-img {
    transform: none;
  }
}

.book {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  container-type: inline-size;
}

.book-cover {
  position: relative;
  aspect-ratio: 2/3;
  min-height: fit-content;
  border-radius: 2px;
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 14px 34px -14px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  transition:
    transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.5s;
}
.book:hover .book-cover {
  transform: translateY(-5px);
  box-shadow:
    0 22px 44px -14px rgba(0, 0, 0, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.book-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.5),
    rgba(255, 255, 255, 0.06) 60%,
    transparent
  );
  z-index: 2;
}
.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, 0.13),
    transparent 40%
  );
  z-index: 2;
  pointer-events: none;
}
.bc-pub {
  font-size: 0.66rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-left: 0.45rem;
}
.bc-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.16;
  color: #fff;
  margin: 0.9rem 0 0 0.45rem;
  text-wrap: balance;
}
.bc-rule {
  width: 26px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  margin: 0.85rem 0 auto 0.45rem;
}
.bc-author {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-left: 0.45rem;
}

.book-meta {
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted);
}
.book-meta strong {
  display: block;
  font-weight: 450;
  color: var(--text);
  font-size: 0.83rem;
  margin-bottom: 0.2rem;
}

.t-crc {
  background: linear-gradient(150deg, #3a2320, #1c1210);
}
.t-wiley {
  background: linear-gradient(150deg, #123a52, #0a1c28);
}
.t-wiley2 {
  background: linear-gradient(150deg, #1c4640, #0b1f1c);
}
.t-elsevier {
  background: linear-gradient(150deg, #42351a, #1a1509);
}
.t-springer {
  background: linear-gradient(150deg, #4a1c22, #1e0c0e);
}
.t-artech {
  background: linear-gradient(150deg, #25324c, #0e131f);
}
.t-springer2 {
  background: linear-gradient(150deg, #2c2c46, #111119);
}

/* ---------- list blocks ---------- */

.deflist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
.deflist li {
  display: grid;
  gap: 0.15rem 2rem;
  grid-template-columns: 1fr;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 620px) {
  .deflist li {
    grid-template-columns: 8rem 1fr;
    align-items: baseline;
  }
}
.deflist .y {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  padding-top: 0.28rem;
}
.deflist .d {
  font-size: 0.97rem;
  line-height: 1.6;
}
.deflist .d a {
  color: inherit;
  border-bottom: 1px solid rgba(198, 161, 91, 0.4);
  transition: color .25s, border-color .25s;
}
.deflist .d a:hover {
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}
.deflist .d small {
  display: block;
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tags li {
  font-size: 0.76rem;
  color: #ddd7cf;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.42rem 1rem;
  background: rgba(255, 255, 255, 0.018);
  transition:
    border-color 0.3s,
    color 0.3s;
}
.tags li:hover {
  border-color: rgba(198, 161, 91, 0.5);
  color: #fff;
}

/* ---------- media ---------- */

.figure {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  margin: 0;
}
.figure--portrait {
  max-width: 420px;
  margin-inline: auto;
}
.figure--portrait img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
}
.figure img {
  width: 100%;
  filter: saturate(0.75) contrast(1.05) brightness(0.9);
  transition:
    transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1),
    filter 0.6s;
}
.figure:hover img {
  transform: scale(1.03);
  filter: saturate(0.9) brightness(0.97);
}
.figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.band {
  position: relative;
  min-height: min(62vh, 560px);
  min-height: min(62svh, 560px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}
.band > picture {
  position: absolute;
  inset: 0;
  display: block;
}
.band picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.6) contrast(1.05) brightness(0.6);
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 11, 0.9),
    rgba(10, 10, 11, 0.3) 75%
  );
}
.band .wrap {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

/* ---------- CTA / footer ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  align-items: center;
  margin-top: 2.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1px;
  transition:
    border-color 0.3s,
    background-color 0.3s,
    color 0.3s;
}
.btn::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  transition: width 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.btn:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}
.btn:hover::after {
  width: 30px;
}
.btn--solid {
  background: var(--gold);
  border-color: var(--gold);
  color: #141310;
}
.btn--solid:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: #141310;
}

.pager {
  display: grid;
  max-width: var(--maxw);
  margin-inline: auto;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) {
  .pager {
    grid-template-columns: 1fr 1fr;
  }
}
.pager a {
  padding: clamp(2rem, 4vw, 3.25rem) var(--pad);
  display: block;
  transition: background-color 0.4s;
}
.pager a:hover {
  background: var(--surface);
}
.pager a + a {
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) {
  .pager a + a {
    border-top: 0;
    border-left: 1px solid var(--line);
    text-align: right;
  }
}
.pager small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.pager strong {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem);
  letter-spacing: -0.01em;
}

.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
  }
}
.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 1.15rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 0.6rem;
}
.site-footer li a {
  font-size: 0.9rem;
  color: #cdc7bf;
  transition: color 0.25s;
}
.site-footer li a:hover {
  color: var(--gold-soft);
}
.footer-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 0.9rem;
}
.footer-bio {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 34ch;
  margin: 0;
}
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted-2);
}

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.85s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.85s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-d="1"] {
  transition-delay: 0.1s;
}
.reveal[data-d="2"] {
  transition-delay: 0.2s;
}
.reveal[data-d="3"] {
  transition-delay: 0.3s;
}
.reveal[data-d="4"] {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-cue::before {
    animation: none;
  }
}

/* ---------- print ---------- */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .site-header,
  .drawer,
  .scroll-cue,
  .pager,
  .hero-media {
    display: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- audit fixes ---------- */

/* book.html opens on the cover rather than a hero: it still has to clear
   the fixed header, so give it a real class instead of an inline style */
.section--first {
  padding-top: clamp(8rem, 16vh, 12rem);
}

/* .grid-2--aside: column 1 starts with a small-caps kicker, column 2 with
   body text, so their first baselines were ~7px apart */
@media (min-width: 900px) {
  .grid-2--aside > *:last-child {
    padding-top: 0.4rem;
  }
}

/* the band gradient runs left-to-right, which only protects the text while
   it is capped to a narrow measure - on phones it spans the full column */
@media (max-width: 860px) {
  .band::after {
    background: linear-gradient(
      180deg,
      rgba(10, 10, 11, 0.55),
      rgba(10, 10, 11, 0.88)
    );
  }
}

/* short viewports (phone in landscape): the drawer's six entries no longer
   fit at the full display size */
@media (max-height: 560px) {
  .drawer {
    padding-top: 4.5rem;
  }
  .drawer a {
    font-size: 1.45rem;
    line-height: 1.25;
  }
  .drawer-foot {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
  }
}

/* .quote is now a <figure> (with attribution) or a <div> (bare tagline);
   neutralise the default margins of the elements inside it */
.quote blockquote,
.quote figcaption {
  margin: 0;
}

/* narrow book cards: scale the cover type down so long titles still fit */
@container (max-width: 200px) {
  .bc-title {
    font-size: 0.92rem;
  }
  .bc-pub,
  .bc-author {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }
}

/* justified body copy, as requested - hyphenation keeps the rag from
   opening rivers in the narrow column */
.prose {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* the origins band runs at a 44ch measure - too short to justify well */
.band .prose {
  text-align: left;
}
/* short measures justify badly: leave the phone width ragged-right */
@media (max-width: 520px) {
  .prose {
    text-align: left;
  }
}

/* publisher tints for the two books added after review */
.t-iop {
  background: linear-gradient(150deg, #3a2150, #170d20);
}
.t-artech2 {
  background: linear-gradient(150deg, #334a52, #131e22);
}

/* ---------- the poem beside the quote (The Poet) ---------- */

@media (min-width: 900px) {
  .grid-2--poem {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }
}

.poem-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem);
  line-height: 1.15;
  color: var(--gold-soft);
  margin: 0 0 1.6rem;
}

/* verse keeps the poet's own line breaks - never justified, never hyphenated */
.poem-stanza {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  line-height: 1.8;
  color: #e6e1d9;
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
  margin: 0 0 1.5rem;
}
/* each verse line is its own block, so a line too narrow to fit continues
   indented the way poetry is set in print. text-indent on the paragraph
   would only reach the FIRST line and push the other three out of line. */
.poem-stanza span {
  display: block;
  padding-left: 1.4em;
  text-indent: -1.4em;
}
@media (max-width: 480px) {
  .poem-stanza {
    font-size: 1rem;
  }
}

/* inherits the site button from .btn.btn--solid; only the arrow differs */
.poem-link {
  margin-top: 1.25rem;
}
.poem-link::after {
  display: none;
}
.poem-link span {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.poem-link:hover span {
  transform: translateX(4px);
}

.poem-src {
  margin: 1.1rem 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
