:root {
  --ink: #203129;
  --muted: #66756d;
  --paper: #f5f2ea;
  --surface: #fffdf8;
  --line: #d9ded7;
  --green: #245b45;
  --green-dark: #163e2e;
  --coral: #d8674c;
  --yellow: #e8bd58;
  --shadow: 0 12px 30px rgba(32, 49, 41, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); line-height: 1.5; }
a { color: var(--green-dark); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--coral); }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }

.demo-banner { padding: .6rem 1rem; text-align: center; background: var(--yellow); color: #352910; font-size: .88rem; }
.site-header { max-width: 1240px; margin: 0 auto; padding: 1.15rem 1.35rem; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: baseline; gap: .35rem; text-decoration: none; color: var(--green-dark); font-family: Georgia, serif; font-size: 1.65rem; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.brand em { color: var(--coral); font-style: normal; }
.main-nav { display: flex; align-items: center; gap: 1.15rem; margin-left: auto; font-size: .91rem; }
.main-nav a, .mobile-menu a { text-decoration: none; color: var(--ink); }
.main-nav a:hover, .mobile-menu a:hover { color: var(--coral); }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); padding: .45rem .8rem; color: var(--green-dark); }
.mobile-menu { max-width: 1240px; margin: 0 auto; padding: 0 1.35rem 1rem; gap: .7rem; flex-wrap: wrap; }
.mobile-menu:not([hidden]) { display: flex; }

main { max-width: 1240px; margin: 0 auto; padding: 0 1.35rem 5rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(220px, .55fr); gap: 2rem; align-items: end; padding: 5.2rem 0 4.4rem; }
.hero h1, .page-intro h1, .detail h1 { margin: .15rem 0 .75rem; color: var(--green-dark); font-family: Georgia, serif; font-weight: 700; letter-spacing: -.035em; line-height: .98; }
.hero h1 { font-size: clamp(3.4rem, 10vw, 7.2rem); }
.eyebrow { margin: 0 0 .45rem; color: var(--coral); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-subtitle { max-width: 760px; margin: 0; font-size: clamp(1.2rem, 2.7vw, 2rem); line-height: 1.18; }
.hero-lead { max-width: 600px; margin: 1.25rem 0 0; color: var(--muted); font-size: 1.07rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.hero-note { border-left: 3px solid var(--coral); padding: .25rem 0 .25rem 1rem; display: grid; gap: .2rem; }
.hero-note span { color: var(--coral); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero-note strong { font-family: Georgia, serif; font-size: 1.6rem; color: var(--green-dark); }
.hero-note small { color: var(--muted); }

.button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--green); border-radius: 999px; padding: .65rem 1rem; background: var(--green); color: white; text-decoration: none; font-weight: 700; line-height: 1.1; }
.button:hover { background: var(--green-dark); color: white; }
.button.secondary { border-color: var(--line); background: transparent; color: var(--green-dark); }
.button.secondary:hover { border-color: var(--green); background: var(--surface); }
.reset { align-self: center; font-size: .9rem; }

.home-filters, .filters { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); }
.home-filters { margin-bottom: 4.3rem; padding: 1.45rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.15rem; }
.section-heading h2, .results h2, .detail h2, .review-form h3 { margin: 0; color: var(--green-dark); font-family: Georgia, serif; letter-spacing: -.02em; }
.section-heading h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
.section-heading p:not(.eyebrow) { margin: .35rem 0 0; max-width: 600px; color: var(--muted); }
.filters { padding: 1.2rem; box-shadow: none; }
.filter-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .8rem; }
.filters label { display: grid; gap: .35rem; color: var(--muted); font-size: .83rem; font-weight: 700; }
.filters input, .filters select, .review-form input, .review-form textarea { width: 100%; border: 1px solid var(--line); border-radius: .55rem; padding: .62rem .7rem; background: white; color: var(--ink); }
.filters input:focus, .filters select:focus, .review-form input:focus, .review-form textarea:focus { outline: 3px solid rgba(216,103,76,.22); border-color: var(--coral); }
.filters fieldset { margin: 1rem 0 0; padding: .85rem 0 0; border: 0; border-top: 1px solid var(--line); }
.filters legend { padding: 0; color: var(--green-dark); font-size: .86rem; font-weight: 800; }
.check-grid { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.check { display: inline-flex !important; grid-template-columns: auto 1fr !important; grid-auto-flow: column; justify-content: start; align-items: center; gap: .4rem; color: var(--ink) !important; font-weight: 500 !important; }
.check input { width: auto; accent-color: var(--green); }
.quick-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin-top: 1rem; }
.quick-filters label:not(.check) { min-width: 160px; }
.quick-filters .button { margin-left: auto; }

