/*
Theme Name: moona-seppa-by-knaapila
Author: Knaapila
Author URI: https://knaapila.com/
Description: Custom WordPress theme for Moona Seppä.
Version: 1.0.0
Text Domain: pbp
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poiret+One&display=swap');

:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --surface-2:#f4f6f3;
  --text:#111111;
  --muted:#4f5b55;
  --border:rgba(16,24,20,0.10);
  --shadow:0 14px 40px rgba(0,0,0,0.07);

  --accent:#1b4332;
  --accent-2:#2d6a4f;
  --accent-3:#123126;

  --heading-color:#073B1F;
  --body-color:#000000;

  --radius:18px;
  --radius-lg:22px;
  --pill:999px;

  --container:1180px;
  --pad-x:20px;

  --step--1:0.875rem;
  --step-0:1rem;       /* 16px */
  --step-1:1.25rem;    /* 20px */
  --step-2:1.5625rem;  /* 25px */
  --step-3:1.953rem;
  --step-4:2.441rem;
  --step-5:3.052rem;
}

/* =====================
   BASE
===================== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  height:100%;
  scroll-behavior:smooth;
  overflow-x:hidden;
}

body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:#fff;
  color:var(--text);
  line-height:1.65;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

main{
  flex:1;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

a:hover{
  color:var(--accent-2);
}

:focus-visible{
  outline:3px solid rgba(45,106,79,0.35);
  outline-offset:3px;
  border-radius:10px;
}

/* =====================
   ACCESSIBILITY
===================== */
.screen-reader-text{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.skip-link:focus{
  position:fixed;
  top:12px;
  left:12px;
  width:auto;
  height:auto;
  margin:0;
  padding:10px 14px;
  clip:auto;
  z-index:9999;
  background:#fff;
  color:var(--text);
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

/* =====================
   TYPOGRAPHY
===================== */
body{
  line-height:1.4;
}

p{
  color:var(--body-color);
  font-size:var(--step-0);
  line-height:1.4;
}

h1,
h2,
h3{
  color:var(--heading-color);
  line-height:1.15;
  letter-spacing:-0.02em;
}

h3{
  font-size:var(--step-1);
}

h2{
  font-size:var(--step-2);
}

h1{
  font-size:var(--step-4);
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:80px var(--pad-x);
}

@media (max-width:768px){
  .container{
    padding:56px var(--pad-x);
  }
}

/* =====================
   HEADER
===================== */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,0.94);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}

.nav-container{
  position:relative;
  max-width:var(--container);
  margin:0 auto;
  padding:10px var(--pad-x);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.logo-link{
  display:inline-flex;
  align-items:center;
}

.logo-img{
  height:48px;
  width:auto;
  display:block;
}

.nav-right{
  margin-left:auto;
  display:flex;
  align-items:center;
}

.nav-menu{
  display:flex;
}

.menu{
  display:flex;
  gap:30px;
  list-style:none;
  align-items:center;
}

.menu a{
  font-size:0.80rem;
  text-transform:uppercase;
  letter-spacing:0.035em;
  font-weight:450;
  color:var(--accent);
  opacity:0.9;
}

.menu a:hover{
  color:var(--accent-2);
  opacity:1;
}

.menu .current-menu-item a{
  border-bottom:2px solid var(--accent-2);
  padding-bottom:4px;
}

.header-socials--center{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  z-index:2;
}

.header-social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  color:var(--accent);
  transition:transform 0.2s ease, opacity 0.2s ease;
}

.header-social-link:hover{
  color:var(--accent);
  opacity:0.8;
  transform:translateY(-1px);
}

.header-social-link svg{
  width:100%;
  height:100%;
  fill:currentColor;
}

.menu-toggle{
  display:none;
  font-size:1.65rem;
  cursor:pointer;
  background:transparent;
  border:0;
  color:var(--accent);
  padding:8px 10px;
  border-radius:12px;
}

.menu-toggle:hover{
  background:rgba(27,67,50,0.07);
}

@media (max-width:980px){
  .nav-container{
    gap:18px;
  }

  .menu{
    gap:22px;
  }

  .menu a{
    font-size:0.76rem;
  }
}

@media (max-width:768px){
  .nav-container{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:12px;
  }

  .logo{
    grid-column:1;
    justify-self:start;
  }

  .logo-img{
    height:38px;
  }

  .header-socials--center{
    position:static;
    transform:none;
    grid-column:2;
    justify-self:center;
    gap:14px;
  }

  .header-social-link{
    width:22px;
    height:22px;
  }

  .menu-toggle{
    display:block;
    grid-column:3;
    justify-self:end;
    margin-left:auto;
  }

  .nav-right{
    margin-left:0;
  }

  .nav-menu{
    position:static;
  }

  .menu{
    display:none;
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
    background:rgba(255,255,255,0.97);
    border:1px solid var(--border);
    position:absolute;
    right:16px;
    top:62px;
    padding:18px;
    border-radius:16px;
    box-shadow:var(--shadow);
    min-width:220px;
  }

  .menu.active{
    display:flex;
  }
}

