/* The book's page. The app's colours and faces, as in style.css (the home
   page's look since 5 Dec 2026: mono labels, the warm gradient key). */

: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: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mark: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gold: #F5D68F;
  --amber: #F2903A;
  --pink: #E496BA;
  --teal: #54C9B1;
  --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(60% 40% at 85% 8%, rgba(212, 107, 160, .22), transparent 70%),
    radial-gradient(70% 50% at 10% 0%, rgba(107, 77, 240, .3), transparent 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(201, 138, 46, .14), transparent 70%),
    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: 900;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--on);
  text-decoration: none;
}

.wordmark span {
  background: linear-gradient(100deg, #B9A9FF, #E9A2C8 55%, #F5D68F);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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 {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--gold);
}

.eyebrow .sep { margin: 0 .5em; opacity: .5; }

.dot {
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 50%;
  background: #F7C948;
  box-shadow: 0 0 12px rgba(247, 201, 72, .8);
}

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: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
  padding: 0 12px 0 22px;
  border-radius: 16px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  color: #1A0F04;
  background: linear-gradient(95deg, var(--amber) 0%, var(--brass) 45%, #F7C948 100%);
  box-shadow: 0 14px 34px -12px rgba(242, 144, 58, .65), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform 140ms ease, filter 160ms ease;
}
.buy:hover { filter: brightness(1.06); color: #1A0F04; transform: translateY(-2px); }
.buy .price { padding: 6px 12px; letter-spacing: .06em; background: rgba(26, 15, 4, .14); border-radius: 10px; }

.fine { margin: 12px 0 0; font-size: 13px; text-align: center; color: var(--faint); }

.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; }
.facts li:nth-child(1)::before { background: var(--gold); }
.facts li:nth-child(2)::before { background: var(--pink); }
.facts li:nth-child(3)::before { background: var(--teal); }
.facts li:nth-child(4)::before { background: #C7BCFF; }

.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(--gold); 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 0; margin: -12px 0; }
/* Didot's straight apostrophe reads as a typo (design-rules.md): the title's
   one apostrophe is set in the sans. */
h1 .ap { font-family: var(--sans); font-weight: 300; }

/* 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; }
}
