:root {
  --bone: #F1E8D6;
  --ink: #1C1917;
  --brick: #A3312B;
  --line: rgba(28, 25, 23, .24);
  --display: "Arial Black", "Archivo Black", Impact, Haettenschweiler, sans-serif;
  --body: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  min-width: 320px;
}

body {
  margin: 0;
}

main,
.book-footer {
  margin-inline: auto;
  max-width: 1240px;
  width: min(100%, 1240px);
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
p,
figure {
  margin: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3.2rem, 13.5vw, 8.4rem);
  line-height: .84;
  max-width: 760px;
}

h2 {
  font-size: clamp(2.4rem, 9.5vw, 6rem);
  line-height: .9;
  max-width: 980px;
}

p {
  font-size: clamp(1.08rem, 3.9vw, 1.42rem);
  line-height: 1.52;
}

.sales-hero {
  display: grid;
  gap: 30px;
  padding: 30px 20px 74px;
}

.hero-intro {
  display: grid;
  gap: 20px;
}

.eyebrow,
.purchase-note,
.book-footer,
.buy-button {
  font-family: Arial, Helvetica, sans-serif;
}

.eyebrow {
  color: var(--brick);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.2;
}

.subtitle {
  font-size: clamp(1.35rem, 5vw, 2.2rem);
  font-style: italic;
}

.lead,
.copy-stack {
  display: grid;
  gap: 14px;
}

.lead {
  max-width: 680px;
}

.book-cover {
  align-self: start;
  background: #f6efd9;
  box-shadow: 0 20px 44px rgba(28, 25, 23, .14);
  justify-self: center;
  width: min(100%, 520px);
}

.book-cover img {
  aspect-ratio: 5 / 8;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.purchase-panel {
  display: grid;
  gap: 12px;
}

.purchase-panel form {
  margin: 0;
}

.buy-button {
  background: var(--brick);
  border: 2px solid var(--brick);
  color: #fffaf0;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: .035em;
  min-height: 58px;
  padding: 14px 20px;
  text-align: center;
  width: 100%;
}

.buy-button:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.buy-button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: 4px;
}

.purchase-note {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.35;
}

.format-note {
  font-family: Arial, Helvetica, sans-serif;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.45;
  max-width: 560px;
}

.copy-section,
.closing {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 30px;
  padding: 74px 20px;
}

.copy-section > p,
.copy-stack {
  max-width: 740px;
}

.statement {
  background: var(--brick);
  color: #fffaf0;
  display: grid;
  gap: 20px;
  padding: 62px 20px;
}