/* =====================
   BUTTONS
===================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 22px;
  background:var(--accent);
  color:#fff;
  border-radius:var(--pill);
  font-weight:700;
  letter-spacing:-0.01em;
  box-shadow:0 10px 26px rgba(27,67,50,0.18);
  transition:transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover{
  background:var(--accent-2);
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(27,67,50,0.22);
  color:#fff;
}

.btn--small{
  padding:10px 16px;
  font-size:0.95rem;
}

/* =====================
   HERO
===================== */
.hero--center{
  position:relative;
  min-height:clamp(720px, 86vh, 920px);
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:0 var(--pad-x);
  overflow:hidden;
  color:#fff;
}

.hero--center::before{
  display:none;
}

.hero-media{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:68% 18%;
  transform:scale(1.02);
}

.hero-overlay{
  display:none;
}

.hero-center{
  position:relative;
  z-index:2;
  width:min(100%, 460px);
  max-width:min(460px, 36vw);
  text-align:left;
  margin-left:clamp(32px, 6vw, 120px);
  padding:0;
}

.hero-party-logo-wrap{
  position:absolute;
  top:clamp(120px, 17vh, 180px);
  left:clamp(32px, 6vw, 120px);
  z-index:2;
  margin:0;
}

.hero-party-logo{
  display:block;
  height:82px;
  width:auto;
}

.hero-side-note{
  position:absolute;
  top:49.5%;
  left:calc(50% + clamp(268px, 20vw, 378px));
  transform:translateY(-50%);
  z-index:2;
  display:flex;
  align-items:center;
  gap:16px;
  color:rgba(255,255,255,0.92);
  pointer-events:none;
  text-align:left;
}

.hero-side-note::before{
  content:"";
  width:1px;
  height:92px;
  background:rgba(255,255,255,0.42);
  display:block;
  flex:0 0 auto;
}

.hero-side-note-line{
  display:none;
}

.hero-side-note-text{
  display:block;
  font-family:'Inter',system-ui,sans-serif;
  font-weight:500;
  line-height:1.24;
  text-transform:uppercase;
  letter-spacing:0.14em;
}

.hero-side-note-main,
.hero-side-note-year{
  display:block;
}

.hero-side-note-main{
  font-size:clamp(1.45rem, 2.15vw, 2rem);
}

.hero-side-note-year{
  margin-top:0.16em;
  font-size:clamp(1.35rem, 1.95vw, 1.8rem);
}

@media (min-width:981px){
  .hero-party-logo-wrap{
    position:absolute;
    top:clamp(120px, 17vh, 180px);
    left:clamp(32px, 6vw, 120px);
    transform:none;
    margin:0;
  }
}

.hero-title{
  margin:0 0 18px;
  max-width:none;
  color:#fff;
  font-family:'Poiret One','Inter',system-ui,sans-serif;
  font-weight:400;
  line-height:1.02;
  text-transform:uppercase;
}

.hero-title-first,
.hero-title-last{
  display:block;
}

.hero-title-first{
  font-size:clamp(2.4rem, 4vw, 3.7rem);
  letter-spacing:0.08em;
  opacity:0.96;
  margin-bottom:0.14em;
}

.hero-title-last{
  font-size:clamp(3.8rem, 6.3vw, 6.2rem);
  letter-spacing:0.12em;
}

.hero-lead{
  font-size:1.2rem;
  line-height:1.4;
  color:#fff;
  max-width:26ch;
  margin:0 0 28px;
  text-shadow:0 2px 18px rgba(0,0,0,0.22);
}

.hero-actions{
  display:flex;
  justify-content:flex-start;
  gap:12px;
  flex-wrap:wrap;
}

.hero--center .btn--primary,
.hero--center .btn--primary:visited{
  background:#fff;
  color:var(--accent);
  border:1px solid rgba(255,255,255,0.55);
  box-shadow:0 14px 34px rgba(0,0,0,0.12);
}

.hero--center .btn--primary:hover{
  background:var(--surface-2);
  color:var(--accent);
}

.hero--center .btn--ghost,
.hero--center .btn--ghost:visited{
  background:transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,0.35);
  box-shadow:none;
}

.hero--center .btn--ghost:hover{
  background:rgba(255,255,255,0.10);
  color:#fff;
}

@media (max-width:1180px){
  .hero-media{
    object-position:74% 18%;
  }

  .hero-center{
    max-width:min(420px, 34vw);
    margin-left:clamp(24px, 4vw, 72px);
  }

  .hero-title-first{
    font-size:clamp(2.2rem, 3.8vw, 3.2rem);
  }

  .hero-title-last{
    font-size:clamp(3.2rem, 5.7vw, 5rem);
  }
}

@media (max-width:1320px){
  .hero-side-note{
    top:49.5%;
    left:calc(50% + clamp(238px, 19vw, 322px));
    transform:translateY(-50%);
  }
}

@media (max-width:1180px){
  .hero-side-note{
    top:49.5%;
    left:calc(50% + clamp(196px, 17vw, 264px));
    transform:translateY(-50%);
    gap:14px;
  }

  .hero-side-note::before{
    height:82px;
  }

  .hero-side-note-main{
    font-size:clamp(1.28rem, 1.9vw, 1.65rem);
  }

  .hero-side-note-year{
    font-size:clamp(1.18rem, 1.7vw, 1.5rem);
  }
}

