@font-face { font-family: "Gelasio"; src: url("/fonts/Gelasio-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gelasio"; src: url("/fonts/Gelasio-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Gelasio"; src: url("/fonts/Gelasio-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --page: #14110e;      /* lamp-black paper */
  --raised: #1e1a16;
  --cream: #ece4d2;     /* the cream of the book pages */
  --ash: #b3a993;
  --gilt: #c9a96a;      /* gilt edge, for focus and small accents */
  --rule: rgba(236, 228, 210, 0.16);
  --serif: "Gelasio", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 38rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--cream);
  font: 400 1.0625rem/1.65 var(--serif);
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 400; margin: 0; }

.skip { position: absolute; left: -999px; top: 0; background: var(--cream); color: var(--page); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: var(--gutter); }

.eyebrow {
  margin: 0 0 .9rem;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ash);
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: var(--cream); }

/* ---------------------------------------------------------------- masthead */
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.brand img { width: 128px; height: auto; }
.masthead nav { display: flex; gap: clamp(.9rem, 3vw, 2rem); }
.masthead nav a {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--ash);
}
.masthead nav a:hover { color: var(--cream); }

/* ---------------------------------------------------------------- home */
.hero {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 6.5rem) var(--gutter) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}
.hero h1 {
  font-style: italic;
  font-size: clamp(2.15rem, 6.4vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.lede { margin: 1.6rem auto 0; max-width: 34rem; color: var(--ash); font-size: 1.08rem; text-wrap: pretty; }

/* The shelf: every volume standing in one row, on a gilt shelf line. */
.shelf {
  display: flex; align-items: flex-end;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 2.5rem var(--gutter) 0;
  margin-bottom: clamp(3rem, 8vw, 5.5rem);
  border-bottom: 1px solid var(--gilt);
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
}
.shelf::-webkit-scrollbar { display: none; }
.spine {
  flex: 0 0 auto;
  scroll-snap-align: start;
  margin-right: -22px;
  position: relative;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.spine img { height: clamp(170px, 24vw, 280px); width: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.spine:hover, .spine:focus-visible { transform: translateY(-10px); z-index: 2; }
@media (min-width: 1500px) { .shelf { justify-content: center; } }

/* ---------------------------------------------------------------- series + cards */
.series { padding: 0 var(--gutter); max-width: 1320px; margin: 0 auto clamp(4rem, 10vw, 7rem); }
.series-head { max-width: var(--measure); margin-bottom: 2.25rem; }
.series-head h2 { font-style: italic; font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.1; }
.series-head p { margin: .8rem 0 0; color: var(--ash); }
.series-head .count { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2.25rem 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card a { display: block; text-decoration: none; }
.card-stage {
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  padding: 9% 14% 7%;
  background: radial-gradient(ellipse 70% 62% at 50% 58%, var(--glow), var(--night) 72%);
  border-radius: 3px;
  overflow: hidden;
}
.card-stage img { max-height: 100%; width: auto; object-fit: contain; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.card a:hover .card-stage img, .card a:focus-visible .card-stage img { transform: translateY(-6px) rotate(-.6deg); }
.card-text { padding-top: 1rem; }
.card-text .eyebrow { margin-bottom: .35rem; }
.card h3 { font-style: italic; font-size: 1.45rem; line-height: 1.2; }
.band { display: block; font-style: normal; font-size: .58em; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); margin-top: .35rem; }
.card .meta { margin: .3rem 0 .55rem; color: var(--ash); font-size: .95rem; }
.card .teaser { margin: 0; font-size: 1rem; line-height: 1.55; }

@media (max-width: 559px) {
  .grid:not(.grid-small) .card a { display: grid; grid-template-columns: 40% 1fr; gap: 1rem; align-items: start; }
  .grid:not(.grid-small) .card-stage { aspect-ratio: 3 / 4; padding: 10% 12%; }
  .grid:not(.grid-small) .card-text { padding-top: .2rem; }
  .grid:not(.grid-small) .card h3 { font-size: 1.25rem; }
  .grid-small { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .grid-small .teaser { display: none; }
  .grid-small .card h3 { font-size: 1.1rem; }
}

.publisher {
  max-width: var(--measure);
  margin: 0 auto clamp(4rem, 10vw, 7rem);
  padding: 2.5rem var(--gutter) 0;
  border-top: 1px solid var(--rule);
}
.publisher h2 { font-style: italic; font-size: 1.9rem; margin-bottom: 1rem; }
.publisher p { margin: 0 0 1rem; }

/* ---------------------------------------------------------------- title page */
.stage {
  display: grid; gap: 2rem;
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem);
  background: radial-gradient(ellipse 80% 70% at 30% 42%, var(--glow), var(--night) 62%, var(--page) 100%);
}
@media (min-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-left: max(var(--gutter), calc((100vw - 1200px) / 2)); padding-right: max(var(--gutter), calc((100vw - 1200px) / 2)); }
}
.stage-book { display: grid; place-items: center; }
.stage-book img { width: min(78%, 420px); filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .45)); }
.stage-text h1 { font-style: italic; font-size: clamp(2.2rem, 6vw, 3.9rem); line-height: 1.06; letter-spacing: -.01em; text-wrap: balance; }
.stage-text h1 .band { font-size: .34em; margin-top: .7rem; }
.byline { margin: .9rem 0 0; color: var(--ash); font-size: 1.05rem; }
.hook { margin: 1.6rem 0 2rem; font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.4; max-width: 30rem; text-wrap: pretty; }

.buttons { display: grid; gap: .6rem; max-width: 30rem; }
.buy {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "format where" "detail where";
  align-items: center; column-gap: 1rem;
  padding: .8rem 1.1rem;
  border: 1px solid rgba(236, 228, 210, .45);
  border-radius: 3px;
  text-decoration: none;
  background: rgba(20, 17, 14, .35);
  transition: background .2s, color .2s, border-color .2s;
}
.buy-format { grid-area: format; font-size: 1.1rem; }
.buy-detail { grid-area: detail; font-size: .85rem; color: var(--ash); }
.buy-where { grid-area: where; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; text-align: right; }
.nowrap { white-space: nowrap; }
@media (max-width: 480px) { .buy-where { letter-spacing: .06em; font-size: .72rem; } .buy { padding: .75rem .9rem; } }
.buy .ad { display: block; letter-spacing: .04em; text-transform: none; color: var(--ash); font-size: .8rem; }
.buy:hover { background: var(--cream); color: var(--page); border-color: var(--cream); }
.buy:hover .buy-detail, .buy:hover .ad { color: #4a4236; }

.blurb {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--gutter) 1rem;
  font-size: 1.125rem;
  line-height: 1.72;
}
.blurb p { margin: 0 0 1.1rem; text-wrap: pretty; }
.blurb p:first-child::first-letter {
  float: left;
  font-style: italic;
  font-size: 3.6em;
  line-height: .82;
  padding: .08em .1em 0 0;
  color: var(--gilt);
}

.facts { max-width: var(--measure); margin: 0 auto; padding: 1.5rem var(--gutter) 0; }
.facts h2, .more h2 { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ash); margin-bottom: .8rem; }
.facts dl { margin: 0; border-top: 1px solid var(--rule); }
.facts dl > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--ash); font-size: .92rem; }
.facts dd { margin: 0; }
@media (max-width: 420px) { .facts dl > div { grid-template-columns: 1fr; gap: 0; } }

