@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --bg: #0c1013;
  --bg-raised: #11171b;
  --line: rgba(236, 229, 216, 0.12);
  --line-strong: rgba(236, 229, 216, 0.3);
  --text: #ece5d8;
  --text-soft: #cfc8bc;
  --muted: #9ea6ab;
  --accent: #e8aa52;
  --accent-bright: #f3bf72;
  --accent-ink: #1c1407;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

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

a {
  color: inherit;
}

p {
  margin: 0 0 1.1em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

em,
cite {
  font-style: italic;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}
.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  padding: 1.6rem 0;
}
.site-header.is-solid {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-soft);
  transition: color 0.2s;
}
.site-nav a:hover {
  color: var(--accent-bright);
}

/* Shared bits */

.eyebrow {
  display: block;
  margin-bottom: 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem);
  line-height: 1.25;
  color: var(--text);
  margin: 1rem 0 1.6rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-soft);
  max-width: 34em;
}

.prose p {
  color: var(--text-soft);
  max-width: 36em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 3.1rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 600 0.95rem/1.2 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-bright);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(12, 16, 19, 0.35);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.note {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}
.note strong {
  color: var(--text-soft);
  font-weight: 600;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin-top: 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 170, 82, 0.35);
  padding-bottom: 0.15em;
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover {
  color: var(--accent-bright);
  border-color: var(--accent-bright);
}

/* Book covers as paperbacks turned slightly: front cover, cream page edges on the right, back cover behind.
   --depth is the book's thickness (a 286-page 5x8 paperback is about 14% of its cover width). */

.cover {
  --depth: 40px;
  --turn: -28deg;
  position: relative;
  display: block;
  transform-style: preserve-3d;
  transform: perspective(1800px) rotateY(var(--turn));
  transition: transform 0.5s ease;
}
/* The transparent borders keep the visible edges inside each tilted layer, where the browser smooths them. */
.cover img {
  position: relative;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0 2px 2px 0;
  transform: translateZ(calc(var(--depth) / 2));
}
.cover::before {
  content: "";
  position: absolute;
  top: 0.6%;
  bottom: 0.6%;
  left: calc(100% - var(--depth) / 2 - 2px);
  width: var(--depth);
  transform: rotateY(90deg);
  border: 1px solid transparent;
  background:
    repeating-linear-gradient(90deg, rgba(110, 90, 60, 0.16) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #f3ebdb 0%, #e8dcc5 55%, #cfc0a4 100%);
  background-clip: padding-box;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0 2px 2px 0;
  background: #101417;
  transform: translateZ(calc(var(--depth) / -2));
  box-shadow:
    -6px 10px 18px rgba(0, 0, 0, 0.45),
    -24px 40px 70px -10px rgba(0, 0, 0, 0.7);
}
.cover-face {
  position: absolute;
  inset: 1px;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
  transform: translateZ(calc(var(--depth) / 2 + 0.5px));
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.3) 0,
    rgba(0, 0, 0, 0.12) 2.5%,
    rgba(0, 0, 0, 0) 8%,
    rgba(0, 0, 0, 0) 85%,
    rgba(0, 0, 0, 0.08) 100%
  );
}
a.cover:hover {
  --turn: -16deg;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(92vh, 860px);
  padding: 8rem 0 6rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(28% 34% at 92% 6%, rgba(232, 170, 82, 0.16), transparent 70%),
    linear-gradient(90deg, rgba(12, 16, 19, 0) 0%, rgba(12, 16, 19, 0.2) 40%, rgba(12, 16, 19, 0.42) 100%),
    linear-gradient(180deg, rgba(12, 16, 19, 0.3) 0%, rgba(12, 16, 19, 0) 18%, rgba(12, 16, 19, 0) 72%, var(--bg) 100%);
}
.hero .wrap {
  display: flex;
  justify-content: flex-end;
}
.hero-copy {
  max-width: 36rem;
}
.hero h1 {
  font-size: clamp(3.6rem, 1.6rem + 7.6vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}
.hero .lead {
  margin-top: 1.6rem;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text);
}

/* Sections */

