/*
Theme Name: TodaEla Editorial
Description: Tema editorial da TodaEla, revista digital em português.
Version: 1.1.5
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: todaela-editorial
*/
:root{--te-wine:#622e42;--te-ink:#2c2025;--te-muted:#67555b;--te-paper:#fffaf6;--te-rose:#f4e3e1;--te-rule:#e5d1d1;--te-side:clamp(1.05rem,4vw,3rem)}
body{margin:0;color:var(--te-ink);background:var(--te-paper)}
.te-shell{width:min(calc(100% - var(--te-side) * 2),82rem);margin-inline:auto}
.te-brand{text-align:center;padding:1.55rem 0 1.15rem;border-top:.25rem solid var(--te-wine)}
.te-masthead{display:inline-block;color:var(--te-wine);font-family:Georgia,serif;font-size:clamp(3.2rem,7vw,6.3rem);font-weight:500;line-height:.95;letter-spacing:-.08em;text-decoration:none;padding-inline:.1em}
.te-brand p,.te-eyebrow{font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;font-weight:700;color:var(--te-wine)}
.te-brand p{margin:.65rem 0 0}.te-nav{border-block:1px solid var(--te-rule);display:flex;justify-content:center;flex-wrap:wrap;gap:0 clamp(.65rem,3vw,2.4rem)}
.te-nav a{min-height:44px;display:inline-flex;align-items:center;color:var(--te-ink);text-decoration:none;font-size:.92rem;font-weight:650}
.te-nav a:hover,.te-nav a:focus-visible{text-decoration:underline;text-underline-offset:.2em;color:var(--te-wine)}
.te-hero{margin:clamp(1.2rem,4vw,3rem) 0;display:grid;grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);background:var(--te-rose);min-height:clamp(21rem,36vw,30rem)}
.te-hero-copy{padding:clamp(1.5rem,5vw,4rem);align-self:center}.te-hero h1{font-size:clamp(2.75rem,6.3vw,6rem);line-height:1;letter-spacing:-.065em;margin:.2em 0 .28em;color:var(--te-wine)}
.te-lede{font-size:clamp(1rem,1.5vw,1.16rem);max-width:31ch;margin:0 0 1.35rem}
.te-cta{display:inline-flex;align-items:center;min-height:44px;padding:.2rem 1rem;background:var(--te-wine);color:#fffaf6!important;text-decoration:none;font-weight:650}
.te-cta:hover{text-decoration:underline}.te-hero figure{margin:0;display:flex;flex-direction:column;min-width:0}
.te-photo{flex:1;background:var(--te-rose) url('assets/capa.webp') 61% 45%/cover no-repeat;min-height:19rem}
.te-hero figcaption{font-size:.69rem;color:var(--te-muted);background:#f9eee8;padding:.35rem .7rem;text-align:right}
.te-sections{border-bottom:1px solid var(--te-rule);padding:0 0 1.5rem;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}
.te-sections a{border:1px solid var(--te-rule);display:block;text-decoration:none;padding:1rem;color:var(--te-wine);font:500 clamp(1.1rem,2.5vw,1.65rem)/1.13 Georgia,serif;min-height:44px;box-sizing:border-box}
.te-sections a:hover{background:#f4e3e1}.te-sections small{display:block;color:var(--te-muted);font:600 .61rem/1.1 system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;margin-bottom:.4rem}
.te-recent{margin-block:2rem 3.5rem}.te-recent h2{color:var(--te-wine);font-size:clamp(2rem,4vw,3.4rem);letter-spacing:-.045em;margin:.45em 0}
.te-cardlist .wp-block-post{padding:1.1rem .85rem 1.2rem;border-top:2px solid var(--te-wine);background:#fff;margin:0;box-sizing:border-box}
.te-cardlist .wp-block-post-title{font-size:clamp(1.3rem,2.3vw,1.85rem);line-height:1.12;margin:.4rem 0;font-weight:500;color:var(--te-wine)}
.te-cardlist .wp-block-post-title a{text-decoration:none}.te-cardlist .wp-block-post-title a:hover{text-decoration:underline}
.te-cardlist .wp-block-post-excerpt{font-size:.92rem;color:var(--te-muted)}.te-cardlist .taxonomy-category{font-size:.71rem;text-transform:uppercase;letter-spacing:.09em}
.te-article{margin-block:2.5rem 4rem}.te-article h1.wp-block-post-title{font-size:clamp(2.3rem,5vw,4.7rem);line-height:1.04;letter-spacing:-.055em;color:var(--te-wine);overflow-wrap:anywhere}
.te-article .wp-block-post-content{line-height:1.75}.te-article .wp-block-post-content h2{color:var(--te-wine);line-height:1.2}
.te-footer{padding:2rem 0;border-top:1px solid var(--te-rule);background:#f4e3e1;color:var(--te-wine)}.te-footer strong{display:block;font:500 2.2rem Georgia,serif;letter-spacing:-.07em}.te-footer p{margin:.2em 0}
a:focus-visible,button:focus-visible{outline:2px solid var(--te-wine);outline-offset:3px}
@media(max-width:720px){.te-hero{grid-template-columns:minmax(0,1fr)}.te-photo{min-height:0;aspect-ratio:3/2;background-position:center 42%}.te-hero-copy{padding:1.35rem}.te-sections{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.te-cardlist .wp-block-post-template{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:1rem}.te-brand{padding-top:1.35rem}}

/* Category archives use article-card typography, not the single-post masthead. */
.te-archive .wp-block-query-title{color:var(--te-wine);font-size:clamp(2.5rem,5vw,4.6rem);line-height:1.04;letter-spacing:-.055em;margin:0 0 .45rem}
.te-archive .wp-block-term-description{color:var(--te-muted);font-size:1.05rem;max-width:62ch;margin:.4rem 0 1.7rem}
.te-archive .te-cardlist .wp-block-post-template{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));gap:1.2rem}
.te-archive .te-cardlist .wp-block-post:only-child{width:min(100%,56rem)}
.te-archive .te-cardlist .wp-block-post{padding:clamp(1rem,3vw,2rem)}
.te-archive .te-cardlist h3.wp-block-post-title{font-size:clamp(1.45rem,3.2vw,2.4rem);line-height:1.13;letter-spacing:-.025em;overflow-wrap:break-word}
.te-archive .te-cardlist .wp-block-post-excerpt{max-width:65ch;font-size:1rem}

.te-brand{padding:1rem 0 .9rem}
.te-masthead.te-masthead-image{position:relative;display:block;margin:auto;width:clamp(8.7rem,15.5vw,12rem);height:clamp(6.7rem,11.8vw,9.25rem);padding:0;background:url('assets/todaela-logo.png') center 50% / 100% auto no-repeat}
.te-masthead-image span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.te-brand p{margin:.3rem 0 0}

/* Keep the original PNG; warm only the copper lettering as displayed here. */
.te-masthead.te-masthead-image{width:clamp(9.2rem,16vw,12.5rem);height:auto;aspect-ratio:1 / .86;background-position:center}
.te-masthead-image:focus-visible{outline:2px solid var(--te-wine);outline-offset:3px}
/* Replace only the lettering with crisp native SVG paths. */
.te-masthead.te-masthead-image{background-image:url('assets/todaela-lettering-rose.svg')}
.te-masthead-image::before{content:"";position:absolute;inset:0;pointer-events:none;background:url('assets/todaela-logo.png') center / 100% auto no-repeat;clip-path:inset(0 0 41% 0)}

/* Newspaper masthead, editorial section menu, and photo-led magazine cover. */
.te-brand{border-top:0;padding:.3rem 0 .85rem}
.te-nav-editorial{width:min(calc(100% - var(--te-side) * 2),82rem);margin-inline:auto;gap:0 clamp(.55rem,1.9vw,1.7rem);border-color:#76515d;position:relative;z-index:3}
.te-nav-group{display:flex;align-items:center;gap:.12rem;position:relative}
.te-nav-editorial .te-nav-group>a{font-size:.77rem;letter-spacing:.075em;text-transform:uppercase;white-space:nowrap}
.te-nav-drop summary{cursor:pointer;list-style:none;padding:.68rem .25rem;line-height:1;color:var(--te-wine)}
.te-nav-drop summary::-webkit-details-marker{display:none}
.te-nav-drop summary span{font-size:1.04rem}
.te-nav-drop ul{background:var(--te-paper);border:1px solid var(--te-rule);min-width:12rem;list-style:none;margin:0;padding:.45rem .8rem;position:absolute;inset:auto auto auto 0;z-index:4;box-shadow:0 .6rem 1.5rem #2c20251a}
.te-nav-group:last-child ul{left:auto;right:0}
.te-nav-drop ul a{font-size:.88rem;min-height:40px}
.te-topics{display:flex;flex-wrap:wrap;gap:.45rem .75rem;margin:1.25rem 0 2rem}
.te-topics a{font-size:.83rem;color:var(--te-wine);padding:.5rem .7rem;border:1px solid var(--te-rule);text-decoration:none}
.te-topics a:hover,.te-topics a:focus-visible{background:var(--te-rose);text-decoration:underline}
.te-hero{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);border-bottom:1px solid var(--te-rule);background:transparent}
.te-hero-copy{grid-column:2;grid-row:1;padding:clamp(1.6rem,6vw,5.25rem)}
.te-hero figure{grid-column:1;grid-row:1}
.te-hero .te-cta{background:transparent;color:var(--te-wine)!important;border-bottom:1px solid var(--te-wine);border-radius:0;padding-left:0;padding-right:0}
.te-cardlist .wp-block-post-featured-image img{object-fit:cover}
@media(max-width:720px){
  .te-hero{grid-template-columns:1fr}
  .te-hero figure{grid-column:1;grid-row:1}.te-hero-copy{grid-column:1;grid-row:2;padding:1.4rem .1rem 1.65rem}
  .te-nav-editorial{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 .35rem;padding:.25rem 0}
  .te-nav-group:nth-child(3n) ul{left:auto;right:0}
  .te-nav-editorial .te-nav-group>a{font-size:.68rem;letter-spacing:.02em;min-height:40px}
}

/* Branded display typography; keep editorial copy and controls easy to read. */
@font-face{font-family:"Bodoni Moda";src:url('assets/bodoni-moda-latin.woff') format('woff');font-style:normal;font-weight:400 900;font-display:swap}
:root{--te-display:"Bodoni Moda",Didot,"Bodoni MT",Georgia,serif}
.te-shell :is(h1,h2,h3,h4),.te-footer strong{font-family:var(--te-display);font-optical-sizing:auto}
.te-hero h1,.te-archive .wp-block-query-title,.te-article h1.wp-block-post-title,.te-recent h2{font-weight:550;letter-spacing:-.043em;line-height:1.04}
.te-cardlist .wp-block-post-title,.te-archive .te-cardlist h3.wp-block-post-title{font-weight:600;letter-spacing:-.024em;line-height:1.13}
.te-article .wp-block-post-content :is(h2,h3,h4){font-weight:650;letter-spacing:-.025em}
.te-nav,.te-topics,.te-article .wp-block-post-content{font-family:system-ui,-apple-system,sans-serif}

/* Section names use the editorial typeface; reading text stays unchanged. */
.te-nav-editorial .te-nav-group>a,.te-nav-editorial .te-nav-drop ul a,.te-topics a{font-family:var(--te-display);font-optical-sizing:auto;font-weight:650;letter-spacing:0;text-transform:none}
.te-nav-editorial .te-nav-group>a{font-size:.98rem}
.te-nav-editorial .te-nav-drop ul a,.te-topics a{font-size:.94rem}
@media(max-width:720px){.te-nav-editorial .te-nav-group>a{font-size:.81rem}}

/* Heavier category lettering, without changing the masthead or article copy. */
.te-nav-editorial .te-nav-group>a,.te-nav-editorial .te-nav-drop ul a,.te-topics a,.te-archive .wp-block-query-title{font-weight:800}

/* Stronger, low-contrast serif strokes for small navigation labels. */
.te-nav-editorial .te-nav-group>a,.te-nav-editorial .te-nav-drop ul a,.te-topics a{font-family:Georgia,"Times New Roman",serif;font-weight:700;color:var(--te-ink)}
.te-nav-editorial .te-nav-group>a{font-size:.98rem}
@media(max-width:720px){.te-nav-editorial .te-nav-group>a{font-size:.88rem}}
@media(max-width:370px){.te-nav-editorial .te-nav-group>a{font-size:.81rem}}
