/*
Theme Name: Blog Pedro Jailson
Description: Tema editorial para blog.pedrojailson.com.br.
Version: 1.0.9
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: pedro-jailson-blog
*/

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("assets/atkinson-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("assets/atkinson-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f2f0ec;
  --surface: #fff;
  --header: #e5ede7;
  --ink: #1c2029;
  --muted: #445464;
  --line: #dcd7ca;
  --blue: #1f5480;
  --blue-link: #174e77;
  --blue-deep: #173d56;
  --comfort: #204c41;
  --comfort-control: #f3f6ef;
  --focus: #1f5480;
  --reading-size: 19px;
  font-family: "Atkinson Hyperlegible", Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101418;
  --surface: #1b232b;
  --header: #17232a;
  --ink: #f2f1eb;
  --muted: #bfcbd4;
  --line: #42525f;
  --blue: #245980;
  --blue-link: #aad7f4;
  --blue-deep: #18384d;
  --comfort: #233d35;
  --comfort-control: #e9f4ed;
  --focus: #add6f5;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.55; }
a { color: var(--blue-link); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, summary { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.shell { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 80; padding: 10px 14px; background: var(--surface); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { position: static; background: var(--header); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.header-inner > .wordmark { margin-right: auto; }
.wordmark { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--ink); text-decoration: none; }
.brand-portrait { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: center 35%; }
img.avatar[src$="/perfil-pedro-jailson.jpg"] { object-fit: cover; object-position: center 35%; border-radius: 50%; }
.brand-copy { display: grid; gap: 7px; }
.brand-name { font: 36px/1 Georgia, serif; letter-spacing: -.045em; white-space: nowrap; }
.brand-dot { color: var(--blue-link); }
.wordmark-sub { font-size: 10px; font-weight: 700; letter-spacing: .045em; }
.site-menu { position: relative; z-index: 20; }
.menu-button { list-style: none; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 17px; border: 1px solid #82948a; border-radius: 9px; background: var(--surface); color: var(--ink); }
.menu-button::-webkit-details-marker { display: none; }
.menu-mark { font-size: 18px; line-height: 1; }
.site-menu nav { position: absolute; right: 0; top: calc(100% + 12px); width: min(380px, 88vw); max-height: min(70vh, 600px); overflow: auto; background: var(--surface); padding: 10px 20px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 38px #0002; }
.site-menu nav a, .menu-services summary { padding: 10px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.site-menu nav a { display: block; }
.site-menu nav a:hover, .site-menu nav a[aria-current] { color: var(--blue-link); text-decoration: underline; }
.site-menu .menu-services a { padding-inline-start: 14px; }
.reading-comfort { margin-block: 32px 0; min-height: 108px; background: var(--comfort); color: #fff; padding: 22px 29px; border-radius: 13px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.reading-comfort > span { font-weight: 700; }
.mode-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 12px; background: var(--comfort-control); color: #15463f; border: 1px solid #719a8b; border-radius: 9px; font-weight: 700; }
.reading-comfort .mode-toggle { min-height: 58px; min-width: min(100%, 328px); justify-content: space-between; gap: 12px; padding: 0 18px; }
.mode-toggle-header { flex: none; }
.mode-toggle-header[aria-pressed="true"] { background: #204c41; color: #fff; }
.mode-toggle-header .mode-state { display: none; }
.mode-mark { font-size: 26px; line-height: 1; }
.mode-state { border: 1px solid #a0b4a9; border-radius: 20px; background: #e6ede3; color: #314639; font-size: 10px; letter-spacing: .045em; padding: 5px 9px; }
.archive-hero { padding-block: 32px 28px; }
.breadcrumb { display: inline-block; margin-bottom: 18px; font-size: 14px; color: var(--muted); text-decoration: none; }
.breadcrumb:hover { text-decoration: underline; }
.archive-hero h1 { font-size: clamp(32px, 3.2vw, 42px); line-height: 1.2; letter-spacing: -.025em; margin: 0 0 14px; }
.archive-hero p { max-width: 760px; color: var(--muted); font-size: 18px; line-height: 1.65; margin: 0; }
.archive-content { padding-block: 0 45px; }
.search-form label { display: block; font-weight: 700; margin: 0 0 13px; }
.search-field { display: flex; align-items: center; min-height: 64px; gap: 16px; background: var(--surface); border: 1px solid #77878d; border-radius: 12px; padding: 0 13px 0 19px; }
.search-field:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.search-mark { width: 15px; height: 15px; border: 1.5px solid var(--muted); border-radius: 50%; position: relative; flex: none; }
.search-mark::after { content: ""; position: absolute; width: 7px; height: 1.5px; background: var(--muted); transform: rotate(45deg); right: -5px; bottom: -3px; }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-size: 18px; outline: 0; padding: 12px 6px; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-go { min-height: 40px; background: transparent; border: 0; padding: 0 8px; color: var(--blue-link); font-weight: 700; }
.topic-filter { margin-block: 20px 24px; max-width: 630px; }
.topic-filter label { display: block; margin-bottom: 8px; font-weight: 700; }
.topic-field { display: flex; align-items: stretch; gap: 10px; }
.topic-field select { flex: 1; width: 100%; min-width: 0; min-height: 48px; padding: 8px 12px; border: 1px solid #77878d; border-radius: 9px; background: var(--surface); color: var(--ink); text-overflow: ellipsis; }
.topic-field button { flex: none; min-height: 48px; padding: 8px 16px; border: 0; border-radius: 9px; color: white; background: var(--blue); font-weight: 700; }
.results-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-top: 1px solid var(--line); color: var(--muted); padding-block: 18px; scroll-margin-top: 12px; }
.results-top strong { color: var(--ink); }
.admin-bar #artigos { scroll-margin-top: 54px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.blog-card:hover { border-color: var(--blue-link); }
.blog-card-link { display: flex; height: 100%; flex-direction: column; color: var(--ink); text-decoration: none; }
.blog-card-link:focus-visible { outline-offset: -4px; }
.blog-card-image { aspect-ratio: 3 / 2; background: var(--header); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 22px 18px 20px; }
.article-category { margin: 0 0 9px; color: var(--blue-link); font-size: 14px; font-weight: 700; }
.card-body h2 { font-size: 21px; line-height: 1.3; margin: 0 0 11px; }
.card-body p { color: var(--muted); margin: 0 0 18px; }
.card-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: auto; font-size: 14px; color: var(--muted); }
.card-bottom strong { color: var(--blue-link); }
.empty-state { padding: 22px 0 35px; color: var(--muted); }
.empty-state h2 { margin: 0 0 8px; color: var(--ink); font-size: 23px; }
.pagination { margin-block: 34px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pagination > * { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); padding-inline: 12px; border-radius: 8px; text-decoration: none; }
.pagination .current { color: #fff; background: var(--blue); }
.preview-notice { margin-top: 18px; padding: 10px 14px; border-left: 4px solid var(--blue-link); background: var(--surface); }
.service-band { background: #242b3b; color: #fff; padding-block: clamp(42px, 6vw, 77px); font-family: Aptos, Inter, "Segoe UI", Arial, sans-serif; }
.service-band-inner { width: min(1088px, calc(100% - clamp(40px, 16vw, 96px))); margin-inline: auto; }
.service-band h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.22; }
.service-lead { max-width: 680px; color: #d1d8e4; margin: 15px 0 28px; font-size: 18px; line-height: 1.6; }
.service-group + .service-group { margin-top: 30px; }
.service-group h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.3; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.service-option, .service-contact { min-width: 0; border: 1px solid #9eb3cb; border-radius: 10px; }
.service-option summary, .service-contact { display: flex; align-items: center; min-height: 48px; padding: 14px 18px; font-weight: 700; font-size: clamp(17px, 1.5vw, 18px); line-height: 1.45; overflow-wrap: anywhere; }
.service-option summary { position: relative; padding-right: 44px; list-style: none; color: #f5f7fa; }
.service-option summary::-webkit-details-marker { display: none; }
.service-option summary::after { content: ""; position: absolute; right: 19px; top: 50%; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); }
.service-option[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.service-option:hover, .service-option[open] { background: #303c50; }
.service-description { padding: 0 18px 16px; color: #e3e9f2; }
.service-description p { margin: 0 0 8px; }
.service-description a { color: #d1eaff; text-underline-offset: 3px; }
.service-contact { background: #2b628f; border-color: #669aca; color: #fff; text-decoration: none; }
.service-contact:hover { background: #345373; text-decoration: underline; }
.service-band, #pj-atendimento { scroll-margin-top: 16px; }
.article-references { max-width: 760px; margin-block: 36px 54px; }
.article-references h2:first-child { margin-top: 0; }
.service-band :focus-visible, .reading-comfort :focus-visible { outline-color: #cbe8fc; }
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(34px, 6vw, 70px); background: #fcfbf7; }
:root[data-theme="dark"] .site-footer { background: var(--header); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 600px) minmax(160px, 240px); justify-content: space-between; align-items: start; gap: 36px; }
.site-footer .wordmark { width: fit-content; }
.site-footer .brand-name { font-size: clamp(32px, 4vw, 46px); }
.footer-social > p { color: var(--muted); max-width: 55ch; margin: 12px 0 22px; font-size: 17px; }
.instagram-profiles { border-top: 1px solid var(--line); }
.instagram-profile { display: flex; align-items: center; gap: 13px; padding-block: 13px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.instagram-profile > span:last-child { min-width: 0; }
.profile-label, .instagram-profile strong { display: block; line-height: 1.45; }
.profile-label { font-size: .9em; color: var(--muted); }
.instagram-profile strong { overflow-wrap: anywhere; }
.instagram-profile:hover strong, .footer-links a:hover { text-decoration: underline; }
.instagram-mark, .network-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; color: #fff; }
.instagram-mark { background: linear-gradient(145deg, #7134aa, #ad226a 58%, #cc3543); }
.instagram-mark svg, .network-icon svg { display: block; width: 24px; height: 24px; }
.social-icons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.network-icon { background: #252a2d; text-decoration: none; }
.network-facebook { background: #0866c6; }
.network-whatsapp { background: #087442; }
.network-icon:hover { outline: 2px solid var(--blue-link); outline-offset: 3px; }
.footer-links { display: grid; align-content: start; }
.footer-links a { display: flex; align-items: center; min-height: 46px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.footer-links a:first-child { border-top: 1px solid var(--line); }
:root:not([data-theme="dark"]) .article-page { --paper: #f6f4ef; }
:root:not([data-theme="dark"]) .blog-publication { --ink: #252d28; --muted: #505a54; --line: #bfc4bd; color: var(--ink); }
.article-heading.shell { width: min(980px, calc(100% - 36px)); padding-block: 48px 0; }
.article-heading h1 { font-size: clamp(37px, 4.7vw, 64px); font-weight: 400; line-height: 1.13; letter-spacing: -.035em; overflow-wrap: break-word; margin: 0 0 25px; }
.article-deck { max-width: 890px; margin: 0 0 30px; color: var(--muted); font-size: 20px; line-height: 1.8; }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; padding-block: 22px; border-block: 1px solid var(--line); }
.article-author { display: inline-flex; align-items: center; gap: 13px; width: fit-content; max-width: 100%; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.6; }
.article-author:hover .author-name { text-decoration: underline; text-underline-offset: 3px; }
.author-photo { flex: none; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.author-name small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.article-meta { color: var(--muted); font-size: 12px; line-height: 1.65; font-variant-numeric: tabular-nums; }
.article-meta time { white-space: nowrap; }
.article-layout.shell { width: min(740px, calc(100% - 36px)); margin-block: 24px 46px; }
.toc { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.toc summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding: 8px 2px 8px 0; list-style: none; text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.toc summary::-webkit-details-marker { display: none; }
.toc-symbol::before { content: "+"; font-size: 24px; line-height: 1; }
.toc details[open] .toc-symbol::before { content: "−"; }
.toc ul { margin: 12px 0 0; padding-inline-start: 20px; font-size: 15px; line-height: 1.65; }
.toc li + li { margin-top: 8px; }
.reading-tools { position: relative; display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 12px; margin: 32px 0 24px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.reading-tools button { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; }
.reading-tools button:hover { border-color: var(--ink); }
.reading-tools button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.reading-tools button svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.reading-tools [data-text-size] { font-size: 20px; line-height: 1; }
.reader-status { flex-basis: 100%; color: var(--muted); text-align: right; font-size: 14px; }
.article-prose { font-size: var(--reading-size); line-height: 1.73; min-width: 0; overflow-wrap: anywhere; }
.article-prose h2 { scroll-margin-top: 16px; margin: 1.7em 0 .55em; font-size: 1.4em; line-height: 1.28; }
.article-prose h3 { margin: 1.35em 0 .25em; font-size: 1.1em; line-height: 1.35; }
.article-prose p { margin: .6em 0 1.05em; }
.article-prose ul { padding-inline-start: 24px; }
.article-prose a { text-underline-offset: 3px; }
.article-prose a:not([href]) { color: inherit; text-decoration: none; }
.article-tags { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 26px 0 0; }
.article-tags a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 14px; text-decoration: none; }
.article-tags a:hover { text-decoration: underline; }
.article-notice { background: var(--surface); border-left: 4px solid var(--blue-link); color: var(--muted); padding: 14px 18px; margin: 24px 0; }
.reading-progress { position: absolute; bottom: -1px; left: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--blue-link); pointer-events: none; }
.plain-page { padding-block: 28px 54px; }
.author-bio { max-width: 760px; padding-block: 32px 56px; }
.bio-heading { display: flex; gap: 20px; align-items: center; margin: 6px 0 28px; }
.bio-heading img { flex: none; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; object-position: center 35%; }
.bio-heading h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.15; }
.bio-heading p { margin: 4px 0 0; color: var(--muted); font-size: 19px; }
.bio-content blockquote { margin: 24px 0; padding: 4px 18px; border-left: 4px solid var(--blue-link); }
.bio-content blockquote p { margin: 0; }

@media (max-width: 910px) {
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 590px) {
  .shell { width: min(100% - 28px, 1100px); }
  .header-inner { min-height: 77px; gap: 6px; }
  .brand-portrait { width: 43px; height: 43px; }
  .wordmark { gap: 9px; }
  .brand-name { font-size: 28px; }
  .wordmark-sub { font-size: 8px; }
  .menu-button { min-height: 42px; padding-inline: 10px; gap: 6px; }
  .reading-comfort { flex-direction: column; align-items: stretch; margin-top: 20px; padding: 16px 17px; gap: 12px; }
  .reading-comfort .mode-toggle { min-height: 50px; font-size: 15px; }
  .mode-toggle-header { flex-direction: column; gap: 2px; padding: 3px 5px; }
  .mode-toggle-header .mode-mark { font-size: 18px; }
  .mode-toggle-header [data-mode-label] { font-size: 11px; line-height: 1.2; white-space: nowrap; }
  .archive-hero { padding-block: 24px 22px; }
  .search-field { min-height: 55px; gap: 11px; }
  .search-field input { font-size: 16px; }
  .topic-field { gap: 8px; }
  .topic-field button { padding-inline: 12px; }
  .archive-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .article-heading.shell { padding-top: 32px; }
  .article-heading h1 { margin-bottom: 22px; line-height: 1.18; }
  .article-deck { margin-bottom: 24px; font-size: 18px; }
  .article-byline { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 20px; }
  .article-author { font-size: 13px; }
  .author-photo { width: 38px; height: 38px; }
  .author-name small { font-size: 11px; }
  .article-meta { justify-self: end; text-align: right; }
}

@media (max-width: 410px) {
  .header-inner { gap: 5px; }
  .header-inner .wordmark { gap: 6px; }
  .header-inner .brand-name { font-size: clamp(20px, 6vw, 24px); }
  .header-inner .brand-portrait { width: 36px; height: 36px; }
  .mode-toggle-header { width: 46px; padding: 2px; }
  .mode-toggle-header .mode-mark { display: none; }
  .mode-toggle-header [data-mode-label] { white-space: normal; font-size: 12px; }
  .menu-button { padding-inline: 7px; gap: 4px; }
  .wordmark-sub { font-size: 7px; }
}
@media print { .reading-tools, .site-header, .reading-comfort, .toc, .service-band, .site-footer { display: none; } .article-layout { display: block; } }
