/* ==========================================================================
   Mateus Freire – protótipo v0.4
   Paleta proposta (aguarda canonização; ver README §2):
   ink #040a07 · green #0b3b33 · tan #bcaa9a (escuro/ornamento)
   tan-text #7d6c5e (cobre legível em claro, 5.03:1) · fog/mist/white · muted
   Regras da casa: en dash (–), sem first-line indent, tnum em colunas,
   latim nunca traduzido, "die" nunca em caixa-alta nem itálico.
   ========================================================================== */

:root {
  --ink: #040a07;
  --green: #0b3b33;
  --tan: #bcaa9a;        /* sobre fundos escuros e como ornamento apenas */
  --tan-text: #7d6c5e;   /* cobre para texto em fundos claros (AA) */
  --fog: #f7f8f7;
  --mist: #eceeed;
  --white: #fff;
  --muted: #626a64;
  --line: rgba(4,10,7,.15);
  --line-dark: rgba(255,255,255,.18);
  --w55: rgba(255,255,255,.55);
  --w62: rgba(255,255,255,.62);
  --w72: rgba(255,255,255,.72);
  --w85: rgba(255,255,255,.85);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "General Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1320px;
  --gutter: clamp(1.1rem, 3.4vw, 3.5rem);
  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 82px;
}

/* Base ------------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--fog);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.drawer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { color: inherit; font: inherit; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.site-drawer :focus-visible,
.liber :focus-visible,
.juris-block :focus-visible,
.site-footer :focus-visible { outline-color: var(--tan); }

.shell { width: min(100%, calc(var(--container) + (var(--gutter) * 2))); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; z-index: 2000; top: .75rem; left: .75rem; transform: translateY(-180%); background: var(--ink); color: #fff; padding: .65rem .9rem; transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }

/* Rótulos: piso de .7rem (11.2px) em todo o sistema */
.eyebrow, .footer-label, .label, .toc-title, .block-label, .mnote-label {
  margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .15em; line-height: 1.35; text-transform: uppercase;
}
.eyebrow { color: var(--muted); }
.eyebrow.copper { color: var(--tan-text); }
.eyebrow.light { color: var(--w62); }
.tnum { font-variant-numeric: tabular-nums lining-nums; }
.diamond { display: inline-block; width: 5px; height: 5px; background: var(--tan); transform: rotate(45deg); }

