:root {
  --bg: #FBFAF7;
  --ink: #1a1a1a;
  --ink-soft: #2a2a2a;
  --muted: #999;
  --muted-soft: #ccc;
  --rule: #e5e3dd;
  --rust: #B85820;
  --rust-hover: #983F12;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.65;
  letter-spacing: 0;
}

body.lang-pending nav,
body.lang-pending [data-i18n] { visibility: hidden; }

.col {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

/* Header
   ---------------------------------------------- */

header.col {
  padding-top: 56px;
  padding-bottom: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.brand:link,
.brand:visited {
  font-size: 21px;
  letter-spacing: -0.2px;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover { color: var(--ink); }

header nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
}

header nav a,
header nav a:link,
header nav a:visited {
  color: var(--muted);
  text-decoration: none;
}

header nav a:hover { color: var(--ink); }

header nav a.active,
header nav a.active:link,
header nav a.active:visited {
  color: var(--ink);
}

/* Main column
   ---------------------------------------------- */

main.col {
  padding-top: 88px;
  padding-bottom: 0;
}

main.col > p,
main.col > h1,
main.col > h2,
main.col > h3 {
  margin-top: 0;
}

/* Links no corpo de texto */

a:link, a:visited {
  color: var(--rust);
  text-decoration: none;
}

a:hover {
  color: var(--rust-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Entry blocks
   ---------------------------------------------- */

.entry {
  margin-bottom: 0;
  display: flow-root; /* contém floats (figures) */
}

.label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}

.label.cronica { color: var(--rust); }

.cronica-title {
  font-size: 28px;
  letter-spacing: -0.4px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 28px;
  color: var(--ink);
}

.cronica-title a:link,
.cronica-title a:visited {
  color: var(--ink);
  text-decoration: none;
}

.cronica-title a:hover {
  color: var(--rust-hover);
  text-decoration: none;
}

.cronica-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.cronica-body p { margin: 0 0 1em; }
.cronica-body p:last-child { margin-bottom: 0; }

/* Figures inside any entry body */
.entry figure,
.cronica-body figure,
.nota-body figure,
.excerto-body figure {
  float: right;
  margin: 4px 0 16px 28px;
  max-width: 280px;
  width: 40%;
}

.entry figure.figure-left,
.cronica-body figure.figure-left {
  float: left;
  margin: 4px 28px 16px 0;
}

.entry figure.figure-wide,
.cronica-body figure.figure-wide,
.nota-body figure.figure-wide,
.excerto-body figure.figure-wide {
  max-width: 400px;
  width: 50%;
}

.entry figure img,
.cronica-body figure img,
.nota-body figure img,
.excerto-body figure img {
  display: block;
  width: 100%;
  height: auto;
}

.entry figcaption,
.cronica-body figcaption,
.nota-body figcaption,
.excerto-body figcaption {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}

.nota-body {
  font-size: 19px;
  line-height: 1.65;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 24px;
}

.nota-body p { margin: 0 0 1em; }
.nota-body p:last-child { margin-bottom: 0; }

.excerto-body {
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0;
  color: var(--ink-soft);
  border-left: 2px solid var(--rule);
  padding-left: 20px;
  margin: 0 0 24px;
}

.excerto-body p { margin: 0 0 1em; }
.excerto-body p:last-child { margin-bottom: 0; }
.excerto-body a:link,
.excerto-body a:visited { color: var(--muted); word-break: break-word; }
.excerto-body a:hover { color: var(--rust); }

.entry-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.continue-link,
.continue-link:link,
.continue-link:visited,
.entry-foot a.continue-link,
.entry-foot a.continue-link:link,
.entry-foot a.continue-link:visited {
  color: var(--rust);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.continue-link:hover,
.entry-foot a.continue-link:hover { color: var(--rust-hover); text-decoration: none; }

.date { color: var(--muted); }

.nota-foot {
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--muted);
}

/* Asterisk separator
   ---------------------------------------------- */

.sep {
  text-align: center;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--rust);
  margin: 64px 0;
  user-select: none;
}

/* Single-note page
   ---------------------------------------------- */

.back-archive,
.back-archive:link,
.back-archive:visited {
  display: inline-block;
  margin-bottom: 56px;
  font-size: 13px;
  letter-spacing: 0.3px;
  font-style: italic;
  color: var(--muted);
  text-decoration: none;
}

.back-archive:hover { color: var(--ink); text-decoration: none; }

article.single .label { margin-bottom: 28px; }
article.single .cronica-title { margin-bottom: 28px; }
article.single .nota-body,
article.single .cronica-body { margin-bottom: 28px; }

/* Pesquisa list (research.html)
   ---------------------------------------------- */

.pub-list { list-style: none; padding: 0; margin: 0; }

.pub-list li {
  margin-bottom: 32px;
}

.pub-list a:link,
.pub-list a:visited {
  color: var(--rust);
  font-size: 19px;
  text-decoration: none;
}

.pub-list a:hover {
  color: var(--rust-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.pub-year { color: var(--muted); font-size: 15px; }

.pub-excerpt {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 8px 0 6px;
}

.pub-meta {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 6px 0 0;
}

/* Lang blocks (multilingual content)
   ---------------------------------------------- */

.lang-block { display: none; }
.lang-block.show { display: block; }

.lang-block p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* Footer
   ---------------------------------------------- */

footer.col {
  margin-top: 48px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 0.5px solid var(--rule);
}


.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-size: 13px;
}

.archive-link,
.archive-link:link,
.archive-link:visited {
  color: var(--muted);
  font-style: italic;
  text-decoration: none;
}

.archive-link:hover { color: var(--ink); text-decoration: none; }

.lang-switcher {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-style: italic;
}

.lang-switcher .lang-opt,
.lang-switcher .lang-opt:link,
.lang-switcher .lang-opt:visited {
  color: var(--muted-soft);
  text-decoration: none;
}

.lang-switcher .lang-opt:hover { color: var(--muted); text-decoration: none; }

.lang-switcher .lang-opt.active,
.lang-switcher .lang-opt.active:link,
.lang-switcher .lang-opt.active:visited {
  color: var(--ink);
}

.lang-switcher .lang-sep { color: var(--muted-soft); }

/* Mobile
   ---------------------------------------------- */

@media (max-width: 640px) {
  .col { max-width: none; padding: 0 24px; }
  header.col { padding-top: 36px; flex-wrap: wrap; gap: 12px; }
  main.col { padding-top: 56px; }
  .sep { margin: 48px 0; }
  .cronica-title { font-size: 24px; }
  footer.col { margin-top: 72px; padding-top: 36px; }
  .entry figure,
  .cronica-body figure,
  .nota-body figure,
  .excerto-body figure {
    float: none;
    margin: 24px auto;
    max-width: 100%;
    width: auto;
  }
}
