/*
Theme Name: Anjos de Deus Editorial
Description: Tema editorial para o acervo de postagens Anjos de Deus.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: anjos-de-deus
*/
:root {
  --paper: #f9f4ea;
  --white: #fffaf1;
  --ink: #351e23;
  --wine: #612738;
  --muted: #6e5759;
  --line: #ddcbbd;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: var(--wine); text-underline-offset: .22em; }
a:hover { color: #983f4f; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #a54c41; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link:focus { clip-path: none; width: auto; height: auto; top: .5rem; left: .5rem; z-index: 10; background: white; padding: .6rem; }
.site-header { background: var(--white); border-block: 4px solid var(--wine); border-bottom: 1px solid var(--line); }
.header-row { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; min-height: 5.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: bold 1.5rem/1.2 var(--serif); color: var(--ink); text-decoration: none; }
.brand-mark { color: var(--wine); font-size: 1.2rem; }
.header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.header-actions > a { font-size: .9rem; font-weight: 650; }
.search-form { display: flex; }
.search-form input { min-width: 0; width: 10.5rem; border: 1px solid var(--line); background: var(--paper); padding: .45rem .65rem; color: var(--ink); font: inherit; font-size: .9rem; }
.search-form button { background: var(--wine); border: 1px solid var(--wine); color: white; padding: .45rem .65rem; font: inherit; font-size: .9rem; cursor: pointer; }
.hero { margin-block: clamp(1.5rem, 4vw, 3.75rem) 3rem; background: #efe2d4; border: 1px solid var(--line); display: grid; grid-template-columns: 1.08fr .92fr; }
.hero-content { padding: clamp(1.75rem, 5vw, 4.25rem); align-self: center; }
.hero h1, .page-title, .post-title, .section-title { font-family: var(--serif); line-height: 1.08; letter-spacing: -.035em; }
.hero h1 { font-size: clamp(2.45rem, 5vw, 4.85rem); margin: 0 0 1.3rem; }
.hero-link { display: inline-block; color: var(--wine); font-weight: 700; }
.hero-media { display: grid; min-height: 18rem; background: #e4d5c3; border-left: 1px solid var(--line); }
.hero-media img { width: 100%; height: 100%; max-height: 31rem; object-fit: cover; object-position: center; }
.hero--text { display: block; }
.section-title { font-size: clamp(2rem, 3.5vw, 3.25rem); margin: 0; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.page-title { font-size: clamp(2.35rem, 4vw, 4rem); margin-block: 2.5rem 1.5rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-block: 1.5rem 2.5rem; }
.card { min-width: 0; background: var(--white); border: 1px solid var(--line); }
.card-media { display: block; aspect-ratio: 8 / 5; overflow: hidden; background: #eadcd0; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem 1.35rem 1.5rem; }
.post-date { color: var(--muted); font-size: .82rem; font-weight: 600; }
.card h2 { margin: .55rem 0; font: bold clamp(1.35rem, 2.2vw, 1.9rem)/1.12 var(--serif); letter-spacing: -.02em; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--wine); text-decoration: underline; }
.card p { margin: .7rem 0 0; color: var(--muted); font-size: .94rem; }
.pagination { margin-block: 2rem 3.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.page-numbers { display: inline-block; padding: .3rem .7rem; border: 1px solid var(--line); }
.page-numbers.current { background: var(--wine); color: white; }
.reading { width: min(100% - 3rem, 48rem); margin: 3rem auto 4rem; }
.post-title { font-size: clamp(2.25rem, 6vw, 4.5rem); margin: .6rem 0 1.5rem; overflow-wrap: anywhere; }
.entry-content { overflow-wrap: anywhere; }
.entry-content img { max-width: 100%; }
.entry-content iframe { max-width: 100%; }
.post-tags, .post-navigation { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; }
.post-navigation .nav-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); padding-block: 2rem; background: var(--white); }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 850px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .wrap, .reading { width: min(100% - 1.5rem, 72rem); }
  .header-row { align-items: flex-start; flex-direction: column; gap: .8rem; padding-block: .85rem; }
  .header-actions { gap: .8rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero-media img { max-height: 17rem; }
  .post-grid { grid-template-columns: 1fr; }
}

#anjos-modelo {
    --ag-navy:#142b43; --ag-navy-deep:#0c2034; --ag-gold:#f4d58f; --ag-paper:#faf5ea; --ag-white:#fffdfa;
    background:var(--ag-paper); color:var(--ag-navy); color-scheme:light;
    font:15px/1.5 system-ui,sans-serif; overflow-wrap:anywhere;
  }
  #anjos-modelo *, #anjos-modelo *::before, #anjos-modelo *::after { box-sizing:border-box; }
  #anjos-modelo :is(h2,h3) { font-family:Georgia,serif; line-height:1.15; margin:0; }
  #anjos-modelo a { color:inherit; text-decoration:none; }
  #anjos-modelo a:hover { text-decoration:underline; text-underline-offset:.2em; }
  #anjos-modelo a:focus-visible { outline:3px solid #b5481f; outline-offset:3px; }
  #anjos-modelo .ag-header { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:15px clamp(16px,4vw,40px); background:var(--ag-navy-deep); color:#fffefa; border-bottom:3px solid #d8aa56; }
  #anjos-modelo .ag-brand { display:flex; align-items:center; gap:11px; font:700 22px/1.1 Georgia,serif; }
  #anjos-modelo .ag-brand img { display:block; border-radius:12px; border:1px solid #d8aa56; }
  #anjos-modelo .ag-brand small { display:block; margin-top:5px; color:var(--ag-gold); font:500 11px/1.2 system-ui,sans-serif; }
  #anjos-modelo nav { display:flex; flex-wrap:wrap; gap:8px 21px; font-size:13px; }
  #anjos-modelo nav a { display:inline-flex; align-items:center; min-height:44px; }
  #anjos-modelo .ag-main { padding:clamp(14px,3vw,28px) clamp(12px,4vw,40px) 34px; }
  #anjos-modelo .ag-hero { overflow:hidden; border-radius:16px; background:#eacf91; }
  #anjos-modelo .ag-hero img { display:block; width:100%; height:auto; }
  #anjos-modelo .ag-community { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 26px; margin-top:20px; padding:22px; border-radius:14px; background:#eaeef2; }
  #anjos-modelo .ag-community h2 { font-size:clamp(21px,3vw,29px); }
  #anjos-modelo .ag-community p { margin:5px 0 0; color:#47596b; }
  #anjos-modelo .ag-social { display:flex; flex-wrap:wrap; gap:9px; }
  #anjos-modelo .ag-social a { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 12px; border-radius:8px; font-weight:650; color:#fff; font-size:13px; }
  #anjos-modelo .ag-social .ag-facebook { background:#184b90; }
  #anjos-modelo .ag-social .ag-whatsapp { background:#146047; }
  #anjos-modelo .ag-social .ag-f { display:grid; width:18px; height:18px; place-items:center; border-radius:50%; background:#fff; color:#184b90; font:700 16px/1 Arial,sans-serif; }
  #anjos-modelo .ag-social svg { width:16px; height:16px; flex:none; }
  #anjos-modelo .ag-posts { margin-top:32px; }
  #anjos-modelo .ag-posts-head { display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; gap:6px 12px; margin-bottom:14px; }
  #anjos-modelo .ag-posts-head h2 { font-size:clamp(26px,4.5vw,39px); }
  #anjos-modelo .ag-posts-head a { font-size:13px; font-weight:650; color:#754a14; }
  #anjos-modelo .ag-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
  #anjos-modelo .ag-grid article { overflow:hidden; background:var(--ag-white); border:1px solid #e4d8c5; border-radius:12px; }
  #anjos-modelo .ag-grid article a { display:block; height:100%; }
  #anjos-modelo .ag-grid article a:focus-visible { outline-offset:-4px; }
  #anjos-modelo .ag-grid img { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; }
  #anjos-modelo .ag-grid article div { padding:12px; }
  #anjos-modelo .ag-grid time { color:#625846; font-size:12px; }
  #anjos-modelo .ag-grid h3 { margin-top:5px; font-size:clamp(16px,2.6vw,22px); }
  #anjos-modelo .ag-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 16px; padding:15px clamp(16px,4vw,40px); background:var(--ag-navy-deep); color:#fffefa; font:700 18px/1.3 Georgia,serif; }
  #anjos-modelo .ag-footer span { color:var(--ag-gold); font:500 12px/1.5 system-ui,sans-serif; }
  @media(max-width:580px) {
    #anjos-modelo .ag-header { flex-wrap:wrap; gap:4px 16px; padding-block:9px; }
    #anjos-modelo .ag-community { padding:16px; }
    #anjos-modelo .ag-grid { grid-template-columns:1fr; }
    #anjos-modelo .ag-grid article a { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,3fr); align-items:center; }
    #anjos-modelo .ag-grid img { aspect-ratio:4/3; }
  }

#anjos-modelo .ag-pager { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:8px; margin-top:22px; }
  #anjos-modelo .ag-pager :is(button,span) { display:inline-grid; min-width:36px; min-height:39px; padding:5px 11px; place-items:center; border:1px solid #dfcbb7; color:#522534; background:transparent; font:inherit; }
  #anjos-modelo .ag-pager button { text-decoration:underline; text-underline-offset:3px; }
  #anjos-modelo .ag-pager button:hover { background:#f0e4d5; }
  #anjos-modelo .ag-pager button[aria-current="page"] { background:#64283b; color:white; text-decoration:none; }
  #anjos-modelo .ag-pager button:focus-visible { outline:2px solid #ac451c; outline-offset:2px; }
  #anjos-modelo .ag-accessible { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  #anjos-modelo .ag-grid article.ag-text-only a { display:block; }
  @media(pointer:coarse) { #anjos-modelo .ag-pager button { min-width:44px; min-height:44px; } }

#anjos-modelo .ag-main { max-width:1200px; margin-inline:auto; }
#anjos-modelo .ag-wa { display:grid; place-items:center; width:19px; height:19px; border:1px solid currentColor; border-radius:50%; }
#anjos-modelo .ag-pager a { display:inline-grid; min-width:44px; min-height:44px; padding:5px 11px; place-items:center; border:1px solid #dfcbb7; color:#522534; text-decoration:underline; text-underline-offset:3px; }
#anjos-modelo .ag-pager [aria-current="page"] { background:#64283b; color:#fff; }
#anjos-modelo .ag-pager a:hover { background:#f0e4d5; }
#anjos-modelo .ag-posts-head h1 { font:700 clamp(26px,4.5vw,39px)/1.15 Georgia,serif; margin:0; }
#anjos-modelo .ag-posts { scroll-margin-top:3rem; }
#anjos-modelo .reading a, #anjos-modelo .entry-content a { color:#64283b; text-decoration:underline; }
#anjos-modelo .reading { min-height:55vh; }