.text-link { display: inline-flex; align-items: center; gap: .8rem; width: fit-content; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.text-link span { transition: transform .25s var(--ease); }
.text-link:hover span { transform: translate(3px,-3px); }
.text-link.light { color: #fff; }

/* Header ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 120; height: var(--header-h); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--fog) 92%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.header-inner { height: 100%; display: grid; grid-template-columns: 230px 1fr 230px; align-items: center; gap: 2rem; }
.brand img { width: 196px; }
.header-context { display: flex; justify-content: center; gap: 2rem; color: var(--muted); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; }
.header-context a { transition: color .2s ease; }
.header-context a:hover { color: var(--ink); }
.menu-button { justify-self: end; display: inline-flex; align-items: center; gap: 1rem; border: 0; background: transparent; padding: .5rem 0; cursor: pointer; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.menu-glyph { position: relative; display: block; width: 34px; height: 14px; }
.menu-glyph i { position: absolute; right: 0; width: 100%; height: 1px; background: currentColor; transition: transform .3s var(--ease), width .3s var(--ease); }
.menu-glyph i:first-child { top: 2px; }
.menu-glyph i:last-child { bottom: 2px; width: 70%; }
.menu-button:hover .menu-glyph i:first-child { width: 70%; }
.menu-button:hover .menu-glyph i:last-child { width: 100%; }

/* Drawer ------------------------------------------------------------------ */
.drawer-overlay { position: fixed; inset: 0; z-index: 499; background: rgba(4,10,7,.54); opacity: 0; transition: opacity .5s var(--ease); }
.site-drawer { position: fixed; z-index: 500; inset: 0 0 0 auto; width: min(900px, 70vw); color: #fff; background: var(--ink); transform: translateX(102%); transition: transform .56s var(--ease); visibility: hidden; }
.drawer-open .drawer-overlay { opacity: 1; }
.drawer-open .site-drawer { transform: translateX(0); visibility: visible; }
.drawer-watermark { position: absolute; right: -5%; bottom: -24%; width: min(54vw, 700px); opacity: .05; pointer-events: none; }
.drawer-inner { position: relative; z-index: 2; height: 100%; padding: clamp(1.1rem,2.8vw,2.4rem); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line-dark); }
.drawer-brand img { width: 210px; }
.drawer-close { display: inline-flex; align-items: center; gap: 1rem; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.drawer-close i { position: relative; width: 28px; height: 28px; }
.drawer-close i::before, .drawer-close i::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: #fff; }
.drawer-close i::before { transform: rotate(45deg); }
.drawer-close i::after { transform: rotate(-45deg); }
.drawer-content { display: grid; grid-template-columns: minmax(260px,.92fr) minmax(280px,1.08fr); gap: clamp(1.6rem,4.2vw,3.6rem); align-items: center; padding: 2rem 0 1.35rem; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: .8rem; padding: .72rem 0 .84rem; border-bottom: 1px solid var(--line-dark); }
.drawer-nav a::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 1px; background: var(--tan); transition: width .35s var(--ease); }
.drawer-nav a:hover::after { width: 100%; }
.drawer-nav a > span { color: var(--tan); font-size: .7rem; letter-spacing: .14em; }
.drawer-nav strong { font-family: var(--serif); font-size: clamp(1.85rem,3.15vw,3rem); font-weight: 400; line-height: 1; }
.drawer-nav em { color: var(--w62); font-style: normal; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.drawer-reflection { align-self: center; padding-left: clamp(1.1rem,3vw,2.8rem); border-left: 1px solid var(--line-dark); }
.drawer-quote { margin: 0; max-width: 28rem; font-family: var(--serif); font-size: clamp(1.48rem,2.45vw,2.55rem); line-height: 1.14; text-wrap: balance; font-style: italic; }
.drawer-cite { margin: 1.15rem 0 0; color: var(--tan); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.drawer-index { display: flex; flex-wrap: wrap; gap: .45rem; max-width: 31rem; }
.drawer-index span { border: 1px solid var(--line-dark); padding: .42rem .7rem; color: var(--w72); font-size: .7rem; letter-spacing: .11em; text-transform: uppercase; }
.drawer-foot { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line-dark); }
.drawer-foot div { display: flex; flex-direction: column; gap: .35rem; }
.drawer-foot .label { color: var(--w55); }
.drawer-foot a { font-size: .85rem; }
.drawer-coordinates { text-align: right; color: var(--w55); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }

/* Hero -------------------------------------------------------------------- */
.home-hero { min-height: calc(100svh - var(--header-h)); display: grid; align-items: stretch; background: var(--white); }
.hero-grid { display: grid; grid-template-columns: 130px minmax(0,1fr) minmax(310px,420px); grid-template-rows: 1fr auto; column-gap: clamp(2rem,5vw,5rem); }
.hero-rail { grid-row: 1 / 3; padding: clamp(4rem,9vh,7rem) 1.3rem 2.2rem 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.hero-rail p { margin: auto 0 1.5rem; color: var(--muted); font-size: .7rem; letter-spacing: .12em; line-height: 1.7; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.hero-rail .stem { display: block; width: 1px; height: 84px; background: var(--ink); }
.hero-main { align-self: center; padding: 5rem 0 4rem; }
.hero-main h1 { max-width: 820px; margin: 1.5rem 0 2rem; font-family: var(--serif); font-size: clamp(3.6rem,6.8vw,7rem); font-weight: 400; letter-spacing: -.02em; line-height: .98; text-wrap: balance; }
.hero-main h1 em { color: var(--green); font-weight: 400; }
.hero-intro { max-width: 620px; margin: 0 0 2.1rem; color: var(--muted); font-family: var(--serif); font-size: clamp(1.15rem,1.7vw,1.45rem); line-height: 1.48; text-wrap: pretty; }
.hero-mark { align-self: center; position: relative; min-height: 500px; display: grid; align-content: center; justify-items: center; padding: 4rem 2rem; border-left: 1px solid var(--line); }
.hero-mark > img { width: min(78%, 290px); }
.hero-mark-data { position: absolute; right: 0; bottom: 2rem; left: 2rem; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); padding-top: 1rem; }
.hero-mark-data p { margin: 0; display: flex; flex-direction: column; gap: .2rem; }
.hero-mark-data span { color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-mark-data strong { font-size: 1rem; font-weight: 500; }
.hero-bottomline { grid-column: 2 / -1; min-height: 64px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto auto; gap: 2.5rem; align-items: center; color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }

/* Preceitos de Ulpiano (Digesto 1.1.10) ----------------------------------- */
.precepts { min-height: 56px; padding: 1rem var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: clamp(1.1rem,3vw,2.4rem); row-gap: .6rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--fog); color: var(--muted); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.precepts span { white-space: nowrap; }

/* Seções ------------------------------------------------------------------ */
.section { padding: clamp(5.5rem,9vw,8.5rem) 0; }
.section-heading { display: grid; grid-template-columns: minmax(150px,.45fr) minmax(0,1fr) auto; gap: 2rem; align-items: end; margin-bottom: clamp(2.4rem,5vw,4rem); padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.55rem,2.2vw,2.1rem); font-weight: 400; letter-spacing: -.01em; line-height: 1.1; text-wrap: balance; }
.section-heading.compact { margin-bottom: 2rem; }

/* Destaque da home ---------------------------------------------------------- */
.featured { background: var(--fog); }
.feature-layout { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(360px,.88fr); border-bottom: 1px solid var(--line); }
.feature-visual { position: relative; overflow: hidden; background: var(--mist); border: 1px solid var(--line); border-bottom: 0; }
.feature-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature-layout:hover .feature-visual img { transform: scale(1.02); }
.feature-figure { position: absolute; z-index: 3; left: 1.2rem; bottom: 1.1rem; padding: .4rem .65rem; background: rgba(255,255,255,.9); color: var(--ink); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem,5vw,5rem); }
.feature-copy h3 { margin: 1.2rem 0 1.4rem; font-family: var(--serif); font-size: clamp(2.4rem,4.3vw,4.3rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.02; text-wrap: balance; }
.feature-copy > p:not(.eyebrow) { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; text-wrap: pretty; }
.feature-meta { margin-top: auto; padding-top: 2.6rem; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.circle-arrow { width: 46px; height: 46px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; color: var(--ink); font-size: 1.05rem; transition: background .25s ease, color .25s ease, transform .25s ease; }
.feature-layout:hover .circle-arrow { background: var(--ink); color: #fff; transform: translate(2px,-2px); }

/* Escrita recente ----------------------------------------------------------- */
.writing { background: var(--white); }
.writing-list { border-top: 1px solid var(--line); }
.writing-item { position: relative; display: grid; grid-template-columns: 70px 110px minmax(0,1fr) 150px 44px; gap: 1rem; align-items: center; min-height: 108px; padding-inline: 1rem; border-bottom: 1px solid var(--line); transition: background .3s ease; }
.writing-item::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--green); transition: width .3s var(--ease); }
.writing-item:hover { background: rgba(11,59,51,.03); }
.writing-item:hover::before { width: 3px; }
.writing-no { color: var(--tan-text); font-size: .72rem; font-weight: 600; }
.writing-date, .writing-tag { color: var(--muted); font-size: .7rem; letter-spacing: .11em; text-transform: uppercase; }
.writing-item h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem,2.2vw,1.9rem); font-weight: 400; line-height: 1.18; text-wrap: balance; }
.writing-arrow { justify-self: end; font-size: 1.15rem; transition: transform .25s var(--ease); }
.writing-item:hover .writing-arrow { transform: translate(3px,-3px); }

/* Liber ---------------------------------------------------------------------- */
.liber { position: relative; overflow: hidden; padding: clamp(6.5rem,11vw,10rem) 0; background: var(--ink); color: #fff; }
.liber-monument { position: absolute; right: -1vw; top: 50%; transform: translateY(-52%); font-family: var(--serif); font-size: clamp(16rem,30vw,26rem); font-weight: 400; line-height: 1; color: rgba(255,255,255,.05); user-select: none; pointer-events: none; }
.liber-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 130px minmax(0,1fr) 320px; gap: clamp(2rem,5vw,5rem); }
.liber-rail { border-right: 1px solid var(--line-dark); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; min-height: 400px; padding-right: 1.5rem; }
.liber-rail p { margin: 0; color: var(--w55); font-size: .7rem; letter-spacing: .12em; line-height: 1.7; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.liber-main { align-self: center; }
.liber-main h2 { max-width: 720px; margin: 1.3rem 0 1.7rem; font-family: var(--serif); font-size: clamp(3rem,5.6vw,5.6rem); font-weight: 400; letter-spacing: -.025em; line-height: .98; text-wrap: balance; }
.liber-main > p:not(.eyebrow) { max-width: 620px; margin: 0; color: var(--w72); font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; text-wrap: pretty; }
.liber-main .text-link { margin-top: 2rem; }
.liber-data { align-self: end; display: flex; flex-direction: column; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); }
.datum { margin: 0; font-family: var(--serif); font-size: .95rem; line-height: 1.6; color: var(--w72); }
.datum strong { color: var(--w85); font-weight: 500; }
.liber-length { margin: 0; display: flex; align-items: baseline; gap: .8rem; }
.liber-length span { color: var(--w55); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.liber-length strong { font-size: .8rem; font-weight: 500; letter-spacing: .06em; }

/* Sobre ------------------------------------------------------------------------ */
.about { background: var(--fog); }
.about-layout { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(360px,.88fr); gap: clamp(3rem,7vw,7rem); align-items: center; }
.about-image { position: relative; }
.about-image img { width: 100%; background: var(--mist); border: 1px solid var(--line); }
.about-image span { display: block; margin-top: .8rem; color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.about-copy { border-left: 1px solid var(--line); padding-left: clamp(2rem,5vw,5rem); }
.about-lead { margin: 0 0 1.8rem; font-family: var(--serif); font-size: clamp(1.7rem,2.5vw,2.4rem); line-height: 1.2; text-wrap: balance; }
.about-copy > p:not(.about-lead) { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 1.08rem; line-height: 1.65; text-wrap: pretty; }
.about-signature { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 1.2rem; color: var(--muted); font-size: .7rem; letter-spacing: .1em; line-height: 1.7; text-transform: uppercase; }
.about-signature img { width: 40px; }

/* Rodapé ------------------------------------------------------------------------- */
.site-footer { padding: clamp(4.5rem,7vw,7rem) 0 1.6rem; background: var(--ink); color: #fff; }
.footer-top { display: grid; grid-template-columns: 300px 1fr; gap: 4rem; align-items: end; padding-bottom: 3.2rem; border-bottom: 1px solid var(--line-dark); }
.footer-logo { width: 250px; }
.credo { justify-self: end; max-width: 640px; margin: 0; font-family: var(--serif); font-size: clamp(1.4rem,2.4vw,2.2rem); line-height: 1.3; text-align: right; color: var(--w85); text-wrap: balance; }
.credo cite { display: block; margin-top: 1rem; color: var(--tan); font-family: var(--sans); font-style: normal; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid { display: grid; grid-template-columns: repeat(3,1fr) 1.1fr; gap: 3rem; padding: 2.4rem 0 2.8rem; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.footer-label { margin-bottom: .35rem; color: var(--w55); }
.footer-grid a { color: var(--w72); font-size: .88rem; transition: color .2s ease; }
.footer-grid a:hover { color: #fff; }
.footer-legal { align-items: flex-end !important; text-align: right; color: var(--w55); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; gap: .45rem !important; }
.colophon { display: flex; justify-content: space-between; gap: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); color: var(--w55); font-size: .7rem; letter-spacing: .1em; }
.compact-footer { padding-top: 3.5rem; }

/* Artigo: barra de progresso ------------------------------------------------------ */
.reading-progress { position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 2px; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: var(--tan); transform: scaleX(0); transform-origin: left center; }

/* Artigo: masthead ------------------------------------------------------------------ */
.article-masthead { background: var(--white); padding: clamp(4.5rem,8vw,8rem) 0 clamp(3.5rem,6vw,6rem); border-bottom: 1px solid var(--line); }
.article-mast-grid { display: grid; grid-template-columns: 130px minmax(0,1fr) 250px; gap: clamp(2rem,5vw,5rem); }
.article-side-label { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding-right: 1.5rem; border-right: 1px solid var(--line); color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.article-side-label strong { color: var(--tan-text); font-family: var(--serif); font-size: 2.3rem; font-weight: 400; letter-spacing: .02em; }
.article-side-label .stem { width: 1px; height: 84px; margin: .5rem 0; background: var(--ink); }
.article-title-block h1 { max-width: 900px; margin: 0 0 1.8rem; font-family: var(--serif); font-size: clamp(3.1rem,5.8vw,5.8rem); font-weight: 400; letter-spacing: -.025em; line-height: .99; text-wrap: balance; }
.article-deck { max-width: 720px; margin: 0; color: var(--muted); font-family: var(--serif); font-size: clamp(1.2rem,1.8vw,1.5rem); line-height: 1.48; text-wrap: pretty; }
.article-data { align-self: end; margin: 0; border-top: 1px solid var(--line); }
.article-data div { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.article-data dt { color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.article-data dd { margin: .25rem 0 0; font-size: .8rem; letter-spacing: .02em; }

/* Artigo: figura destacada ----------------------------------------------------------- */
.article-feature { margin: clamp(3rem,6vw,5.5rem) auto 0; }
.article-feature-frame { overflow: hidden; background: var(--mist); border: 1px solid var(--line); aspect-ratio: 16 / 8.5; }
.article-feature-frame img { width: 100%; height: 100%; object-fit: cover; }
.article-feature figcaption { display: grid; grid-template-columns: 130px 1fr auto; gap: 2rem; padding-top: .9rem; color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.article-feature figcaption p { margin: 0; text-transform: none; letter-spacing: 0; font-family: var(--serif); font-size: .92rem; }

/* Artigo: corpo em três colunas ------------------------------------------------------- */
.article-content-wrap { padding: clamp(4.5rem,8vw,8rem) 0; }
.article-layout { display: grid; grid-template-columns: 190px minmax(0,680px) 230px; column-gap: clamp(2.5rem,4vw,4.5rem); justify-content: center; align-items: start; }
.article-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.article-toc ol { margin: 1.1rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.article-toc li { border-bottom: 1px solid var(--line); }
.article-toc a { display: grid; grid-template-columns: 28px 1fr; gap: .5rem; padding: .8rem 0; color: var(--muted); font-family: var(--serif); font-size: .9rem; line-height: 1.3; transition: color .2s ease; }
.article-toc a:hover { color: var(--ink); }
.article-toc a span { color: var(--tan-text); font-family: var(--sans); font-size: .7rem; padding-top: .1rem; }

.article-copy { min-width: 0; }
.article-copy > p { margin: 0 0 1.5rem; font-family: var(--serif); font-size: 1.25rem; line-height: 1.75; text-align: justify; hyphens: auto; hyphenate-limit-chars: 6 3 3; text-wrap: pretty; }
.versal::first-letter { float: left; margin: .1em .14em 0 0; color: var(--tan-text); font-size: 4.3em; line-height: .74; }
.article-copy h2 { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: .9rem; align-items: baseline; margin: 4.2rem 0 1.8rem; font-family: var(--serif); font-size: clamp(1.9rem,2.8vw,2.7rem); font-weight: 400; letter-spacing: -.015em; line-height: 1.05; scroll-margin-top: calc(var(--header-h) + 28px); }
.article-copy h2 > span { color: var(--tan-text); font-family: var(--sans); font-size: .7rem; letter-spacing: .1em; }
.hanchor { margin-left: .55rem; color: var(--tan-text); font-size: 1.15rem; opacity: 0; transition: opacity .2s ease; }
.article-copy h2:hover .hanchor, .hanchor:focus-visible { opacity: 1; }

/* Dispositivo legal */
.legal-block { display: grid; grid-template-columns: 64px 1fr; gap: 1.3rem; margin: 2.8rem 0; padding: 1.8rem 1.8rem 1.8rem 1.2rem; border-top: 1px solid var(--green); border-bottom: 1px solid var(--green); background: rgba(11,59,51,.035); }
.legal-block figure, figure.legal-block { margin-inline: 0; }
.block-mark { display: grid; place-items: start center; padding-top: .2rem; color: var(--green); font-family: var(--serif); font-size: 2.4rem; line-height: 1; }
.legal-block .block-label { margin-bottom: .65rem; color: var(--green); }
.legal-block p { margin: 0; font-family: var(--serif); font-size: 1.05rem; line-height: 1.62; text-wrap: pretty; }

/* Destaque autoral (não é citação: sem aspas, sem blockquote) */
.destaque { margin: 3rem 0; padding-left: 1.8rem; border-left: 1px solid var(--tan); color: var(--ink); font-family: var(--serif); font-size: clamp(1.45rem,2.2vw,2rem); font-weight: 400; line-height: 1.34; text-wrap: balance; }
.article-copy > p.destaque { text-align: left; hyphens: none; }

/* Eixos numerados */
.article-steps { margin: 2.2rem 0 2.8rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.article-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 1.1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.article-steps > li > span { color: var(--tan-text); font-size: .72rem; font-weight: 600; padding-top: .3rem; }
.article-steps strong { font-family: var(--serif); font-size: 1.22rem; font-weight: 500; }
.article-steps p { margin: .25rem 0 0; color: var(--muted); font-family: var(--serif); font-size: 1rem; line-height: 1.55; }

/* Jurisprudência: o momento escuro do artigo */
.juris-block { margin: 3rem 0; padding: 2.1rem 2.2rem; background: var(--ink); color: #fff; }
.juris-block .block-label { color: var(--tan); }
.juris-block blockquote { margin: 1.2rem 0 1rem; font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; text-wrap: pretty; }
.juris-block cite { display: block; color: var(--w62); font-size: .74rem; font-style: normal; line-height: 1.5; }

/* Notas marginais: em fluxo por padrão; JS as eleva à margem em telas largas */
.mnote { margin: 1.7rem 0 2.1rem; padding-top: .85rem; border-top: 1px solid var(--line); max-width: 46ch; }
.mnote-label { display: block; color: var(--tan-text); }
.mnote p { margin: .55rem 0 0; color: var(--muted); font-family: var(--serif); font-size: .92rem; line-height: 1.55; text-wrap: pretty; }
.mnote a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.margin-column { position: relative; display: none; }
.margin-column .mnote { position: absolute; left: 0; right: 0; margin: 0; max-width: none; }
@media (min-width: 1121px) {
  .js .margin-column { display: block; }
}

/* Marca de fim: o losango do isotipo como fleuron */
.end-mark { display: flex; justify-content: center; padding: 2.2rem 0 .4rem; }
.end-mark i { width: 9px; height: 9px; background: var(--tan-text); transform: rotate(45deg); }

/* Fecho do artigo ----------------------------------------------------------------- */
.article-end { padding: 4rem 0 4.5rem; border-top: 1px solid var(--line); background: var(--white); }
.article-end-grid { display: grid; grid-template-columns: minmax(0,1.2fr) 1fr; gap: 2.6rem 3rem; align-items: center; }
.article-end .datum { color: var(--muted); font-size: 1.02rem; }
.article-end .datum strong { color: var(--ink); }
.article-author { display: flex; align-items: center; gap: 1.2rem; justify-self: end; }
.article-author img { width: 46px; }
.article-author div { display: flex; flex-direction: column; }
.article-author strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.article-author span { color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.article-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.article-tags a { padding: .42rem .7rem; border: 1px solid var(--line); color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; transition: color .2s ease, border-color .2s ease; }
.article-tags a:hover { color: var(--ink); border-color: var(--ink); }
.article-disclaimer { justify-self: end; max-width: 520px; margin: 0; color: var(--muted); font-family: var(--serif); font-size: .9rem; text-align: right; text-wrap: pretty; }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; background: var(--mist); }
.article-nav a { min-height: 200px; padding: clamp(2rem,4vw,3.6rem); display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; border-right: 1px solid var(--line); transition: background .25s ease; }
.article-nav a:hover { background: color-mix(in srgb, var(--mist) 60%, var(--white)); }
.article-nav a:last-child { text-align: right; border-right: 0; }
.article-nav span { color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.article-nav strong { max-width: 560px; font-family: var(--serif); font-size: clamp(1.4rem,2.2vw,2rem); font-weight: 400; line-height: 1.18; text-wrap: balance; }
.article-nav a:last-child strong { align-self: flex-end; }



/* Páginas internas: sistema v0.4 ----------------------------------------------- */
.drawer-nav a[aria-current="page"]::after { width: 100%; }
.drawer-nav a[aria-current="page"] strong { color: #fff; }

.page-hero { background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero-grid { min-height: clamp(560px,72svh,760px); display: grid; grid-template-columns: 130px minmax(0,1fr) minmax(280px,340px); column-gap: clamp(2rem,5vw,5rem); }
.page-hero-rail { grid-row: 1; padding: clamp(4rem,8vh,6.5rem) 1.3rem 2.5rem 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.page-hero-rail p { margin: auto 0 1.5rem; color: var(--muted); font-size: .7rem; letter-spacing: .12em; line-height: 1.7; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.page-hero-rail .stem { display: block; width: 1px; height: 84px; background: var(--ink); }
.page-hero-copy { align-self: center; padding: 4.5rem 0; }
.page-hero-copy h1 { max-width: 920px; margin: 1.4rem 0 1.8rem; font-family: var(--serif); font-size: clamp(3.4rem,5.9vw,6.25rem); font-weight: 400; letter-spacing: -.024em; line-height: .98; text-wrap: balance; }
.page-hero-copy h1 em { color: var(--green); font-weight: 400; }
.page-hero-copy > p:not(.eyebrow) { max-width: 690px; margin: 0; color: var(--muted); font-family: var(--serif); font-size: clamp(1.12rem,1.7vw,1.4rem); line-height: 1.52; text-wrap: pretty; }
.page-hero-aside { align-self: center; min-height: 420px; padding: 3rem 0 3rem clamp(1.8rem,3vw,3rem); border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; }
.page-hero-aside > img { width: min(65%,190px); margin: 0 auto auto; opacity: .92; }

.fact-list { margin: 2.5rem 0 0; border-top: 1px solid var(--line); }
.fact-list div { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.fact-list dt, .contact-meta dt, .liber-single-data dt { color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.fact-list dd, .contact-meta dd, .liber-single-data dd { margin: 0; font-size: .82rem; }

.page-section { padding: clamp(5.5rem,9vw,8.5rem) 0; }
.bio-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(420px,.9fr); gap: clamp(3rem,7vw,7rem); align-items: center; }
.bio-visual img { width: 100%; border: 1px solid var(--line); background: var(--mist); }
.figure-note { margin: .8rem 0 0; color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.bio-prose { padding-left: clamp(2rem,5vw,5rem); border-left: 1px solid var(--line); }
.bio-lead { margin: 1.2rem 0 1.7rem; font-family: var(--serif); font-size: clamp(1.8rem,2.6vw,2.55rem); line-height: 1.18; text-wrap: balance; }
.longform > p:not(.eyebrow):not(.bio-lead) { margin: 0 0 1.4rem; color: var(--muted); font-family: var(--serif); font-size: 1.08rem; line-height: 1.7; text-wrap: pretty; }

.bio-register { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.register-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.register-grid article { min-height: 320px; padding: clamp(1.6rem,3vw,2.7rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.register-no { color: var(--tan-text); font-size: .72rem; font-weight: 600; }
.register-grid h3 { margin: auto 0 1rem; font-family: var(--serif); font-size: clamp(1.8rem,2.4vw,2.35rem); font-weight: 400; line-height: 1.1; }
.register-grid p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 1rem; line-height: 1.62; }

.dark-interests { background: var(--green); color: #fff; }
.interests-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(300px,.7fr); gap: clamp(3rem,7vw,7rem); align-items: end; }
.interests-grid h2 { max-width: 900px; margin: 1.2rem 0 0; font-family: var(--serif); font-size: clamp(2.7rem,5vw,5rem); font-weight: 400; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.interests-grid > p { margin: 0; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.78); font-family: var(--serif); font-size: 1.08rem; line-height: 1.65; }
.bio-close { background: var(--fog); }
.bio-close-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.bio-close .datum { color: var(--muted); }
.bio-close .datum strong { color: var(--ink); }
.bio-close .about-signature { justify-self: end; margin: 0; padding: 0; border: 0; }

/* Contato ------------------------------------------------------------------------- */
.contact-index { justify-content: center; padding-top: 4rem; padding-bottom: 4rem; }
.contact-index a { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: .2rem .8rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.contact-index a::after { content: "↘"; position: absolute; right: 0; top: 1.1rem; transition: transform .25s var(--ease); }
.contact-index a:hover::after { transform: translate(3px,3px); }
.contact-index span { grid-row: 1 / 3; color: var(--tan-text); font-size: .72rem; font-weight: 600; }
.contact-index strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.contact-index em { color: var(--muted); font-size: .7rem; font-style: normal; letter-spacing: .1em; text-transform: uppercase; }
.contact-channels { padding: clamp(5rem,8vw,8rem) 0; background: var(--fog); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; }
.contact-card { position: relative; min-height: 580px; padding: clamp(2rem,5vw,5rem); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.contact-card + .contact-card { border-left: 0; }
.contact-card-head { display: flex; align-items: center; gap: 1rem; }
.contact-card-head > span { color: var(--tan-text); font-size: .72rem; font-weight: 600; }
.contact-card h2 { max-width: 570px; margin: auto 0 1.4rem; font-family: var(--serif); font-size: clamp(2.5rem,4.5vw,4.6rem); font-weight: 400; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.contact-card > p { max-width: 560px; margin: 0 0 2.2rem; color: var(--muted); font-family: var(--serif); font-size: 1.08rem; line-height: 1.65; }
.contact-address { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: clamp(1rem,1.7vw,1.25rem); overflow-wrap: anywhere; }
.contact-address span { transition: transform .25s var(--ease); }
.contact-address:hover span { transform: translate(3px,-3px); }
.contact-meta { margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-meta div { display: flex; flex-direction: column; gap: .35rem; }
.contact-firm { background: var(--ink); color: #fff; border-color: var(--ink); }
.contact-firm .contact-card-head > span, .contact-firm .eyebrow { color: var(--tan); }
.contact-firm > p { color: var(--w72); }
.contact-firm .contact-address { border-color: var(--line-dark); }
.contact-firm .contact-meta dt { color: var(--w55); }
.contact-firm .contact-meta dd { color: var(--w85); }
.contact-watermark { position: absolute; right: -2rem; top: -7rem; color: rgba(255,255,255,.045); font-family: var(--serif); font-size: 26rem; line-height: 1; pointer-events: none; }
.contact-note { padding: 3.5rem 0; border-top: 1px solid var(--line); background: var(--white); }
.contact-note-grid { display: grid; grid-template-columns: 180px minmax(0,1fr) auto; gap: 3rem; align-items: start; }
.contact-note-grid > p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--muted); font-family: var(--serif); font-size: 1rem; line-height: 1.65; }
.contact-note-grid > span { color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }

/* Arquivo ------------------------------------------------------------------------- */
.archive-stats { justify-content: center; }
.archive-stats div { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.archive-stats span { color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.archive-stats strong { color: var(--tan-text); font-family: var(--serif); font-size: 2.1rem; font-weight: 400; }
.archive-section { padding: clamp(5rem,8vw,8rem) 0; background: var(--white); }
.archive-toolbar { display: grid; grid-template-columns: minmax(230px,.55fr) minmax(0,1.45fr); gap: 3rem; align-items: end; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.archive-toolbar h2 { margin: .65rem 0 0; font-family: var(--serif); font-size: clamp(1.7rem,2.2vw,2.1rem); font-weight: 400; }
.archive-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.archive-filters a { padding: .48rem .72rem; border: 1px solid var(--line); color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.archive-filters a:hover, .archive-filters a[aria-current="page"] { color: #fff; border-color: var(--green); background: var(--green); }
.archive-year { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: clamp(2rem,5vw,5rem); padding-top: 3rem; }
.archive-year-head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; padding-top: .7rem; border-top: 1px solid var(--ink); }
.archive-year-head > span { display: block; color: var(--tan-text); font-family: var(--serif); font-size: 2.1rem; }
.archive-year-head p { margin: .5rem 0 0; color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.archive-list { border-top: 1px solid var(--line); }
.archive-row { position: relative; display: grid; grid-template-columns: 70px 100px minmax(0,1fr) 130px 36px; gap: 1rem; align-items: center; min-height: 100px; padding: 1rem; border-bottom: 1px solid var(--line); transition: background .25s ease; }
.archive-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--green); transition: width .25s var(--ease); }
.archive-row:hover { background: rgba(11,59,51,.03); }
.archive-row:hover::before { width: 3px; }
.archive-row h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.2rem,1.8vw,1.62rem); font-weight: 400; line-height: 1.2; text-wrap: pretty; }
.archive-row:hover .writing-arrow { transform: translate(3px,-3px); }

/* Liber individual ---------------------------------------------------------------- */
.liber-single-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.liber-single-monument { position: absolute; right: -3vw; bottom: -16%; color: rgba(255,255,255,.05); font-family: var(--serif); font-size: clamp(20rem,43vw,42rem); line-height: .75; pointer-events: none; user-select: none; }
.liber-single-grid { position: relative; z-index: 2; min-height: calc(100svh - var(--header-h)); display: grid; grid-template-columns: 130px minmax(0,1fr) minmax(280px,330px); gap: clamp(2rem,5vw,5rem); }
.liber-single-grid .liber-rail { min-height: auto; padding-top: clamp(4rem,9vh,7rem); padding-bottom: 2.5rem; }
.liber-single-title { align-self: center; padding: 5rem 0; }
.liber-single-title h1 { max-width: 860px; margin: 1.3rem 0 1.7rem; font-family: var(--serif); font-size: clamp(3.7rem,7vw,7rem); font-weight: 400; line-height: .96; letter-spacing: -.025em; text-wrap: balance; }
.liber-single-title > p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--w72); font-family: var(--serif); font-size: clamp(1.15rem,1.8vw,1.45rem); line-height: 1.55; }
.liber-single-data { align-self: end; margin-bottom: 4rem; padding-top: 1.3rem; border-top: 1px solid var(--line-dark); }
.liber-single-data dl { margin: 1.4rem 0 0; }
.liber-single-data dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line-dark); }
.liber-single-data dt { color: var(--w55); }
.liber-single-data dd { color: var(--w85); }
.liber-body-wrap { padding: clamp(5.5rem,9vw,9rem) 0; background: var(--fog); }
.liber-body-grid { display: grid; grid-template-columns: 150px minmax(0,680px) 230px; gap: clamp(2.5rem,5vw,5rem); justify-content: center; align-items: start; }
.liber-folio { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; align-items: flex-start; color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.liber-folio strong { color: var(--tan-text); font-family: var(--serif); font-size: 3.3rem; font-weight: 400; }
.liber-folio i { width: 1px; height: 92px; margin: 1.1rem 0; background: var(--ink); }
.liber-copy > p { margin: 0 0 1.6rem; font-family: var(--serif); font-size: 1.25rem; line-height: 1.78; text-align: justify; hyphens: auto; hyphenate-limit-chars: 6 3 3; text-wrap: pretty; }
.liber-copy h2 { margin: 4rem 0 1.7rem; font-family: var(--serif); font-size: clamp(1.9rem,2.7vw,2.55rem); font-weight: 400; line-height: 1.08; scroll-margin-top: calc(var(--header-h) + 28px); }
.liber-copy .hanchor { display: inline-block; }
.liber-copy h2:hover .hanchor, .liber-copy .hanchor:focus-visible { opacity: 1; }
.liber-side-note { position: sticky; top: calc(var(--header-h) + 24px); padding-top: .9rem; border-top: 1px solid var(--line); }
.liber-side-note p:not(.eyebrow) { margin: .65rem 0 0; color: var(--muted); font-family: var(--serif); font-size: .92rem; line-height: 1.55; }
.liber-signoff { padding: 4rem 0; border-top: 1px solid var(--line); background: var(--white); }
.liber-signoff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.liber-signoff .datum { color: var(--muted); }
.liber-signoff .datum strong { color: var(--ink); }


/* Responsivo ------------------------------------------------------------------------ */
@media (max-width: 1120px) {
  .header-inner { grid-template-columns: 210px 1fr auto; }
  .hero-grid { grid-template-columns: 90px minmax(0,1fr) 300px; column-gap: 2.5rem; }
  .hero-mark { min-height: 430px; }
  .section-heading { grid-template-columns: 150px 1fr; }
  .section-heading > .text-link { grid-column: 2; justify-self: start; }
  .feature-layout, .about-layout { grid-template-columns: 1fr 1fr; }
  .liber-grid { grid-template-columns: 90px 1fr 280px; gap: 2.5rem; }
  .article-mast-grid { grid-template-columns: 90px 1fr; }
  .article-data { grid-column: 2; display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; border-top: 0; }
  .article-data div { border-bottom: 0; border-top: 1px solid var(--line); }
  .article-layout { grid-template-columns: 170px minmax(0,680px); }
  .margin-column { display: none !important; }
  .page-hero-grid { grid-template-columns: 90px minmax(0,1fr) 280px; column-gap: 2.5rem; }
  .bio-grid { grid-template-columns: 1fr 1fr; }
  .archive-row { grid-template-columns: 58px 92px minmax(0,1fr) 110px 30px; }
  .liber-single-grid { grid-template-columns: 90px minmax(0,1fr) 280px; gap: 2.5rem; }
  .liber-body-grid { grid-template-columns: 150px minmax(0,680px); }
  .liber-side-note { grid-column: 2; position: static; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  :root { --header-h: 72px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .brand img { width: 150px; }
  .header-context { display: none; }
  .site-drawer { width: 100%; }
  .drawer-content { grid-template-columns: 1fr; gap: 3rem; padding: 2.5rem 0; }
  .drawer-reflection { padding: 2rem 0 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .drawer-quote { max-width: 36rem; }
  .drawer-foot { grid-template-columns: 1fr 1fr; }
  .drawer-coordinates { grid-column: 1 / -1; flex-direction: row !important; justify-content: space-between; text-align: left; }
  .home-hero { min-height: auto; }
  .hero-grid { grid-template-columns: 56px minmax(0,1fr); grid-template-rows: auto auto auto; column-gap: 1.4rem; }
  .hero-rail { grid-row: 1 / 4; padding-top: 4rem; }
  .hero-main { padding: 3.6rem 0 2rem; }
  .hero-main h1 { font-size: clamp(3rem,10.5vw,5.2rem); }
  .hero-mark { grid-column: 2; min-height: 300px; border-left: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .hero-mark > img { width: 180px; }
  .hero-mark-data { left: 0; }
  .hero-bottomline { grid-column: 2; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem 0; }
  .hero-bottomline span:first-child { grid-column: 1 / -1; }
  .section { padding: 5rem 0; }
  .section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .section-heading > .text-link { grid-column: auto; }
  .feature-layout, .about-layout { grid-template-columns: 1fr; }
  .feature-visual { aspect-ratio: 4 / 3; }
  .feature-copy { padding: 2.2rem 1.4rem 2.6rem; }
  .writing-item { grid-template-columns: 48px 1fr 34px; gap: .7rem 1rem; min-height: 0; padding: 1.15rem .6rem; }
  .writing-date { display: none; }
  .writing-item h3 { font-size: 1.35rem; }
  .writing-tag { grid-column: 2; }
  .writing-arrow { grid-column: 3; grid-row: 1 / 3; }
  .liber-grid { grid-template-columns: 56px 1fr; }
  .liber-rail { min-height: 380px; }
  .liber-main h2 { font-size: clamp(2.7rem,9.5vw,4.6rem); }
  .liber-monument { font-size: clamp(13rem,42vw,18rem); top: auto; bottom: -6%; transform: none; }
  .liber-data { grid-column: 2; }
  .about-copy { padding-left: 0; border-left: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 2.2rem; }
  .credo { justify-self: start; text-align: left; }
  .credo cite { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { align-items: flex-start !important; text-align: left; }
  .colophon { flex-direction: column; gap: .5rem; }
  .article-mast-grid { grid-template-columns: 56px 1fr; gap: 1.4rem; }
  .article-title-block h1 { font-size: clamp(2.9rem,9.5vw,4.8rem); }
  .article-data { grid-template-columns: 1fr 1fr; }
  .article-feature figcaption { grid-template-columns: 56px 1fr; }
  .article-feature figcaption span:last-child { display: none; }
  .article-layout { display: block; }
  .article-toc { position: static; margin-bottom: 3.4rem; }
  .article-toc ol { display: grid; grid-template-columns: repeat(3,1fr); }
  .article-toc li { border-right: 1px solid var(--line); }
  .article-toc li:last-child { border-right: 0; }
  .article-toc a { padding: .8rem .8rem .8rem 0; }
  .article-copy > p { text-align: left; hyphens: none; }
  .article-end-grid { grid-template-columns: 1fr; }
  .article-author, .article-disclaimer { justify-self: start; text-align: left; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav a { min-height: 170px; border-right: 0; border-bottom: 1px solid var(--line); }
  .page-hero-grid { grid-template-columns: 56px minmax(0,1fr); min-height: auto; column-gap: 1.4rem; }
  .page-hero-rail { grid-row: 1 / 3; padding-top: 4rem; }
  .page-hero-copy { padding: 3.8rem 0 2.5rem; }
  .page-hero-copy h1 { font-size: clamp(3rem,9.5vw,4.9rem); }
  .page-hero-aside { grid-column: 2; min-height: 0; padding: 2.5rem 0 3.5rem; border-left: 0; border-top: 1px solid var(--line); }
  .page-hero-aside > img { width: 150px; margin: 0 0 2rem; }
  .bio-grid, .interests-grid, .contact-grid, .bio-close-grid { grid-template-columns: 1fr; }
  .bio-prose { padding: 2.5rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .register-grid { grid-template-columns: 1fr; }
  .register-grid article { min-height: 260px; }
  .bio-close .about-signature { justify-self: start; }
  .contact-card { min-height: 520px; }
  .contact-card + .contact-card { border-left: 1px solid var(--line); border-top: 0; }
  .contact-note-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .archive-toolbar { grid-template-columns: 1fr; }
  .archive-filters { justify-content: flex-start; }
  .archive-year { grid-template-columns: 1fr; }
  .archive-year-head { position: static; display: flex; justify-content: space-between; align-items: baseline; }
  .archive-row { grid-template-columns: 48px minmax(0,1fr) 32px; gap: .75rem 1rem; min-height: 0; padding: 1.15rem .6rem; }
  .archive-row .writing-date { display: none; }
  .archive-row h3 { font-size: 1.35rem; }
  .archive-row .writing-tag { grid-column: 2; }
  .archive-row .writing-arrow { grid-column: 3; grid-row: 1 / 3; }
  .liber-single-grid { min-height: auto; grid-template-columns: 56px minmax(0,1fr); gap: 1.4rem; }
  .liber-single-grid .liber-rail { grid-row: 1 / 3; min-height: 560px; }
  .liber-single-title { padding: 4.5rem 0 2.5rem; }
  .liber-single-title h1 { font-size: clamp(3.3rem,10vw,5rem); }
  .liber-single-data { grid-column: 2; margin: 0 0 4rem; }
  .liber-single-monument { font-size: clamp(18rem,60vw,28rem); bottom: -5%; }
  .liber-body-grid { display: block; }
  .liber-folio { position: static; flex-direction: row; align-items: baseline; gap: .7rem; margin-bottom: 3rem; }
  .liber-folio i { width: 72px; height: 1px; margin: 0; }
  .liber-copy > p { text-align: left; hyphens: none; }
  .liber-side-note { margin-top: 3rem; position: static; }
  .liber-signoff-grid { grid-template-columns: 1fr; }
  .liber-signoff .article-author { justify-self: start; }
}

@media (max-width: 560px) {
  :root { --gutter: 1.1rem; }
  .brand img { width: 140px; }
  .menu-button > span:first-child { display: none; }
  .drawer-inner { padding: 1.1rem; }
  .drawer-brand img { width: 170px; }
  .drawer-nav a { grid-template-columns: 30px 1fr; }
  .drawer-nav em { display: none; }
  .drawer-nav strong { font-size: 2.2rem; }
  .drawer-quote { font-size: 1.55rem; }
  .drawer-cite { margin-bottom: 2rem; }
  .drawer-foot { grid-template-columns: 1fr; gap: 1.2rem; }
  .drawer-coordinates { grid-column: auto; flex-direction: column !important; gap: .2rem !important; }
  .hero-grid { grid-template-columns: 38px minmax(0,1fr); column-gap: 1rem; }
  .hero-rail { padding-right: .7rem; }
  .hero-main h1 { font-size: clamp(2.7rem,12.5vw,4rem); }
  .precepts { column-gap: 1rem; font-size: .7rem; }
  .hero-bottomline { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
  .section-heading h2 { font-size: 1.5rem; }
  .feature-copy h3 { font-size: 2.3rem; }
  .writing-item { grid-template-columns: 36px 1fr 28px; }
  .writing-item h3 { font-size: 1.22rem; }
  .liber-grid { grid-template-columns: 38px 1fr; gap: 1rem; }
  .liber-rail { padding-right: .7rem; }
  .liber-main h2 { font-size: 2.8rem; }
  .about-lead { font-size: 1.75rem; }
  .footer-logo { width: 210px; }
  .credo { font-size: 1.35rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-mast-grid { grid-template-columns: 38px 1fr; gap: 1rem; }
  .article-side-label { padding-right: .55rem; }
  .article-side-label strong { font-size: 1.55rem; }
  .article-title-block h1 { font-size: 2.75rem; }
  .article-deck { font-size: 1.12rem; }
  .article-feature-frame { aspect-ratio: 4 / 3; }
  .article-toc ol { grid-template-columns: 1fr; }
  .article-toc li { border-right: 0; }
  .article-copy h2 { grid-template-columns: 26px 1fr; font-size: 1.8rem; }
  .legal-block { grid-template-columns: 1fr; padding: 1.3rem; }
  .block-mark { place-items: start; }
  .destaque { font-size: 1.4rem; }
  .article-steps li { grid-template-columns: 36px 1fr; }
  .juris-block { padding: 1.4rem; }
  .juris-block blockquote { font-size: 1.18rem; }
  .page-hero-grid { grid-template-columns: 38px minmax(0,1fr); column-gap: 1rem; }
  .page-hero-rail { padding-right: .7rem; }
  .page-hero-copy h1 { font-size: clamp(2.75rem,12vw,4rem); }
  .page-hero-copy > p:not(.eyebrow) { font-size: 1.08rem; }
  .register-grid article { min-height: 230px; }
  .interests-grid h2 { font-size: 2.65rem; }
  .contact-card { min-height: 500px; padding: 1.6rem; }
  .contact-card h2 { font-size: 2.55rem; }
  .contact-meta { grid-template-columns: 1fr; }
  .contact-watermark { font-size: 18rem; }
  .archive-row { grid-template-columns: 38px minmax(0,1fr) 26px; }
  .archive-row h3 { font-size: 1.22rem; }
  .liber-single-grid { grid-template-columns: 38px minmax(0,1fr); gap: 1rem; }
  .liber-single-grid .liber-rail { padding-right: .7rem; }
  .liber-single-title h1 { font-size: 3.25rem; }
  .liber-copy > p { font-size: 1.12rem; line-height: 1.7; }
  .liber-copy h2 { font-size: 1.8rem; }
}

/* Impressão: o artigo como documento ------------------------------------------------ */
@media print {
  @page { margin: 22mm 20mm; }
  html { scroll-behavior: auto; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-drawer, .drawer-overlay, .reading-progress,
  .article-toc, .hanchor, .article-nav, .site-footer, .skip-link,
  .precepts, .page-hero-rail, .page-hero-aside, .archive-filters,
  .liber-folio, .liber-side-note { display: none !important; }
  .article-masthead, .article-end { border-color: #000; padding: 0 0 8mm; }
  .article-mast-grid, .article-layout, .article-end-grid { display: block; }
  .article-side-label { flex-direction: row; align-items: baseline; gap: .6rem; border: 0; padding: 0 0 4mm; }
  .article-side-label .stem { display: none; }
  .article-title-block h1 { font-size: 22pt; line-height: 1.05; margin: 2mm 0 4mm; }
  .article-deck { font-size: 12pt; }
  .article-data { display: flex; gap: 8mm; border: 0; margin-top: 4mm; }
  .article-data div { border: 0; padding: 0; }
  .article-feature { margin: 6mm 0; break-inside: avoid; }
  .article-copy > p { font-size: 11pt; line-height: 1.55; margin-bottom: 3.2mm; orphans: 3; widows: 3; }
  .article-copy h2 { font-size: 15pt; margin: 8mm 0 3mm; break-after: avoid; }
  .legal-block, .juris-block, .destaque, .mnote, .article-steps li { break-inside: avoid; }
  .juris-block { background: none; color: #000; border-top: .5pt solid #000; border-bottom: .5pt solid #000; padding: 4mm 0; }
  .juris-block .block-label, .juris-block cite { color: #000; }
  .mnote { border-top: .5pt solid #000; }
  .margin-column { display: block !important; position: static; min-height: 0 !important; }
  .margin-column .mnote { position: static !important; top: auto !important; margin: 4mm 0; }
  .mnote-label, .article-copy h2 > span, .writing-no { color: #000; }
  .end-mark i { background: #000; }
  .article-end { border-top: .5pt solid #000; padding-top: 6mm; }
  .page-hero, .liber-single-hero { background: #fff !important; color: #000 !important; border-bottom: .5pt solid #000; }
  .page-hero-grid, .bio-grid, .register-grid, .interests-grid, .contact-grid,
  .contact-note-grid, .archive-toolbar, .archive-year, .liber-single-grid,
  .liber-body-grid, .liber-signoff-grid { display: block; min-height: 0; }
  .page-hero-copy, .liber-single-title { padding: 0 0 8mm; }
  .page-hero-copy h1, .liber-single-title h1 { color: #000 !important; font-size: 22pt; margin: 0 0 4mm; }
  .page-hero-copy > p:not(.eyebrow), .liber-single-title > p:not(.eyebrow),
  .interests-grid > p, .contact-card > p { color: #000 !important; }
  .page-section, .contact-channels, .archive-section, .liber-body-wrap { padding: 8mm 0; background: #fff !important; }
  .bio-visual, .dark-interests, .contact-watermark, .liber-single-monument { display: none !important; }
  .bio-prose { border: 0; padding: 0; }
  .register-grid article, .contact-card { min-height: 0; border: .5pt solid #000; break-inside: avoid; margin-bottom: 5mm; color: #000 !important; background: #fff !important; }
  .archive-row { min-height: 0; break-inside: avoid; }
  .archive-year-head { position: static; }
  .liber-copy > p { font-size: 11pt; line-height: 1.55; text-align: justify; }
  .liber-signoff { border-top: .5pt solid #000; padding: 6mm 0; }
}

/* Movimento reduzido ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* WordPress: integração e componentes adicionais ------------------------------ */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  z-index: 3000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: .75rem 1rem;
  background: var(--ink);
  color: #fff;
}
.empty-state {
  margin: 2.5rem 0 0;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.05rem;
}

/* Conteúdo produzido no Gutenberg */
.article-copy a:not(.hanchor),
.liber-copy a:not(.hanchor),
.bio-prose a,
.generic-content a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-copy h3,
.article-copy h4,
.liber-copy h3,
.liber-copy h4,
.generic-content h2,
.generic-content h3,
.generic-content h4 {
  margin: 2.8rem 0 1.2rem;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}
.article-copy h3, .liber-copy h3, .generic-content h2 { font-size: 1.65rem; }
.article-copy h4, .liber-copy h4, .generic-content h3 { font-size: 1.3rem; }
.article-copy ul:not(.article-steps),
.article-copy ol:not(.article-steps),
.liber-copy ul,
.liber-copy ol,
.generic-content ul,
.generic-content ol {
  margin: 0 0 1.7rem;
  padding-left: 1.35rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.7;
}
.article-copy li + li,
.liber-copy li + li,
.generic-content li + li { margin-top: .55rem; }
.article-copy blockquote:not(.juris-block blockquote),
.liber-copy blockquote,
.generic-content blockquote {
  margin: 2.6rem 0;
  padding-left: 1.7rem;
  border-left: 1px solid var(--tan-text);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.5;
}
.article-copy .wp-block-image,
.liber-copy .wp-block-image,
.generic-content .wp-block-image { margin: 2.8rem 0; }
.article-copy .wp-block-image figcaption,
.liber-copy .wp-block-image figcaption,
.generic-content .wp-block-image figcaption {
  margin-top: .75rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-copy table,
.liber-copy table,
.generic-content table {
  width: 100%;
  margin: 2.5rem 0;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: .82rem;
}
.article-copy th, .article-copy td,
.liber-copy th, .liber-copy td,
.generic-content th, .generic-content td {
  padding: .8rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.article-copy code,
.liber-copy code,
.generic-content code { font-size: .82em; }
.article-copy pre,
.liber-copy pre,
.generic-content pre {
  overflow-x: auto;
  padding: 1.3rem;
  background: var(--mist);
  font-size: .82rem;
}
.alignwide { width: min(100%, 1080px); max-width: 1080px; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }

/* Variações nativas do editor */
.is-style-mf-destaque { margin: 3rem 0 !important; padding-left: 1.8rem; border-left: 1px solid var(--tan); font-family: var(--serif); font-size: clamp(1.45rem,2.2vw,2rem) !important; line-height: 1.34 !important; text-align: left !important; hyphens: none !important; }
.is-style-mf-steps { counter-reset: mf-step; margin: 2.2rem 0 2.8rem !important; padding: 0 !important; list-style: none !important; border-top: 1px solid var(--line); }
.is-style-mf-steps > li { counter-increment: mf-step; display: grid; grid-template-columns: 52px 1fr; gap: 1.1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.is-style-mf-steps > li::before { content: counter(mf-step, decimal-leading-zero); color: var(--tan-text); font-family: var(--sans); font-size: .72rem; font-weight: 600; }
.is-style-mf-legal { margin: 2.8rem 0; padding: 1.8rem; border-top: 1px solid var(--green); border-bottom: 1px solid var(--green); background: rgba(11,59,51,.035); }
.is-style-mf-juris { margin: 3rem 0; padding: 2.1rem 2.2rem; background: var(--ink); color: #fff; }
.is-style-mf-juris a { color: var(--tan) !important; }

.generic-content { max-width: 680px; margin-inline: auto; }
.generic-content .article-copy > p,
.generic-content > .article-copy > p {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.72;
}

/* Arquivo do Liber */
.liber-archive-list { border-top: 1px solid var(--line); }
.liber-archive-row {
  display: grid;
  grid-template-columns: 120px minmax(0,1fr) 42px;
  gap: clamp(1.2rem,3vw,3rem);
  align-items: center;
  min-height: 220px;
  padding: 2.3rem 1rem;
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}
.liber-archive-row:hover { background: rgba(11,59,51,.03); }
.liber-archive-no { color: var(--tan-text); font-family: var(--serif); font-size: clamp(3.2rem,6vw,6rem); line-height: 1; }
.liber-archive-row h3 { margin: .65rem 0 .8rem; font-family: var(--serif); font-size: clamp(2rem,3.8vw,3.7rem); font-weight: 400; line-height: 1.02; text-wrap: balance; }
.liber-archive-row p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); font-family: var(--serif); font-size: 1.02rem; line-height: 1.55; }
.liber-archive-row:hover .writing-arrow { transform: translate(3px,-3px); }

/* Busca e erro 404 */
.search-form { display: flex; max-width: 680px; margin-top: 2rem; border-bottom: 1px solid var(--ink); }
.search-form label { flex: 1; }
.search-field { width: 100%; border: 0; background: transparent; padding: .8rem 0; color: var(--ink); font: 1rem var(--sans); }
.search-field:focus { outline: 0; }
.search-submit { border: 0; background: transparent; padding: .8rem 0 .8rem 1.5rem; cursor: pointer; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.not-found { min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; padding: 4rem 0; background: var(--white); }
.not-found-grid { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); gap: clamp(3rem,8vw,8rem); align-items: center; }
.not-found-number { color: var(--mist); font-family: var(--serif); font-size: clamp(10rem,24vw,24rem); line-height: .75; }
.not-found h1 { margin: 1.2rem 0 1.5rem; font-family: var(--serif); font-size: clamp(3rem,6vw,6rem); font-weight: 400; line-height: .98; text-wrap: balance; }
.not-found p:not(.eyebrow) { max-width: 620px; color: var(--muted); font-family: var(--serif); font-size: 1.15rem; }
.not-found-links { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2rem; }

.article-nav a:only-child { grid-column: 1 / -1; border-right: 0; }
.article-nav a.is-next { text-align: right; }
.article-nav a.is-next strong { align-self: flex-end; }
.article-author > img { aspect-ratio: 1; object-fit: cover; }
.about-signature > img { aspect-ratio: 1; object-fit: cover; }

@media (max-width: 820px) {
  .alignwide, .alignfull { width: 100%; max-width: 100%; margin-left: 0; transform: none; }
  .liber-archive-row { grid-template-columns: 72px minmax(0,1fr) 30px; min-height: 170px; padding: 1.8rem .6rem; }
  .not-found-grid { grid-template-columns: 1fr; }
  .not-found-number { font-size: 9rem; }
}
@media (max-width: 560px) {
  .liber-archive-row { grid-template-columns: 48px minmax(0,1fr) 26px; gap: 1rem; }
  .liber-archive-no { font-size: 2.6rem; }
  .liber-archive-row h3 { font-size: 1.7rem; }
  .search-form { flex-direction: column; }
  .search-submit { align-self: flex-start; padding-left: 0; }
}

@media print {
  .search-form, .not-found-links { display: none !important; }
  .liber-archive-row { display: block; min-height: 0; break-inside: avoid; }
}


/* ==========================================================================
   v1.1 – homepage em capítulos e rodapé literário
   ========================================================================== */

::selection { background: var(--ink); color: #fff; }
.site-drawer ::selection,
.liber ::selection,
.artistic-footer ::selection,
.juris-block ::selection { background: var(--tan); color: var(--ink); }

html.home-scroll-root {
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--header-h);
  overscroll-behavior-y: none;
}
body.home .home-snap-section {
  min-height: calc(100svh - var(--header-h));
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
body.home .home-snap-section[data-home-section] { scroll-margin-top: var(--header-h); }
body.home .section.home-snap-section { padding: 0; display: grid; }
body.home .home-section-body {
  min-height: 0;
  display: grid;
  align-items: center;
  padding: clamp(2rem,4.4vh,3.6rem) 0;
}

/* Hero integralmente visível abaixo do cabeçalho */
body.home .home-hero {
  height: calc(100svh - var(--header-h));
  min-height: 0;
  overflow: hidden;
}
body.home .hero-grid { height: 100%; min-height: 0; grid-template-rows: minmax(0,1fr) auto; }
body.home .hero-rail { padding-top: clamp(2.2rem,5.4vh,4.2rem); padding-bottom: 1.45rem; }
body.home .hero-main { padding: clamp(1.6rem,4.2vh,3.4rem) 0 clamp(1.5rem,3vh,2.4rem); }
body.home .hero-main h1 {
  max-width: 770px;
  margin: clamp(.9rem,2vh,1.4rem) 0 clamp(1.1rem,2.6vh,1.8rem);
  font-size: clamp(3.15rem,5.65vw,6rem);
}
body.home .hero-intro { margin-bottom: clamp(1.2rem,2.6vh,1.9rem); }
body.home .hero-mark {
  min-height: 0;
  height: 100%;
  padding: clamp(2rem,4vh,3.2rem) 1.7rem 5.3rem;
  align-content: center;
}
body.home .hero-mark > img {
  width: min(57%, 220px);
  max-height: 52%;
  margin-bottom: 1.5rem;
  object-fit: contain;
}
body.home .hero-mark-data { right: 0; bottom: 1.3rem; left: 1.7rem; }
body.home .hero-bottomline { min-height: 52px; }

/* Seção de destaque: os preceitos pertencem à mesma página visual */
body.home .featured { grid-template-rows: auto minmax(0,1fr); }
body.home .featured .precepts { align-self: start; }
body.home .featured .home-section-body { height: 100%; }
body.home .featured .section-heading { margin-bottom: clamp(1.25rem,2.5vh,2rem); }
body.home .feature-layout { height: min(56vh, 500px); min-height: 360px; }
body.home .feature-copy { padding: clamp(2rem,4vw,4rem); }
body.home .feature-copy h3 { font-size: clamp(2.25rem,3.75vw,3.75rem); }
body.home .feature-meta { padding-top: clamp(1.4rem,3vh,2.3rem); }

/* Escrita recente paginada dentro de uma página de 100svh */
body.home .writing .home-section-body { height: 100%; }
.writing-shell { height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr) auto; align-content: center; }
.writing-pages { min-height: 0; }
.writing-page[hidden] { display: none !important; }
.writing-page.is-active { animation: mf-page-reveal .42s var(--ease) both; }
@keyframes mf-page-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
body.home .writing .section-heading { margin-bottom: clamp(1.1rem,2.2vh,1.8rem); }
body.home .writing-item { min-height: clamp(74px,9.1vh,94px); }
.writing-pagination {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto 42px;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.writing-page-arrow,
.writing-page-numbers button {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.writing-page-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-size: 1rem;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.writing-page-arrow:hover:not(:disabled) { color: #fff; background: var(--ink); border-color: var(--ink); }
.writing-page-arrow:disabled { opacity: .28; cursor: default; }
.writing-page-numbers { display: flex; justify-content: center; gap: .35rem; }
.writing-page-numbers button {
  position: relative;
  min-width: 34px;
  min-height: 34px;
  color: var(--muted);
  font-size: .7rem;
}
.writing-page-numbers button::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 4px;
  left: 7px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform .22s ease;
}
.writing-page-numbers button[aria-current="page"] { color: var(--ink); }
.writing-page-numbers button[aria-current="page"]::after { transform: scaleX(1); }
.writing-page-status { margin: 0; color: var(--muted); font-size: .7rem; letter-spacing: .12em; }
.writing-item::before { background: var(--ink); }
.writing-item:hover { background: rgba(4,10,7,.028); }

/* Liber e Sobre como capítulos integrais */
body.home .liber { padding: 0; display: grid; align-items: center; }
body.home .liber-grid { min-height: min(620px, calc(100svh - var(--header-h))); align-items: center; }
body.home .liber-rail { min-height: min(400px, 52vh); }
body.home .about .home-section-body { height: 100%; }
body.home .about .section-heading { margin-bottom: clamp(1.35rem,2.8vh,2.3rem); }
body.home .about-layout { max-height: 66vh; }
body.home .about-image img { max-height: 50vh; object-fit: cover; }
body.home .about-lead { font-size: clamp(1.55rem,2.2vw,2.15rem); }
.about-signature img,
.about-signature > img { width: 28px; height: auto; aspect-ratio: auto; object-fit: contain; }

/* Rodapé literário com livro e folhas */
.site-footer.artistic-footer {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  display: grid;
  padding: 0;
  background: #020604;
  color: #fff;
}
.footer-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("../img/footer-book.svg") center bottom / cover no-repeat;
  opacity: .88;
}
.site-footer.artistic-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2,6,4,.94) 0%, rgba(2,6,4,.68) 42%, rgba(2,6,4,.35) 68%, rgba(2,6,4,.74) 100%),
    linear-gradient(180deg, rgba(2,6,4,.2) 0%, rgba(2,6,4,.16) 52%, rgba(2,6,4,.86) 100%);
}
.footer-stage {
  min-height: inherit;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto auto;
  padding-top: clamp(1.7rem,4vh,3.5rem);
  padding-bottom: 1.25rem;
}
.footer-brandline { display: none; }
.footer-logo { display: none; }
.footer-folio { display: none; }
.footer-literary {
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr);
  gap: clamp(3rem,8vw,8rem);
  align-items: start;
  padding: clamp(2.5rem,7vh,5.8rem) 0 2rem;
}
.footer-tempus blockquote {
  max-width: 950px;
  margin: .9rem 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(3rem,5.7vw,6.5rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: .95;
  text-wrap: balance;
}
.footer-tempus cite {
  color: var(--tan);
  font-style: normal;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.artistic-footer .credo {
  align-self: end;
  justify-self: end;
  max-width: 410px;
  margin: 0;
  color: var(--w85);
  font-size: clamp(1.25rem,1.9vw,1.8rem);
  line-height: 1.35;
  text-align: left;
}
.artistic-footer .credo cite { color: var(--tan); }
.footer-information {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(240px,.36fr);
  gap: 2.5rem;
  align-items: end;
  padding: 1.35rem 1.5rem;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(4,10,7,.62);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}
.footer-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2.5rem; }
.footer-links > div { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
.footer-links a { color: var(--w72); font-size: .82rem; transition: color .2s ease; }
.footer-links a:hover { color: #fff; }
.artistic-footer .footer-legal {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  align-items: flex-end !important;
  justify-self: end;
  text-align: right;
  color: var(--w62);
}
.artistic-footer .colophon {
  padding-top: 1rem;
  border-top: 0;
}

@media (max-width: 1120px) {
  body.home .hero-mark > img { width: min(56%, 190px); }
  body.home .feature-layout { height: min(54vh, 470px); }
  .footer-literary { grid-template-columns: minmax(0,1.25fr) minmax(250px,.75fr); gap: 3rem; }
  .footer-tempus blockquote { font-size: clamp(3rem,6.5vw,5.6rem); }
}

@media (max-width: 820px) {
  html.home-scroll-root { scroll-padding-top: var(--header-h); }
  body.home .home-hero { height: auto; min-height: calc(100svh - var(--header-h)); overflow: visible; }
  body.home .hero-grid { height: auto; min-height: calc(100svh - var(--header-h)); }
  body.home .hero-main { padding-top: clamp(2.4rem,6vh,4rem); }
  body.home .hero-mark { height: auto; min-height: 230px; padding-bottom: 4.8rem; }
  body.home .hero-mark > img { width: 145px; max-height: 150px; margin-bottom: .6rem; }
  body.home .featured .home-section-body,
  body.home .writing .home-section-body,
  body.home .about .home-section-body { height: auto; }
  body.home .feature-layout { height: auto; min-height: 0; }
  body.home .feature-visual { min-height: clamp(190px,30vh,290px); }
  body.home .feature-copy { min-height: 320px; }
  body.home .writing-item { min-height: 78px; }
  body.home .liber-grid { min-height: calc(100svh - var(--header-h)); }
  body.home .about-layout { max-height: none; }
  body.home .about-image img { max-height: 35vh; }
  .footer-literary { grid-template-columns: 1fr; gap: 2.4rem; padding-top: 2.4rem; }
  .artistic-footer .credo { justify-self: start; max-width: 540px; }
  .footer-information { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(3,1fr); }
  .artistic-footer .footer-legal { justify-self: start; align-items: flex-start !important; text-align: left; }
  .footer-art { background-position: 56% bottom; background-size: auto 100%; }
}

@media (max-width: 560px) {
  body.home .hero-main h1 { font-size: clamp(2.55rem,11.8vw,3.75rem); }
  body.home .hero-mark { min-height: 205px; }
  body.home .hero-mark > img { width: 118px; max-height: 125px; }
  body.home .hero-bottomline { min-height: 62px; }
  body.home .precepts { padding-block: .8rem; }
  body.home .home-section-body { padding: 1.5rem 0; }
  body.home .feature-copy { min-height: 280px; padding: 1.6rem; }
  body.home .feature-copy h3 { font-size: 2.05rem; }
  body.home .writing-item { grid-template-columns: 34px minmax(0,1fr) 24px; min-height: 74px; padding-inline: .55rem; }
  body.home .writing-item .writing-date,
  body.home .writing-item .writing-tag { display: none; }
  .writing-pagination { grid-template-columns: 38px minmax(0,1fr) auto 38px; gap: .55rem; }
  .writing-page-arrow { width: 38px; height: 38px; }
  .writing-page-numbers { gap: .1rem; }
  body.home .liber-grid { min-height: calc(100svh - var(--header-h)); }
  body.home .about-image img { max-height: 27vh; }
  body.home .about-lead { font-size: 1.55rem; }
  .site-footer.artistic-footer { min-height: calc(100svh - var(--header-h)); }
  .footer-stage { grid-template-rows: auto auto 1fr auto; padding-top: 1.2rem; }
  .footer-brandline { align-items: flex-start; }
  .footer-folio { max-width: 120px; text-align: right; }
  .footer-literary { padding: 1.8rem 0 1.2rem; gap: 1.4rem; }
  .footer-tempus blockquote { font-size: clamp(2.25rem,10vw,3.35rem); line-height: 1; }
  .artistic-footer .credo { font-size: 1.12rem; }
  .footer-information { align-self: end; padding: 1rem; gap: 1.25rem; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .footer-links > div:last-child { grid-column: 1 / -1; }
  .artistic-footer .colophon { flex-direction: column; gap: .45rem; font-size: .7rem; }
  .footer-art { opacity: .62; background-position: center bottom; background-size: auto 78%; }
}

@media (prefers-reduced-motion: reduce) {
  html.home-scroll-root { scroll-snap-type: y proximity; }
  .writing-page.is-active { animation: none; }
}

/* Ajustes de encaixe para capítulos estreitos */
@media (max-width: 820px) {
  body.home .feature-visual {
    aspect-ratio: auto;
    height: clamp(190px, 28vh, 260px);
    min-height: 0;
  }
  body.home .feature-copy { min-height: 0; padding-block: 1.7rem; }
  body.home .feature-copy > p:not(.eyebrow) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  body.home .liber-rail { min-height: 300px; }
}

@media (max-width: 560px) {
  body.home .feature-visual { height: 180px; }
  body.home .feature-copy { min-height: 0; padding: 1.15rem 1.35rem 1.3rem; }
  body.home .feature-copy h3 { margin: .65rem 0 .8rem; font-size: 1.82rem; }
  body.home .feature-copy > p:not(.eyebrow) { font-size: 1rem; line-height: 1.45; -webkit-line-clamp: 2; }
  body.home .feature-meta { padding-top: .85rem; }
  body.home .feature-meta > span:nth-child(2) { display: none; }
  body.home .liber-rail { min-height: 285px; }
  body.home .about-image img { max-height: 23vh; }
  .footer-links { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; }
  .footer-links > div:last-child { grid-column: auto; }
  .footer-links a { font-size: .72rem; }
  .footer-information { gap: .85rem; }
}

@media (max-width: 820px) {
  body.home .liber {
    height: calc(100svh - var(--header-h));
    min-height: 0;
  }
  body.home .liber-grid {
    position: relative;
    height: 100%;
    min-height: 0;
    grid-template-rows: minmax(0,1fr);
    padding-top: 1.7rem;
    padding-bottom: 1.2rem;
  }
  body.home .liber-rail { grid-row: 1; height: 100%; min-height: 0; }
  body.home .liber-main { align-self: center; padding-bottom: 6rem; }
  body.home .liber-data {
    position: absolute;
    right: 0;
    bottom: 1.2rem;
    left: calc(56px + 1.4rem);
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  body.home .liber-main { padding-bottom: 5.8rem; }
  body.home .liber-main h2 { margin-block: .9rem 1.2rem; font-size: 2.45rem; }
  body.home .liber-main > p:not(.eyebrow) { font-size: 1rem; line-height: 1.5; }
  body.home .liber-data { left: calc(38px + 1rem); }
  body.home .liber-length { display: none; }
}


/* ==========================================================================
   v1.2 – refinamentos globais de header, drawer, footer e snap
   ========================================================================== */
.header-context span,
.header-context a { white-space: nowrap; }

.site-footer.artistic-footer { background: radial-gradient(circle at 50% 72%, rgba(188,170,154,.08), transparent 28%), #020604; }
.footer-art { background: url("../img/footer-book.svg") center bottom / cover no-repeat; opacity: .54; }
.site-footer.artistic-footer::before {
  background:
    linear-gradient(180deg, rgba(2,6,4,.78) 0%, rgba(2,6,4,.56) 24%, rgba(2,6,4,.48) 55%, rgba(2,6,4,.84) 100%),
    radial-gradient(circle at 50% 78%, rgba(188,170,154,.14), transparent 24%);
}
.footer-literary.footer-literary-solo {
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  padding: clamp(2.2rem,7vh,5rem) 0 2.2rem;
}
.footer-tempus.footer-tempus-solo {
  max-width: 940px;
}
.footer-tempus.footer-tempus-solo blockquote {
  margin: 0 0 1.1rem;
  font-size: clamp(3rem, 6.2vw, 6.8rem);
  line-height: .96;
  letter-spacing: -.03em;
}
.footer-tempus.footer-tempus-solo blockquote em { font-style: italic; }
.footer-tempus.footer-tempus-solo cite { color: var(--w72); }
.footer-information { background: rgba(4,10,7,.42); }
.artistic-footer .colophon { padding-top: .95rem; }

@media (max-width: 1120px) {
  .brand img { width: 184px; }
}

@media (max-width: 820px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 1rem; }
  .header-context { display: none; }
  .brand img { width: 178px; }
  .drawer-content { grid-template-columns: 1fr; gap: 1.8rem; padding: 1.6rem 0 1rem; }
  .drawer-reflection { padding: 1.4rem 0 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .drawer-foot { grid-template-columns: 1fr 1fr; }
  .footer-literary.footer-literary-solo { padding-top: 1.8rem; }
  .footer-tempus.footer-tempus-solo blockquote { font-size: clamp(2.45rem, 8vw, 4.2rem); }
}

@media (max-width: 560px) {
  .brand img { width: 164px; }
  .drawer-inner { padding: 1rem; overflow-y: auto; }
  .drawer-nav a { grid-template-columns: 30px 1fr auto; gap: .6rem; }
  .drawer-nav strong { font-size: 2rem; }
  .drawer-nav em { font-size: .62rem; }
  .drawer-quote { font-size: 1.42rem; }
  .drawer-foot { grid-template-columns: 1fr; gap: 1rem; }
  .drawer-coordinates { grid-column: auto; flex-direction: column !important; gap: .2rem !important; text-align: left; }
  .footer-stage { grid-template-rows: minmax(0,1fr) auto auto; }
  .footer-literary.footer-literary-solo { padding: 1.2rem 0 1rem; }
  .footer-tempus.footer-tempus-solo blockquote { font-size: clamp(2.2rem, 10vw, 3.25rem); }
  .footer-links { grid-template-columns: 1fr 1fr; }
}


/* ==========================================================================
   v1.2.1 – correções de logo, footer e navegação por capítulos
   ========================================================================== */
.brand img { width: 206px; }

.site-footer.artistic-footer { background: #020604; }
.footer-art {
  background: url("../img/footer-book.svg") center bottom / contain no-repeat;
  opacity: .74;
}
.site-footer.artistic-footer::before {
  background:
    linear-gradient(180deg, rgba(2,6,4,.82) 0%, rgba(2,6,4,.56) 30%, rgba(2,6,4,.28) 54%, rgba(2,6,4,.82) 100%),
    linear-gradient(90deg, rgba(2,6,4,.92) 0%, rgba(2,6,4,.6) 48%, rgba(2,6,4,.74) 100%);
}
.footer-literary.footer-literary-solo {
  align-items: end;
  padding: .5rem 0 1.4rem;
}
.footer-tempus.footer-tempus-solo {
  max-width: 1020px;
  align-self: end;
}
.footer-tempus.footer-tempus-solo blockquote {
  margin: 0 0 .68rem;
  font-size: clamp(3rem, 5.9vw, 6.2rem);
  line-height: .95;
}
.footer-information { background: rgba(4,10,7,.34); }
.footer-stage { padding-top: .8rem; }
@media (max-width: 1120px) {
  .brand img { width: 192px; }
}
@media (max-width: 820px) {
  .brand img { width: 182px; }
  .footer-art { background-size: cover; opacity: .64; }
  .footer-literary.footer-literary-solo { padding: .4rem 0 1rem; }
}
@media (max-width: 560px) {
  .brand img { width: 170px; }
  .footer-tempus.footer-tempus-solo blockquote { font-size: clamp(2.2rem, 10vw, 3.12rem); }
}
