:root {
  color-scheme: dark;
  --ink: #fff9ee;
  --muted: #e2e7e7;
  --gold: #f4d7a0;
  --navy: #122c3f;
  --line: rgb(255 249 238 / 28%);
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--navy);
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(90deg, rgb(9 29 44 / 91%), rgb(13 39 58 / 60%) 59%, rgb(13 39 58 / 13%)),
    linear-gradient(0deg, rgb(10 32 49 / 87%), transparent 48%),
    url("assets/meer.webp") center 78% / cover no-repeat;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
p, h1, figure { margin: 0; }

.shell { width: min(76rem, 100% - clamp(2rem, 10vw, 9rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
}

.wordmark {
  font-family: Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  white-space: nowrap;
  padding-block: .5rem;
}

.wordmark span, h1 em { color: var(--gold); }
.navigation { display: flex; flex-wrap: wrap; gap: 0 clamp(.85rem, 3vw, 2.3rem); }

.navigation a {
  display: grid;
  align-items: center;
  min-height: clamp(3rem, 8vw, 5rem);
  border-bottom: 2px solid transparent;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
}

.navigation a:hover, .navigation a[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: var(--ink);
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(2.75rem, 6.5vh, 5.5rem);
}

h1 {
  font: 400 clamp(3.25rem, 6.1vw, 6rem) / .99 Georgia, serif;
  letter-spacing: -.065em;
}

h1 em { display: block; }
.subtitle { margin-top: 1.5rem; color: var(--muted); font-size: clamp(1.15rem, 2.4vw, 1.75rem); line-height: 1.35; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: clamp(1.5rem, 4vw, 2.75rem); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 3.25rem;
  border-radius: .25rem;
  padding: .75rem 1.15rem;
  color: #152936;
  background: var(--gold);
  font-weight: 650;
}

.button:hover { background: var(--ink); }
.button span { font-size: 1.2rem; line-height: 1; }

.about-layout {
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.about-copy {
  padding: clamp(1.25rem, 3.5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: rgb(9 29 44 / 87%);
}

.about-copy h1 { font-size: clamp(2.15rem, 5.4vw, 4.65rem); line-height: 1.08; }
.synopsis { max-width: 64ch; margin-top: 1.5rem; color: var(--muted); line-height: 1.7; }
.synopsis p + p { margin-top: 1em; }

.book {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  text-align: center;
  justify-self: center;
}

.cover {
  display: block;
  width: min(100%, 20rem, max(14rem, 39vh));
  height: auto;
  border-radius: .15rem .35rem .35rem .15rem;
  box-shadow: 0 1.4rem 3rem rgb(3 17 30 / 48%), -4px 2px 0 rgb(12 30 43 / 65%);
}

figcaption { line-height: 1.55; font-size: .9rem; }
.isbn { margin-top: .3rem; color: var(--muted); font-size: .79rem; letter-spacing: .08em; }

.home-content { flex: 1; display: flex; flex-direction: column; }

.testimonials {
  padding-block: clamp(1.75rem, 4vw, 3rem) clamp(1.15rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  background: rgb(9 29 44 / 90%);
  text-align: center;
}

.testimonials h2 {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.testimonials-list {
  display: grid;
  align-items: center;
  gap: 1rem;
  max-width: 47rem;
  margin-inline: auto;
}

.testimonials blockquote {
  margin: 0;
  font: italic clamp(1.2rem, 3vw, 1.85rem) / 1.45 Georgia, serif;
  overflow-wrap: anywhere;
}

.testimonials-list:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }

@media (prefers-reduced-motion: no-preference) {
  .testimonials blockquote {
    grid-area: 1 / 1;
    animation: testimonial-rotation 42s steps(1, end) var(--review-delay, 0s) infinite;
  }

  .testimonials blockquote:nth-child(2) { --review-delay: -35s; }
  .testimonials blockquote:nth-child(3) { --review-delay: -28s; }
  .testimonials blockquote:nth-child(4) { --review-delay: -21s; }
  .testimonials blockquote:nth-child(5) { --review-delay: -14s; }
  .testimonials blockquote:nth-child(6) { --review-delay: -7s; }

  .testimonials-list:is(:hover, :focus) blockquote { animation-play-state: paused; }
}

@keyframes testimonial-rotation {
  0% { visibility: visible; }
  16.6666%, 100% { visibility: hidden; }
}

.site-footer { border-top: 1px solid var(--line); background: rgb(7 26 41 / 78%); }

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.25rem, 3vw, 2rem);
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.footer-title { margin-bottom: .2rem; color: var(--ink); font: 400 1.25rem / 1.25 Georgia, serif; }
.footer-contact { margin-top: .45rem; overflow-wrap: anywhere; }
.footer-contact a { color: var(--ink); text-decoration: underline; text-underline-offset: .18em; }
.footer-page-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; color: var(--ink); }
.footer-inner a:hover { color: var(--gold); }

@media (max-width: 46rem) {
  body {
    background:
      linear-gradient(180deg, rgb(9 29 44 / 94%), rgb(13 39 58 / 58%) 60%, rgb(9 29 44 / 88%)),
      url("assets/meer.webp") center / cover no-repeat;
  }

  .hero { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 2.75rem; }
  .about-copy { text-align: start; }
  h1 { font-size: clamp(2.7rem, 10.5vw, 5.2rem); }
  .subtitle { margin-top: 1rem; }
  .hero-actions { justify-content: center; }
  .cover { width: min(100%, 15rem); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-page-link { justify-self: start; }
}

@media (max-width: 27rem) {
  .header-inner { justify-content: center; }
  .navigation { width: 100%; justify-content: center; }
}
