:root {
  --paper: #f5f0ea;
  --ink: #26221f;
  --muted: #6d665f;
  --accent: #7b3038;
  --accent-dark: #61242b;
  --line: #d9d0c5;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  scroll-behavior: smooth;
}

body { margin: 0; background: var(--paper); }

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

.site-header {
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(28px, 5vh, 44px) 0 clamp(54px, 10vh, 112px);
}

.nav-link {
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-link::after {
  display: block;
  width: 0;
  height: 1px;
  margin-top: 6px;
  background: currentColor;
  content: "";
  transition: width 180ms ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after { width: 100%; }

.book {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 580px);
  gap: clamp(58px, 8vw, 128px);
  align-items: center;
  width: min(1080px, calc(100% - 64px));
  margin: 0 auto;
}

.cover-wrap {
  display: flex;
  justify-content: center;
  margin: 0;
}

.cover {
  display: block;
  width: 100%;
  max-width: 430px;
  height: auto;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 8.5vw, 7.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.74;
}

h1 span {
  display: block;
  margin-top: 0.62em;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-style: italic;
  letter-spacing: -0.035em;
  line-height: 1;
}

.intro {
  max-width: 36rem;
  margin: 52px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.52;
}

.details {
  max-width: 34rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 44px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 56px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.action:hover { transform: translateY(-2px); }

.action-primary {
  min-width: 210px;
  padding: 0 22px;
  background: var(--accent);
  color: #fff;
}

.action-primary:hover,
.action-primary:focus-visible { background: var(--accent-dark); }

.action-secondary { border-bottom: 1px solid var(--ink); }

.site-footer {
  width: min(1180px, calc(100% - 64px));
  margin: 148px auto 0;
  padding: 38px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.7;
  text-align: center;
}

@media (min-width: 801px) and (max-height: 820px) {
  .site-header { padding-bottom: 42px; }

  .book {
    grid-template-columns: minmax(250px, 35vh) minmax(0, 580px);
    gap: clamp(48px, 7vw, 104px);
  }

  .cover {
    width: auto;
    max-width: 100%;
    max-height: 70vh;
  }

  .eyebrow { margin-bottom: 20px; }
  .intro { margin-top: 36px; }
  .actions { margin-top: 32px; }
  .site-footer { margin-top: 92px; }
}

.site-footer p { margin: 5px 0; }

.partners a:hover,
.partners a:focus-visible { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

@media (max-width: 800px) {
  .site-header {
    width: min(100% - 40px, 680px);
    padding: 30px 0 72px;
  }

  .book {
    grid-template-columns: 1fr;
    width: min(100% - 40px, 580px);
    gap: 58px;
  }

  .cover-wrap { width: min(88vw, 500px); margin: 0 auto; }
  .cover { max-width: 100%; }
  h1 { font-size: clamp(4rem, 21vw, 7rem); }
  h1 span { font-size: clamp(1.75rem, 8vw, 2.6rem); }

  .actions {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
  }

  .action-secondary { min-height: 46px; }

  .site-footer {
    width: min(100% - 40px, 680px);
    margin-top: 100px;
  }
}

@media (max-width: 420px) {
  .site-header,
  .book,
  .site-footer { width: calc(100% - 28px); }

  .site-header { padding-bottom: 50px; }
  .book { gap: 46px; }
  h1 { font-size: clamp(3.45rem, 20vw, 5.2rem); }
  .intro { margin-top: 38px; }
}

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