:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --line: #e6e6e6;
  --max: 1100px;
  --band-h: 260px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
.author-name,
.book-title,
.page-title {
  font-family: "Libre Caslon Text", Georgia, "Times New Roman", Times, serif;
}

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 20px;
}

.narrow {
  max-width: 760px;
}

.skip {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 999;
}

.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  justify-self: center;
}

.brand-mark {
  width: auto;
  max-height: 78px;
}

.nav-toggle {
  display: none;
  border: 1px solid #000;
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 32px;
  color: #111;
  font-size: 1rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-self: end;
  justify-content: flex-end;
  min-height: 1px;
}

.site-nav a {
  text-decoration: none;
  color: #333;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #b48a2c;
  border-bottom-color: #b48a2c;
  text-decoration: none;
}

.author-name,
.page-title {
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: clamp(2.4rem, 6.6vw, 4rem);
  line-height: 1.1;
}

.intro-label,
.eyebrow,
.series {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.series-synopsis,
.series-author,
.series-contact {
  display: none;
}

.hero.synopsis-active .series-default,
.hero.author-active .series-default,
.hero.author-active .series-synopsis,
.hero.contact-active .series-default,
.hero.contact-active .series-synopsis,
.hero.contact-active .series-author {
  display: none;
}

.hero.synopsis-active:not(.author-active) .series-synopsis {
  display: inline;
}

.hero.author-active .series-author {
  display: inline;
}

.hero.contact-active .series-contact {
  display: inline;
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  margin-right: -14px;
}

.nav-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #000;
  border-radius: 50%;
  text-decoration: none;
  color: #333;
  position: relative;
}

.social-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.nav-socials a:hover {
  background: #b48a2c;
  border-color: #b48a2c;
  color: #fff;
}

.hero {
  position: relative;
  background: #fff;
  padding: 48px 0;
}

.band {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 350px;
  transform: translateY(-50%);
  z-index: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.band-layer {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(0.82) brightness(1.04);
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.band-default {
  background-image: url("assets/feature-band.png");
  background-position: center right;
  opacity: 1;
}

.band-author {
  background-image: url("assets/feature-banner-author.png");
  background-position: left center;
  opacity: 0;
}

.hero.author-active .band-default,
.hero.contact-active .band-default {
  opacity: 0;
}

.hero.author-active .band-author,
.hero.contact-active .band-author {
  opacity: 1;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: 36px;
  align-items: stretch;
}

.book-promo {
  grid-column: 2;
  align-self: start;
  margin-top: 126px;
  margin-bottom: -120px;
  color: #b48a2c;
  font-size: 0.96rem;
  line-height: 1.4;
  position: relative;
  z-index: 2;
  overflow: hidden;
  white-space: nowrap;
  animation: promo-type-in 1.2s steps(40, end) both;
}

.book-promo a {
  display: inline;
  margin-left: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b48a2c;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
}

.book-promo a:hover,
.book-promo a:focus-visible {
  text-decoration: underline;
}

.book-promo a:not(.promo-shop-link):hover,
.book-promo a:not(.promo-shop-link):focus-visible {
  color: #8d6917;
}

.book-promo .promo-shop-link {
  color: #c96452;
}

.book-promo .promo-shop-link:hover,
.book-promo .promo-shop-link:focus-visible {
  color: #a84d3d;
}

.book-mock {
  margin: 0;
  padding: 10px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.6);
  display: grid;
  gap: 10px;
}

.cover-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
}

.book-mock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0 22px 22px 0;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.book-mock img.is-swapping {
  opacity: 0.18;
  filter: blur(7px);
}

.cta {
  color: #111;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 154px;
}

.hero-text-stage {
  position: relative;
}

.book-title {
  margin: 0.2rem 0;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
}

.sub,
.section-copy,
.proof-copy,
.about-copy p {
  color: #333;
}

.links .btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  color: #000;
  background: transparent;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 16px;
  text-align: center;
}

.btn:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.btn.primary,
.btn.spotify,
.btn.ghost,
.light-ghost {
  background: transparent;
  color: inherit;
}

.links {
  margin-top: 14px;
}

.links .btn {
  margin: 6px 10px 0 0;
}

.hero-note {
  margin-top: 16px;
  color: var(--muted);
}

.hero-default,
.hero-synopsis,
.hero-author,
.hero-contact {
  position: absolute;
  inset: 0;
  transition: opacity 0.8s ease, filter 0.8s ease;
}

.hero-default {
  position: relative;
}

.hero-synopsis,
.hero-author,
.hero-contact {
  opacity: 0;
  pointer-events: none;
  filter: blur(10px);
}

.hero.synopsis-active .hero-default {
  opacity: 0;
  pointer-events: none;
  filter: blur(10px);
}

.hero.synopsis-active .hero-synopsis {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0);
}

.hero.author-active .hero-default,
.hero.author-active .hero-synopsis,
.hero.contact-active .hero-default,
.hero.contact-active .hero-synopsis,
.hero.contact-active .hero-author {
  opacity: 0;
  pointer-events: none;
  filter: blur(10px);
}

