:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e9e1d8;
  --warm: #f7f0e7;
  --accent: #916739;
  --button-red: #ff1d1d;
  --bio-red: #e34235;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Poppins, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.header-inner {
  width: min(var(--max), calc(100% - 8vw));
  margin: 0 auto;
  min-height: 126px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(320px, 1fr);
  align-items: center;
  gap: 28px;
}

.brand {
  justify-self: start;
}

.brand img {
  width: min(465px, 54vw);
  height: auto;
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
}

.nav a:not(.buy-link)[aria-current="page"] {
  border-bottom: 2px solid var(--ink);
}

.socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
}

.socials svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.socials a[aria-label="Instagram"] svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 4.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 60px;
  padding: 14px 28px;
  border: 2px solid var(--button-red);
  border-radius: 999px;
  background: var(--button-red);
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.buy-link:hover,
.buy-link:focus-visible {
  background: #ffffff;
  color: var(--button-red);
}

.buy-link:active {
  transform: translateY(1px);
}

main {
  overflow: hidden;
}

.section {
  padding: 72px 0;
}

.section.narrow {
  padding: 50px 0;
}

.wrap {
  width: min(var(--max), calc(100% - 8vw));
  margin: 0 auto;
}

.hero {
  padding: 32px 0 62px;
}

.hero img {
  width: min(1076px, 100%);
  margin: 0 auto;
}

.intro {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.intro h1,
.intro h2 {
  margin: 0 auto 28px;
  max-width: 940px;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.3;
  font-weight: 700;
}

.intro p {
  margin: 0 auto;
  max-width: 965px;
  color: #202020;
}

.cta-row {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.author {
  display: grid;
  grid-template-columns: minmax(250px, 0.52fr) minmax(320px, 1fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}

.author-section {
  background: var(--bio-red);
  color: #ffffff;
}

.author-photo {
  width: min(470px, 100%);
  border-radius: 14px;
  justify-self: center;
}

.author-copy {
  font-size: clamp(19px, 1.85vw, 24px);
  line-height: 1.65;
}

.author-copy a {
  color: #ffffff;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.author-copy p {
  margin: 0 0 28px;
}

.author-copy .buy-link {
  background: #ffffff;
  color: var(--button-red);
}

.author-copy .buy-link:hover,
.author-copy .buy-link:focus-visible {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.order-hero {
  display: grid;
  grid-template-columns: minmax(250px, 0.54fr) minmax(280px, 0.46fr);
  gap: clamp(30px, 6vw, 74px);
  align-items: center;
  padding-top: 40px;
}

.book-card {
  text-align: center;
}

.book-card img {
  width: min(430px, 100%);
  margin: 0 auto 34px;
  border-radius: 14px;
}

.book-card p {
  margin: 0 0 8px;
}

.order-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: start;
  text-align: center;
  justify-self: center;
  width: min(430px, 100%);
}

.order-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.order-box h1,
.order-box h2 {
  margin: 0 0 18px;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.2;
  font-weight: 400;
}

.price-list {
  margin: 0 auto 32px;
  display: grid;
  gap: 4px;
  text-align: left;
}

.price-list div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
}

.image-button {
  display: block;
}

.image-button img {
  width: 296px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 46px 0 54px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.footer-socials {
  width: max-content;
  margin: 14px auto 0;
  justify-content: center;
  gap: 10px;
}

.footer-socials a {
  width: 28px;
  height: 28px;
}

.footer-socials svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 110px;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 0;
  }

  .brand,
  .nav,
  .header-actions {
    justify-self: center;
  }

  .brand img {
    width: min(440px, 88vw);
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .section {
    padding: 52px 0;
  }

  .author,
  .order-hero,
  .order-options {
    grid-template-columns: 1fr;
  }

  .order-options {
    gap: 56px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .wrap,
  .header-inner {
    width: min(100% - 36px, var(--max));
  }

  .buy-link {
    width: 100%;
  }

  .price-list div {
    grid-template-columns: 82px 1fr;
    gap: 12px;
  }
}
