:root {
  --paper: #f9f6ed;
  --ink: #272e29;
  --forest: #243f37;
  --accent: #794524;
  --quiet: #545e53;
  --rule: #d3c7b3;
  --gutter: clamp(20px, 5vw, 72px);
  --serif: 'Piazzolla', Georgia, serif;
  --sans: 'Instrument Sans', Arial, sans-serif;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-variant-emoji: text; margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.6 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-underline-offset: .23em; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #b26524; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3, blockquote, .brand { font-family: var(--serif); font-weight: 400; }
h1, h2, h3 { line-height: 1.08; }
img, video { display: block; max-width: 100%; }
section[id], h2[id] { scroll-margin-top: 17px; }
.shell { width: min(1180px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: clamp(58px, 7vw, 99px); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; inset: 12px auto auto 12px; padding: 10px 16px; color: #fff; background: var(--forest); }
.kicker { color: var(--accent); font: 600 .71rem/1.3 var(--sans); letter-spacing: .17em; text-transform: uppercase; }
h2 { font-size: clamp(2.3rem, 4.6vw, 4.7rem); letter-spacing: -.057em; text-wrap: balance; }
.brand { font-size: clamp(1.65rem, 2.5vw, 2.36rem); letter-spacing: -.072em; text-decoration: none; line-height: 1; white-space: nowrap; }
.brand span { color: var(--accent); }
.masthead { position: relative; z-index: 1; background: var(--paper); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 16px; border-bottom: 1px solid var(--rule); }
.mainnav, .foot-inner nav { display: flex; align-items: center; gap: clamp(17px, 3.5vw, 51px); }
.mainnav a, .foot-inner nav a, .back { font-size: .92rem; font-weight: 600; text-decoration: none; }
.mainnav a:hover, .foot-inner nav a:hover, .back:hover, .author-link:hover span { text-decoration: underline; }
.hero { background: radial-gradient(ellipse at 71% 30%, #eee4d0 0, #f7f1e4 23%, transparent 57%), var(--paper); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; min-height: 585px; gap: clamp(25px, 5vw, 80px); padding: clamp(30px, 4.5vw, 68px) 0; }
.hero-copy { padding-left: clamp(0px, 2.2vw, 32px); }
.hero-copy .kicker { display: flex; align-items: center; gap: 13px; }
.hero-copy .kicker::before { content: ''; width: 32px; height: 1px; background: var(--accent); }
h1 { font-size: clamp(4.2rem, 7.15vw, 7.55rem); letter-spacing: -.077em; line-height: .99; margin: 23px 0; color: #29362e; }
h1 em, .book-copy h2 em { color: var(--accent); }
.hero-intro { font: 400 clamp(1.18rem, 1.7vw, 1.52rem)/1.49 var(--serif); color: #485046; max-width: 32ch; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 23px; min-height: 48px; padding: 11px 18px; border-radius: 2px; background: var(--forest); color: #fff9ed; font: 600 .94rem/1.4 var(--sans); text-decoration: none; }
.button:hover { background: #36564a; }
.hero .button { margin-top: 27px; }
.button span, .line-link span { font-family: Arial, sans-serif; font-weight: 400; }
.author-link { display: flex; width: max-content; align-items: center; gap: 11px; margin-top: 26px; text-decoration: none; color: var(--quiet); font-size: .85rem; }
.author-link img { border-radius: 50%; object-fit: cover; object-position: 60% 22%; width: 39px; height: 39px; }
.author-link b { color: var(--accent); font-weight: 400; }
.opening { width: min(100%, 283px); margin: 0 auto; }
.cinema { position: relative; width: 100%; aspect-ratio: 9/16; background: #c49e72; outline: 1px solid #c9bba2; outline-offset: 4px; box-shadow: 0 16px 29px -14px #62543a6b; }
.cinema video { width: 100%; height: 100%; object-fit: contain; }
.film-caption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.film-title { display: block; font: italic 1.07rem/1.2 var(--serif); color: var(--ink); }
.film-caption small, .action-foot { display: block; color: var(--quiet); font: 400 .79rem/1.4 var(--sans); margin-top: .25em; }
.film-controls { display: flex; align-items: center; gap: 4px; }
.film-controls button { position: relative; min-height: 40px; min-width: 39px; padding: 4px 9px; border: 1px solid #b9aa91; background: #faf6eb; border-radius: 99px; display: grid; place-items: center; color: #403e31; }
.film-controls button:hover { background: #e8decc; }
#film-play { font: 600 1.12rem/1 Arial,sans-serif; }
#film-sound { font: 600 .72rem/1 var(--sans); }
#film-sound[aria-pressed=false] i { position: absolute; width: 59%; height: 1px; background: currentColor; transform: rotate(-28deg); }
.section-heading, .listening-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: clamp(25px, 6.5vw, 100px); }
.section-heading .kicker, .book-copy .kicker, .author-copy .kicker, .listening .kicker, .dedication .kicker { margin-bottom: 12px; }
.section-heading > p, .book-copy > p:not(.kicker):not(.subhead):not(.action-foot), .author-copy > p:not(.kicker), .dedication > div > p:not(.kicker) { color: var(--quiet); font-size: 1.02rem; max-width: 53ch; }
.catalog { margin-top: 32px; }
.catalog-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.search { display: flex; align-items: center; gap: 13px; border: 1px solid #cbbfa9; border-radius: 2px; padding: 0 13px; background: #fffdf7; min-height: 45px; width: min(100%, 390px); }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.search input { min-width: 0; width: 100%; background: none; color: var(--ink); border: 0; outline: 0; padding: 10px 0; font-size: .98rem; }
.search-icon { display: block; flex-shrink: 0; width: 13px; height: 13px; border: 1.6px solid var(--quiet); border-radius: 100%; position: relative; }
.search-icon::after { content: ''; width: 6px; height: 1.6px; position: absolute; bottom: -2px; right: -5px; transform: rotate(45deg); background: var(--quiet); }
.filters { display: flex; align-items: center; gap: 4px; }
.filters button { border: 1px solid transparent; border-radius: 100px; padding: 8px 14px; min-height: 40px; font-size: .88rem; background: none; }
.filters button[aria-pressed=true] { background: #e8e3d5; border-color: #c4baa4; color: var(--ink); }
.catalog-status { margin: 17px 0 8px; min-height: 1.4em; color: var(--quiet); font-size: .8rem; }
.poem-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 clamp(27px,5.5vw,72px); margin: 0; padding: 0; list-style: none; }
.poem-index li { border-top: 1px solid var(--rule); }
.poem-index a, .catalog-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 61px; padding-block: 11px; text-decoration: none; }
.poem-index a:hover .entry-title { color: var(--accent); text-decoration: underline; }
.entry-title { font: 400 clamp(1.12rem,1.5vw,1.46rem)/1.23 var(--serif); overflow-wrap: anywhere; }
.entry-label { flex: 0 0 auto; color: #606253; font-size: .71rem; }
.entry-label.read { color: var(--forest); font-weight: 600; }
.line-link, .text-button { color: var(--forest); border: 0; background: none; padding: 7px 0; text-underline-offset: .3em; text-decoration: underline; font: 600 .91rem/1.45 var(--sans); }
.line-link:hover, .text-button:hover { color: var(--accent); }
.more { margin-top: 12px; }
.letter-note { display: flex; align-items: center; gap: 23px; margin-top: 40px; padding: 23px clamp(15px,2.5vw,34px); background: #f1ecde; border-left: 2px solid #c79a5e; }
.letter-note h3 { font-size: 1.37rem; }
.letter-note p { margin-top: 5px; color: var(--quiet); font-size: .92rem; }
.letter-note .line-link { margin-left: auto; white-space: nowrap; }
.book-section { background: #efe9d9; padding: clamp(54px,6.5vw,90px) 0; }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(35px,7vw,108px); }
.book-art { min-height: clamp(290px,32vw,430px); display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 10px; padding: clamp(22px,4vw,55px); color: #fff9ed; background: linear-gradient(0deg,#302619e8,#39342659 52%,transparent 85%), #bfa17c url('/assets/paisagem.webp') 50% 57%/cover; }
.book-art blockquote { font-size: clamp(2.25rem,4vw,4.2rem); line-height: 1.08; letter-spacing: -.047em; }
.book-art figcaption { font-size: .9rem; }
.book-copy h2 { line-height: .99; }
.subhead, .byline { font: italic 1.18rem/1.4 var(--serif); color: var(--accent); }
.book-copy .subhead { margin: 13px 0 18px; }
.book-copy .button, .listening-copy .button { margin-top: 24px; }
.author-section { display: grid; grid-template-columns: minmax(190px,.73fr) 1.27fr; gap: clamp(28px,8.5vw,138px); align-items: center; }
.portrait { max-width: 330px; justify-self: end; }
.portrait img { width: 100%; height: auto; }
.author-copy h2 { margin-bottom: 17px; }
.author-copy p + p, .listening-copy p + p { margin-top: 13px; }
.author-copy .line-link { display: inline-block; margin-top: 14px; }
.listening { color: #f9f2e3; background: #273f35; padding: clamp(55px,6.5vw,88px) 0; }
.listening-grid { align-items: center; grid-template-columns: .9fr 1.1fr; }
.listening .kicker { color: #e8bd87; }
.listening em { color: #e5c392; }
.listening-copy { font-size: 1.04rem; max-width: 52ch; }
.light { color: #263a31; background: #f2e6cc; }
.light:hover { background: #fff4df; }
.dedication { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(25px,7vw,88px); padding: clamp(51px,6vw,83px) 0; }
.dedication h2 { font-size: clamp(2.5rem, 4vw, 4.05rem); margin-bottom: 12px; }
.platform { border: 1px solid var(--rule); border-width: 1px 0; padding: 13px 1px; }
.platform summary { cursor: pointer; font: italic 1.36rem/1.4 var(--serif); color: var(--accent); }
.platform p { margin: 10px 0 5px; font-size: .95rem; }
.site-foot { border-top: 1px solid var(--rule); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 100px; padding-block: 20px; }
.foot-inner nav { gap: clamp(14px,2.2vw,29px); }
.foot-inner nav a, .back { font-size: .84rem; }
.reader { width: min(100% - 26px,650px); max-height: min(86dvh,830px); padding: 0; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 75px #15271e40; overscroll-behavior: contain; }
.reader::backdrop { background: #19281fd1; }
.reader article { padding: clamp(22px,5vw,53px); }
.reader-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--rule); padding-bottom: 13px; margin-bottom: 25px; }
.reader h2 { font-size: clamp(2rem,4.2vw,3.35rem); }
.byline { font-size: 1rem; margin: 10px 0 26px; }
#reader-lines p { white-space: pre-line; font: 400 clamp(1.1rem,2vw,1.3rem)/1.6 var(--serif); margin: 0 0 1.1em; }
#reader-audio audio { display: block; max-width: 100%; margin: 8px 0; }
.audio-label, .reader-source { font-size: .82rem; color: var(--quiet); }
.reader-source { margin-top: 25px; border-top: 1px solid var(--rule); padding-top: 12px; }
@media(min-width: 1400px) { .hero-grid { gap: 80px; } .opening { width: 300px; } }
@media(max-width: 760px) {
  .masthead-inner { min-height: 66px; }
  .hero-grid { min-height: 465px; gap: 20px; }
  .hero-copy { padding-left: 0; }
  .hero h1 { font-size: clamp(3.55rem, 9.6vw, 4.7rem); }
  .opening { width: min(100%, 220px); }
  .section-heading, .listening-grid, .dedication { grid-template-columns: 1fr; gap: 17px; }
  .book-grid { gap: 26px; }
  .letter-note { gap: 13px; }
  .author-section { gap: 30px; }
}
@media(max-width: 570px) {
  .mainnav { gap: 13px; }
  .mainnav a { font-size: .82rem; }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 29px; padding: 34px 0; }
  .hero-copy { position: relative; }
  .hero-copy h1 { font-size: clamp(3.5rem,13.7vw,4.55rem); margin: 15px 0; }
  .hero-intro { font-size: 1.12rem; max-width: 32ch; }
  .hero .button { margin-top: 15px; }
  .author-link { display: inline-flex; vertical-align: middle; max-width: 140px; margin: 6px 0 0 12px; gap: 6px; }
  .author-link img { width: 27px; height: 27px; }
  .author-link span { font-size: .73rem; white-space: nowrap; }
  .opening { width: min(100%, 245px); }
  .poem-index { grid-template-columns: 1fr; }
  .catalog { margin-top: 24px; }
  .catalog-tools { align-items: flex-start; }
  .search { width: 100%; }
  .poem-index a, .catalog-entry { min-height: 52px; }
  .letter-note { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .letter-note .line-link { justify-self: start; margin: 0; }
  .book-grid, .author-section { grid-template-columns: 1fr; }
  .book-copy { order: -1; }
  .book-art { min-height: 230px; }
  .portrait { width: min(83%,320px); justify-self: start; }
  .foot-inner { flex-wrap: wrap; }
  .foot-inner nav { order: 3; width: 100%; }
}
@media(max-width: 350px) {
  .mainnav { gap: 9px; }
  .mainnav a { font-size: .75rem; }
  .author-link { display: flex; margin: 13px 0 0; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.reading-doors { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-left: auto; }
.reading-doors .line-link { margin-left: 0; }
@media(max-width: 570px) { .reading-doors { margin: 0; } }
.listening-copy .proposal { margin-top: 13px; font-size: .86rem; color: #f1e2bf; }
