/* Maniê Interiores — estilos compartilhados das páginas do blog */
:root {
  --bg: #F6F4F0; --bg-rgb: 246, 244, 240; --surface: #EFEAE2; --blush: #E7D2C0;
  --text: #2B2723; --text-muted: #756C61; --rust: #863F14; --rust-deep: #6B3110;
  --rust-ink: #FBF6F0; --line: #E0D6C8; --focus: #863F14; --glass-rim: 255, 255, 255;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #201A15; --bg-rgb: 32, 26, 21; --surface: #2A231C; --blush: #3B2B1F;
    --text: #F1E9DD; --text-muted: #BBAC98; --rust: #D98A53; --rust-deep: #C4703E;
    --rust-ink: #241209; --line: #493A2B; --focus: #D98A53; --glass-rim: 255, 232, 214;
  }
}
:root[data-theme="dark"] {
  --bg: #201A15; --bg-rgb: 32, 26, 21; --surface: #2A231C; --blush: #3B2B1F;
  --text: #F1E9DD; --text-muted: #BBAC98; --rust: #D98A53; --rust-deep: #C4703E;
  --rust-ink: #241209; --line: #493A2B; --focus: #D98A53; --glass-rim: 255, 232, 214;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3 { font-family: Comfortaa, ui-sans-serif, sans-serif; font-weight: 700; line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 56px); }
.narrow { max-width: 720px; margin-inline: auto; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.32em; color: var(--rust); text-transform: uppercase; display: inline-block; margin-bottom: 14px; }

/* header */
header.site {
  position: sticky; top: 0; z-index: 50; padding-block: 16px;
  background: rgba(var(--bg-rgb), 0.85);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mark img { height: 34px; width: auto; }
nav ul { list-style: none; display: flex; gap: clamp(14px, 2.5vw, 30px); margin: 0; padding: 0; flex-wrap: wrap; }
nav a { text-decoration: none; font-size: 0.94rem; color: var(--text-muted); padding-block: 4px; border-bottom: 1px solid transparent; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--rust); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--rust); color: var(--rust-ink); text-decoration: none; font-size: 0.9rem; font-weight: 700; padding: 11px 20px; border-radius: 999px; }
.restrict-link { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); text-decoration: none; color: var(--text-muted); font-size: 0.85rem; }
.restrict-link:hover { border-color: var(--rust); color: var(--rust); }

/* breadcrumbs */
.crumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--rust); }

/* biblioteca */
.lib-hero { padding-block: clamp(44px, 6vw, 80px) clamp(24px, 3vw, 36px); }
.lib-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 18ch; }
.lib-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 56ch; margin: 16px 0 0; }
.lib-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding-block: 18px; border-block: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rust); background: transparent; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.chip[aria-pressed="true"], .chip:hover { background: var(--blush); border-color: var(--blush); }
.search { font: inherit; font-size: 0.95rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; width: min(100%, 280px); }
.lib-list { list-style: none; margin: 0; padding: clamp(26px, 4vw, 44px) 0 clamp(52px, 6vw, 84px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 34px); }
.card { position: relative; border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.card .cat { color: var(--rust); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.card h2, .card h3 { font-family: "Nunito Sans", sans-serif; font-size: 1.12rem; line-height: 1.35; }
.card h2 a, .card h3 a { text-decoration: none; }
.card h2 a::after, .card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h2 a, .card:hover h3 a { color: var(--rust); }
.card p { color: var(--text-muted); font-size: 0.94rem; margin: 0; }
.card .meta { font-size: 0.82rem; color: var(--text-muted); margin-top: auto; }
.empty { color: var(--text-muted); padding-block: 30px 80px; }

/* artigo */
.article { padding-block: clamp(36px, 5vw, 64px) clamp(40px, 5vw, 60px); }
.article h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
.article .meta { color: var(--text-muted); font-size: 0.9rem; margin-top: 16px; }
.article .lead { font-size: 1.15rem; color: var(--text); margin-top: 26px; }
.prose h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin: 40px 0 12px; }
.prose p, .prose li { color: var(--text); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose blockquote { margin: 26px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--rust); font-family: Comfortaa, sans-serif; font-size: 1.1rem; }
.cta-box { margin-top: 44px; background: var(--rust-deep); color: var(--rust-ink); border-radius: 6px; padding: clamp(24px, 4vw, 36px); }
.cta-box h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--rust-ink); margin: 0 0 10px; }
.cta-box p { margin: 0 0 18px; opacity: 0.9; }
.cta-box a { display: inline-flex; background: var(--rust-ink); color: var(--rust-deep); text-decoration: none; font-weight: 700; padding: 11px 20px; border-radius: 999px; }
.related { border-top: 1px solid var(--line); padding-block: clamp(36px, 5vw, 56px); }
.related h2 { font-size: 1.2rem; margin-bottom: 20px; }
.related .lib-list { padding: 0; grid-template-columns: repeat(2, 1fr); }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: clamp(36px, 5vw, 56px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; }
.footer-grid h4 { font-size: 0.82rem; margin: 0 0 14px; color: var(--text-muted); font-weight: 700; letter-spacing: 0.04em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--rust); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 860px) {
  .lib-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .lib-list, .related .lib-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  nav { order: 3; width: 100%; }
  .cta-btn { padding: 9px 16px; }
}
