/* AutoBlog: design "Chronicle" (Figma Make da designer), traduzido de Tailwind para CSS. */
:root {
	--ab-bg: #E8E2D5;
	--ab-surface: #F0EBE1;
	--ab-band: #E0D9CC;
	--ab-ink: #18120F;
	--ab-muted: #7C7066;
	--ab-border: #D0C9BC;
	--ab-placeholder: #B0A89C;
	--ab-accent: #C84B31;
	--ab-display: 'Fraunces', Georgia, serif;
	--ab-body: 'Outfit', system-ui, sans-serif;
	--ab-ease: cubic-bezier(.4, 0, .2, 1);
}

/* Base: neutraliza o reset do tema pai com especificidade zero. */
body.ab-site {
	margin: 0;
	background: var(--ab-bg);
	color: var(--ab-ink);
	font-family: var(--ab-body);
	font-size: 1rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
body.ab-site > main, body.ab-site #content { flex: 1 0 auto; }
:where(.ab-site) :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol) { margin: 0; }
:where(.ab-site) :where(ul[role="list"]) { list-style: none; padding: 0; }
:where(.ab-site) :where(a) { color: inherit; text-decoration: none; }
:where(.ab-site) :where(a:hover, a:active) { color: inherit; }
:where(.ab-site) :where(img) { max-width: 100%; height: auto; display: block; }
.ab-site ::selection { background: var(--ab-ink); color: var(--ab-bg); }
.ab-site :focus-visible { outline: 2px solid var(--ab-ink); outline-offset: 2px; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ab-border); border-radius: 2px; }

.ab-container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; box-sizing: border-box; }

/* Rotulos e textos recorrentes */
.ab-eyebrow { font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: var(--ab-accent); margin-bottom: .75rem; }
.ab-rule { display: block; width: 2.5rem; height: 1px; background: var(--ab-border); }
.ab-meta { display: flex; align-items: center; gap: .75rem; font-size: .625rem; line-height: 1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ab-muted); }
.ab-meta__sep { display: inline-block; width: 1px; height: .75rem; background: var(--ab-border); }
.ab-empty { color: var(--ab-muted); font-size: .875rem; }

/* Botoes */
.ab-site .ab-btn { display: inline-block; padding: .75rem 1.5rem; font-family: var(--ab-body); font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--ab-ink); border-radius: 0; cursor: pointer; transition: background-color .15s var(--ab-ease), color .15s var(--ab-ease), border-color .15s var(--ab-ease); }
.ab-site .ab-btn--solid { background: var(--ab-ink); color: var(--ab-bg); }
.ab-site .ab-btn--solid:hover { background: var(--ab-accent); border-color: var(--ab-accent); color: var(--ab-bg); }
.ab-site .ab-btn--outline { background: transparent; color: var(--ab-ink); padding-inline: 2rem; }
.ab-site .ab-btn--outline:hover { background: var(--ab-ink); color: var(--ab-bg); }
.ab-site .ab-textlink { font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ab-ink); text-decoration: underline; text-underline-offset: 4px; transition: color .15s var(--ab-ease); }
.ab-site .ab-textlink:hover { color: var(--ab-accent); }

/* Cabecalho */
.ab-header { position: sticky; top: 0; z-index: 50; background: rgba(232, 226, 213, .95); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border-bottom: 1px solid var(--ab-border); }
.admin-bar .ab-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ab-header { top: 0; } }
.ab-header__bar { height: 4rem; display: flex; align-items: center; justify-content: space-between; }
.ab-site .ab-wordmark { font-family: var(--ab-display); font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -.025em; color: var(--ab-ink); }
.ab-nav { display: none; align-items: center; gap: 2rem; }
.ab-site .ab-nav__link { font-size: .875rem; line-height: 1.25rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ab-muted); transition: color .15s var(--ab-ease); }
.ab-site .ab-nav__link:hover, .ab-site .ab-nav__link.is-active { color: var(--ab-ink); }
.ab-site .ab-header__toggle { display: inline-flex; padding: .25rem; background: none; border: 0; border-radius: 0; color: var(--ab-ink); cursor: pointer; }
.ab-site .ab-header__toggle:hover, .ab-site .ab-header__toggle:focus { background: none; color: var(--ab-ink); }
.ab-header__toggle-close { display: none; }
.ab-header__toggle[aria-expanded="true"] .ab-header__toggle-open { display: none; }
.ab-header__toggle[aria-expanded="true"] .ab-header__toggle-close { display: inline-flex; }
.ab-mobile-nav { border-top: 1px solid var(--ab-border); background: var(--ab-bg); padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.ab-mobile-nav[hidden] { display: none; }
.ab-site .ab-mobile-nav a { font-size: .875rem; line-height: 1.25rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ab-ink); }
@media (min-width: 768px) {
	.ab-nav { display: flex; }
	.ab-site .ab-header__toggle, .ab-mobile-nav { display: none; }
}

