:root {
  --paper: #f1efe9;
  --paper-deep: #e7e3da;
  --ink: #151515;
  --muted: #5c5a55;
  --rule: rgba(21, 21, 21, 0.22);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --page: min(1380px, calc(100vw - 56px));
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.site-header {
  width: var(--page);
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark {
  width: fit-content;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.wordmark abbr {
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 28px;
}

.site-header nav a,
.header-buy {
  text-decoration: none;
}

.header-buy {
  justify-self: end;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
}

.hero {
  width: var(--page);
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 104px) 0 clamp(72px, 8vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(48px, 8vw, 128px);
  align-items: center;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 26px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 810px;
  margin-bottom: 30px;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 6.2vw, 6.25rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.dek {
  max-width: 650px;
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.25;
}

.byline {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.button-primary {
  background: var(--ink);
  color: white;
}

.button-primary:hover {
  background: #303030;
}

.text-link {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-facts {
  max-width: 650px;
  margin: 70px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.book-facts div {
  padding: 18px 16px 0 0;
}

.book-facts dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
}

.book-stage {
  width: min(100%, 455px);
  margin: 0 auto;
}

.book-object {
  position: relative;
  aspect-ratio: 5.5 / 8.5;
  overflow: hidden;
  background: #9aa1b2;
  box-shadow:
    0 38px 70px rgba(24, 25, 29, 0.22),
    0 10px 24px rgba(24, 25, 29, 0.14),
    -8px 8px 0 rgba(255, 255, 255, 0.42);
}

.book-object::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.1), rgba(8, 10, 16, 0.02) 48%, rgba(8, 10, 16, 0.46));
  pointer-events: none;
}

.book-object picture {
  display: block;
  width: 100%;
  height: 100%;
}

.book-object img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-type {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9% 8% 7%;
  color: white;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.38);
}

.cover-title {
  max-width: 90%;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.cover-author {
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.book-stage figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.statement {
  background: var(--ink);
  color: white;
}

.statement blockquote {
  width: min(1180px, calc(100vw - 56px));
  margin: 0 auto;
  padding: clamp(90px, 12vw, 175px) 0;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 5.2vw, 5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-align: center;
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(92px, 11vw, 160px) 0;
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 100px);
  border-bottom: 1px solid var(--rule);
}

.section-label {
  padding-top: 11px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-content h2,
.reader-band h2,
.closing h2 {
  margin-bottom: clamp(36px, 5vw, 64px);
  font-family: var(--serif);
  font-size: clamp(2.45rem, 4.7vw, 4.8rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.section-content h2 {
  max-width: 950px;
}

.prose-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 5vw, 78px);
}

.prose-columns p,
.author-grid p,
.reader-band > p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: #33322f;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.55vw, 1.35rem);
  line-height: 1.55;
}

.ideas {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.ideas li {
  display: grid;
  grid-template-columns: 80px minmax(170px, 0.55fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 34px 0 36px;
  border-bottom: 1px solid var(--rule);
}

.idea-number {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.ideas h3 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.1;
}

.ideas p {
  max-width: 600px;
  margin-bottom: 0;
  color: #3b3935;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.5;
}

.reader-band {
  padding: clamp(100px, 13vw, 190px) max(28px, calc((100vw - min(1180px, calc(100vw - 56px))) / 2));
  background: var(--paper-deep);
}

.reader-band h2 {
  max-width: 1050px;
}

.reader-band > p:last-child {
  max-width: 760px;
}

.author-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}

.author-grid h2 {
  margin-bottom: 34px;
}

.author-link {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.closing {
  min-height: 520px;
  padding: clamp(80px, 10vw, 140px) max(28px, calc((100vw - min(1380px, calc(100vw - 56px))) / 2));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  background: var(--ink);
  color: white;
}

.closing h2 {
  margin-bottom: 16px;
}

.closing p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
}

.button-light {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.72);
  color: white;
}

.button-light:hover {
  background: white;
  color: var(--ink);
}

footer {
  width: var(--page);
  min-height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

.not-found {
  width: min(760px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.not-found h1 {
  margin-bottom: 38px;
}

@media (max-width: 900px) {
  :root {
    --page: min(100% - 40px, 760px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .hero-copy {
    order: 1;
  }

  .book-stage {
    width: min(78vw, 410px);
  }

  .book-facts {
    margin-top: 52px;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-label {
    padding-top: 0;
  }

  .author-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .author-link {
    width: fit-content;
  }
}

@media (max-width: 620px) {
  :root {
    --page: calc(100% - 32px);
  }

  .site-header {
    min-height: 66px;
  }

  .hero {
    padding-top: 52px;
    gap: 58px;
  }

  h1 {
    font-size: clamp(3.15rem, 16vw, 4.7rem);
  }

  .dek {
    font-size: 1.25rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .book-facts {
    grid-template-columns: 1fr;
  }

  .book-facts div {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }

  .book-stage {
    width: min(84vw, 360px);
  }

  .cover-title {
    font-size: clamp(2.3rem, 13vw, 3.4rem);
  }

  .statement blockquote {
    width: calc(100vw - 32px);
    text-align: left;
  }

  .prose-columns {
    grid-template-columns: 1fr;
  }

  .ideas li {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .ideas p {
    grid-column: 2;
  }

  .reader-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .closing {
    min-height: 480px;
    padding-left: 16px;
    padding-right: 16px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
  }

  footer {
    min-height: 130px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