@media (max-width:980px){
  .hero-side-note{
    display:none;
  }

  .hero--center{
    justify-content:center;
    align-items:flex-end;
    min-height:88svh;
    padding:0 20px 34px;
  }

  .hero-media{
    object-position:50% 12%;
  }

  .hero-center{
    position:static;
    z-index:2;
    max-width:920px;
    width:100%;
    text-align:center;
    margin:0 auto;
    padding:0;
    background:transparent;
    border-radius:0;
    backdrop-filter:none;
  }

  .hero-party-logo-wrap{
    position:absolute;
    top:16px;
    left:20px;
    z-index:4;
    margin:0;
    width:auto;
    transform:none;
  }

  .hero-party-logo{
    height:56px;
    margin:0;
  }

  .hero-title{
    margin:0 auto 16px;
  }

  .hero-title-first{
    font-size:clamp(2.1rem, 7vw, 3rem);
    letter-spacing:0.07em;
    margin-bottom:0.12em;
  }

  .hero-title-last{
    font-size:clamp(3rem, 10vw, 4.4rem);
    letter-spacing:0.10em;
  }

  .hero-lead{
    max-width:30ch;
    margin:0 auto 24px;
    font-size:1.05rem;
  }

  .hero-actions{
    justify-content:center;
    gap:10px;
  }

  .hero-actions .btn{
    width:auto;
    min-width:220px;
  }
}

@media (max-width:1280px) and (min-width:981px){
  .hero-center{
    max-width:min(420px, 32vw);
    margin-top:88px;
  }

  .hero-actions{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .hero-actions .btn{
    min-width:220px;
  }
}

@media (max-width:640px){
  .hero--center{
    padding:0 16px 24px;
  }

  .hero-media{
    object-position:50% 10%;
  }

  .hero-center{
    position:static;
    padding:0;
    border-radius:0;
    background:transparent;
    backdrop-filter:none;
  }

  .hero-party-logo-wrap{
    position:absolute;
    top:12px;
    left:16px;
    margin:0;
    transform:none;
  }

  .hero-party-logo{
    height:48px;
  }

  .hero-title-first{
    font-size:clamp(1.9rem, 8vw, 2.5rem);
    letter-spacing:0.06em;
  }

  .hero-title-last{
    font-size:clamp(2.8rem, 13vw, 4rem);
    letter-spacing:0.08em;
  }

  .hero-lead{
    font-size:1rem;
    max-width:24ch;
    margin:0 auto 22px;
  }

  .hero-actions{
    justify-content:center;
    gap:10px;
  }

  .hero-actions .btn{
    width:auto;
    min-width:200px;
    padding-left:18px;
    padding-right:18px;
  }
}

/* =====================
   ETUSIVU 1 BODY LAYOUT
===================== */
.home-body-section > h2{
  color:var(--heading-color);
  margin:0 auto 26px;
  text-align:center;
  letter-spacing:0.3em;
}

.home-main-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.3fr) minmax(340px, 380px);
  gap:30px;
  align-items:start;
}

.home-left-column{
  display:flex;
  flex-direction:column;
  gap:50px;
}

.glass-panel{
  border-radius:var(--radius-lg);
  padding:28px;
  background:#fff;
  border:1px solid rgba(16,24,20,0.12);
  box-shadow:0 16px 44px rgba(0,0,0,0.08);
  color:var(--text);
  display:flex;
  flex-direction:column;
  transition:transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-panel:hover{
  transform:translateY(-3px);
  box-shadow:0 22px 58px rgba(0,0,0,0.10);
}

.glass-panel--compact{
  min-height:auto;
}

.glass-panel h3{
  color:var(--heading-color);
  margin-bottom:10px;
}

.glass-lead{
  color:#000;
  margin-bottom:14px;
  max-width:52ch;
}

.glass-list{
  list-style:none;
  padding:0;
  margin:0 0 18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.glass-list li{
  color:#000;
  font-size:1rem;
  padding-left:16px;
  position:relative;
}

.glass-list li::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--accent-2);
  position:absolute;
  left:0;
  top:0.55em;
}

.glass-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:16px;
}

.glass-panel .btn--ghost{
  color:var(--accent);
  border:1px solid rgba(27,67,50,0.28);
  background:transparent;
  box-shadow:none;
}

.glass-panel .btn--ghost:hover{
  background:rgba(27,67,50,0.08);
  color:var(--accent);
}

.social-links{
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:2px;
}

.social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  color:#073B1F;
  transition:transform 0.2s ease, opacity 0.2s ease;
}

.social-link:hover{
  color:#073B1F;
  opacity:0.8;
  transform:translateY(-1px);
}

.social-link svg{
  width:100%;
  height:100%;
  fill:currentColor;
}

.home-feed-column{
  display:flex;
  justify-content:flex-start;
  align-items:flex-start;
}

.fb-feed{
  display:flex;
  justify-content:flex-start;
  align-items:flex-start;
  width:100%;
}

.fb-feed--plain{
  width:100%;
  padding:0;
  margin:0;
  background:transparent;
  border:0;
  border-radius:0;
}