/* Card de post */
.ab-grid { display: grid; grid-template-columns: 1fr; column-gap: 2rem; row-gap: 3rem; }
.ab-grid--archive { row-gap: 3.5rem; }
@media (min-width: 640px) { .ab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .ab-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ab-site .ab-card__link { display: block; color: var(--ab-ink); }
.ab-card__media { display: block; overflow: hidden; background: var(--ab-border); aspect-ratio: 3 / 2; margin-bottom: .75rem; }
.ab-card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s ease-out, transform .5s ease-out; }
.ab-card__link:hover .ab-card__media img { filter: grayscale(0); transform: scale(1.05); }
.ab-card__date { display: block; font-size: .75rem; line-height: 1rem; font-weight: 300; font-style: italic; color: var(--ab-muted); margin-bottom: .375rem; }
.ab-site .ab-card__title { font-family: var(--ab-display); font-size: 1rem; line-height: 1.375; font-weight: 600; color: var(--ab-ink); margin-bottom: .5rem; transition: color .15s var(--ab-ease); }
.ab-card__link:hover .ab-card__title { color: var(--ab-accent); }

/* Home: hero */
.ab-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--ab-border); }
.ab-hero__grid { display: grid; grid-template-columns: 1fr; min-height: 540px; }
.ab-hero__text { display: flex; flex-direction: column; justify-content: center; padding-block: 4rem; }
.ab-hero__text .ab-eyebrow { margin-bottom: 1.5rem; }
.ab-site .ab-hero__title { font-family: var(--ab-display); font-size: 3rem; line-height: 1.05; font-weight: 600; color: var(--ab-ink); margin-bottom: 1.5rem; }
.ab-hero__muted { color: var(--ab-muted); }
.ab-hero__lead { color: var(--ab-muted); font-size: 1rem; line-height: 1.625; max-width: 24rem; margin-bottom: 2rem; }
.ab-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.ab-hero__feature { display: none; position: relative; }
.ab-hero__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.ab-hero__card { position: absolute; left: 0; right: 0; bottom: 2rem; margin-inline: 1.5rem; padding: 1.25rem; background: rgba(232, 226, 213, .95); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: 1px solid var(--ab-border); }
.ab-hero__card-meta { display: block; font-size: .625rem; line-height: 1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ab-muted); margin-bottom: .25rem; }
.ab-hero__card-title { display: block; font-family: var(--ab-display); font-size: 1rem; line-height: 1.375; font-weight: 600; color: var(--ab-ink); transition: color .15s var(--ab-ease); }
.ab-site .ab-hero__card { display: block; color: var(--ab-ink); }
.ab-hero__card:hover .ab-hero__card-title { color: var(--ab-accent); }
@media (min-width: 768px) {
	.ab-hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ab-hero__text { padding-right: 3rem; }
	.ab-site .ab-hero__title { font-size: 3.75rem; }
	.ab-hero__feature { display: block; background: var(--ab-border); }
}
@media (min-width: 1024px) { .ab-site .ab-hero__title { font-size: 4.5rem; } }

/* Home: posts recentes */
.ab-recent { padding-block: 5rem; }
.ab-center-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 3rem; }
.ab-site .ab-center-head__title { font-family: var(--ab-display); font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; color: var(--ab-ink); margin-bottom: 1rem; }
@media (min-width: 768px) { .ab-site .ab-center-head__title { font-size: 2.25rem; line-height: 2.5rem; } }
.ab-recent__cta { display: flex; justify-content: center; margin-top: 3rem; }

