:root {
  --paper: #fff3dc;
  --paper-light: #fff9ec;
  --ink: #292d31;
  --ink-soft: #51555a;
  --rust: #d06b45;
  --rule: rgba(41, 45, 49, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 64px, 1240px);
  margin: 0 auto;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-header nav {
  display: flex;
  gap: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header nav a {
  transition: color 180ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--rust);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  min-height: 800px;
  overflow: hidden;
  padding: 162px max(32px, calc((100vw - 1240px) / 2)) 86px;
  background:
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.55), transparent 32%),
    var(--paper);
}

.hero-strap {
  position: absolute;
  top: -280px;
  left: -330px;
  width: 180px;
  height: 820px;
  background: var(--ink);
  transform: rotate(-35deg);
  transform-origin: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 650px;
  padding-left: 72px;
}

.eyebrow {
  margin: 0 0 26px;
  color: var(--rust);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 630px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.6rem, 7.2vw, 7.2rem);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.065em;
}

.hero-lead {
  max-width: 530px;
  margin: 38px 0 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 224px;
  min-height: 58px;
  gap: 28px;
  padding: 0 20px 0 24px;
  border: 2px solid var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

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

a.button-primary:hover,
a.button-primary:focus-visible {
  background: var(--rust);
  border-color: var(--rust);
  transform: translateY(-2px);
}

.button-disabled {
  cursor: not-allowed;
  opacity: 0.82;
}

.button-outline {
  background: transparent;
  color: var(--ink);
}

a.button-outline:hover,
a.button-outline:focus-visible {
  background: var(--ink);
  color: var(--paper-light);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--rust);
  border-color: var(--rust);
}

.link-note {
  max-width: 430px;
  margin: 16px 0 0;
  color: #74716d;
  font-size: 0.72rem;
  line-height: 1.5;
}

.cover-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.book-cover {
  position: relative;
  z-index: 2;
  width: min(390px, 72%);
  height: auto;
  border: 1px solid rgba(41, 45, 49, 0.35);
  box-shadow: 24px 32px 58px rgba(41, 45, 49, 0.24);
  transform: rotate(1.5deg);
}

.cover-shadow {
  position: absolute;
  z-index: 1;
  width: min(390px, 72%);
  aspect-ratio: 559 / 794;
  border: 2px solid var(--ink);
  transform: translate(-22px, 22px) rotate(-2deg);
}

.cover-stamp {
  position: absolute;
  right: 0;
  bottom: 11%;
  z-index: 3;
  display: grid;
  gap: 4px;
  min-width: 138px;
  padding: 16px 18px;
  background: var(--rust);
  color: var(--paper-light);
  box-shadow: 10px 12px 0 var(--ink);
  transform: rotate(-2deg);
}

.cover-stamp span {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cover-stamp strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
}

.facts {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 0.8fr 0.65fr 1.55fr;
  width: min(100% - 64px, 1240px);
  margin: -35px auto 0;
  border: 2px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 12px 12px 0 var(--ink);
}

.facts div {
  display: grid;
  gap: 7px;
  padding: 24px 28px;
}

.facts div + div {
  border-left: 1px solid var(--rule);
}

.facts span {
  color: var(--rust);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.facts strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.35;
}

.book-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.25fr 1.05fr 1fr;
  gap: 54px;
  width: min(100% - 64px, 1240px);
  margin: 0 auto;
  padding: 180px 0 160px;
}

.section-number {
  padding-top: 41px;
  color: rgba(41, 45, 49, 0.25);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.8rem;
  line-height: 1;
}

.section-heading h2,
.author-copy h2,
.contact-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.section-heading h2 {
  font-size: clamp(3.1rem, 5vw, 5.2rem);
  line-height: 0.95;
}