.fb-feed--plain iframe{
  display:block;
  width:380px !important;
  max-width:100%;
  height:980px;
  min-height:980px;
  border:0;
  border-radius:14px;
  background:#fff;
  box-shadow:none;
}

/* =====================
   HOME INLINE POSTS
===================== */
.home-posts-inline{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.home-posts-inline-title{
  color:var(--heading-color);
  margin:0;
  text-align:center;
}

.post-list{
  display:flex;
  flex-direction:column;
  gap:22px;
}

.post-row-card{
  display:flex;
  align-items:stretch;
  gap:20px;
  background:#fff;
  border:1px solid rgba(16,24,20,0.10);
  border-radius:22px;
  box-shadow:0 16px 44px rgba(0,0,0,0.08);
  padding:20px;
  overflow:hidden;
}

.post-row-image{
  flex:0 0 220px;
  width:220px;
  height:260px;
  border-radius:16px;
  overflow:hidden;
  display:block;
  background:#e9ece8;
}

.post-row-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  display:block;
}

.post-row-content{
  flex:1;
  display:flex;
  flex-direction:column;
  min-width:0;
}

.post-row-text{
  flex:1;
}

.post-row-title{
  margin-bottom:6px;
  line-height:1.15;
}

.post-row-title a{
  color:var(--heading-color);
  text-decoration:none;
}

.post-row-title a:hover{
  color:var(--accent-2);
}

.post-row-date{
  font-size:0.92rem;
  color:#000;
  margin-bottom:12px;
  line-height:1.4;
}

.post-row-excerpt{
  color:#000;
}

.post-row-excerpt p{
  margin:0;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:5;
  overflow:hidden;
  line-height:1.4;
  max-height:7em;
}

.post-row-btn{
  margin-top:16px;
  align-self:flex-end;
}

.post-row-card.no-thumb .post-row-content{
  width:100%;
}

/* =====================
   CONTACT PAGE
===================== */
.page-template-page-contact .contact-page-section{
  background:linear-gradient(180deg, rgba(244,246,243,0.75) 0%, #ffffff 100%);
}

.page-template-page-contact .contact-page-container{
  max-width:1180px;
  margin:0 auto;
  padding:84px 20px;
}

.page-template-page-contact .contact-card{
  background:rgba(255,255,255,0.94);
  border:1px solid rgba(7,59,31,0.10);
  box-shadow:0 18px 48px rgba(0,0,0,0.06);
  border-radius:32px;
}

.page-template-page-contact .contact-card--split{
  display:grid;
  grid-template-columns:minmax(260px, 320px) minmax(0, 1fr);
  gap:40px;
  align-items:start;
  padding:32px;
}

.page-template-page-contact .contact-card-media{
  display:flex;
  justify-content:center;
  align-items:center;
}

.page-template-page-contact .contact-card-image{
  width:100%;
  max-width:320px;
  aspect-ratio:4/5;
  object-fit:cover;
  object-position:center top;
  border-radius:28px;
  box-shadow:0 14px 34px rgba(0,0,0,0.08);
  background:#f4f4f4;
}

.page-template-page-contact .contact-card-content{
  display:flex;
  flex-direction:column;
  gap:14px;
  justify-content:flex-start;
  align-self:stretch;
  min-height:100%;
  padding-top:6px;
}

.page-template-page-contact .contact-page-title{
  color:var(--heading-color);
  margin:0;
  font-size:var(--step-3);
  line-height:1.02;
  text-transform:uppercase;
  letter-spacing:-0.02em;
}

.page-template-page-contact .contact-info-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.page-template-page-contact .contact-contact-line{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  color:#000;
  font-size:1.125rem;
  line-height:1.4;
}

.page-template-page-contact .contact-contact-icon{
  font-size:1.2rem;
  line-height:1;
}

.page-template-page-contact .contact-contact-link{
  color:#000;
  text-decoration:none;
  font-weight:600;
}

.page-template-page-contact .contact-contact-link:hover{
  color:#073B1F;
}

.page-template-page-contact .contact-contact-note{
  margin:0;
  color:#000;
  font-size:var(--step-0);
  line-height:1.45;
  max-width:46ch;
}

.page-template-page-contact .contact-contact-note--lead{
  font-size:var(--step-0);
  line-height:1.45;
  margin-top:18px;
}

.page-template-page-contact .contact-socials{
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:auto;
  padding-top:0;
}

.page-template-page-contact .contact-social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  color:#073B1F;
  transition:transform 0.2s ease, opacity 0.2s ease;
}

.page-template-page-contact .contact-social-link:hover{
  color:#073B1F;
  opacity:0.8;
  transform:translateY(-1px);
}

.page-template-page-contact .contact-social-link svg{
  width:100%;
  height:100%;
  fill:currentColor;
}

.page-template-page-contact .contact-page-editor{
  margin-top:4px;
}

@media (max-width:768px){
  .page-template-page-contact .contact-page-container{
    padding:60px 16px;
  }

  .page-template-page-contact .contact-card--split{
    grid-template-columns:1fr;
    gap:22px;
    padding:22px;
    text-align:center;
  }

  .page-template-page-contact .contact-card-image{
    max-width:220px;
    border-radius:24px;
  }

  .page-template-page-contact .contact-card-content{
    align-items:center;
  }

  .page-template-page-contact .contact-contact-line{
    justify-content:center;
    flex-wrap:wrap;
  }

  .page-template-page-contact .contact-contact-note{
    max-width:34ch;
  }

  .page-template-page-contact .contact-socials{
    justify-content:center;
    margin-top:6px;
    padding-top:0;
  }
}

