:root {
  --ink: #203f38;
  --muted: #52645c;
  --green: #174f46;
  --green-hover: #103e37;
  --paper: #fbfaf6;
  --surface: #fff;
  --line: #d9dfd3;
  --soft: #eef1e7;
  --sand: #f3ecdd;
  --focus: #994b18;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.6;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
button:disabled {
  cursor: default;
  opacity: 0.7;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.16;
}
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  font-weight: 400;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.22rem;
}
p + p {
  margin-top: 1rem;
}
img {
  max-width: 100%;
  height: auto;
}
svg {
  display: block;
}
button {
  color: inherit;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1200px, calc(100% - 80px));
  margin-inline: auto;
}
.section-space {
  padding-block: 76px;
}
.academic-bar {
  text-align: center;
  background: var(--green);
  color: #fff;
  padding: 8px 20px;
  font-size: 0.74rem;
  letter-spacing: 0.035em;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.brand img {
  margin-right: 10px;
}
.brand span {
  font-weight: 400;
}
.site-header nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.site-header nav a {
  font-size: 0.84rem;
  text-decoration: none;
}
.site-header nav a:hover,
.site-footer a:hover {
  text-decoration: underline;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 49px;
  padding: 12px 22px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}
.button-primary {
  background: var(--green);
  color: #fff;
}
.button-primary:hover {
  background: var(--green-hover);
}
.button-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--green);
}
.button-outline:hover {
  background: var(--soft);
}
.accessibility-trigger {
  font-size: 0.78rem;
  gap: 12px;
  padding: 10px 16px;
}
.accessibility-trigger span {
  font-family: Georgia, serif;
  font-size: 1.2rem;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 55px;
  padding-block: 44px 68px;
}
.eyebrow {
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  line-height: 1.6;
}
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.small-line {
  height: 2px;
  width: 24px;
  background: #849575;
  display: inline-block;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  font-weight: 400;
  letter-spacing: -0.055em;
  margin-block: 22px;
}
h1 em {
  font-weight: 400;
  color: #517350;
}
.hero-description {
  color: var(--muted);
  font-size: 1rem;
  max-width: 490px;
  margin-bottom: 30px;
}
.hero .button {
  padding: 16px 23px;
}
.hero-note {
  margin-top: 18px;
  font-size: 0.75rem;
  color: var(--muted);
}
.hero-note span {
  margin-right: 7px;
}
.hero-art {
  position: relative;
  padding-bottom: 25px;
}
.hero-art img {
  width: 100%;
}
.art-caption {
  position: absolute;
  bottom: 6px;
  left: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  padding: 17px 25px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px #203f3809;
  font-size: 0.86rem;
}
.art-caption small {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
}
.caption-icon {
  font-size: 1.8rem;
  color: #6b814e;
}
.notice {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px 25px;
  background: var(--soft);
  font-size: 0.8rem;
}
.notice-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: bold;
}
.notice p {
  flex: 1;
}
.notice a {
  font-size: 0.76rem;
  white-space: nowrap;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.section-heading h2 {
  margin: 12px 0;
}
.section-heading p:not(.eyebrow) {
  font-size: 0.9rem;
  color: var(--muted);
}
.editorial-tag {
  font-size: 0.72rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
  white-space: nowrap;
}
.library-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}
.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.filter {
  min-height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 100px;
  padding: 8px 17px;
  font-size: 0.77rem;
}
.filter[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.filter:hover:not([aria-pressed="true"]) {
  background: var(--soft);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 13px;
  min-width: 210px;
}
.search-field > span {
  font-size: 1.6rem;
  line-height: 1;
}
.search-field input {
  min-height: 46px;
  min-width: 0;
  width: 200px;
  background: transparent;
  border: 0;
  font-size: 0.78rem;
  color: var(--ink);
}
input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.library-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.76rem;
  color: var(--muted);
}
.text-button {
  background: transparent;
  border: 0;
  min-height: 44px;
  padding: 8px 0;
  color: var(--green);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-button[aria-pressed="true"] {
  font-weight: 700;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.content-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: var(--surface);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.content-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px #203f380c;
}
.card-art {
  height: 122px;
  position: relative;
  display: grid;
  place-items: center;
  background: #e9eddf;
}
.card-art.equilibrio {
  background: #f1e8d8;
}
.card-art.respiracao {
  background: #e2edeb;
}
.card-art > svg {
  width: 66px;
  height: 66px;
  color: #39584b;
}
.card-art .card-number {
  position: absolute;
  left: 20px;
  top: 17px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #52645c;
}
.bookmark {
  position: absolute;
  right: 14px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #bdcbb8;
  border-radius: 50%;
  background: var(--surface);
  color: var(--green);
}
.bookmark svg {
  width: 20px;
  height: 20px;
}
.bookmark[aria-pressed="true"] {
  background: var(--green);
  color: white;
}
.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 23px;
}
.card-category {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.card-content h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.card-description {
  color: var(--muted);
  font-size: 0.82rem;
  flex: 1;
  margin-bottom: 22px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 0.72rem;
  color: var(--muted);
}
.card-open {
  background: none;
  border: 0;
  padding: 7px 0;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 44px;
}
.card-open:hover {
  text-decoration: underline;
}
.read-badge {
  font-size: 0.7rem;
  color: var(--green);
  margin-top: 9px;
}
.empty-state {
  text-align: center;
  padding: 55px 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.empty-state p {
  margin: 14px 0 20px;
  color: var(--muted);
}
.support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.reading-card,
.pause-card {
  padding: 35px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.reading-card {
  background: var(--soft);
}
.pause-card {
  background: var(--sand);
}
.support h2 {
  font-size: 1.8rem;
  margin: 13px 0;
}
.support p:not(.eyebrow):not(.fine-print) {
  font-size: 0.86rem;
  color: var(--muted);
}
.reading-progress {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.76rem;
}
progress {
  width: 100%;
  height: 9px;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #d5ddcd;
  accent-color: var(--green);
}
progress::-webkit-progress-bar {
  background: #d5ddcd;
}
progress::-webkit-progress-value {
  background: var(--green);
}
progress::-moz-progress-bar {
  background: var(--green);
}
.fine-print {
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 17px;
}
.pause-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pause-heading > span {
  font-size: 1.6rem;
  line-height: 1;
}
.timer-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  font-size: 0.8rem;
}
.timer-row select {
  background: var(--surface);
  color: var(--ink);
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 44px;
}
.timer-row output {
  margin-left: auto;
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}
.timer-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 15px;
}
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.about h2 {
  margin-top: 15px;
  font-size: 2.7rem;
}
.about > div + div {
  padding-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}
.text-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.84rem;
  font-weight: 600;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 34px 0;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}