.book-copy {
  padding-top: 42px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.book-copy p {
  margin: 0 0 24px;
}

.book-copy .book-copy-lead {
  margin-top: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.43rem;
  line-height: 1.55;
}

.book-axes {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: 0.65fr 1fr 1fr 1fr;
  margin-top: 24px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.book-axes > div,
.aside-title {
  margin: 0;
  padding: 24px 22px;
}

.book-axes > div {
  position: relative;
  border-left: 1px solid var(--rule);
}

.aside-title {
  align-self: center;
  color: var(--rust);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.45;
  text-transform: uppercase;
}

.book-axes span {
  display: block;
  margin-bottom: 20px;
  color: var(--rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
}

.book-axes strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
}

.book-axes p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.55;
}

.quote-band {
  position: relative;
  overflow: hidden;
  padding: 118px max(32px, calc((100vw - 1100px) / 2));
  background: var(--ink);
  color: var(--paper-light);
}

.quote-band::after {
  position: absolute;
  right: -60px;
  bottom: -250px;
  width: 170px;
  height: 740px;
  background: var(--rust);
  content: "";
  transform: rotate(-36deg);
}

.quote-band > * {
  position: relative;
  z-index: 1;
}

.quote-band > p {
  margin: 0 0 24px;
  color: var(--rust);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quote-band blockquote {
  max-width: 980px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.6vw, 5.9rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.author-section {
  display: grid;
  grid-template-columns: 0.8fr 1.35fr;
  gap: clamp(60px, 10vw, 150px);
  align-items: center;
  width: min(100% - 64px, 1100px);
  margin: 0 auto;
  padding: 170px 0;
}

.author-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 280px;
  max-width: 100%;
  height: 340px;
  justify-self: center;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 18px 18px 0 var(--ink);
}

.author-photo img {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.author-photo figcaption {
  padding: 16px 20px;
  border-top: 2px solid var(--ink);
  color: var(--rust);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.author-copy h2 {
  margin-bottom: 32px;
  font-size: clamp(3.2rem, 5.8vw, 5.8rem);
  line-height: 0.95;
}

.author-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.author-copy .author-lead {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.36rem;
  line-height: 1.6;
}

.contact-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  padding: 120px max(32px, calc((100vw - 1100px) / 2));
  border-top: 2px solid var(--ink);
  background: var(--paper-light);
}

.contact-section h2 {
  max-width: 620px;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 0.98;
}

.contact-section > div:first-child > p:last-child {
  max-width: 620px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.contact-actions .button {
  width: 100%;
}

.contact-actions > p {
  margin: 6px 0 0;
  color: #74716d;
  font-size: 0.72rem;
  line-height: 1.55;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(32px, calc((100vw - 1240px) / 2));
  background: var(--ink);
  color: var(--paper-light);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

footer > a:last-child {
  display: inline-flex;
  gap: 10px;
}

footer > a:last-child:hover,
footer > a:last-child:focus-visible {
  color: var(--rust);
}

@media (max-width: 900px) {
  .site-header {
    width: min(100% - 40px, 1240px);
  }

  .site-header nav {
    gap: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 150px 24px 92px;
  }

  .hero-strap {
    top: -420px;
    left: -340px;
  }

  .hero-copy {
    max-width: 720px;
    padding-left: 36px;
  }

  .cover-stage {
    margin-top: 76px;
  }

  .book-cover,
  .cover-shadow {
    width: min(370px, 78vw);
  }

  .cover-stamp {
    right: calc(50% - 230px);
  }

  .facts {
    grid-template-columns: 1fr;
    width: min(100% - 48px, 640px);
    margin-top: -24px;
  }

  .facts div + div {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .book-section {
    grid-template-columns: 0.2fr 1fr;
    gap: 32px;
    padding: 140px 0 120px;
  }

  .book-copy {
    grid-column: 2;
    padding-top: 12px;
  }

  .book-axes {
    grid-column: 2;
    grid-template-columns: 1fr;
  }

  .book-axes > div {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .book-axes span {
    margin-bottom: 10px;
  }

  .author-section {
    grid-template-columns: 0.75fr 1fr;
    gap: 70px;
  }

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

  .contact-actions {
    max-width: 460px;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    width: calc(100% - 32px);
    padding: 20px 0;
  }

  .wordmark {
    max-width: 112px;
    line-height: 1.05;
  }

  .site-header nav {
    gap: 14px;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .site-header nav a:last-child {
    display: none;
  }

  .hero {
    padding: 128px 18px 76px;
  }

  .hero-copy {
    padding-left: 20px;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 18vw, 5rem);
  }

  .hero-lead {
    font-size: 1.2rem;
  }

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

  .button {
    width: 100%;
  }

  .text-link {
    align-self: flex-start;
  }

  .cover-stamp {
    right: 2%;
    bottom: 8%;
  }

  .facts {
    width: calc(100% - 36px);
    box-shadow: 8px 8px 0 var(--ink);
  }

  .facts div {
    padding: 20px;
  }

  .book-section {
    display: block;
    width: calc(100% - 40px);
    padding: 110px 0 100px;
  }

  .section-number {
    display: none;
  }

  .section-heading h2 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .book-copy {
    padding-top: 46px;
  }

  .book-axes {
    display: block;
    margin-top: 50px;
  }

  .aside-title,
  .book-axes > div {
    padding: 20px 8px;
  }

  .quote-band {
    padding: 90px 24px;
  }

  .quote-band::after {
    opacity: 0.55;
  }

  .quote-band blockquote {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .author-section {
    display: block;
    width: calc(100% - 40px);
    padding: 110px 0;
  }

  .author-photo {
    width: 260px;
    height: 320px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 90px;
  }

  .author-copy h2 {
    font-size: 3.7rem;
  }

  .contact-section {
    padding: 90px 20px;
  }

  .contact-section h2 {
    font-size: clamp(2.9rem, 13vw, 4rem);
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 34px 20px;
  }

  footer p {
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Tamanho definitivo da foto do autor. Mantido no fim para vencer regras anteriores. */
.author-section .author-photo {
  width: 260px !important;
  max-width: 260px !important;
  height: auto !important;
  justify-self: center !important;
}

.author-section .author-photo img {
  display: block !important;
  flex: none !important;
  width: 260px !important;
  max-width: 100% !important;
  height: 260px !important;
  object-fit: cover !important;
}