/* Home: faixa de citacao */
.ab-quote { background: var(--ab-ink); border-block: 1px solid var(--ab-border); padding: 5rem 1.5rem; }
.ab-quote__inner { max-width: 48rem; margin-inline: auto; text-align: center; }
.ab-site .ab-quote__text { margin: 0; padding: 0; border: 0; background: none; }
.ab-site .ab-quote__text p { font-family: var(--ab-display); font-size: 1.5rem; line-height: 1.625; font-weight: 300; font-style: italic; color: var(--ab-bg); }
@media (min-width: 768px) { .ab-site .ab-quote__text p { font-size: 1.875rem; } }
.ab-quote__source { margin-top: 1.5rem; font-size: .75rem; line-height: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ab-muted); }
.ab-site .ab-quote__source a { color: var(--ab-muted); transition: color .15s var(--ab-ease); }
.ab-site .ab-quote__source a:hover { color: var(--ab-bg); }

/* Listagens */
.ab-listing { padding-block: 4rem; }
.ab-page-head { margin-bottom: 3.5rem; }
.ab-site .ab-page-head__title { font-family: var(--ab-display); font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; color: var(--ab-ink); margin-bottom: 1rem; }
@media (min-width: 768px) { .ab-site .ab-page-head__title { font-size: 3rem; line-height: 1; } }
.ab-page-head__desc { color: var(--ab-muted); font-size: .875rem; line-height: 1.625; max-width: 36rem; margin-bottom: 1rem; }
.ab-page-head__count { display: flex; align-items: center; gap: 1rem; }
.ab-page-head__count p { font-size: .875rem; line-height: 1.25rem; color: var(--ab-muted); }
.ab-more { display: flex; justify-content: center; margin-top: 4rem; }
.ab-site .ab-more__btn { display: flex; flex-direction: column; align-items: center; gap: .75rem; color: var(--ab-ink); font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: color .15s var(--ab-ease); }
.ab-site .ab-more__btn:hover { color: var(--ab-accent); }
.ab-more__line { width: 1px; height: 2rem; background: var(--ab-border); transition: background-color .15s var(--ab-ease); }
.ab-more__btn:hover .ab-more__line { background: var(--ab-accent); }
.ab-more__btn .ab-icon { transition: transform .15s var(--ab-ease); }
.ab-more__btn:hover .ab-icon { transform: translateY(.25rem); }
.ab-more__btn[aria-busy="true"] { opacity: .5; pointer-events: none; }
.ab-end { text-align: center; font-size: .75rem; line-height: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ab-muted); margin-top: 4rem; }

/* Busca */
.ab-search { display: flex; gap: .5rem; max-width: 28rem; margin-bottom: 1.5rem; }
.ab-site .ab-search input[type="search"] { flex: 1; min-width: 0; font-family: var(--ab-body); font-size: .875rem; padding: .5rem .75rem; border: 1px solid var(--ab-border); border-radius: 0; background: transparent; color: var(--ab-ink); }
.ab-site .ab-search input[type="search"]::placeholder { color: var(--ab-placeholder); }
.ab-site .ab-search input[type="search"]:focus { outline: none; border-color: var(--ab-ink); }
.ab-site .ab-search .ab-btn { padding: .5rem 1rem; }

