/* Sombra & Noturno — uma folha de estilo para o acervo inteiro. */
:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --paper-raised: #fffcf7;
  --ink: #292b2b;
  --muted: #777673;
  --fine: #e5ded3;
  --gold: #a58a53;
  --gold-dark: #80652e;
  --font: "Segoe UI", Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 4px; border-radius: 2px; }
::selection { background: #e8dabc; color: #242323; }
.shell { width: min(100% - 52px, 960px); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 100; background: var(--ink); color: white; padding: 10px 14px; }
.skip-link:focus { top: 12px; }

/* Marca e fio dourado */
.site-header { padding-top: clamp(52px, 8vw, 89px); }
.brand { margin: 0; text-align: center; text-transform: uppercase; font-size: clamp(24px, 4vw, 40px); line-height: 1.2; letter-spacing: .1em; font-weight: 400; }
.brand-amp { color: var(--gold-dark); font-weight: 300; }
.brand-link { text-decoration: none; }
.brand-link:hover { color: var(--gold-dark); }
.gold-rule { position: relative; height: 1px; margin: 29px auto 0; width: min(100%, 540px); background: linear-gradient(90deg,transparent 0%,#c4b184 19%,var(--gold) 50%,#c4b184 81%,transparent 100%); }
.gold-rule span { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; transform: translate(-50%,-50%) rotate(45deg); background: var(--gold); border: 2px solid var(--paper); box-sizing: content-box; }

/* Índice */
.archive { max-width: 780px; }
.archive-heading { text-align: center; padding: 70px 0 35px; }
.eyebrow { margin: 0 0 13px; color: var(--gold-dark); font-size: 11px; font-weight: 650; line-height: 1.5; letter-spacing: .19em; text-transform: uppercase; }
.archive-heading h2 { margin: 0 0 12px; font-size: clamp(23px,3vw,30px); line-height: 1.35; font-weight: 350; letter-spacing: -.022em; }
.archive-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 0; color: var(--muted); font-size: 13px; }
.meta-dot { color: var(--gold); }
.archive-list { padding-bottom: 28px; }
.month-group { margin: 24px 0 32px; }
.month-title { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 0 5px 12px; margin: 0; border-bottom: 1px solid #cdbd9f; color: var(--gold-dark); font-size: 12px; font-weight: 650; letter-spacing: .17em; }
.month-title span:last-child { font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .1em; }
.entry-list { list-style: none; padding: 0; margin: 0; }
.entry-link { display: grid; grid-template-columns: 91px minmax(0,1fr) 22px; align-items: baseline; gap: 14px; padding: 15px 10px 16px; text-decoration: none; border-bottom: 1px solid var(--fine); transition: background .16s ease, padding .16s ease; }
.entry-link:hover { background: rgba(165,138,83,.07); padding-inline: 14px 6px; }
.entry-code { color: var(--gold-dark); font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .075em; white-space: nowrap; }
.entry-title { font-size: clamp(15px,1.7vw,17px); font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.entry-arrow { color: var(--gold-dark); text-align: center; font-size: 16px; line-height: 1.4; opacity: .63; transition: transform .16s ease, opacity .16s ease; }
.entry-link:hover .entry-arrow { opacity: 1; transform: translate(2px,-2px); }

/* Leitura individual */
.reading-page .site-header { padding-top: 48px; }
.reading-page .brand { font-size: clamp(21px,3.1vw,30px); }
.reading-page .gold-rule { margin-top: 22px; }
.reading-shell { max-width: 870px; }
.breadcrumb { max-width: 730px; margin: 37px auto 64px; font-size: 12px; color: var(--muted); letter-spacing: .025em; }
.breadcrumb a { text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--gold-dark); border-bottom-color: var(--gold); }
.text-article { max-width: 730px; margin-inline: auto; }
.article-head { text-align: center; margin-bottom: clamp(45px,6vw,64px); }
.article-head .eyebrow { margin-bottom: 22px; }
.article-head .eyebrow span { color: #b6aa93; margin-inline: 8px; }
.article-head h1 { max-width: 700px; margin: 0 auto 19px; font-size: clamp(30px,4vw,43px); font-weight: 370; line-height: 1.28; letter-spacing: -.035em; overflow-wrap: break-word; }
.article-head time { color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.article-content { font-size: clamp(16.5px,1.8vw,18px); line-height: 1.9; font-weight: 400; overflow-wrap: break-word; }
.article-content p { margin: 0 0 1.55em; }
.article-signature { margin-top: 68px; text-align: center; font-size: 14px; }
.signature-rule { display: block; height: 1px; width: 105px; margin: 0 auto 25px; background: var(--gold); }
.article-signature p { margin: 0; }
.article-signature .coauthor { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.article-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 730px; margin: 80px auto 0; padding-top: 25px; border-top: 1px solid var(--fine); }
.article-pagination a { display: flex; flex-direction: column; gap: 5px; text-decoration: none; }
.article-pagination a:hover .pager-title { color: var(--gold-dark); }
.pager-next { text-align: right; }
.pager-label { font-size: 11px; color: var(--gold-dark); letter-spacing: .06em; }
.pager-title { font-size: 14px; line-height: 1.5; }

/* Rodapé */
.site-footer { display: flex; gap: 15px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; padding: 75px 0 36px; font-size: 12px; color: var(--muted); }
.site-footer span:first-child, .site-footer a { color: var(--ink); letter-spacing: .04em; text-decoration: none; }
.site-footer a:hover { color: var(--gold-dark); }

@media (max-width: 640px) {
  .shell { width: min(100% - 36px, 960px); }
  .site-header { padding-top: 50px; }
  .brand { letter-spacing: .07em; }
  .gold-rule { margin-top: 24px; }
  .archive-heading { padding: 55px 0 28px; }
  .month-group { margin: 22px 0 30px; }
  .entry-link { grid-template-columns: 76px minmax(0,1fr) 17px; gap: 10px; padding: 14px 4px; }
  .entry-link:hover { padding-inline: 6px 2px; }
  .entry-code { font-size: 11px; }
  .reading-page .site-header { padding-top: 35px; }
  .breadcrumb { margin: 28px auto 52px; }
  .article-head { margin-bottom: 43px; }
  .article-content { line-height: 1.82; }
  .article-content p { margin-bottom: 1.4em; }
  .article-signature { margin-top: 52px; }
  .article-pagination { margin-top: 64px; gap: 14px; }
  .pager-title { font-size: 12px; }
  .site-footer { padding-top: 55px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .entry-link,.entry-arrow { transition: none; }
}
@media print {
  :root { --paper: white; --ink: black; }
  .site-header { padding-top: 0; }
  .breadcrumb, .article-pagination, .skip-link, .site-footer { display: none; }
  .text-article, .reading-shell { max-width: none; }
  .article-content { font-size: 12pt; line-height: 1.6; }
  .article-head { margin-bottom: 30px; }
  .article-head h1 { font-size: 24pt; }
}
