:root {
  color-scheme: dark;
  --ink: #f7f4ed;
  --muted: #b8c2d1;
  --navy: #061225;
  --navy-soft: #0b1c35;
  --panel: rgba(15, 35, 63, 0.78);
  --line: rgba(244, 198, 106, 0.25);
  --gold: #f4c66a;
  --gold-light: #ffe5a8;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -10%, rgba(45, 93, 151, 0.4), transparent 34rem),
    radial-gradient(circle at 6% 58%, rgba(244, 198, 106, 0.08), transparent 24rem),
    var(--navy);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.author {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.author-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--gold);
  border-radius: 0.8rem;
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 0.9rem;
}

.kindle-label {
  color: var(--muted);
  font-size: 0.9rem;
}

main {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.intro {
  max-width: 47rem;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.eyebrow,
.language {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.15rem, 9vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.97;
}

.intro-copy {
  max-width: 36rem;
  margin: 1.7rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.books {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 5rem;
}

.collection-heading {
  padding: 0.75rem 0 0.65rem;
}

.collection-heading-second {
  padding-top: clamp(3rem, 7vw, 6rem);
}

.collection-title {
  max-width: 17ch;
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.book-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(10rem, 17rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(1.35rem, 4vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.06), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.book-card::after {
  position: absolute;
  z-index: -1;
  right: -7rem;
  bottom: -9rem;
  width: 19rem;
  height: 19rem;
  border: 1px solid rgba(244, 198, 106, 0.14);
  border-radius: 50%;
  content: "";
}

.book-card-en {
  background:
    linear-gradient(125deg, rgba(244, 198, 106, 0.08), transparent 40%),
    rgba(8, 28, 52, 0.82);
}

.cover-shell {
  justify-self: center;
  width: 100%;
  max-width: 15.5rem;
  aspect-ratio: 132 / 203;
  overflow: hidden;
  border-radius: 0.35rem;
  background: #07152a;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.5);
  transform: rotate(-1deg);
}

.book-card-en .cover-shell {
  transform: rotate(1deg);
}

.cover-crop {
  width: 100%;
  height: 100%;
  background-image: url("./assets/kdp-bookshelf.png");
  background-repeat: no-repeat;
}

.cover-nl {
  background-position: 4.8% 43.4%;
  background-size: 1000% auto;
}

.cover-en {
  background-position: 4.8% 19%;
  background-size: 1000% auto;
}

.cover-recovery-en {
  background-position: 4.8% 65.6%;
  background-size: 1000% auto;
}

.cover-recovery-nl {
  background-position: 4.8% 87.9%;
  background-size: 1000% auto;
}

.book-copy {
  max-width: 39rem;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.subtitle {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--gold-light);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 650;
  line-height: 1.45;
}

.description {
  max-width: 34rem;
  margin: 1rem 0 1.75rem;
  color: var(--muted);
  font-size: 1rem;
}

.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  min-height: 3.8rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #111a29;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.buy-button:hover {
  background: var(--gold-light);
  box-shadow: 0 12px 30px rgba(244, 198, 106, 0.18);
  transform: translateY(-2px);
}

.buy-button:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}

.buy-button span {
  font-size: 1.35rem;
}

.amazon-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

footer {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .site-header {
    min-height: 4.75rem;
  }

  .kindle-label {
    display: none;
  }

  .intro {
    padding-top: 3.5rem;
  }

  .book-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    border-radius: 1.35rem;
  }

  .cover-shell {
    width: min(72vw, 14rem);
  }

  .buy-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .buy-button {
    transition: none;
  }
}