/* Post individual */
.ab-post { max-width: 48rem; margin-inline: auto; padding: 4rem 1.5rem; box-sizing: border-box; width: 100%; }
.ab-crumbs { display: flex; align-items: center; gap: .5rem; font-size: .75rem; line-height: 1rem; color: var(--ab-muted); margin-bottom: 2.5rem; min-width: 0; }
.ab-site .ab-crumbs a { color: var(--ab-muted); transition: color .15s var(--ab-ease); }
.ab-site .ab-crumbs a:hover { color: var(--ab-ink); }
.ab-crumbs__current { color: var(--ab-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.ab-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.ab-site .ab-post__cat { font-size: .625rem; line-height: 1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ab-accent); }
.ab-post__date { font-size: .75rem; line-height: 1rem; font-style: italic; color: var(--ab-muted); }
.ab-site .ab-post__comments { font-size: .75rem; line-height: 1rem; color: var(--ab-muted); }
.ab-site .ab-post__comments:hover { color: var(--ab-ink); }
.ab-site .ab-post__title { font-family: var(--ab-display); font-size: 2.25rem; line-height: 1.1; font-weight: 600; color: var(--ab-ink); margin-bottom: 2rem; }
@media (min-width: 768px) { .ab-site .ab-post__title { font-size: 3rem; } }
.ab-post__excerpt { font-size: 1.125rem; line-height: 1.625; font-weight: 300; color: var(--ab-muted); border-left: 2px solid var(--ab-accent); padding-left: 1.25rem; margin-bottom: 2.5rem; }
.ab-site .ab-post__hero { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ab-border); margin: 0 0 3rem; }
.ab-post__hero img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

/* Corpo do post: o design define os paragrafos; o resto segue a mesma linguagem. */
.ab-prose { font-size: 1.0625rem; line-height: 1.8; color: var(--ab-ink); margin-bottom: 4rem; overflow-wrap: break-word; }
.ab-prose > * + * { margin-top: 1.5em; }
.ab-site .ab-prose p { margin-bottom: 0; }
.ab-site .ab-prose :where(h2, h3, h4) { font-family: var(--ab-display); font-weight: 600; color: var(--ab-ink); line-height: 1.2; margin-top: 2.25em; margin-bottom: -.5em; }
.ab-site .ab-prose h2 { font-size: 1.75rem; }
.ab-site .ab-prose h3 { font-size: 1.375rem; }
.ab-site .ab-prose h4 { font-size: 1.125rem; }
.ab-site .ab-prose a { color: var(--ab-ink); text-decoration: underline; text-decoration-color: var(--ab-accent); text-underline-offset: 3px; transition: color .15s var(--ab-ease); }
.ab-site .ab-prose a:hover { color: var(--ab-accent); }
.ab-site .ab-prose :where(ul, ol) { padding-left: 1.25rem; }
.ab-site .ab-prose li + li { margin-top: .5em; }
.ab-site .ab-prose li::marker { color: var(--ab-accent); }
.ab-site .ab-prose blockquote { margin-inline: 0; padding: 0 0 0 1.25rem; border: 0; border-left: 2px solid var(--ab-accent); font-family: var(--ab-display); font-size: 1.375rem; line-height: 1.5; font-weight: 300; font-style: italic; color: var(--ab-ink); }
.ab-site .ab-prose blockquote p { margin: 0; }
.ab-site .ab-prose :where(figure, img) { margin-inline: 0; }
.ab-site .ab-prose figcaption { font-size: .75rem; color: var(--ab-muted); margin-top: .5rem; }
.ab-site .ab-prose code { font-size: .9em; background: var(--ab-surface); padding: .1em .35em; }
.ab-site .ab-prose pre { background: var(--ab-ink); color: var(--ab-bg); padding: 1.25rem; overflow-x: auto; font-size: .875rem; line-height: 1.6; }
.ab-site .ab-prose pre code { background: none; padding: 0; }
.ab-site .ab-prose hr { border: 0; height: 1px; background: var(--ab-border); }
.ab-site .ab-prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.ab-site .ab-prose :where(th, td) { border: 0; border-bottom: 1px solid var(--ab-border); padding: .5rem .75rem .5rem 0; text-align: left; background: none; }