.statement p {
  color: inherit;
  font-size: clamp(1.45rem, 5.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.24;
  max-width: 900px;
}

.closing {
  gap: 34px;
}

.purchase-panel-closing {
  max-width: 620px;
}

.book-fragment {
  background: var(--ink);
  color: var(--bone);
  display: grid;
  gap: 32px;
  margin-inline: calc(50% - 50vw);
  padding: 72px 24px 78px;
  width: 100vw;
}

.fragment-meta {
  display: grid;
  gap: 12px;
}

.fragment-label {
  color: var(--brick);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1.15;
}

.fragment-number {
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(5.8rem, 31vw, 13.5rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .76;
}

.book-fragment h2 {
  color: var(--bone);
  font-size: clamp(2rem, 11vw, 4.6rem);
  line-height: .9;
  max-width: 440px;
}

.fragment-chapter {
  color: var(--bone);
  font-family: var(--body);
  font-size: clamp(1.28rem, 5vw, 2rem);
  font-style: italic;
  line-height: 1.1;
}

.fragment-copy {
  display: grid;
  gap: 18px;
  max-width: 680px;
}

.fragment-copy p {
  color: var(--bone);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
}

.fragment-highlight {
  border-left: 3px solid var(--brick);
  display: grid;
  gap: 10px;
  margin: 24px 0 26px;
  padding-left: 22px;
}

.fragment-highlight p {
  color: var(--bone);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.36;
}

.fragment-copy .fragment-last {
  font-size: 21px;
  font-style: italic;
  line-height: 1.35;
  margin-top: 18px;
}

.fragment-dot {
  background: var(--brick);
  border-radius: 999px;
  display: block;
  height: 10px;
  margin: 2px 0 14px;
  width: 10px;
}

.fragment-copy form {
  margin: 10px 0 0;
  max-width: 430px;
}

.fragment-buy-button {
  border-radius: 3px;
  color: var(--bone);
}

.book-fragment .purchase-note {
  color: var(--bone);
  margin-top: -4px;
}

.book-footer {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
  padding: 30px 20px 42px;
}

.book-footer p,
.book-footer a {
  font-size: .8rem;
  line-height: 1.45;
}

.book-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.book-footer a {
  color: inherit;
  text-decoration-color: var(--brick);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.success-page,
.terms-page {
  align-content: center;
  display: grid;
  gap: 28px;
  min-height: 82svh;
  padding: 48px 20px;
}

.success-page h1,
.terms-page h1 {
  max-width: 960px;
}

.success-page > p,
.terms-page > p,
.terms-list {
  max-width: 720px;
}

.download-button {
  align-items: center;
  background: var(--brick);
  border: 2px solid var(--brick);
  color: #fffaf0;
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .92rem;
  font-weight: 900;
  justify-content: center;
  letter-spacing: .035em;
  min-height: 58px;
  padding: 14px 20px;
  text-decoration: none;
  width: min(100%, 430px);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-actions[hidden] {
  display: none;
}

.download-button[hidden] {
  display: none;
}

.system-status {
  color: var(--brick);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .85rem;
  font-weight: 700;
}

.terms-list {
  display: grid;
  gap: 22px;
}

.terms-list section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 18px;
}

.terms-list h2 {
  font-size: clamp(1.4rem, 5vw, 2rem);
  line-height: 1;
}

@media (min-width: 820px) {
  h1 {
    font-size: clamp(4.1rem, 6.5vw, 6.2rem);
  }

  h2 {
    font-size: clamp(3.3rem, 6.4vw, 5.6rem);
  }

  .sales-hero {
    align-items: center;
    column-gap: clamp(52px, 7vw, 110px);
    grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr);
    padding: 48px 48px 96px;
    row-gap: 20px;
  }

  .book-cover {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .hero-intro {
    grid-column: 2;
    grid-row: 1;
  }

  .purchase-panel {
    grid-column: 2;
    grid-row: 2;
  }

  .copy-section,
  .closing {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .7fr);
    padding: 112px 48px;
  }

  .copy-section > p,
  .copy-section > .copy-stack,
  .closing > .copy-stack,
  .closing > .purchase-panel {
    align-self: start;
    grid-column: 2;
  }

  .statement {
    padding: 88px 48px;
  }

  .book-fragment {
    align-items: start;
    column-gap: clamp(54px, 6vw, 92px);
    grid-template-columns: minmax(230px, 32%) minmax(0, 68%);
    justify-content: center;
    padding: 118px max(48px, calc((100vw - 1240px) / 2 + 48px)) 124px;
  }

  .fragment-meta {
    align-self: start;
    padding-top: 2px;
  }

  .fragment-number {
    font-size: clamp(9rem, 13vw, 15.5rem);
  }

  .fragment-copy p {
    font-size: 20px;
    line-height: 1.55;
  }

  .fragment-highlight {
    margin: 32px 0 34px;
  }

  .fragment-highlight p {
    font-size: 26px;
    line-height: 1.34;
  }

  .fragment-copy .fragment-last {
    font-size: 24px;
    margin-top: 26px;
  }

  .book-footer {
    grid-template-columns: 1fr auto;
    padding: 34px 48px 46px;
  }

  .success-page,
  .terms-page {
    padding: 80px 48px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .buy-button,
  .download-button {
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
  }

  .buy-button:hover,
  .download-button:hover {
    transform: translateY(-2px);
  }
}