.section {
  padding: clamp(5rem, 10vw, 8.5rem) 0;
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section-raised {
  background: var(--bg-raised);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: center;
}
.feature-reverse {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature-reverse .feature-media {
  order: 2;
}
.feature-media {
  display: flex;
  justify-content: center;
}
.feature-media .cover {
  width: min(100%, 360px);
  --depth: 50px;
}
.feature h2 {
  font-size: clamp(2.8rem, 1.8rem + 3.6vw, 4.6rem);
}
.feature .prose {
  margin-top: 0.4rem;
}
.feature h2 + .prose {
  margin-top: 1.4rem;
}

.badge {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(232, 170, 82, 0.5);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.about h2 {
  font-size: clamp(2.6rem, 1.8rem + 3vw, 4rem);
}
.about .prose p:first-child {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.05rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  max-width: 24em;
}

/* Contact */

.contact {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}
.contact h2 {
  font-size: clamp(2.6rem, 1.8rem + 3vw, 4rem);
  margin-bottom: 1.2rem;
}
.contact .lead {
  margin: 0 auto;
}
.contact .actions {
  justify-content: center;
}
.email-address {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 170, 82, 0.4);
  overflow-wrap: anywhere;
}
.email-address:hover {
  color: var(--accent-bright);
}
.copy-btn {
  margin-left: 0.75rem;
  vertical-align: 0.35em;
  padding: 0.3rem 0.7rem;
  min-height: 0;
  font-size: 0.8rem;
}

/* Book page */

.book-page {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(5rem, 9vw, 7.5rem);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.back-link:hover {
  color: var(--accent-bright);
}
.book {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.book-media {
  position: sticky;
  top: 2rem;
}
.book-media .cover {
  width: min(100%, 380px);
  margin: 0 auto;
  --depth: 53px;
}
.book h1 {
  font-size: clamp(3rem, 1.8rem + 4.4vw, 5.2rem);
}
.book .prose {
  margin-top: 2.2rem;
}
.book .prose p:last-child {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--text);
}

.details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.7rem 2rem;
  margin: 2.6rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.details dt {
  color: var(--muted);
}
.details dd {
  margin: 0;
  color: var(--text-soft);
}

.stores {
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.stores summary {
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
}
.stores summary:hover {
  color: var(--accent-bright);
}
.stores h3 {
  margin: 1.4rem 0 0.7rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.store-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.store-list a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text-soft);
  transition: border-color 0.2s, color 0.2s;
}
.store-list a:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.next-up {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-top: clamp(4rem, 8vw, 6rem);
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raised);
}
.next-up .cover {
  width: 92px;
  flex: none;
  --depth: 13px;
}
.next-up h2 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}
.next-up p {
  margin: 0;
  color: var(--text-soft);
}
.next-up .eyebrow {
  margin-bottom: 0.5rem;
}

/* Error page */

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem 0;
}
.not-found h1 {
  font-size: clamp(3rem, 2rem + 4vw, 5rem);
  margin-bottom: 1rem;
}
.not-found .actions {
  justify-content: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}
.site-footer p {
  margin: 0;
}
.site-footer .wordmark {
  font-size: 1.3rem;
  color: var(--text);
  margin-right: 0.9rem;
}

/* Layout breakpoints */

@media (max-width: 860px) {
  .feature,
  .feature-reverse,
  .about,
  .book {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-reverse .feature-media {
    order: 0;
  }
  .feature-media .cover {
    width: min(68%, 300px);
    --depth: 40px;
  }
  .book-media {
    position: static;
  }
  .book-media .cover {
    width: min(68%, 300px);
    --depth: 40px;
  }
  .hero .wrap {
    justify-content: flex-start;
  }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(12, 16, 19, 0.6) 0%, rgba(12, 16, 19, 0.35) 30%, rgba(12, 16, 19, 0.82) 70%, var(--bg) 100%);
  }
  .hero {
    align-items: flex-end;
    min-height: 88vh;
    padding-bottom: 4rem;
  }
  .hero-bg img {
    object-position: 34% 50%;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 1.2rem 0;
  }
  .site-header .wrap {
    flex-direction: column;
    gap: 0.6rem;
  }
  .wordmark {
    font-size: 1.45rem;
  }
  .site-nav a {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }
  .actions .btn {
    flex: 1 1 100%;
  }
  .details {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }
  .details dd {
    margin-bottom: 0.7rem;
  }
  .next-up {
    flex-direction: column;
    align-items: flex-start;
  }
  .copy-btn {
    display: flex;
    margin: 1rem auto 0;
    vertical-align: 0;
  }
}

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