.content-section { margin: 4.2rem 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); box-shadow: 0 5px 16px rgba(32,49,41,.04); }
.card.featured { border-top: 4px solid var(--coral); }
.card-art, .detail-art { min-height: 156px; display: flex; justify-content: flex-end; align-items: flex-end; padding: 1rem; background: linear-gradient(145deg, #c8d9c6, #668c76); color: white; }
.card-art.poster, .detail-art.poster { background: linear-gradient(145deg, #142c43, #d8674c 72%, #e7bc5d); }
.card-art span, .detail-art span { max-width: 80%; padding: .3rem .45rem; border: 1px solid rgba(255,255,255,.55); border-radius: .3rem; background: rgba(15,42,31,.3); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 1rem; }
.card .eyebrow { font-size: .68rem; }
.card h3 { margin: .35rem 0 .35rem; font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.08; }
.card h3 a { text-decoration: none; }
.meta { margin: 0; color: var(--muted); font-size: .82rem; }
.summary { margin: .75rem 0 1.1rem; color: #45564d; font-size: .93rem; }
.tag { display: inline-block; margin-left: .35rem; padding: .14rem .35rem; border-radius: .3rem; background: #e4f0e3; color: var(--green); font-size: .68rem; letter-spacing: .02em; }
.card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: auto; }
.price { margin-right: auto; color: var(--green-dark); font-size: .8rem; font-weight: 800; }
.rating-summary { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .76rem; }
.rating-summary.compact { font-size: .7rem; }
.stars { color: var(--coral); letter-spacing: .05em; white-space: nowrap; }
.save-button { border: 0; border-bottom: 1px solid currentColor; padding: .1rem 0; background: transparent; color: var(--green-dark); font-size: .78rem; }
.save-button[aria-pressed="true"] { color: var(--coral); font-weight: 800; }

.page-intro { max-width: 850px; padding: 4.2rem 0 2.4rem; }
.page-intro h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
.page-intro > p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 1.1rem; }
.results { margin-top: 2.2rem; }
.results-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.1rem; }
.results-heading span { color: var(--muted); font-size: .9rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; color: var(--muted); }
.empty { padding: 2rem; border: 1px dashed var(--line); border-radius: .8rem; background: var(--surface); }
.empty h2, .empty h1 { margin-top: 0; font-family: Georgia, serif; color: var(--green-dark); }

.detail { padding: 3.2rem 0; }
.detail-hero { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 2rem; align-items: end; }
.detail-art { min-height: 360px; border-radius: .8rem; box-shadow: var(--shadow); }
.detail h1 { font-size: clamp(2.7rem, 6vw, 5.5rem); }
.original-title { margin-top: -.35rem; color: var(--muted); font-style: italic; }
.detail-pills { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0; }
.detail-pill { display: inline-block; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--green-dark); font-size: .8rem; }
.detail-summary { max-width: 750px; font-size: 1.1rem; }
.editorial-note { max-width: 750px; padding-left: 1rem; border-left: 3px solid var(--coral); color: #475950; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 3rem; margin-top: 3.5rem; }
.detail-grid section { margin: 0 0 2.7rem; }
.detail-grid h2 { margin-bottom: 1rem; font-size: 1.75rem; }
.facts { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: .7rem 1rem; margin: 0; }
.facts dt { color: var(--muted); font-size: .87rem; }
.facts dd { margin: 0; }
.notice { margin-top: 1.3rem; padding: 1rem; border-radius: .55rem; background: #e9f0e6; }
.notice p { margin: .25rem 0 0; }
.links-list { display: grid; gap: .75rem; padding: 0; list-style: none; }
.links-list li { display: grid; gap: .15rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.links-list span { color: var(--muted); font-size: .83rem; }
.rating-panel, .review-form { padding: 1.2rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); }
.rating-panel h2 { margin-bottom: .35rem; font-size: 2.8rem; }
.review-form { display: grid; gap: .85rem; margin: 1.1rem 0 2.3rem; }
.review-form h3 { font-size: 1.45rem; }
.review-form p { margin: 0; }
.review-form fieldset { padding: 0; border: 0; }
.review-form legend { margin-bottom: .35rem; color: var(--muted); font-size: .83rem; font-weight: 700; }
.stars-input { display: flex; gap: .3rem; }
.stars-input label { display: block; }
.stars-input input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.stars-input span[aria-hidden] { display: block; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: .35rem; color: var(--coral); cursor: pointer; }
.stars-input input:checked + span, .stars-input input:focus + span { border-color: var(--coral); background: #fff0eb; }
.comment { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.comment p { margin: .45rem 0 0; }
.comment details { margin-top: .45rem; color: var(--muted); }
.report-button { margin-top: .45rem; border: 0; padding: 0; background: transparent; color: var(--muted); font-size: .74rem; text-decoration: underline; cursor: pointer; }
.report-button:hover { color: var(--coral); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose li { margin: .4rem 0; }
.saved-items { min-height: 160px; }
.saved-empty { padding: 2rem 0; }
.participation-list { max-width: 760px; border-top: 1px solid var(--line); }
.participation-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.participation-row span { color: var(--muted); font-size: .85rem; }

.site-footer { max-width: 1240px; margin: 0 auto; padding: 2.4rem 1.35rem 3rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; color: var(--muted); font-size: .86rem; }
.site-footer strong { color: var(--green-dark); font-family: Georgia, serif; font-size: 1.2rem; }
.site-footer p { max-width: 560px; margin: .35rem 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .8rem 1rem; }
.site-footer small { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 3.8rem; }
  .hero-note { max-width: 360px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { gap: 2rem; }
}
@media (max-width: 620px) {
  main { padding-bottom: 3rem; }
  .site-header { padding-top: .9rem; padding-bottom: .9rem; }
  .brand { font-size: 1.4rem; }
  .hero { padding: 3rem 0 3rem; }
  .hero h1 { font-size: clamp(3.2rem, 18vw, 5rem); }
  .hero-subtitle { font-size: 1.25rem; }
  .home-filters { padding: 1rem; margin-bottom: 3rem; }
  .filter-row { grid-template-columns: 1fr; }
  .quick-filters .button { width: 100%; margin-left: 0; }
  .section-heading, .results-heading { align-items: start; flex-direction: column; }
  .card-grid { grid-template-columns: 1fr; }
  .card-art { min-height: 130px; }
  .page-intro { padding-top: 3rem; }
  .page-intro h1 { font-size: clamp(2.7rem, 15vw, 4.3rem); }
  .detail { padding-top: 2.5rem; }
  .detail-hero { grid-template-columns: 1fr; gap: 1.4rem; }
  .detail-art { min-height: 240px; }
  .detail-grid { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .facts { grid-template-columns: 95px minmax(0, 1fr); }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer small { grid-column: auto; }
}


/* Ajustes exclusivos da publicação estática em Pages. */
.static-filters .section-heading > .muted { font-size: .82rem; }
.static-details { margin: 0 0 1rem; color: var(--muted); font-size: .84rem; }
.static-details summary { color: var(--green-dark); cursor: pointer; font-weight: 700; }
.static-details p { margin: .55rem 0 0; }
.static-details strong { color: var(--ink); }
.static-family { padding: 1.35rem; border-radius: 1rem; background: #e9f0e6; }
.static-family .section-heading { margin-bottom: 0; }
.static-family .section-heading h2 { color: var(--green-dark); }
.static-about { padding-bottom: 1rem; }
@media (max-width: 620px) { .static-family { padding: 1rem; } .static-family .button { width: 100%; } }
