:root {
  --ink: #120f0e;
  --light: #faedda;
  --muted: #d7c6b3;
  --gold: #ecb67e;
  --paper: #f1e2c9;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--light); font: 1.0625rem/1.65 var(--sans); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .35em; }
a:focus-visible, video:focus-visible { outline: 3px solid #ca7844; outline-offset: 5px; }
p, h1, h2 { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: 1.04; }
h1 em, h2 em { font-weight: 400; }
.shell { width: min(100% - 7rem, 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: .7rem; left: .7rem; transform: translateY(-150%); background: var(--paper); color: var(--ink); padding: .6rem 1rem; }
.skip:focus { transform: none; }
.site-header { background: #120f0e; border-bottom: 1px solid #443226; }
.nav { min-height: 5.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; }
.wordmark { font: 1.32rem/1.1 var(--serif); text-decoration: none; white-space: nowrap; }
.navigation { display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.8rem); }
.navigation a { text-decoration: none; font-size: .9rem; white-space: nowrap; }
.navigation a:hover, .text-link:hover { color: var(--gold); }
.nav-buy { border: 1px solid #745339; padding: .52rem 1.04rem; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 38% 76%, #2b1b16, #15100e 65%); }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0 40%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; filter: saturate(.76) brightness(.82); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#17110f 0%,rgba(23,17,15,.8) 14%,transparent 57%), linear-gradient(0deg,rgba(18,15,14,.62),transparent 38%); }
.hero-inner { min-height: clamp(36rem, 54vw, 46rem); display: flex; align-items: center; }
.hero-copy { padding: 5.5rem 0 6rem; max-width: 42rem; }
.label { font-size: .875rem; font-weight: 700; letter-spacing: .145em; text-transform: uppercase; }
.hero .label, .author .label, .purchase .label { color: var(--gold); }
h1 { font-size: clamp(4.2rem, 7vw, 7.5rem); margin: 1.3rem 0 1.65rem; }
.hero h1 em, .author h2 em, .purchase h2 em { color: var(--gold); }
.hero-deck { max-width: 24rem; color: var(--muted); font-size: clamp(1.13rem, 1.65vw, 1.4rem); }
.actions { display: flex; align-items: center; gap: 1rem 1.55rem; flex-wrap: wrap; margin-top: 1.95rem; }
.button { min-height: 3.25rem; display: inline-flex; align-items: center; justify-content: center; padding: .68rem 1.28rem; text-decoration: none; font-size: .94rem; font-weight: 700; border: 1px solid transparent; transition: background-color .18s, color .18s; }
.primary { background: var(--gold); color: #221307; }
.primary:hover { background: #ffcf9d; }
.outline { border-color: #9e7553; color: var(--light); }
.outline:hover { background: #493229; }
.text-link { font-size: .95rem; font-weight: 600; }
.story { background: var(--paper); color: #291d15; padding: clamp(4.3rem, 8vw, 8rem) 0; }
.story-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(2rem, 9vw, 8rem); align-items: end; }
.story .label, .film .label { color: #804426; margin-bottom: 1rem; }
h2 { font-size: clamp(2.7rem, 5.1vw, 5rem); }
.story h2 em, .film h2 em { display: block; color: #834124; }
.story-copy p + p { margin-top: 1rem; }
.story .book-details { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #bda588; font-size: .9rem; color: #67402d; }
.book-details span { margin-inline: .27rem; }
.reflection {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #211411;
  color: #fff0da;
  border-block: 1px solid #614234;
}
.reflection::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 29%;
  background: linear-gradient(90deg, #211411, rgba(33,20,17,.38) 48%, rgba(33,20,17,.14)),
              linear-gradient(0deg, rgba(18,12,11,.68), rgba(18,12,11,.12)),
              url("assets/capa.webp") right 68% / cover;
  filter: saturate(.68);
}
.reflection-inner { padding-block: clamp(5.5rem, 12vw, 11rem); }
.reflection-inner p { max-width: 100%; }
.reflection p { font: 400 clamp(2.6rem, 6.6vw, 6.7rem)/1.05 var(--serif); letter-spacing: -.048em; }
.reflection em { color: #f4c59b; }
.author { padding: clamp(4.2rem, 8vw, 8rem) 0; }
.author-grid { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1fr); align-items: center; gap: clamp(2.5rem, 9vw, 8rem); }
.portrait { background: radial-gradient(ellipse at 48% 36%, #3c2b20, #171211 74%); padding: 8%; border: 1px solid #614735; }
.portrait img { width: 100%; height: auto; border-radius: 50%; filter: saturate(.72); }
.author h2, .film h2 { margin: .7rem 0 1.3rem; }
.author-prose { max-width: 37rem; color: var(--muted); }
.author-prose p + p { margin-top: .95rem; }
.author-prose .author-lead {
  border-left: 1px solid #a77450;
  padding-left: 1.15rem;
  color: var(--light);
  font: 400 clamp(1.25rem, 2vw, 1.52rem)/1.55 var(--serif);
}
.film { background: #271a17; color: var(--light); border-top: 1px solid #51362c; padding: clamp(4rem, 7vw, 6.8rem) 0; }
.film-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: clamp(2rem, 8vw, 8rem); align-items: center; }
.film .label, .film h2 em { color: var(--gold); }
.film p:last-child { color: var(--muted); }
.film h2 { font-size: clamp(2.5rem, 4.4vw, 4.65rem); }
.film video { width: 100%; aspect-ratio: 1; background: #15120f; border: 1px solid #80614d; }
.purchase { text-align: center; background: radial-gradient(ellipse at 50% 100%, #2b1a13, #120f0e 76%); border-top: 1px solid #51362c; padding: clamp(4.5rem, 8vw, 8rem) 0; }
.purchase h2 { margin: .65rem 0 1.2rem; }
.purchase-inner > p:last-of-type { color: var(--muted); }
.purchase .actions { justify-content: center; }
.contact-buy { margin-top: 1.5rem; display: inline-block; }
.footer { border-top: 1px solid #4c382a; }
.footer-inner { display: flex; flex-wrap: wrap; gap: .65rem 2rem; justify-content: space-between; padding-block: 1.65rem; color: var(--muted); font-size: .875rem; }
@media (max-width: 800px) {
  .shell { width: calc(100% - 3rem); }
  .story-grid, .author-grid, .film-grid { gap: 2.5rem; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 2.5rem); }
  .nav { min-height: 4rem; gap: .65rem; }
  .wordmark { white-space: normal; max-width: 7rem; font-size: 1.05rem; }
  .navigation { gap: .7rem; }
  .navigation a { font-size: .875rem; }
  .nav-buy { padding: .38rem .52rem; }
  .hero { display: flex; flex-direction: column; }
  .hero-art { position: relative; inset: auto; height: clamp(20rem, 101vw, 32rem); order: 2; }
  .hero-art::after { background: linear-gradient(180deg,#17110f,transparent 21%); }
  .hero-art img { object-position: center 43%; }
  .reflection::before { inset-inline-start: 0; background-position: center, center, 66% 69%; }

  .hero-inner { min-height: auto; display: block; }
  .hero-copy { padding: 3.4rem 0 1.55rem; }
  h1 { font-size: clamp(3rem, 11.5vw, 4.9rem); margin: 1rem 0 1.1rem; }
  .story-grid, .author-grid, .film-grid { grid-template-columns: minmax(0,1fr); gap: 1.35rem; }
  .portrait { max-width: 28rem; margin-bottom: 1rem; }
  .film video { margin-top: .6rem; }
  .purchase .actions { gap: .7rem; }
  .purchase .button { padding-inline: .8rem; }
  .footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* Leitura */
[hidden] { display: none !important; }
.reader {
  padding-block: clamp(4.4rem, 9vw, 8.5rem);
  background:
    radial-gradient(ellipse at 50% 0%, #3d2921 0%, transparent 53%),
    #17110f;
  border-bottom: 1px solid #4f382c;
}
.reader-shell { max-width: 57rem; }
.reader .label, .reader h2, .reader-intro { text-align: center; }
.reader .label, .reader h2 em { color: var(--gold); }
.reader h2 { margin: .75rem 0 .8rem; }
.reader-intro { color: var(--muted); margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.reader-book {
  color: #302116;
  background: radial-gradient(ellipse at 50% 22%, #f8ecd6, #ecdbc0);
  box-shadow: 0 1.5rem 4.5rem #09060580, 0 0 0 1px #a47f5f;
  padding: clamp(1.35rem, 6vw, 4.8rem);
}
.reading-page h3 {
  color: #79442b;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .875rem;
  margin: 0 0 1.3rem;
  scroll-margin-top: 1.6rem;
}
.reading-page h3:focus-visible { outline: 2px solid #8a4a31; outline-offset: .35rem; }
.reading-page p {
  max-width: 62ch;
  font: 400 clamp(1.12rem, 2.15vw, 1.34rem)/1.82 Georgia, serif;
}
.reading-page p + p { margin-top: 1.05em; }
.reading-page + .reading-page:not([hidden]) { margin-top: 2.9rem; }
.reader-controls {
  margin-top: 1.9rem;
  padding-top: 1.25rem;
  border-top: 1px solid #bb9c7d;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
}
.reader-controls .button {
  color: #41271a;
  border-color: #9e7553;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.reader-controls .button:hover, .reader-digital:hover { background: #ddc3a6; }
.reader-controls .button:focus-visible { outline: 2px solid #8a4a31; outline-offset: 3px; }
.reader-prev { grid-column: 1; justify-self: start; }
.reader-next { grid-column: 3; justify-self: end; }
.reader-progress { grid-column: 2; grid-row: 1; color: #69452e; font-size: .875rem; text-align: center; }
.reader-end { color: #302116; margin-top: 2rem; }
.reader-end h3 { font: 400 clamp(1.65rem, 4vw, 2.8rem)/1.15 var(--serif); margin: 0 0 .65rem; }
.reader-end .actions { margin-top: 1.1rem; }
.reader-end .primary { background: #552e22; color: #fff4e4; }
.reader-end .primary:hover { background: #6e3d2a; }
.reader-digital { border-color: #9e7553; }
.author .portrait { padding: .55rem; max-width: 28rem; }
.author .portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 53%;
  border-radius: 0;
  filter: saturate(.85);
}
@media (max-width: 620px) {
  .reader-controls .button { padding-inline: .55rem; font-size: .875rem; }
  .reader-progress { font-size: .82rem; }
  .reader-next { grid-column: 3; }
  .reader .shell { width: calc(100% - 1.55rem); }
  .navigation { gap: .55rem; }
}
@media (max-width: 365px) {
  .navigation a { font-size: .82rem; }
  .reader-controls { grid-template-columns: 1fr 1fr; }
  .reader-progress { grid-column: 1 / -1; }
  .reader-prev { grid-column: 1; grid-row: 2; }
  .reader-next { grid-column: 2; grid-row: 2; }
}

/* Blog */
.blog-hero, .blog-article-header {
  background: radial-gradient(ellipse at 76% 55%, #42291e, #17100e 68%);
  color: var(--light);
  border-bottom: 1px solid #5c4031;
}
.blog-hero {
  padding-block: clamp(5rem, 11vw, 10rem);
  background:
    linear-gradient(90deg, #17100e 10%, #17100ef0 34%, #17100e44 100%),
    url("/assets/capa.webp") right 65% / min(56rem, 70%) auto no-repeat,
    #17100e;
}
.blog-hero h2, .blog-article-header h3 { margin-block: .9rem 1.4rem; }
.blog-hero h2 { font-size: clamp(3.2rem, 8vw, 7.5rem); }
.blog-hero em, .blog-hero .label, .blog-article-header .label { color: var(--gold); }
.blog-hero p:last-child, .blog-article-header p:last-child { max-width: 34rem; color: var(--muted); }
.blog-index { background: var(--paper); color: #2d1d15; padding-block: clamp(3.5rem, 8vw, 7rem); }
.blog-index h2 { font-size: clamp(2.5rem, 5vw, 4.3rem); }
.blog-cards { margin-top: 2.2rem; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem; }
.blog-card { border-top: 1px solid #aa8567; padding-top: 1.25rem; }
.blog-card .label { color: #814123; }
.blog-card h3 { font: 400 clamp(1.7rem,3.2vw,2.7rem)/1.12 var(--serif); margin: .58rem 0 .83rem; }
.blog-card a:hover { color: #8b4321; }
.blog-article-header { padding-block: clamp(3rem, 7vw, 6rem); }
.blog-article-header .label { margin-top: 2rem; }
.blog-article-header h3 { font: 400 1em/1.08 var(--serif); letter-spacing: -.04em; font-size: clamp(3rem,6vw,5.6rem); max-width: 15ch; }
.blog-article { background: var(--paper); color: #2d1d15; }
.blog-prose { max-width: 48rem; padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.blog-prose > p { font: 400 clamp(1.15rem, 2.1vw, 1.36rem)/1.8 Georgia, serif; }
.blog-prose > p + p { margin-top: 1.1em; }
.blog-reading-link { border-top: 1px solid #aa8567; margin-top: 2.6rem; padding-top: 1.7rem; }
.blog-reading-link .button { margin-top: .8rem; background: #552e22; color: #fff4e4; }
.blog-reading-link .button:hover { background: #6e3d2a; }
@media (max-width: 650px) {
  .blog-cards { grid-template-columns: 1fr; gap: 1.55rem; }
  .blog-hero { background-size: cover; background-position: center, 56% 60%; }
}
@media (max-width: 430px) {
  .site-header .nav { flex-wrap: wrap; gap: .4rem; padding-block: .6rem; }
  .site-header .wordmark { max-width: none; }
  .site-header .navigation { flex-wrap: wrap; gap: .3rem .65rem; }
}