/* =====================
   BLOG / ARCHIVE PAGES
===================== */
.blog-archive-section{
  background:linear-gradient(180deg, rgba(244,246,243,0.75) 0%, #ffffff 100%);
}

.blog-archive-container{
  max-width:1280px;
  margin:0 auto;
  padding:72px 20px;
}

.blog-layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 320px;
  gap:30px;
  align-items:start;
}

.blog-main{
  min-width:0;
}

.blog-page-head{
  margin-bottom:26px;
}

.blog-page-eyebrow{
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:0.10em;
  font-weight:800;
  font-size:0.82rem;
  margin:0 0 10px;
  line-height:1.4;
}

.blog-page-title{
  color:var(--heading-color);
  margin:0;
  font-size:var(--step-3);
  line-height:1.02;
}

.blog-archive-description{
  margin-top:14px;
  color:#000;
  max-width:70ch;
}

.blog-post-list{
  display:flex;
  flex-direction:column;
  gap:22px;
}

.blog-post-card{
  display:grid;
  grid-template-columns:220px minmax(0, 1fr);
  gap:22px;
  align-items:stretch;
  padding:20px;
  background:#fff;
  border:1px solid rgba(27,67,50,0.10);
  border-radius:24px;
  box-shadow:0 14px 40px rgba(0,0,0,0.05);
  transition:transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.blog-post-card:hover{
  transform:translateY(-2px);
  border-color:rgba(27,67,50,0.18);
  box-shadow:0 18px 44px rgba(0,0,0,0.06);
}

.blog-post-card.no-thumb::before{
  content:"";
  display:block;
  width:220px;
}

.blog-post-image{
  width:220px;
  height:260px;
  overflow:hidden;
  border-radius:18px;
  background:#edf1ed;
  display:block;
}

.blog-post-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  display:block;
}

.blog-post-content{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.blog-post-date{
  color:#000;
  font-size:0.92rem;
  margin:0 0 8px;
  text-transform:uppercase;
  letter-spacing:0.06em;
  font-weight:700;
  line-height:1.4;
}

.blog-post-title{
  margin:0 0 10px;
  font-size:var(--step-1);
  line-height:1.08;
  letter-spacing:-0.03em;
}

.blog-post-title a{
  color:var(--heading-color);
  text-decoration:none;
}

.blog-post-title a:hover{
  color:var(--accent-2);
}

.blog-post-excerpt{
  color:#000;
  max-width:68ch;
}

.blog-post-excerpt p{
  margin:0;
}

.blog-post-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:18px;
  color:var(--accent);
  font-weight:800;
  align-self:flex-start;
}

.blog-post-link:hover{
  color:var(--accent-2);
}

.blog-sidebar{
  position:sticky;
  top:92px;
  align-self:start;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.blog-sidebar-card{
  background:#fff;
  border:1px solid rgba(27,67,50,0.10);
  box-shadow:0 14px 40px rgba(0,0,0,0.04);
  border-radius:22px;
  padding:22px;
}

.blog-sidebar-card h3{
  color:var(--heading-color);
  margin:0 0 14px;
  font-size:1.1rem;
  line-height:1.1;
}

.blog-sidebar-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.blog-sidebar-list li{
  margin:0;
}

.blog-sidebar-list a{
  color:#000;
  text-decoration:none;
  line-height:1.45;
}

.blog-sidebar-list a:hover{
  color:var(--accent);
}

.blog-tag-cloud{
  line-height:2.1;
}

.blog-tag-cloud a{
  color:#000;
  text-decoration:none;
}

.blog-tag-cloud a:hover{
  color:var(--accent);
}

.blog-pagination{
  margin-top:10px;
}

.blog-pagination .page-numbers{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:0;
  margin:0;
}

.blog-pagination .page-numbers li{
  margin:0;
}

.blog-pagination a,
.blog-pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  min-height:42px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid rgba(27,67,50,0.12);
  background:#fff;
  color:var(--accent);
  font-weight:700;
  text-decoration:none;
}

.blog-pagination a:hover{
  background:#fff;
  border-color:rgba(27,67,50,0.20);
}

.blog-pagination .current{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}

