/*
Theme Name: Regreener
Theme URI: https://regreener.eu/
Author: Regreener Editorial
Description: Custom editorial theme for regreener.eu — forests, climate science and green living. Atelier-editorial archetype, ocean palette.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: regreener
Tags: custom-menu, featured-images, translation-ready, two-columns
*/

/* ============ self-hosted fonts (no Google/CDN footprint) ============ */
@font-face{font-family:'Arvo';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/arvo-400.woff2') format('woff2')}
@font-face{font-family:'Arvo';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/arvo-700.woff2') format('woff2')}
@font-face{font-family:'Mulish';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/mulish-400.woff2') format('woff2')}
@font-face{font-family:'Mulish';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/mulish-500.woff2') format('woff2')}
@font-face{font-family:'Mulish';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/mulish-700.woff2') format('woff2')}

/* ============ tokens — ocean palette ============ */
:root{
  --ink:#0F2A30;
  --brand:#0B4F6C;
  --brand-deep:#083B50;
  --sand:#E0A53F;
  --sand-soft:#F3E2BE;
  --paper:#F6F8F7;
  --paper-2:#ECF1EF;
  --line:#D6DEDB;
  --muted:#5A6B6A;
  --radius:4px;
  --maxw:1180px;
  --serif:'Arvo',Georgia,'Times New Roman',serif;
  --sans:'Mulish',system-ui,-apple-system,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--sans);color:var(--ink);background:var(--paper);line-height:1.65;-webkit-font-smoothing:antialiased}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
h1,h2,h3,h4{font-family:var(--serif);line-height:1.18;color:var(--ink);font-weight:700}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:8px;top:8px;background:#fff;padding:8px 14px;z-index:99;border-radius:var(--radius)}

/* ============ header ============ */
header.site{border-bottom:1px solid var(--line);background:var(--paper);position:sticky;top:0;z-index:20}
.bar{display:flex;align-items:center;justify-content:space-between;height:74px;gap:24px}
.brand{display:flex;align-items:center;gap:11px;font-family:var(--serif);font-weight:700;font-size:1.42rem;color:var(--ink);letter-spacing:-.01em}
.brand:hover{text-decoration:none}
.brand svg{flex:0 0 auto}
nav.main ul{display:flex;gap:26px;align-items:center;list-style:none}
nav.main a{color:var(--ink);font-weight:500;font-size:.96rem}
nav.main a:hover{color:var(--brand);text-decoration:none}
.lang{display:flex;align-items:center;gap:7px;font-size:.84rem;font-weight:700;letter-spacing:.04em;border:1px solid var(--line);border-radius:var(--radius);padding:5px 10px}
.lang a{color:var(--muted)}
.lang a.current-lang,.lang .on{color:var(--brand)}
.lang span.sep{color:var(--line)}

/* ============ full-bleed editorial lead ============ */
.lead{position:relative;min-height:540px;display:flex;align-items:flex-end;color:#fff;background:var(--brand-deep)}
.lead .lead-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.lead::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,40,48,.15) 0%,rgba(8,40,48,.8) 92%);z-index:1}
.lead .wrap{position:relative;z-index:2;padding:54px 24px}
.kicker{display:inline-flex;align-items:center;gap:8px;background:var(--sand);color:var(--brand-deep);font-weight:700;font-size:.72rem;letter-spacing:.13em;text-transform:uppercase;padding:6px 12px;border-radius:var(--radius)}
.lead h1{color:#fff;font-size:clamp(2.1rem,4.6vw,3.5rem);max-width:18ch;margin:18px 0 14px}
.lead p.dek{font-size:1.18rem;max-width:60ch;color:#EAF1EE;font-weight:400}
.lead .byline{margin-top:20px;font-size:.86rem;color:#CADAD6;letter-spacing:.02em}

/* ============ drop-cap intro band ============ */
.intro{background:var(--paper);padding:56px 0}
.intro .wrap{max-width:760px}
.intro p{font-size:1.2rem;line-height:1.72;color:#26403F}
.intro p:first-of-type::first-letter{font-family:var(--serif);font-weight:700;float:left;font-size:4.6rem;line-height:.82;padding:6px 14px 0 0;color:var(--brand)}
.intro p+p{margin-top:18px}

/* ============ section heading ============ */
.sec-head{display:flex;align-items:baseline;justify-content:space-between;border-top:3px solid var(--brand);padding-top:14px;margin:0 0 26px}
.sec-head h2{font-size:1.55rem}
.sec-head a{font-size:.85rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--brand)}

/* ============ article card grid ============ */
.flow{padding:56px 0}
/* aligned rows (was CSS-columns masonry, which staggered card heights) */
.masonry{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:28px;align-items:start}
.masonry .post{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
/* every card image renders at one fixed ratio + crop, regardless of source dimensions.
   height:auto is REQUIRED — WP emits width/height HTML attrs; with both set the browser
   ignores aspect-ratio, so a portrait source (e.g. the forest-walks crop) renders tall. */
.masonry .post img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block}
.masonry .post.tall img,.masonry .post.wide img{height:auto;aspect-ratio:3/2}
.masonry .post .body{padding:18px 18px 20px;display:flex;flex-direction:column;flex:1}
.tag{font-size:.68rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--sand)}
.masonry .post h3{font-size:1.2rem;margin:8px 0 8px}
.masonry .post h3 a{color:var(--ink)}
.masonry .post p{font-size:.95rem;color:var(--muted)}
.masonry .post .meta{margin-top:12px;font-size:.78rem;color:var(--muted);display:flex;align-items:center;gap:7px}
.masonry .post.text-only{border-left:4px solid var(--sand)}
.masonry .post.text-only .body{padding:22px}

/* ============ single / page article ============ */
.article{padding:50px 0 60px}
.article .wrap{max-width:760px}
.article .crumbs{font-size:.82rem;color:var(--muted);margin-bottom:18px}
.article .tag{display:inline-block;margin-bottom:10px}
.article h1{font-size:clamp(1.9rem,3.6vw,2.7rem);margin-bottom:14px}
.article .post-meta{font-size:.86rem;color:var(--muted);margin-bottom:26px;border-bottom:1px solid var(--line);padding-bottom:18px}
.article .featured{margin:0 0 28px;border-radius:var(--radius);overflow:hidden}
.entry{font-size:1.08rem;line-height:1.78;color:#23383B}
.entry > p:first-of-type::first-letter{font-family:var(--serif);font-weight:700;float:left;font-size:3.8rem;line-height:.82;padding:6px 12px 0 0;color:var(--brand)}
.entry p{margin:0 0 18px}
.entry h2{font-size:1.5rem;margin:34px 0 12px}
.entry h3{font-size:1.22rem;margin:26px 0 10px}
.entry ul,.entry ol{margin:0 0 18px 22px}
.entry li{margin-bottom:7px}
.entry a{text-decoration:underline}
.entry blockquote{border-left:4px solid var(--sand);background:var(--paper-2);padding:14px 20px;margin:0 0 20px;font-style:italic}
.entry figure{margin:0 0 22px}
.entry figcaption{font-size:.84rem;color:var(--muted);margin-top:6px}
/* FAQ accordion */
.entry .faq{margin:6px 0 26px}
.entry .faq details{background:#fff;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:10px;overflow:hidden}
.entry .faq summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;font-family:var(--sans);font-weight:700;font-size:1rem;color:var(--ink)}
.entry .faq summary::-webkit-details-marker{display:none}
.entry .faq summary::after{content:"+";font-family:var(--sans);font-weight:400;font-size:1.35rem;color:var(--brand);line-height:1;flex:0 0 auto;transition:transform .15s ease}
.entry .faq details[open] summary::after{transform:rotate(45deg)}
.entry .faq details[open] summary{border-bottom:1px solid var(--paper-2)}
.entry .faq details>div{padding:4px 18px 6px}
.entry .faq details>div p{font-size:1rem;color:#33494B}

.related{margin-top:46px;border-top:1px solid var(--line);padding-top:24px}
.related h2{font-size:1.2rem;margin-bottom:14px}
.related ul{list-style:none}
.related li{margin-bottom:9px}

/* ============ archive / blog index ============ */
.page-head{padding:46px 0 8px}
.page-head h1{font-size:clamp(1.9rem,3.4vw,2.6rem)}
.page-head p{color:var(--muted);margin-top:8px;max-width:60ch}

/* ============ footer ============ */
footer.site{background:var(--brand-deep);color:#CFE0DB;margin-top:30px;padding:48px 0 30px;font-size:.92rem}
footer.site .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:36px}
footer.site h4{color:#fff;font-size:1rem;margin-bottom:14px;font-family:var(--sans);font-weight:700;letter-spacing:.02em}
footer.site a{color:#CFE0DB}
footer.site a:hover{color:#fff}
footer.site ul{list-style:none}
footer.site li{margin-bottom:8px}
footer.site .fbrand{display:flex;align-items:center;gap:10px;color:#fff;font-family:var(--serif);font-size:1.3rem;font-weight:700;margin-bottom:12px}
footer.site .legal{border-top:1px solid rgba(255,255,255,.14);margin-top:34px;padding-top:18px;color:#8FAAA4;font-size:.82rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}

.icn{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.7;vertical-align:-2px}

@media(max-width:720px){
  nav.main{display:none}
  .masonry{grid-template-columns:1fr}
  footer.site .cols{grid-template-columns:1fr;gap:26px}
  .lead{min-height:420px}
}
