/* The book's page. The app's colours and faces, as in style.css; brass on
   the one thing that opens something, the button to the book. */

:root {
  --ink: #0A0620;
  --surface1: #130D2A;
  --surface2: #1A1636;
  --surface3: #262048;
  --glow: #3A3070;
  --on: #FBFAFF;
  --soft: #B6B2CE;
  --faint: #908BAF;
  --brass: #E0AC4C;
  --brass-lip: #B9862F;
  --serif: Didot, "Bodoni 72", "Bodoni Moda", Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Roboto, system-ui, sans-serif;
  --mark: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, system-ui, sans-serif;
  --gutter: 16px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--ink);
  background-image: radial-gradient(130% 70% at 50% 12%, var(--glow) 0%, var(--surface1) 46%, var(--ink) 100%);
  background-repeat: no-repeat;
  color: var(--soft);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.top {
  padding: max(24px, env(safe-area-inset-top)) var(--gutter) 0;
  text-align: center;
}

.wordmark {
  font-family: var(--mark);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--on);
  text-decoration: none;
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px var(--gutter) 56px;
}

/* The cover and the pitch ------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.cover {
  width: 140px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass);
}

h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--on); }

h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 9vw, 52px);
  line-height: 1.05;
}

h2 { font-size: 28px; line-height: 1.2; margin: 0 0 14px; }

.lede {
  margin: 0 0 16px;
  font-size: 19px;
  color: var(--on);
}

.pitch p { margin: 0 0 16px; }
.more { margin-top: 22px !important; }

.actions, .again {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 14px;
}

.buy {
  display: block;
  padding: 15px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 17px;
  text-align: center;
  text-decoration: none;
}

.buy {
  background: var(--brass);
  color: #1A1206;
  box-shadow: 0 3px 0 var(--brass-lip);
}
.buy:hover { filter: brightness(1.06); color: #1A1206; }

.buy:focus-visible, a:focus-visible {
  outline: 2px solid var(--on);
  outline-offset: 3px;
}

/* What it is --------------------------------------------------------------- */

.facts, .inside, .ways {
  margin-top: 48px;
  padding: 24px 20px;
  border-radius: 18px;
  background: rgba(26, 22, 54, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.facts ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.facts li { padding-left: 18px; position: relative; }
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}
.facts strong { color: var(--on); font-weight: 600; }

.inside .big {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.3;
  color: var(--on);
}
.inside p { margin: 0 0 18px; }
.inside p:last-child { margin-bottom: 0; }
.inside span { color: var(--on); font-weight: 600; }

.ways p { margin: 0; }

.again { max-width: 440px; margin: 48px auto 0; }

/* The foot ----------------------------------------------------------------- */

.foot {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter) max(32px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 14px;
  color: var(--faint);
}
.foot p { margin: 0 0 10px; }
.foot a { color: var(--soft); }
.foot nav { display: flex; justify-content: center; gap: 6px; }
.foot nav a { color: var(--faint); text-decoration: none; padding: 12px 10px; }
.foot p a { display: inline-block; padding: 12px 2px; margin: -12px 0; }

/* Short phones: a smaller cover, so the button is on the first screen. */

@media (max-width: 759px) and (max-height: 640px) {
  .top { padding-top: max(16px, env(safe-area-inset-top)); }
  main { padding-top: 16px; }
  .cover { width: 96px; }
  .hero { gap: 16px; }
  h1 { font-size: 32px; }
  .lede { font-size: 17px; }
}

/* Wide screens: the cover beside the pitch --------------------------------- */

@media (min-width: 760px) {
  main { padding-top: 48px; }
  .hero {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 48px;
  }
  .cover { width: 300px; max-width: none; flex: none; }
  .actions { flex-direction: row; }
  .actions .buy { flex: 1; }
}