/* =====================
   SINGLE POST
===================== */
.single-post-section{
  background:linear-gradient(180deg, rgba(244,246,243,0.75) 0%, #ffffff 100%);
}

.single-post-container{
  max-width:900px;
  margin:0 auto;
  padding:72px 20px;
}

.single-post-article{
  background:#fff;
  border:1px solid rgba(27,67,50,0.10);
  box-shadow:0 16px 46px rgba(0,0,0,0.05);
  border-radius:24px;
  padding:28px;
}

.single-post-date{
  color:#000;
  font-size:0.92rem;
  margin:0 0 10px;
  text-transform:uppercase;
  letter-spacing:0.06em;
  font-weight:700;
  line-height:1.4;
}

.single-post-title{
  color:var(--heading-color);
  margin:0 0 18px;
  font-size:clamp(2rem, 4vw, 3rem);
}

.single-post-thumbnail{
  margin:0 0 24px;
  border-radius:18px;
  overflow:hidden;
}

.single-post-content{
  color:#000;
}

.single-post-content p{
  margin-bottom:16px;
}

.single-post-content h2,
.single-post-content h3{
  color:var(--heading-color);
  margin-top:24px;
}

/* =====================
   GENERIC PAGE
===================== */
.page-default-section{
  background:#fff;
}

.page-default-container{
  max-width:900px;
  margin:0 auto;
  padding:72px 20px;
}

.themes-page-hero .page-default-container{
  max-width:1180px;
}

.page-default-card{
  background:#fff;
  border:1px solid rgba(27,67,50,0.10);
  box-shadow:0 16px 46px rgba(0,0,0,0.05);
  border-radius:24px;
  padding:28px;
}

.page-default-title{
  color:var(--heading-color);
  margin:0;
  font-size:var(--step-3);
  line-height:1.02;
  text-transform:uppercase;
}

.page-default-section .blog-page-eyebrow,
.page-template-page-contact .blog-page-eyebrow,
.profile-page-hero .blog-page-eyebrow,
.themes-page-hero .blog-page-eyebrow{
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:0.10em;
  font-weight:800;
  font-size:0.82rem;
  margin:0 0 4px;
  line-height:1.4;
}

.page-default-section .page-default-title,
.page-template-page-contact .contact-page-title,
.profile-page-hero .page-default-title,
.themes-page-hero .page-default-title{
  color:var(--heading-color);
  margin:0;
  font-size:var(--step-3);
  line-height:1.02;
  text-transform:uppercase;
}

.page-default-content p{
  margin-bottom:16px;
}

.page-default-content h2,
.page-default-content h3{
  color:var(--heading-color);
  margin-top:24px;
}

/* =====================
   FOOTER
===================== */
.site-footer{
  background:#0e1411;
  color:#fff;
  padding:44px var(--pad-x);
  border-top:1px solid rgba(255,255,255,0.06);
}

.site-footer,
.site-footer p,
.site-footer a{
  color:#fff;
}

.site-footer a:hover{
  color:#fff;
  opacity:0.85;
}

.site-footer-inner{
  max-width:var(--container);
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:24px;
  align-items:start;
}

.site-footer-col{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.site-footer-col--left{
  align-items:flex-start;
  text-align:left;
}

.site-footer-col--center{
  align-items:center;
  text-align:center;
}

.site-footer-col--right{
  align-items:flex-end;
  text-align:right;
}

.site-footer-col p{
  margin:0;
}

.footer-socials{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:2px;
}

.footer-social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  color:#fff;
  transition:transform 0.2s ease, opacity 0.2s ease;
}

.footer-social-link:hover{
  color:#fff;
  opacity:0.8;
  transform:translateY(-1px);
}

.footer-social-link svg{
  width:100%;
  height:100%;
  fill:currentColor;
}

@media (max-width:768px){
  .site-footer{
    padding:32px var(--pad-x);
  }

  .site-footer-inner{
    grid-template-columns:1fr;
    gap:18px;
  }

  .site-footer-col--left,
  .site-footer-col--center,
  .site-footer-col--right{
    align-items:flex-start;
    text-align:left;
  }
}

/* =====================
   FADE-IN
===================== */
.fade-in{
  opacity:0;
  transform:translateY(18px);
  transition:0.7s ease;
}

.fade-in.visible{
  opacity:1;
  transform:translateY(0);
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width:1100px){
  .home-main-grid{
    grid-template-columns:1fr;
  }

  .home-feed-column{
    order:2;
  }

  .home-left-column{
    order:1;
  }

  .fb-feed--plain iframe{
    width:100% !important;
    max-width:500px;
    height:920px;
    min-height:920px;
  }
}

@media (max-width:1024px){
  .blog-layout{
    grid-template-columns:1fr;
  }

  .blog-sidebar{
    position:static;
  }
}

@media (max-width:768px){
  .glass-panel{
    padding:20px;
    border-radius:20px;
  }

  .social-links{
    gap:14px;
  }

  .social-link{
    width:26px;
    height:26px;
  }

  .post-row-card{
    flex-direction:column;
    gap:16px;
    padding:16px;
  }

  .post-row-image{
    width:100%;
    height:220px;
    flex:none;
  }

  .post-row-btn{
    align-self:flex-start;
  }

  .fb-feed--plain iframe{
    width:100% !important;
    max-width:100%;
    height:860px;
    min-height:860px;
  }

  .page-template-page-contact .contact-page-container{
    padding:60px 20px;
  }

  .page-template-page-contact .contact-card--split{
    grid-template-columns:1fr;
    gap:22px;
    padding:22px;
    text-align:center;
  }

  .page-template-page-contact .contact-card-image{
    max-width:160px;
  }

  .page-template-page-contact .contact-contact-line{
    justify-content:center;
    flex-wrap:wrap;
  }

  .page-template-page-contact .contact-socials{
    justify-content:center;
  }

  .blog-archive-container,
  .single-post-container,
  .page-default-container{
    padding:56px 20px;
  }

  .blog-post-card{
    grid-template-columns:1fr;
    gap:16px;
    padding:16px;
    border-radius:20px;
  }

  .blog-post-card.no-thumb::before{
    display:none;
  }

  .blog-post-image{
    width:100%;
    height:220px;
  }

  .blog-sidebar-card,
  .single-post-article,
  .page-default-card{
    padding:20px;
    border-radius:20px;
  }

  .site-footer{
    padding:32px var(--pad-x);
  }

  .site-footer-inner{
    flex-direction:column;
    align-items:flex-start;
  }

  .site-footer-right{
    align-items:flex-start;
    text-align:left;
  }
}


/* =====================
   HEADER SOCIALS
===================== */
.nav-right{
  display:flex;
  align-items:center;
  gap:18px;
}


.header-socials{
  display:flex;
  align-items:center;
  gap:12px;
}

.header-social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  color:var(--accent);
  opacity:0.92;
  transition:transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.header-social-link:hover{
  color:var(--accent-2);
  opacity:1;
  transform:translateY(-1px);
}

.header-social-link svg{
  width:100%;
  height:100%;
  fill:currentColor;
}

.header-socials--mobile-center{
  display:none;
}

@media (max-width:768px){
  .nav-right{
    display:block;
    grid-column:1 / -1;
  }

  .header-socials--desktop{
    display:none;
  }

  .header-socials--mobile-center{
    display:flex;
    grid-column:2;
    justify-self:center;
    align-items:center;
    gap:14px;
  }

  .header-social-link{
    width:24px;
    height:24px;
  }

  .nav-menu{
    width:auto;
  }

  .menu{
    gap:14px;
  }
}

/* =====================
   CUSTOM PAGE TEMPLATES
===================== */
.profile-page-hero,
.themes-page-hero{
  background:linear-gradient(180deg, rgba(244,246,243,0.75) 0%, #ffffff 100%);
}

.profile-page-hero .page-default-card,
.themes-page-hero .page-default-card{
  overflow:hidden;
}

.profile-intro-grid{
  display:grid;
  grid-template-columns:minmax(360px, 460px) minmax(0, 1fr);
  gap:36px;
  align-items:start;
}

.profile-left-column{
  display:flex;
  flex-direction:column;
  gap:22px;
}

.profile-portrait{
  border-radius:28px;
  overflow:hidden;
  background:#eef2ee;
  min-height:0;
  box-shadow:0 18px 44px rgba(0,0,0,0.08);
}

.profile-portrait img{
  width:100%;
  height:auto;
  object-fit:contain;
  object-position:center top;
}

.profile-side-facts{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

.profile-side-fact{
  padding:18px 20px;
  border:1px solid rgba(27,67,50,0.10);
  box-shadow:0 14px 40px rgba(0,0,0,0.05);
  border-radius:22px;
  background:#fff;
}

.profile-side-fact--wide{
  grid-column:1 / -1;
}

.profile-side-fact-label{
  display:block;
  color:var(--accent);
  font-size:0.78rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
  font-weight:800;
  margin-bottom:8px;
}

.profile-side-fact-value{
  color:var(--heading-color);
  font-weight:700;
  line-height:1.35;
}

.profile-copy{
  display:flex;
  flex-direction:column;
  gap:20px;
  padding-top:4px;
}

.profile-copy .page-default-title{
  margin-bottom:4px;
}

.profile-lead{
  font-size:var(--step-0);
  font-weight:400;
  line-height:1.45;
  color:var(--body-color);
  max-width:32ch;
}

.profile-body-copy{
  display:grid;
  gap:14px;
  max-width:36ch;
}

.profile-body-copy p{
  margin:0;
  font-size:var(--step-0);
  line-height:1.45;
  color:var(--body-color);
}

.profile-copy .glass-actions{
  margin-top:6px;
}

.themes-intro{
  max-width:68ch;
  margin-bottom:28px;
}

.theme-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:22px;
}

.theme-topic-card,
.theme-process-card,
.theme-cta-card{
  background:#fff;
  border:1px solid rgba(27,67,50,0.10);
  box-shadow:0 14px 40px rgba(0,0,0,0.05);
  border-radius:24px;
  padding:24px;
}

.theme-topic-card{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.theme-topic-card h2,
.theme-process-card h2,
.theme-cta-card h2{
  margin-bottom:12px;
}

.theme-topic-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:999px;
  background:var(--surface-2);
  color:var(--accent);
  font-weight:800;
}

.theme-topic-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
}

.theme-topic-list li{
  padding-left:16px;
  position:relative;
  color:#000;
}

.theme-topic-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:0.6em;
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--accent-2);
}