.hero.author-active .hero-author {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0);
  align-content: start;
}

.hero.contact-active .hero-contact {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0);
  align-content: start;
}

.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.section-contrast {
  background: #fff;
  color: var(--ink);
}

.hero-synopsis .synopsis-line {
  min-height: 1.6em;
  white-space: pre-wrap;
}

.hero.synopsis-active .hero-synopsis {
  margin-top: -2.8rem;
}

.author-trigger {
  display: inline-block;
  margin-top: 0;
  color: #b48a2c;
  text-decoration: none;
  font-weight: 600;
}

.author-trigger:hover {
  color: #8d6917;
  text-decoration: underline;
}

.hero-author {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.hero-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.author-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  position: relative;
  z-index: 1;
  padding-right: 12px;
  align-items: start;
}

.author-column {
  display: grid;
  align-content: start;
  gap: 0;
}

.contact-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
  padding-right: 12px;
  align-items: start;
}

.hero.author-active .author-copy,
.hero.contact-active .contact-copy {
  padding-top: 0;
}

.author-line {
  opacity: 0;
  transform: translateY(14px);
  margin: 0 0 12px;
  font-size: 0.96rem;
  line-height: 1.55;
}

.contact-line {
  opacity: 0;
  transform: translateY(14px);
  margin: 0 0 12px;
  font-size: 0.96rem;
  line-height: 1.55;
}

.contact-action-line {
  margin-top: 2px;
  margin-bottom: 6px;
}

.gold-social-link {
  color: #b48a2c;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.gold-social-link:hover {
  color: #8d6917;
  text-decoration: underline;
}

.gold-social-link i {
  margin-right: 6px;
}

.contact-mail-link {
  display: inline-block;
  border-color: #b48a2c;
  color: #b48a2c;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  line-height: 1.2;
}

.contact-mail-link:hover {
  background: rgba(180, 138, 44, 0.08);
  border-color: #8d6917;
  color: #b48a2c;
  text-decoration: none;
}

.links .synopsis-trigger,
.synopsis-trigger {
  border-color: #b48a2c;
  color: #b48a2c;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  line-height: 1.2;
}

.links .synopsis-trigger:hover,
.synopsis-trigger:hover {
  background: rgba(180, 138, 44, 0.08);
  border-color: #8d6917;
  color: #b48a2c;
}

.hero.author-active .author-line {
  animation: author-line-in 0.7s ease forwards;
}

.hero.contact-active .contact-line {
  animation: author-line-in 0.7s ease forwards;
}

.hero.author-active .author-line:nth-child(1) { animation-delay: 0.08s; }
.hero.author-active .author-line:nth-child(2) { animation-delay: 0.22s; }
.hero.author-active .author-line:nth-child(3) { animation-delay: 0.36s; }
.hero.author-active .author-line:nth-child(4) { animation-delay: 0.50s; }
.hero.author-active .author-line:nth-child(5) { animation-delay: 0.64s; }
.hero.author-active .author-line:nth-child(6) { animation-delay: 0.78s; }

.hero.contact-active .contact-line:nth-child(1) { animation-delay: 0.08s; }
.hero.contact-active .contact-line:nth-child(2) { animation-delay: 0.22s; }
.hero.contact-active .contact-line:nth-child(3) { animation-delay: 0.36s; }
.hero.contact-active .contact-line:nth-child(4) { animation-delay: 0.50s; }
.hero.contact-active .contact-line:nth-child(5) { animation-delay: 0.64s; }
.hero.contact-active .contact-line:nth-child(6) { animation-delay: 0.78s; }

.author-name-line {
  font-family: "Libre Caslon Text", Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 700;
}

.hero.author-active .book-mock img {
  object-position: center center;
  border-radius: 0 22px 22px 0;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
}

.hero-availability {
  margin-top: 144px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 32px;
  align-items: end;
}

.center-label {
  text-align: center;
  margin-bottom: 14px;
}

.icon-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #000;
  border-radius: 50%;
  color: #111;
  text-decoration: none;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-socials a::after,
.icon-link::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(180, 138, 44, 0.96);
  color: #fffdf7;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 8;
}

.nav-socials a::before,
.icon-link::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  width: 8px;
  height: 8px;
  background: rgba(180, 138, 44, 0.96);
  transform: translateX(-50%) rotate(45deg) translateY(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 7;
}

.nav-socials a::after {
  bottom: auto;
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(-6px);
}

.nav-socials a::before {
  bottom: auto;
  top: calc(100% + 4px);
  transform: translateX(-50%) rotate(45deg) translateY(-6px);
}

.nav-socials a:hover::after,
.nav-socials a:hover::before,
.nav-socials a:focus-visible::after,
.nav-socials a:focus-visible::before,
.icon-link:hover::after,
.icon-link:hover::before,
.icon-link:focus-visible::after,
.icon-link:focus-visible::before {
  opacity: 1;
}

.nav-socials a:hover::after,
.nav-socials a:focus-visible::after,
.icon-link:hover::after,
.icon-link:focus-visible::after {
  transform: translateX(-50%) translateY(0);
}

