@font-face {
  font-family: 'Timeless Text';
  src: url('/assets/fonts/TimelessSerifVF.woff2') format('woff2'),
       url('/assets/fonts/TimelessSerifVF.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Timeless Serif';
  src: url('/assets/fonts/TimelessSerifVF.woff2') format('woff2'),
       url('/assets/fonts/TimelessSerifVF.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Timeless Sans';
  src: url('/assets/fonts/TimelessSansVF.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gidole';
  src: url('/assets/fonts/gidole/Gidole-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fira Sans';
  src: url('/assets/fonts/fira-sans/FiraSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fira Sans';
  src: url('/assets/fonts/fira-sans/FiraSans-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Fira Sans';
  src: url('/assets/fonts/fira-sans/FiraSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fff;
  --ink: #111;
  --muted: #666;
  --line: #c8c8c8;
  --soft: #f3f3f3;
  --measure: 42rem;
  --note-width: 17rem;
  --note-gap: 2rem;
  font-family: 'Timeless Text', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-size: 1.1875rem; line-height: 1.62; text-rendering: optimizeLegibility; }
main { flex: 1; }
a { color: inherit; text-decoration-thickness: .07em; text-underline-offset: .14em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
img, svg { max-width: 100%; }
.wrapper { width: min(100% - 2rem, 76rem); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: .75rem; left: .75rem; padding: .5rem .75rem; color: var(--paper); background: var(--ink); }
.site-header { border-bottom: 1px solid var(--ink); }
.site-header__wrapper { min-height: 3.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header__site-name { font-weight: 700; text-decoration: none; }
.nav__list { display: flex; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.nav a[aria-current='page'] { font-weight: 700; }
.site-footer { margin-top: 5rem; border-top: 1px solid var(--ink); font-size: .875rem; }
.site-footer__wrapper { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.reading-shell, .book-article { width: min(100% - 2rem, var(--measure)); margin-inline: auto; }
.reading-shell { padding-block: 4.5rem; }
.reading-shell > * + * { margin-top: 1.5rem; }
h1, h2, h3 { font-family: 'Gidole', 'Helvetica Neue', Arial, sans-serif; font-weight: 400; line-height: 1.15; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.6rem, 8vw, 5rem); font-weight: 400; letter-spacing: -.035em; }
h2 { margin: 3.5rem 0 0; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 400; }
h3 { margin: 2.5rem 0 0; font-size: 1.35rem; }
p, ul, ol, blockquote, table { margin-block: 1.4rem 0; }
.eyebrow, .book-meta { font-family: 'Timeless Sans', ui-sans-serif, system-ui, sans-serif; font-size: .75rem; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { margin: 0 0 .75rem; font-weight: 700; }
.editorial-status { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; color: var(--muted); font-family: 'Timeless Sans', ui-sans-serif, system-ui, sans-serif; font-size: .82rem; line-height: 1.45; }
.status-tag { display: inline-block; margin-left: .35rem; padding: .15rem .45rem; border: 1px solid currentColor; font-family: 'Timeless Sans', ui-sans-serif, system-ui, sans-serif; font-size: .68rem; font-weight: 700; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; vertical-align: .1em; }
.editorial-status .status-tag { margin-left: 0; }
.status-tag--published { border-style: solid; }
.status-tag--review { border-style: dashed; }
.status-tag--internal-review, .status-tag--draft { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.lede, .home__lede, .book-summary { font-size: 1.35rem; line-height: 1.45; }
.home__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.content-list, .book-toc { padding: 0; list-style: none; }
.content-list li, .book-toc li { padding-block: 1rem; border-top: 1px solid var(--line); }
.content-list a, .book-toc a { font-size: 1.2rem; font-weight: 700; }
.content-list p, .book-toc p { margin-top: .25rem; color: var(--muted); }
.book-toc li { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; }
.book-toc__number { font-variant-numeric: tabular-nums; color: var(--muted); }
.book-page { overflow: clip; }
.book-article { padding-block: 4.5rem 0; }
.book-header { padding-bottom: 2rem; border-bottom: 1px solid var(--ink); }
.book-header h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
.book-meta { margin-top: 1rem; color: var(--muted); }
.book-body { position: relative; margin-top: 3rem; }
.book-body > :first-child { margin-top: 0; }
.book-body blockquote { margin-left: 0; padding-left: 1.25rem; border-left: 2px solid var(--ink); }
.book-body hr { margin-block: 3rem; border: 0; border-top: 1px solid var(--line); }
.book-body table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.book-body th, .book-body td { padding: .65rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.book-body th { background: var(--soft); }
.tdbc-anchor { margin-left: .35em; color: var(--muted); font-family: 'Timeless Sans', ui-sans-serif, system-ui, sans-serif; font-size: .55em; text-decoration: none; }
.sidenote-ref, .footnote-ref { font-family: 'Timeless Sans', ui-sans-serif, system-ui, sans-serif; font-size: .7em; line-height: 0; vertical-align: super; }
.sidenote-ref a, .footnote-ref a { text-decoration: none; }
.sidenote { display: block; margin: .65rem 0 1.25rem; padding: .75rem 0 .75rem 1rem; border-left: 1px solid var(--ink); font-family: 'Timeless Sans', ui-sans-serif, system-ui, sans-serif; font-size: .82rem; line-height: 1.5; }
.sidenote-number { margin-right: .35em; font-weight: 700; }
.sidenote-backref { margin-left: .35em; text-decoration: none; }
.footnotes { margin-top: 4rem; padding-top: 1rem; border-top: 1px solid var(--ink); font-family: 'Timeless Sans', ui-sans-serif, system-ui, sans-serif; font-size: .82rem; line-height: 1.5; }
.footnotes-sep { display: none; }
.footnotes-list { padding-left: 1.25rem; }
.book-footer { margin-top: 4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.changelog { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-family: 'Timeless Sans', ui-sans-serif, system-ui, sans-serif; font-size: .85rem; line-height: 1.5; color: var(--muted); }
.changelog h2 { margin-top: 0; font-size: 1rem; }
.changelog__last { margin-top: .5rem; }
.changelog__releases { margin-top: .5rem; padding-left: 1.25rem; }
.changelog__intro { margin-top: .5rem; }
.changelog__day { margin-top: 1rem; }
.changelog__date { margin: 0; font-weight: 700; color: var(--ink); }
.changelog__entries { margin-top: .4rem; padding-left: 0; list-style: none; }
.changelog__entry { margin-top: .35rem; }
.changelog__entry--global { margin-top: .75rem; }
.changelog__line { margin: 0; }
.changelog__scope { margin-top: .15rem; }
.changelog__time { color: var(--ink); font-variant-numeric: tabular-nums; }
.changelog__author { white-space: nowrap; }
.changelog__commit { white-space: nowrap; }
.changelog__release { white-space: nowrap; }

/* Estudo tipográfico isolado: Gidole */
.type-study--gidole {
  --measure: 39rem;
  font-family: 'Gidole', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.68;
  letter-spacing: .006em;
}
.type-study--gidole h1,
.type-study--gidole h2,
.type-study--gidole h3,
.type-study--gidole .eyebrow,
.type-study--gidole .book-meta,
.type-study--gidole .editorial-status,
.type-study--gidole .status-tag,
.type-study--gidole .tdbc-anchor,
.type-study--gidole .sidenote-ref,
.type-study--gidole .footnote-ref,
.type-study--gidole .sidenote,
.type-study--gidole .footnotes,
.type-study--gidole .changelog {
  font-family: inherit;
}
.type-study--gidole h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: .96;
  letter-spacing: -.045em;
}
.type-study--gidole h2 {
  max-width: 22ch;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.type-study--gidole h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.type-study--gidole .book-summary {
  max-width: 40ch;
  font-size: 1.25rem;
  line-height: 1.45;
  text-wrap: pretty;
}
.type-study--gidole .book-body p {
  text-wrap: pretty;
}
.type-study--gidole .eyebrow,
.type-study--gidole .book-meta {
  letter-spacing: .11em;
}
.type-study--gidole .type-specimen {
  margin-top: 3rem;
  padding-block: 1.25rem;
  border-block: 1px solid var(--line);
}
.type-study--gidole .type-specimen__alphabet {
  margin-top: .5rem;
  font-size: clamp(1.4rem, 4vw, 2.25rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.type-study--gidole .type-specimen__figures {
  margin-top: .75rem;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}
.type-study--gidole strong,
.type-study--gidole b {
  font-weight: 700;
}

/* Comparação tipográfica do capítulo Verificabilidade */
.type-comparison {
  --measure: 40rem;
}
.type-comparison h1,
.type-comparison h2,
.type-comparison h3 {
  font-family: 'Gidole', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
}
.type-comparison h1 {
  font-size: clamp(3rem, 8vw, 5.75rem);
  line-height: .98;
  letter-spacing: -.04em;
}
.type-comparison h2 {
  line-height: 1.08;
  letter-spacing: -.025em;
}
.type-comparison .book-summary {
  max-width: 42ch;
  text-wrap: pretty;
}
.type-comparison .book-body p {
  text-wrap: pretty;
}
.type-comparison--timeless {
  font-family: 'Timeless Text', Georgia, 'Times New Roman', serif;
  font-size: 1.1875rem;
  line-height: 1.62;
}
.type-comparison--gidole {
  font-family: 'Gidole', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  letter-spacing: .004em;
}
.type-comparison--gidole .eyebrow,
.type-comparison--gidole .book-meta,
.type-comparison--gidole .sidenote,
.type-comparison--gidole .footnotes {
  font-family: inherit;
}
.type-comparison--fira {
  font-family: 'Fira Sans', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.68;
}
.type-comparison--fira .eyebrow,
.type-comparison--fira .book-meta,
.type-comparison--fira .sidenote,
.type-comparison--fira .footnotes {
  font-family: inherit;
}

/* Home experimental da opção escolhida: Gidole + Timeless Serif a 19 px */
.type-home--gidole-timeless {
  --measure: 40rem;
  font-family: 'Timeless Text', Georgia, 'Times New Roman', serif;
  font-size: 1.1875rem;
  line-height: 1.62;
}
.type-home--gidole-timeless h1,
.type-home--gidole-timeless h2,
.type-home--gidole-timeless h3 {
  font-family: 'Gidole', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
}
.type-home--gidole-timeless h1 {
  max-width: 10ch;
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: .92;
  letter-spacing: -.05em;
}
.type-home--gidole-timeless h2 {
  line-height: 1.08;
  letter-spacing: -.025em;
}
.type-home--gidole-timeless .home__lede {
  max-width: 34ch;
  font-size: 1.45rem;
  line-height: 1.4;
  text-wrap: pretty;
}
.type-home--gidole-timeless .book-toc a {
  font-family: 'Gidole', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
}
.type-home--gidole-timeless .book-toc p,
.type-home--gidole-timeless .content-list p {
  line-height: 1.5;
}
.type-home--gidole-timeless .type-home__notice {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-family: 'Timeless Sans', ui-sans-serif, system-ui, sans-serif;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 70rem) {
  .book-article { width: calc(var(--measure) + var(--note-gap) + var(--note-width)); padding-right: calc(var(--note-gap) + var(--note-width)); }
  .sidenote { float: right; clear: right; width: var(--note-width); margin: .2rem calc(-1 * (var(--note-gap) + var(--note-width))) 1rem 0; padding: 0; border: 0; color: var(--muted); }
}

@media (max-width: 40rem) {
  .site-header__wrapper, .site-footer__wrapper { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 1rem; }
  .reading-shell, .book-article { width: min(100% - 1.5rem, var(--measure)); padding-top: 3rem; }
  .book-body table { display: block; overflow-x: auto; }
}

@media print {
  .site-header, .site-footer, .book-footer, .tdbc-anchor, .sidenote-backref { display: none; }
  .book-article { width: auto; padding: 0; }
  .sidenote { float: none; width: auto; margin: .5rem 0 1rem; padding-left: 1rem; border-left: 1px solid var(--ink); color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