.theme-bottom-grid{
  display:grid;
  grid-template-columns:1.2fr 0.8fr;
  gap:22px;
  margin-top:24px;
}

.theme-cta-card .btn{
  margin-top:18px;
}

@media (max-width:900px){
  .profile-intro-grid,
  .theme-bottom-grid,
  .theme-grid{
    grid-template-columns:1fr;
  }

  .profile-intro-grid{
    gap:24px;
  }

  .profile-left-column{
    max-width:520px;
  }

  .profile-side-facts{
    grid-template-columns:1fr;
  }

  .profile-side-fact--wide{
    grid-column:auto;
  }

  .profile-lead,
  .profile-body-copy{
    max-width:none;
  }
}


@media (max-width:640px){
  .container,
  .blog-archive-container,
  .single-post-container,
  .page-default-container,
  .page-template-page-contact .contact-page-container{
    padding-left:16px;
    padding-right:16px;
  }

  .home-body-section > h2{
    letter-spacing:normal;
    text-align:left;
    margin-bottom:22px;
  }

  .glass-panel,
  .blog-post-card,
  .single-post-article,
  .page-default-card,
  .blog-sidebar-card{
    padding:18px;
  }

  .hero-actions .btn,
  .glass-actions .btn{
    width:100%;
  }

  .menu{
    right:16px;
    left:16px;
    min-width:0;
  }

  .fb-feed--plain iframe{
    max-width:100%;
  }

  .post-row-image,
  .blog-post-image{
    height:200px;
  }
}


