:root {
  --blue: #385788;
  --black: #000000;
  --white: #ffffff;
  --brown: #221F1B;
  --gray: #B6B7B7;
  --gray-soft: #F3F4F5;
  --blue-soft: #EEF2F8;
  --gold: #F5C617;
  --pink: #DD5894;
  --sky: #75C9EC;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--brown);
  background: var(--white);
  font-family: "Lato", Arial, sans-serif;
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(182, 183, 183, .55);
  background: rgba(255, 255, 255, .97);
}
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand img {
  width: 118px;
  height: 74px;
  object-fit: contain;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--blue);
  transition: right .25s ease;
}
.main-nav a:hover::after { right: 0; }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  background: var(--brown);
}

.hero {
  padding: 96px 0 90px;
  background:
    linear-gradient(90deg, rgba(56, 87, 136, .045) 1px, transparent 1px),
    linear-gradient(rgba(56, 87, 136, .045) 1px, transparent 1px),
    var(--white);
  background-size: 32px 32px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 78px;
}
.eyebrow {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin-top: 0;
  color: var(--brown);
  font-family: "Zilla Slab", Georgia, serif;
  line-height: 1.08;
}
h1 {
  max-width: 770px;
  margin-bottom: 25px;
  font-size: clamp(3rem, 6vw, 5.6rem);
  letter-spacing: -.035em;
}
h2 {
  margin-bottom: 20px;
  font-size: clamp(2.15rem, 4vw, 3.45rem);
}
h3 {
  margin-bottom: 12px;
  font-size: 1.75rem;
}
.hero-text {
  max-width: 690px;
  margin: 0;
  font-size: 1.15rem;
}
.hero-actions, .author-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--blue);
  text-decoration: none;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--white); background: var(--blue); }
.button.secondary { color: var(--blue); background: var(--white); }
.text-link {
  color: var(--blue);
  font-weight: 900;
  text-underline-offset: 5px;
}
.hero-art { display: flex; justify-content: center; }
.paper-card {
  position: relative;
  width: min(100%, 390px);
  padding: 65px 48px;
  border: 1px solid var(--gray);
  background: var(--white);
}
.paper-card::before,
.paper-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12px -12px -12px 12px;
  border: 1px solid rgba(182, 183, 183, .7);
  background: var(--blue-soft);
}
.paper-card::after {
  inset: 24px -24px -24px 24px;
  background: var(--white);
}
.ornament {
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 1.5rem;
}
.quote {
  margin: 0 0 25px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.55;
}
.paper-card span {
  color: var(--blue);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section { padding: 100px 0; }
.section-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 46px;
}
.section-heading p:last-child { margin: 0; }
.publications { background: var(--gray-soft); }

.publication-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.publication-card {
  display: grid;
  grid-template-columns: minmax(210px, 44%) 1fr;
  min-height: 590px;
  border: 1px solid rgba(182, 183, 183, .7);
  background: var(--white);
}
.cover-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: #e8e9eb;
  overflow: hidden;
}
.book-cover {
  width: 100%;
  max-width: 330px;
  max-height: 540px;
  object-fit: contain;
  transition: opacity .18s ease, transform .18s ease;
}
.book-cover.changing {
  opacity: .18;
  transform: scale(.98);
}
.publication-content { padding: 34px; }
.status {
  margin-top: 0;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.color-choice {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 25px;
}
.color-choice > span {
  margin-right: 3px;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.swatch {
  width: 28px;
  height: 28px;
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gray);
  cursor: pointer;
}
.swatch.active {
  box-shadow: 0 0 0 3px var(--blue);
}
.swatch.ouro { background: var(--gold); }
.swatch.azul { background: var(--sky); }
.swatch.rosa { background: var(--pink); }
.color-label {
  margin: 11px 0 0;
  color: #656565;
  font-size: .82rem;
}

.about-grid, .author-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 90px;
}
.about-symbol {
  padding: 35px;
  border: 1px solid var(--gray);
  background: var(--white);
}
.about-symbol img {
  width: min(100%, 360px);
  margin: 0 auto;
}
.about-copy p, .author-copy p { max-width: 720px; }

.author { background: var(--blue-soft); }
.author-grid { grid-template-columns: 1.15fr .85fr; }
.author-note {
  padding: 42px;
  border-left: 5px solid var(--blue);
  background: var(--white);
}
.note-label {
  color: var(--blue);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.literary {
  padding: 105px 0;
  color: var(--white);
  background: var(--brown);
}
.literary .eyebrow { color: var(--gray); }
.literary-inner {
  max-width: 900px;
  text-align: center;
}
blockquote {
  margin: 18px 0 28px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.35rem);
  font-style: italic;
  line-height: 1.45;
}
cite {
  color: var(--gray);
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: normal;
}
.future-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}
.contact { padding-top: 30px; }
.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 50px;
  padding: 48px;
  border: 1px solid var(--gray);
}
.contact-card p { margin-bottom: 0; }
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.site-footer {
  margin-top: 100px;
  padding: 65px 0 24px;
  color: var(--white);
  background: var(--blue);
}
.footer-grid {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 32px;
}
.footer-grid img {
  width: 110px;
  padding: 8px;
  background: var(--white);
}
.footer-grid strong {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 1.45rem;
}
.footer-grid p { margin: 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  text-decoration: none;
  font-weight: 700;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 45px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .32);
  font-size: .78rem;
}

@media (max-width: 1020px) {
  .publication-grid { grid-template-columns: 1fr; }
  .publication-card { grid-template-columns: 310px 1fr; }
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px 28px;
    border-bottom: 1px solid var(--gray);
    background: var(--white);
  }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-grid, .section-heading, .about-grid, .author-grid,
  .future-inner, .contact-card { grid-template-columns: 1fr; }
  .hero { padding-top: 72px; }
  .hero-art { margin-top: 20px; }
  .footer-grid { grid-template-columns: 100px 1fr; }
  .footer-links { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 76px; }
  .brand img { width: 96px; height: 62px; }
  .main-nav { top: 76px; }
  h1 { font-size: 3rem; }
  .section { padding: 72px 0; }
  .publication-card { grid-template-columns: 1fr; }
  .cover-stage { padding: 24px 38px; }
  .book-cover { max-height: none; }
  .paper-card { padding: 45px 30px; }
  .about-symbol { padding: 22px; }
  .author-note, .contact-card { padding: 30px 24px; }
  .button { width: 100%; }
  .hero-actions, .author-actions { align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid img { margin: 0 auto; }
  .footer-links { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}


/* Atualizações editoriais v3 */
.author-photo-wrap {
  position: relative;
}
.author-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: 0;
  border: 1px solid rgba(56, 87, 136, .28);
}
.author-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(182, 183, 183, .7);
}
.author .author-note {
  margin-top: 30px;
}
.poem span {
  display: block;
}
.poem .poem-gap {
  margin-top: 1.2em;
}
.literary cite strong {
  color: var(--white);
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
}
.footer-logo {
  width: 110px;
  padding: 0 !important;
  background: transparent !important;
}

@media (max-width: 900px) {
  .author-photo-wrap {
    max-width: 760px;
  }
}


/* Ajustes para publicação */
.book-author {
  margin: -3px 0 15px;
  color: var(--blue);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: .92rem;
  font-weight: 700;
}
.purchase-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin-top: 25px;
}
.purchase-area small {
  color: #686868;
  font-size: .78rem;
  line-height: 1.45;
}
.purchase-button {
  min-width: 178px;
}
@media (max-width: 680px) {
  .purchase-area {
    align-items: stretch;
  }
}
