:root {
  --bg-0: #130d0a;
  --bg-1: #1d130f;
  --bg-2: #281911;
  --line: #4b2f1e;
  --text: #f0e3d2;
  --muted: #ceb89f;
  --glow: #ff9d3b;
  --glow-soft: #ffbb66;
  --card: #231711;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 75% -5%, #4b2b18 0%, rgba(19, 13, 10, 0) 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 60%, #0d0907 100%);
  min-height: 100vh;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 157, 59, 0.14) 0%, rgba(255, 157, 59, 0) 35%),
    radial-gradient(circle at 80% 75%, rgba(255, 187, 102, 0.1) 0%, rgba(255, 187, 102, 0) 38%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

nav a:hover {
  color: var(--glow-soft);
  border-color: var(--glow-soft);
}

main {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  min-height: 58vh;
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  background:
    linear-gradient(102deg, rgba(18, 11, 8, 0.92) 0%, rgba(18, 11, 8, 0.8) 40%, rgba(18, 11, 8, 0.45) 66%, rgba(18, 11, 8, 0.35) 100%),
    url("./assets/covers/book1-wrap.png") center/cover no-repeat;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.hero-inner {
  width: min(680px, 88%);
  margin: 0 0 0 2.2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--glow-soft);
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 0.6rem;
  text-wrap: balance;
}

.hero-copy {
  font-size: clamp(1.03rem, 1.5vw, 1.2rem);
  max-width: 56ch;
  color: #f2dcc5;
  margin: 0;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.62rem 1.1rem;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #2a180f;
  background: linear-gradient(90deg, var(--glow-soft) 0%, var(--glow) 100%);
  box-shadow: 0 0 0 1px rgba(255, 186, 112, 0.2), 0 10px 24px rgba(255, 141, 42, 0.25);
}

.btn-ghost {
  color: var(--text);
  border-color: #7f5233;
  background: rgba(29, 19, 15, 0.7);
}

.section {
  padding: 1rem 0 1.6rem;
}

.section-head {
  margin-bottom: 0.95rem;
}

.blurb-hint {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.kicker {
  margin: 0 0 0.15rem;
  color: var(--glow-soft);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.8rem;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.book-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #2b1c15 0%, var(--card) 100%);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.book-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.coming-soon-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: #f4d6b4;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 166, 82, 0.2), transparent 45%),
    linear-gradient(160deg, #2b1a11, #1b110c);
  border-bottom: 1px solid var(--line);
}

.book-body {
  padding: 0.9rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-num {
  margin: 0 0 0.2rem;
  color: var(--glow-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.78rem;
}

h3 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  margin-bottom: 0.35rem;
}

.book-body p {
  color: #e5d1bc;
  margin: 0 0 1rem;
  line-height: 1.42;
}

.book-blurb {
  margin: 0 0 0.75rem;
}

.book-title {
  list-style: none;
  cursor: pointer;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.book-title::-webkit-details-marker {
  display: none;
}

.book-title::after {
  content: " click for blurb";
  font-family: "Source Sans 3", "Trebuchet MS", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--glow-soft);
  margin-left: 0.5rem;
}

.book-blurb[open] .book-title::after {
  content: " hide blurb";
}

.blurb-text {
  margin: 0.5rem 0 0;
  color: #e5d1bc;
  line-height: 1.42;
}

.btn-card {
  color: var(--text);
  border: 1px solid #6e452b;
  background: #2b1a12;
  align-self: flex-start;
  margin-top: auto;
}

.is-disabled {
  opacity: 0.72;
  pointer-events: none;
}

.section-story {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
  margin-top: 0.8rem;
  background:
    linear-gradient(180deg, rgba(42, 27, 19, 0.92), rgba(24, 15, 11, 0.88)),
    url("./assets/covers/book3-wrap.png") center/cover no-repeat;
}

.story-copy {
  margin: 0 0 0.8rem;
  max-width: 72ch;
  line-height: 1.55;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill-list li {
  border: 1px solid #7b4c2e;
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  font-size: 0.92rem;
  color: #f3e0cb;
  background: rgba(29, 18, 13, 0.82);
}

.section-author p {
  max-width: 72ch;
  margin: 0;
  color: #e6d4bf;
  line-height: 1.5;
}

.site-footer {
  width: min(1120px, 92vw);
  margin: 1.4rem auto 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.8rem;
}

.site-footer h2 {
  font-size: 1.6rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

.email-link {
  color: var(--glow-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 187, 102, 0.45);
}

.copyright {
  color: #b59b80;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .book-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 54vh;
    background-position: 65% center;
  }

  .hero-inner {
    margin-left: 1.2rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

@media (max-width: 700px) {
  nav {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .book-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 1.5rem 0;
    background-position: 72% center;
  }

  .hero-inner {
    margin-left: 1rem;
    margin-right: 1rem;
    width: auto;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