.nav-socials a:hover::before,
.nav-socials a:focus-visible::before,
.icon-link:hover::before,
.icon-link:focus-visible::before {
  transform: translateX(-50%) rotate(45deg) translateY(0);
}

.fly-in-left .icon-link,
.fly-in-right .icon-link,
.fly-in-left .center-label,
.fly-in-right .center-label {
  opacity: 0;
}

.reveal.in .fly-in-left .center-label {
  animation: fly-in-right 0.7s ease forwards;
}

.reveal.in .fly-in-right .center-label {
  animation: fly-in-right 0.7s ease forwards;
}

.reveal.in .fly-in-left .icon-link:nth-of-type(1) { animation: fly-in-right 0.65s ease forwards 0.08s; }
.reveal.in .fly-in-left .icon-link:nth-of-type(2) { animation: fly-in-right 0.65s ease forwards 0.16s; }
.reveal.in .fly-in-left .icon-link:nth-of-type(3) { animation: fly-in-right 0.65s ease forwards 0.24s; }
.reveal.in .fly-in-left .icon-link:nth-of-type(4) { animation: fly-in-right 0.65s ease forwards 0.32s; }
.reveal.in .fly-in-left .icon-link:nth-of-type(5) { animation: fly-in-right 0.65s ease forwards 0.40s; }
.reveal.in .fly-in-left .icon-link:nth-of-type(6) { animation: fly-in-right 0.65s ease forwards 0.48s; }

.reveal.in .fly-in-right .icon-link:nth-of-type(1) { animation: fly-in-right 0.65s ease forwards 0.12s; }

.icon-link:hover {
  background: #b48a2c;
  border-color: #b48a2c;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.icon-link i {
  font-size: 1.2rem;
}

.spotify-icon-link i {
  font-size: 1.45rem;
}

.fly-in-left,
.fly-in-right {
  opacity: 1;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  background: #fff;
  text-align: center;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  border: 1px solid #000;
  background: #fff;
  border-radius: 0;
  padding: 10px 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.typing-caret::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.12em;
  animation: caret-blink 0.9s step-end infinite;
}

@keyframes caret-blink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

@keyframes promo-type-in {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes author-line-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fly-in-left {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fly-in-right {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.no-save {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

img.no-save {
  -webkit-user-drag: none;
  user-drag: none;
}

@media (max-width: 900px) {
  .brand-mark {
    max-height: 52px;
  }

  .header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .brand {
    order: 3;
    width: auto;
    margin-left: auto;
    justify-content: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
    order: 1;
    margin-left: 0;
  }

  .nav-socials {
    order: 2;
    margin-right: 0;
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    width: 100%;
    order: 4;
    justify-content: flex-start;
    margin-top: 6px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.22s ease;
  }

  .site-nav.open {
    max-height: 220px;
    padding: 10px 0;
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding: 24px 0 44px;
  }

  .band {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .book-promo {
    grid-column: auto;
    margin-top: 0;
    margin-bottom: 0;
  }

  .hero-author {
    grid-template-columns: 1fr;
  }

  .author-copy {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-availability {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero.synopsis-active .cta {
    padding-top: 0;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 16px;
    padding-bottom: 36px;
  }

  .brand-mark {
    max-height: 42px;
  }

  .cover-frame {
    aspect-ratio: auto;
    max-height: none;
  }

  .book-mock {
    width: min(100%, 250px);
    margin-inline: auto;
    padding: 12px;
  }

  .hero.author-active .book-mock,
  .hero.contact-active .book-mock {
    width: 100%;
    padding: 0;
    background: transparent;
  }

  .book-promo {
    order: -1;
    margin-bottom: 2px;
    font-size: 0.92rem;
  }

  .book-mock img,
  .hero.author-active .book-mock img {
    height: auto;
    object-fit: contain;
    object-position: center top;
  }

  .cta {
    margin-top: 8px;
    padding-top: 0;
  }

  .container {
    padding: 0 18px;
  }

  .hero-text-stage {
    min-height: 0 !important;
  }

  .hero-default,
  .hero-synopsis,
  .hero-author,
  .hero-contact {
    position: relative;
    inset: auto;
    transition: none;
    filter: none;
  }

  .hero-synopsis,
  .hero-author,
  .hero-contact {
    display: none;
    opacity: 0;
    pointer-events: none;
  }

  .hero.synopsis-active .hero-default,
  .hero.author-active .hero-default,
  .hero.contact-active .hero-default,
  .hero.author-active .hero-synopsis,
  .hero.contact-active .hero-synopsis,
  .hero.contact-active .hero-author {
    display: none;
    opacity: 0;
    pointer-events: none;
    filter: none;
  }

  .hero.synopsis-active .hero-synopsis,
  .hero.author-active .hero-author,
  .hero.contact-active .hero-contact {
    display: block;
    opacity: 1;
    pointer-events: auto;
    filter: none;
  }

  .hero-availability {
    margin-top: 20px;
  }

  .links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .links .btn,
  .btn {
    width: 100%;
    margin-right: 0;
  }
}