@media (max-width:640px){
  .profile-side-fact{
    padding:16px 18px;
  }
}


@media (max-width:460px){
  .hero-party-logo-wrap{
    top:10px;
    left:14px;
  }

  .hero-party-logo{
    height:44px;
  }

  .hero-title{
    margin:0 auto 14px;
  }

  .hero-title-first{
    font-size:clamp(1.8rem, 8.5vw, 2.2rem);
  }

  .hero-title-last{
    font-size:clamp(2.6rem, 13.5vw, 3.6rem);
  }

  .hero-lead{
    margin:0 auto 18px;
    font-size:0.98rem;
  }

  .hero-actions{
    flex-direction:column;
    align-items:center;
    gap:10px;
  }

  .hero-actions .btn{
    min-width:0;
    width:min(100%, 320px);
  }
}


.profile-copy > .page-default-title,
.themes-page-hero .page-default-title,
.page-template-page-contact .contact-page-title{
  margin-bottom:0;
}

.page-template-page-contact .contact-card-content .blog-page-eyebrow{
  margin:0 0 4px;
}

.themes-page-hero .themes-intro{
  margin-top:16px;
}

@media (max-width:768px){
  .page-default-section .blog-page-eyebrow,
  .page-template-page-contact .blog-page-eyebrow,
  .profile-page-hero .blog-page-eyebrow,
  .themes-page-hero .blog-page-eyebrow{
    margin:0 0 10px;
  }

  .page-default-section .page-default-title,
  .page-template-page-contact .contact-page-title,
  .profile-page-hero .page-default-title,
  .themes-page-hero .page-default-title{
    font-size:var(--step-3);
  }
}


.profile-copy .blog-page-eyebrow{
  margin:0 0 4px;
}


.profile-copy .profile-lead,
.page-template-page-contact .contact-contact-note--lead,
.themes-page-hero .themes-intro{
  margin-top:18px;
}


.page-template-page-contact .contact-support-copy{
  margin-top:6px;
  max-width:42ch;
}

.page-template-page-contact .contact-support-cta{
  margin-top:6px;
  align-self:flex-start;
}

@media (max-width:768px){
  .page-template-page-contact .contact-support-cta{
    align-self:center;
  }
}


.theme-visuals{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:22px;
  margin:28px 0 32px;
}

.theme-visual,
.theme-vision-card{
  background:#fff;
  border:1px solid rgba(27,67,50,0.10);
  box-shadow:0 14px 40px rgba(0,0,0,0.05);
  border-radius:24px;
  overflow:hidden;
}

.theme-visual img{
  display:block;
  width:100%;
  height:280px;
  object-fit:cover;
  object-position:center;
}

.theme-vision-card{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(320px, 0.95fr);
  gap:0;
  margin-top:24px;
}

.theme-vision-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
  padding:28px;
}

.theme-vision-copy .blog-page-eyebrow{
  margin:0 0 4px;
}

.theme-vision-copy h2{
  margin:0;
}

.theme-vision-copy p:last-child{
  margin:0;
}

.theme-vision-media{
  margin:0;
}

.theme-vision-media img{
  display:block;
  width:100%;
  height:100%;
  min-height:320px;
  object-fit:cover;
  object-position:center 35%;
}

@media (max-width:900px){
  .theme-visuals,
  .theme-vision-card{
    grid-template-columns:1fr;
  }

  .theme-visuals{
    margin:24px 0 28px;
  }

  .theme-visual img{
    height:230px;
  }

  .theme-vision-media img{
    min-height:260px;
  }
}


.theme-visual{
  position:relative;
  margin:0;
}

.theme-visual::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:45%;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events:none;
}

.theme-visual-caption{
  position:absolute;
  left:22px;
  right:22px;
  bottom:18px;
  z-index:2;
  margin:0;
  color:#fff;
  font-family:'Poiret One','Inter',system-ui,sans-serif;
  font-size:clamp(1.3rem, 2vw, 1.85rem);
  line-height:1.08;
  letter-spacing:0.04em;
  text-transform:uppercase;
}

@media (max-width:900px){
  .theme-visual-caption{
    left:18px;
    right:18px;
    bottom:16px;
    font-size:clamp(1.1rem, 5vw, 1.5rem);
  }
}