.more { max-width: 1320px; margin: clamp(3.5rem, 9vw, 6rem) auto; padding: 0 var(--gutter); }
.more .grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .more .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .more .grid { grid-template-columns: repeat(6, 1fr); } }
.more .card h3 { font-size: 1.15rem; }
.more .teaser { display: none; }

/* ---------------------------------------------------------------- legal */
.legal { max-width: var(--measure); margin: 0 auto; padding: clamp(2.5rem, 7vw, 4.5rem) var(--gutter); }
.legal h1 { font-style: italic; font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 .5rem; }
.legal p, .legal li { margin: 0 0 .8rem; }
.legal a { text-decoration-color: var(--gilt); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- colophon */
.colophon {
  border-top: 1px solid var(--rule);
  padding: 2.5rem var(--gutter) 3rem;
  text-align: center;
  color: var(--ash);
  font-size: .92rem;
}
.colophon .signet { width: 34px; margin: 0 auto 1.2rem; opacity: .7; }
.colophon .partner { color: var(--cream); margin: 0 0 .4rem; }
.colophon .small { max-width: 36rem; margin: 0 auto 1.2rem; font-size: .85rem; }
.colophon nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.6rem; }
.colophon nav a { text-decoration: none; }
.colophon nav a:hover { color: var(--cream); text-decoration: underline; }

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