/* Vasemmistoliiton graafinen ohjeisto 1.1
   Päävärit: punainen #F00A64, sininen #3200A0
   Lisävärit: pinkki #FF78C8, keltainen #FFE65A, musta #1E1E1E, valkoinen
   Yhdellä pinnalla enintään kaksi kirkasta brändiväriä. */
:root {
  --red: #F00A64;
  --blue: #3200A0;
  --pink: #FF78C8;
  --yellow: #FFE65A;
  --black: #1E1E1E;
  --white: #FFFFFF;
  --tint: #FFF0F6;          /* vaalea pinkki pintasävy */
  --display: "Poppins", "GT Walsheim", Arial, sans-serif;
  --serif: "PT Serif", "GT Super Text", "Times New Roman", serif;
  --wrap: 1160px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Typografia */
.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;      /* Ultra Bold aina versaaleilla */
  line-height: .95;               /* riviväli enintään 100 % */
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  font-size: clamp(3.2rem, 9vw, 7rem);
}
.display-md { font-size: clamp(2rem, 5.5vw, 3.8rem); color: var(--red); hyphens: manual; overflow-wrap: break-word; }
.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .8rem;
  color: var(--red);
  margin-bottom: .75rem;
}
.lead { font-family: var(--display); font-size: 1.25rem; line-height: 1.5; }
.narrow { max-width: 640px; }
.h3 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; margin: 3rem 0 1.25rem; }
.small { font-size: .875rem; opacity: .85; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a {
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  color: var(--black); text-decoration: none;
}
.nav a:hover { color: var(--red); }
.nav .nav-cta { background: var(--red); color: var(--white); padding: 10px 20px; border-radius: 999px; }
.nav .nav-cta:hover { background: var(--black); color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--black); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 700;
  text-decoration: none; padding: 14px 28px; border-radius: 999px;
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--red); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--red); }

/* Hero */
.hero { position: relative; background: var(--red); color: var(--white); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 40px;
  padding-top: 64px;
}
.hero-text { padding-bottom: 120px; }
.hero-sub {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .35em; font-size: clamp(1rem, 2vw, 1.4rem); margin: -.2em 0 1.5em;
}
.hero-slogan {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: 1rem; line-height: 1.5; margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { margin: 0; align-self: end; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%;
  border-radius: 240px 240px 0 0;
}
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about-photo figcaption { font-size: .9rem; margin-top: .6rem; opacity: .7; }
.chips { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-family: var(--display); font-weight: 700; font-size: .85rem;
  background: var(--tint); color: var(--red); padding: 6px 14px; border-radius: 999px;
}

.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: t; }
.timeline li {
  position: relative; padding: 28px 18px 0 0; border-top: 3px solid var(--red);
  font-size: 1rem; line-height: 1.45;
}
.timeline li::before {
  content: ""; position: absolute; top: -10px; left: 0; width: 17px; height: 17px;
  border-radius: 50%; background: var(--white); border: 3px solid var(--red);
}
.timeline li:last-child::before { background: var(--red); }
.timeline span {
  display: block; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  color: var(--red); font-size: .95rem; margin-bottom: .3rem;
}

/* Quote band */
.quote-band { background: var(--red); color: var(--white); padding: 80px 0; }
.quote-band blockquote { margin: 0; }
.quote-band-pink { background: var(--pink); color: var(--black); }
.quote-band p {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem); line-height: 1; max-width: 900px; margin: 0;
}

/* Miksi ehdolla */
.why-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.goal-card { background: var(--red); color: var(--white); border-radius: var(--radius); padding: 36px; }
.goal-label { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .25em; font-size: .8rem; margin: 0 0 .5rem; }
.goal-number { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; margin: 0; }
.goal-text { font-family: var(--display); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; line-height: 1.1; margin: .3rem 0 1.25rem; }
.goal-small { font-size: 1rem; margin: 0; }

/* Vaaliohjelma */
.program-head { max-width: 880px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.program-head .display { margin: 0; }
.btn-small { background: var(--white); color: var(--red); border: 2px solid var(--red); padding: 10px 22px; font-size: .9rem; cursor: pointer; }
.btn-small:hover { background: var(--red); color: var(--white); }
.program { display: grid; gap: 12px; max-width: 880px; }
.plank { background: var(--white); border-radius: 14px; overflow: hidden; }
.plank summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px;
  padding: 20px 56px 20px 22px; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.3;
}
.plank summary::-webkit-details-marker { display: none; }
.plank summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--red); transition: transform .2s;
}
.plank[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.plank summary:hover .plank-title { color: var(--red); }
.plank-num { font-weight: 900; font-size: 1.6rem; color: var(--pink); min-width: 2.2ch; }
.plank[open] .plank-num { color: var(--red); }
.plank-body { padding: 0 24px 8px 22px; margin-left: calc(2.2ch * 1.6 + 18px); font-size: 1.02rem; }
.plank summary:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }

/* Arvot */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 4rem; }
.values article { border-top: 4px solid var(--red); padding-top: 20px; }
.values h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; color: var(--red); font-size: 1.2rem; margin: 0 0 .75rem; }
.values p { font-size: 1.02rem; }

