:root {
  color-scheme: dark;
  --ink: #0a080b;
  --paper: #f8f0e3;
  --gold: #f4cf86;
  --muted: #d2c1b2;
  --line: #caa46a46;
  --display-font: 'Playfair Display', Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font: 400 1rem/1.65 'DM Sans', Arial, sans-serif;
}

h1,
h2 {
  margin: 0;
  font: 600 clamp(2.8rem, 6.1vw, 5.5rem)/1.02 var(--display-font);
  letter-spacing: -.045em;
  text-wrap: balance;
}

h1 em {
  color: var(--gold);
}

h2 {
  font-size: clamp(2.15rem, 4.5vw, 3.6rem);
}

a {
  color: inherit;
  text-underline-offset: .32em;
}

a:hover {
  color: var(--gold);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.content {
  width: min(65rem, calc(100% - 3rem));
  margin-inline: auto;
}

.book-home {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% 35%, #14142a 0%, #070810 58%, #050509 100%);
}

.landing {
  flex: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  padding: clamp(1rem, 3svh, 2.75rem) 1.25rem 1.25rem;
  text-align: center;
}

.landing-title {
  width: clamp(13rem, min(92vw, 49svh), 30rem);
  max-width: 100%;
  aspect-ratio: 1024 / 1182;
}

.landing-title img {
  display: block;
  width: 100%;
  height: 100%;
  /* Frame the emblem and title between the cover's top line and byline. */
  object-fit: cover;
  object-position: center 30%;
  mask-image:
    linear-gradient(to right, transparent, #000 2%, #000 98%, transparent),
    linear-gradient(to bottom, transparent, #000 1.5%, #000 97%, transparent);
  mask-composite: intersect;
}

.landing-hook {
  margin: .55rem 0 0;
  font: 600 clamp(1.3rem, 3.8vw, 2.4rem)/1.28 var(--display-font);
  text-wrap: balance;
  text-shadow: 0 2px 12px #000;
}

.landing-hook em {
  display: block;
  color: var(--gold);
}

.landing-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.55rem;
}

.landing-actions a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.5rem;
  padding: .7rem 1.35rem;
  border: 1px solid #c39a58;
  border-radius: .3rem;
  color: #fff2d7;
  background: linear-gradient(#24243a, #11111f);
  box-shadow: inset 0 0 0 2px #080911, 0 .3rem .9rem #0006;
  font: 700 clamp(.95rem, 2.1vw, 1.12rem)/1.3 var(--display-font);
  text-decoration: none;
}

.landing-actions a:hover {
  border-color: #ffdfa0;
  background: linear-gradient(#3a3450, #1c192b);
}

.landing-actions .sample-button {
  border-color: #ffe5a3;
  color: #241507;
  background: linear-gradient(165deg, #fff0c4, #e3b45e 60%, #cf9a42);
  box-shadow: inset 0 0 0 2px #71450b50, 0 .35rem 1.15rem #ad792933;
}

.landing-actions .sample-button:hover {
  background: linear-gradient(165deg, #fff8e2, #f5ca78 60%, #e0ac54);
}

.landing-actions .about-button {
  border-color: #a98b5e;
}

.reading-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem clamp(1.25rem, 4.5vw, 3rem);
  margin-top: 1.25rem;
}

.reading-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 600 clamp(1.06rem, 2.4vw, 1.5rem)/1.3 var(--display-font);
  text-decoration-thickness: 1px;
}

.reading-links .primary-link {
  color: var(--gold);
  text-decoration-thickness: 2px;
}

.reading-links .primary-link:hover {
  color: var(--paper);
}

.details-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  color: var(--muted);
  font-size: .9rem;
}

.site-footer {
  padding: .75rem 1rem 1.1rem;
  text-align: center;
  color: var(--muted);
  font-size: .76rem;
}

.book-header {
  padding-block: .7rem;
}

.book-intro,
.synopsis {
  display: grid;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
}

.book-intro {
  grid-template-columns: minmax(12rem, 19rem) minmax(0, 1fr);
  padding-block: clamp(.4rem, 2vw, 1.5rem) clamp(2.2rem, 5vw, 4rem);
}

.book-cover {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  box-shadow: 0 1.15rem 3rem #0009;
}

.intro-copy .reading-links {
  justify-content: flex-start;
}

.eyebrow,
.byline {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.eyebrow {
  color: var(--gold);
}

.byline {
  color: var(--muted);
}

.book-lede,
.synopsis-lede {
  font: 600 clamp(1.18rem, 2.15vw, 1.55rem)/1.45 var(--display-font);
}

.book-lede {
  max-width: 31rem;
}

.synopsis {
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 17rem);
  align-items: start;
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-block: 1px solid var(--line);
}

.synopsis-lede {
  color: var(--gold);
}

.synopsis-copy p:last-child {
  margin-bottom: 0;
}

.phoebe {
  margin: 0;
}

.phoebe img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 45% 45% 0 0;
}

@media (max-width: 640px) {
  .landing-actions {
    flex-direction: column;
    width: min(100%, 23rem);
    gap: .6rem;
    margin-top: 1.25rem;
  }

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

  .book-intro {
    text-align: center;
  }

  .book-cover {
    width: clamp(9.5rem, min(49vw, 30svh), 12.5rem);
    justify-self: center;
  }

  .intro-copy .reading-links {
    justify-content: center;
  }

  .book-lede {
    margin-inline: auto;
  }

  .phoebe {
    width: min(15rem, 75%);
    justify-self: center;
  }
}