.footer-content > .brand {
  font-size: 1.5rem;
}
.footer-content p {
  font-size: 0.73rem;
  color: var(--muted);
}
.footer-content nav {
  display: flex;
  gap: 25px;
  font-size: 0.76rem;
  flex-wrap: wrap;
}
.footer-note {
  text-align: right;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  padding: 12px;
  background: var(--surface);
  z-index: 5;
}
.skip-link:focus {
  top: 12px;
}
dialog {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  width: min(720px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #102f29a8;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.icon-button {
  width: 46px;
  height: 46px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  flex-shrink: 0;
}
.dialog-top h2 {
  font-size: 1.9rem;
}
#article-title {
  font-size: 2.4rem;
  margin-bottom: 18px;
}
#article-body p {
  margin-bottom: 18px;
}
#article-body h3 {
  margin-block: 25px 12px;
}
#article-body li {
  margin: 12px 0;
}
#article-body ul {
  padding-left: 24px;
}
#article-body .source-note {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 0.82rem;
}
#article-body .article-boundary {
  background: var(--soft);
  padding: 17px;
  border-radius: 8px;
  font-size: 0.85rem;
}
.dialog-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 25px 0;
  padding: 16px;
}
legend {
  font-weight: 600;
  padding: 0 7px;
}
.option-row {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}
.option-row label,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
input[type="radio"],
input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--green);
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
#accessibility-dialog h3 {
  margin-bottom: 12px;
}
#clear-session {
  margin-top: 18px;
}
.legal-page {
  max-width: 820px;
  padding-block: 35px 70px;
}
.legal-page h1 {
  font-size: 3rem;
}
.legal-page h2 {
  font-size: 1.7rem;
  margin: 35px 0 14px;
}
.legal-page p,
.legal-page li {
  font-size: 0.94rem;
}
.legal-page li {
  margin-bottom: 12px;
}
.legal-page .lead {
  font-size: 1.1rem;
  color: var(--muted);
}
.legal-page .notice {
  margin-top: 25px;
}
.legal-page a {
  overflow-wrap: anywhere;
}
.source-list {
  padding-left: 25px;
}
.large-text {
  font-size: 22px;
}
.high-contrast {
  --ink: #102a20;
  --muted: #263d30;
  --green: #103f2b;
  --green-hover: #08291c;
  --paper: #fff;
  --surface: #fff;
  --line: #54644e;
  --soft: #eef1e7;
  --focus: #903900;
}
.high-contrast .card-art {
  background: #eef1e7;
}
.high-contrast .card-art svg {
  color: #15351f;
}
.high-contrast .card-category,
.high-contrast .card-number {
  color: #263d30;
}
@media (min-width: 1400px) {
  .hero {
    padding-block: 55px 75px;
  }
  h1 {
    font-size: 4.9rem;
  }
}
@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero {
    gap: 20px;
  }
  h1 {
    font-size: 3.8rem;
  }
  .library-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .search-field input {
    width: 100%;
  }
  .search-field {
    max-width: 360px;
  }
  .card-content {
    padding: 19px;
  }
  .footer-content {
    flex-wrap: wrap;
  }
  .site-header {
    gap: 20px;
  }
  .site-header nav {
    gap: 20px;
  }
  .editorial-tag {
    display: none;
  }
}
@media (max-width: 760px) {
  :root {
    font-size: 18px;
  }
  .wrap {
    width: calc(100% - 36px);
  }
  .site-header {
    flex-wrap: wrap;
    padding-block: 20px;
    gap: 15px;
  }
  .brand {
    font-size: 1.5rem;
  }
  .site-header nav {
    order: 3;
    width: 100%;
    justify-content: center;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
  .accessibility-trigger {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 25px 38px;
    gap: 20px;
  }
  .hero-copy {
    max-width: 530px;
  }
  .hero .eyebrow {
    font-size: 0.62rem;
  }
  h1 {
    font-size: 3.8rem;
    margin-block: 18px;
  }
  .hero-description {
    font-size: 1rem;
  }
  .hero-art {
    max-width: 470px;
    justify-self: center;
  }
  .art-caption {
    left: 20px;
  }
  .notice {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 18px;
    gap: 12px;
  }
  .notice p {
    flex-basis: 80%;
  }
  .notice a {
    margin-left: 37px;
  }
  .section-space {
    padding-block: 45px;
  }
  .section-heading {
    margin-bottom: 25px;
  }
  h2 {
    font-size: 1.85rem;
  }
  .filters {
    gap: 8px;
  }
  .filter {
    font-size: 0.77rem;
    padding: 9px 15px;
  }
  .search-field {
    max-width: none;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .card-content h3 {
    font-size: 1.35rem;
  }
  .support {
    grid-template-columns: 1fr;
  }
  .reading-card,
  .pause-card {
    padding: 25px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about h2 {
    font-size: 2.3rem;
  }
  .footer-content {
    align-items: flex-start;
    gap: 25px;
  }
  .footer-content nav {
    flex-direction: column;
    gap: 10px;
  }
  .footer-note {
    text-align: left;
  }
  .large-text {
    font-size: 22px;
  }
  .large-text .cards-grid {
    grid-template-columns: 1fr;
  }
  .large-text .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .large-text .accessibility-trigger {
    margin-left: 0;
  }
  .large-text .site-header nav {
    flex-wrap: wrap;
  }
  .large-text .timer-row {
    flex-wrap: wrap;
  }
}
@media (max-width: 460px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .card-art {
    height: 112px;
  }
  .card-content {
    padding: 23px;
  }
  .card-content h3 {
    font-size: 1.6rem;
  }
  .card-description {
    font-size: 0.9rem;
  }
  .academic-bar {
    font-size: 0.66rem;
  }
  .accessibility-trigger {
    font-size: 0.68rem;
    padding: 8px 10px;
    gap: 6px;
  }
  .brand img {
    width: 32px;
  }
  .brand {
    font-size: 1.4rem;
  }
  h1 {
    font-size: 3.4rem;
  }
  .library-meta {
    align-items: flex-start;
    gap: 8px;
  }
  .library-meta p {
    padding-top: 9px;
  }
  .timer-row {
    gap: 10px;
  }
  .timer-row output {
    font-size: 1.7rem;
  }
  .art-caption {
    padding: 13px 18px;
    font-size: 0.78rem;
  }
  .hero .eyebrow {
    letter-spacing: 0.09em;
  }
  dialog {
    padding: 21px;
  }
  #article-title {
    font-size: 2rem;
  }
  .legal-page h1 {
    font-size: 2.4rem;
  }
  .large-text .timer-row output {
    margin-left: 0;
  }
  .large-text h1 {
    font-size: 2.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .academic-bar,
  .site-header nav,
  .accessibility-trigger,
  .library-controls,
  .library-meta,
  .bookmark,
  .pause-card,
  .site-footer nav,
  .hero-art,
  .dialog-actions,
  .icon-button {
    display: none !important;
  }
  .wrap {
    width: 100%;
  }
  .hero,
  .about {
    display: block;
  }
  body {
    background: #fff;
    color: #000;
  }
  .cards-grid {
    display: block;
  }
  .content-card {
    break-inside: avoid;
    margin: 15px 0;
  }
  .card-art {
    height: 70px;
  }
  .section-space {
    padding-block: 25px;
  }
  dialog[open] {
    position: static;
    max-height: none;
    width: 100%;
    border: 0;
  }
  body:has(dialog[open]) > :not(dialog) {
    display: none;
  }
  body:has(dialog[open]) {
    overflow: visible;
  }
}

/* Permite reflow dos cartões e controles em telas estreitas e texto ampliado. */
.reading-card,
.pause-card,
.content-card,
.hero-copy,
.hero-art {
  min-width: 0;
}
.timer-row {
  flex-wrap: wrap;
}