/* Articles */
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 2rem; }
.article {
  display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center;
  text-decoration: none; color: var(--black); text-align: left; font: inherit; cursor: zoom-in;
  background: var(--white); width: 100%;
  border: 2px solid var(--tint); border-radius: var(--radius); padding: 20px;
  transition: border-color .15s, transform .15s;
}
.article:hover, .article:focus-visible { border-color: var(--red); transform: translateY(-2px); outline: none; }
.article-body { display: block; }
.article img { width: 160px; height: 180px; object-fit: cover; object-position: top; border-radius: 10px; }
.article-meta { display: block;  font-family: var(--display); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: .5rem; }
.article-title { display: block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.article-open { display: inline-block; margin-top: .9rem; font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--red); }
.article-open::after { content: " →"; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(30,30,30,.85); backdrop-filter: blur(3px); }
.lightbox:has(figcaption:not([hidden])) { --cap: 80px; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox figcaption {
  margin-top: 14px; max-width: 640px; text-align: center; color: var(--white);
  font-family: var(--display); font-size: 1rem; line-height: 1.45;
}
.lightbox img {
  max-width: 94vw; max-height: calc(90vh - var(--cap, 0px)); width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: var(--white);
}
.lightbox[open] { animation: lb-in .2s ease-out; }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lightbox-close {
  position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--white); color: var(--red); font-size: 2rem; line-height: 1;
  cursor: pointer; font-family: var(--display);
}
.lightbox-close:hover { background: var(--red); color: var(--white); }
body.no-scroll { overflow: hidden; }

/* Tapahtumat */
.events { display: grid; gap: 16px; margin-bottom: 40px; max-width: 880px; }
.event { display: grid; grid-template-columns: 120px 1fr; gap: 28px; background: var(--white); border-radius: var(--radius); padding: 28px; align-items: start; }
.event-date { background: var(--red); color: var(--white); border-radius: 14px; text-align: center; padding: 16px 8px; font-family: var(--display); }
.event-day { display: block; text-transform: uppercase; letter-spacing: .2em; font-weight: 700; font-size: .8rem; }
.event-num { display: block; font-weight: 900; font-size: 1.9rem; line-height: 1.1; }
.event h3 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; line-height: 1.2; margin: 0 0 .6rem; }
.event-meta { font-family: var(--display); font-size: .98rem; display: grid; gap: 2px; }
.event-meta span:first-child { font-weight: 700; color: var(--red); }
.event p:last-child { margin-bottom: 0; }
.events-empty { font-family: var(--display); font-size: 1.1rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-2 { grid-template-columns: 1.3fr 1fr; }
.archive { margin-top: 1rem; }
.gallery-2 img { height: 360px; }
.events-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: stretch; }
.events-layout .events { margin-bottom: 0; align-content: start; }
.event-photo .gallery-item { width: 100%; height: 100%; }
.event-photo img { width: 100%; height: 100%; min-height: 320px; max-height: 420px; object-fit: cover; object-position: center 35%; }
.gallery-item {
  padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius);
  overflow: hidden; display: block;
}
.gallery-item:focus { outline: none; }
.gallery-item:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; } /* vain näppäimistöllä liikuttaessa */
.gallery img { width: 100%; height: 380px; object-fit: cover; }

/* Contact */
.contact { position: relative; background: var(--red); color: var(--white); padding: 150px 0 0; overflow: hidden; --bleed: calc(max(0px, (100vw - var(--wrap)) / 2) + 24px); }
.wave-top { top: -1px; bottom: auto; }
.contact .display-md { color: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: end; position: relative; z-index: 1; }
.contact-scenery { width: calc(100% + var(--bleed)); max-width: none; margin-right: calc(-1 * var(--bleed)); margin-top: 24px; }
.contact-inner > div { padding-bottom: 96px; }

/* Footer */
.site-footer { background: var(--red); color: var(--white); border-top: 1px solid rgba(255,255,255,.3); padding: 32px 0; font-family: var(--display); font-size: .95rem; }
.footer-inner { display: flex; align-items: center; gap: 24px; }
.footer-logo { width: 64px; }
.site-footer p { margin: 0; }
@media (max-width: 480px) { .footer-name .sep { display: none; } .footer-name span { display: block; } .contact { --bleed: 16px; } }
.social {
  margin-left: auto; width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--white); color: var(--red);
  transition: transform .15s, background .15s, color .15s;
}
.social:hover, .social:focus-visible { background: var(--black); color: var(--white); transform: translateY(-2px); }


/* Responsiivisuus */
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; border-left: 3px solid var(--red); margin-left: 8px; }
  .timeline li { border-top: 0; padding: 0 0 24px 28px; }
  .timeline li::before { top: 2px; left: -10px; }
  .articles { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid rgba(0,0,0,.08);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav.open { max-height: 360px; }
  .nav a { padding: 16px 24px; width: 100%; }
  .nav .nav-cta { border-radius: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; gap: 24px; }
  .hero-text { padding-bottom: 0; }
  .hero-photo { max-width: 420px; margin: 0 auto; width: 100%; }
  .about-grid, .why-grid, .values, .program, .contact-inner { grid-template-columns: 1fr; }
  .contact-inner > div { padding-bottom: 0; }
  .contact-inner { gap: 0; }
  .contact-inner > div { position: relative; z-index: 1; }
  .contact-scenery { margin-left: auto; width: calc(90% + var(--bleed)); margin-top: -22%; }
  .plank-body { margin-left: 0; }
  .about-photo { max-width: 420px; }
  .gallery, .gallery-2, .events-layout { grid-template-columns: 1fr; }
  .event-photo img { height: 380px; }
  .event { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .event-date { justify-self: start; padding: 10px 18px; display: flex; gap: 10px; align-items: baseline; }
  .event-num { font-size: 1.4rem; }
  .gallery img { height: 320px; }
  .section { padding: 72px 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .article { grid-template-columns: 96px 1fr; gap: 16px; padding: 14px; }
  .article img { width: 96px; height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