/* Video original */
.ab-video { margin: 1rem 0 4rem; }
.ab-video__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.ab-site .ab-video__label { font-family: var(--ab-body); font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ab-muted); }
.ab-video__rule { flex: 1; height: 1px; background: var(--ab-border); }
.ab-video__frame { position: relative; aspect-ratio: 16 / 9; background: var(--ab-ink); overflow: hidden; }
.ab-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Comentarios (markup do tema pai) */
.ab-comments { border-top: 1px solid var(--ab-border); padding-top: 2.5rem; margin-bottom: 2.5rem; font-size: .9375rem; line-height: 1.6; }
.ab-site .ab-comments :where(h2, h3, .comment-reply-title, .title-comments) { font-family: var(--ab-display); font-size: 1.5rem; line-height: 1.25; font-weight: 600; color: var(--ab-ink); margin: 0 0 1.25rem; }
.ab-site .ab-comments ol, .ab-site .ab-comments ul { list-style: none; padding: 0; margin: 0 0 2rem; }
.ab-site .ab-comments .children { padding-left: 1.5rem; margin: 1.5rem 0 0; }
.ab-site .ab-comments li.comment { margin-bottom: 1.5rem; }
.ab-site .ab-comments .avatar { border-radius: 0; filter: grayscale(1); }
.ab-site .ab-comments .comment-meta, .ab-site .ab-comments .comment-metadata { font-size: .75rem; color: var(--ab-muted); }
.ab-site .ab-comments a { color: var(--ab-ink); }
.ab-site .ab-comments a:hover { color: var(--ab-accent); }
.ab-site .ab-comments :where(label) { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ab-muted); margin-bottom: .375rem; }
.ab-site .ab-comments :where(input[type="text"], input[type="email"], input[type="url"], textarea) { width: 100%; box-sizing: border-box; font-family: var(--ab-body); font-size: .9375rem; padding: .625rem .75rem; border: 1px solid var(--ab-border); border-radius: 0; background: transparent; color: var(--ab-ink); }
.ab-site .ab-comments :where(input, textarea):focus { outline: none; border-color: var(--ab-ink); }
.ab-site .ab-comments .comment-form > p { margin-bottom: 1rem; }
.ab-site .ab-comments .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.ab-site .ab-comments .comment-form-cookies-consent label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .8125rem; }
.ab-site .ab-comments input[type="submit"] { padding: .75rem 1.5rem; font-family: var(--ab-body); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: var(--ab-ink); color: var(--ab-bg); border: 1px solid var(--ab-ink); border-radius: 0; cursor: pointer; transition: background-color .15s var(--ab-ease); }
.ab-site .ab-comments input[type="submit"]:hover { background: var(--ab-accent); border-color: var(--ab-accent); }

.ab-post__back { border-top: 1px solid var(--ab-border); padding-top: 2.5rem; }
.ab-site .ab-post__back a { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ab-ink); transition: color .15s var(--ab-ease); }
.ab-site .ab-post__back a:hover { color: var(--ab-accent); }

/* 404 */
.ab-notfound { max-width: 42rem; margin-inline: auto; padding: 8rem 1.5rem; text-align: center; }
.ab-notfound__title { font-family: var(--ab-display); font-size: 1.875rem; line-height: 2.25rem; color: var(--ab-ink); margin-bottom: 1rem; }
.ab-site .ab-notfound__link { font-size: .875rem; color: var(--ab-accent); text-decoration: underline; text-underline-offset: 4px; }

/* Rodape */
.ab-footer { border-top: 1px solid var(--ab-border); background: var(--ab-band); margin-top: 6rem; flex-shrink: 0; }
.ab-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 768px) { .ab-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ab-footer__brand { font-family: var(--ab-display); font-size: 1.5rem; line-height: 2rem; font-weight: 600; color: var(--ab-ink); margin-bottom: .75rem; }
.ab-footer__about { font-size: .875rem; line-height: 1.625; color: var(--ab-muted); max-width: 20rem; }
.ab-footer__label { font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ab-muted); margin-bottom: 1rem; }
.ab-footer__list li + li { margin-top: .5rem; }
.ab-site .ab-footer__list a { font-size: .875rem; line-height: 1.25rem; color: var(--ab-ink); transition: color .15s var(--ab-ease); }
.ab-site .ab-footer__list a:hover { color: var(--ab-accent); }
.ab-footer__bottom { border-top: 1px solid var(--ab-border); padding-block: 1.25rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .5rem; }
.ab-footer__bottom p { font-size: .75rem; line-height: 1rem; color: var(--ab-muted); }
@media (min-width: 640px) { .ab-footer__bottom { flex-direction: row; } }
.ab-post + .ab-footer, .ab-listing + .ab-footer { margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
	.ab-site *, .ab-site *::before, .ab-site *::after { transition-duration: .01ms !important; }
	.ab-card__link:hover .ab-card__media img { transform: none; }
}
