/* KierrätysPuoti, Lempäälä
   Värit poimittu puodin oikeasta kyltistä ja puisesta ovesta. */

@font-face {
  font-family: "Yanone Kaffeesatz";
  src: url("../fonts/yanone-kaffeesatz-var.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #F4F1E8;
  --ink: #26344A;
  --green: #347858;
  --green-dark: #1F4E3B;
  --green-light: #DDE8DC;
  --wood: #A66F4E;
  --hero-shade: 32, 49, 58;
  --line: rgba(38, 52, 74, 0.22);

  --display: "Yanone Kaffeesatz", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 72px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(68px, 9vw, 128px);
  --ink-soft: rgba(38, 52, 74, 0.74);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* lähes huomaamaton paperitekstuuri */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .2 0 0 0 0 .29 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
}

img, iframe { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green-dark);
  color: var(--paper);
  border-radius: 3px;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Tekstityylit ---------- */

.label {
  margin: 0 0 16px;
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.label--light { color: rgba(244, 241, 232, 0.72); }

.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.75rem, 5.6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(38, 52, 74, 0.35);
  transition: text-decoration-color 200ms ease;
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Painikkeet ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 3px;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}
.btn__arrow {
  display: inline-block;
  font-weight: 400;
  transition: transform 250ms ease;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--green-dark); color: var(--paper); }
.btn--primary:hover { background: #173D2E; }

.btn--ghost { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }


.btn--small { min-height: 44px; padding: 8px 16px; font-size: 0.8125rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  padding-block: 8px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.nav__menu a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}
.nav__menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms ease;
}
.nav__menu a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta-item { margin-left: 8px; }

.nav__toggle { display: none; }

@media (max-width: 767px) {
  :root { --header-h: 62px; }
  .brand { font-size: 1.75rem; }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .nav__bars,
  .nav__bars::before,
  .nav__bars::after {
    display: block;
    width: 26px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 250ms ease, opacity 200ms ease;
  }
  .nav__bars { position: relative; }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { top: -8px; }
  .nav__bars::after { top: 8px; }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(8px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-8px) rotate(-45deg); }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) {
    display: block;
    padding: 14px 0;
    font-family: var(--display);
    font-size: 1.875rem;
    font-weight: 500;
    border-bottom: 1px solid var(--line);
  }
  .nav__menu a:not(.btn)::after { display: none; }
  .nav__cta-item { margin: 20px 0 0; }
  .nav__cta-item .btn { width: 100%; min-height: 52px; font-size: 0.9375rem; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  height: clamp(740px, 92vh, 880px);
  background: var(--paper);
}

.hero__text {
  align-self: center;
  padding-left: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
  padding-right: clamp(32px, 5vw, 80px);
}

.hero__eyebrow {
  margin: 0 0 26px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(5rem, 7.6vw, 7.25rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
}
.hero__lead {
  max-width: 32ch;
  margin: 30px 0 44px;
  font-size: clamp(1.375rem, 1.7vw, 1.5625rem);
  line-height: 1.5;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Kuva-alue: tumma pinta, jolla pystykuva näkyy kokonaisena */
.hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-block: 32px;
  padding-left: 5%;
  background: linear-gradient(90deg, var(--paper) 0 42%, var(--ink) 42%);
  min-height: 0;
}
.hero__media picture { display: contents; }
.hero__img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transform-origin: 50% 60%;
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .hero__img { animation: hero-drift 14s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
}
@keyframes hero-drift {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-8px) scale(1.012); }
}

/* Tabletti ja mobiili: teksti ensin, kuva kokonaisena perässä */
@media (max-width: 899px) {
  .hero {
    display: block;
    height: auto;
  }
  .hero__text { padding: 48px var(--gutter) 40px; }
  .hero__eyebrow { margin-bottom: 16px; font-size: 0.8125rem; }
  .hero__title { font-size: clamp(2.875rem, 12.4vw, 4rem); }
  .hero__lead { margin: 18px 0 28px; font-size: 1.0625rem; }

  .hero__media {
    display: block;
    padding: 0 var(--gutter) 48px;
    background: linear-gradient(var(--paper) 0 96px, var(--ink) 96px);
  }
  .hero__img {
    width: 100%;
    max-width: 480px;
    height: auto;
    margin-inline: auto;
  }
}
@media (max-width: 599px) {
  .hero__text { padding: 40px var(--gutter) 32px; }
  .hero__actions { flex-direction: column; gap: 10px; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  .hero__media { padding: 0; background: none; }
  .hero__img { max-width: none; }
}

/* ---------- Infobar ---------- */

.infobar {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.infobar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding-block: 18px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.infobar__list > li { display: flex; align-items: center; }
.infobar__list > li + li::before,
.infobar__sep::before {
  content: "•";
  margin-inline: clamp(12px, 1.8vw, 22px);
  color: var(--ink-soft);
  font-weight: 400;
}
.infobar a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  padding-block: 10px;
}
.infobar a:hover { color: var(--green-dark); }

@media (max-width: 899px) {
  .infobar__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-block: 14px;
    font-size: 1.0625rem;
    letter-spacing: 0;
    text-transform: none;
  }
  .infobar__list > li + li::before { content: none; }
  .infobar__sep::before { content: "·"; margin-inline: 8px; }
  .infobar__hours { padding-block: 8px; flex-wrap: wrap; font-weight: 400; }
  .infobar a { padding-block: 10px; }
}

/* ---------- Osiot yleisesti ---------- */

.section { padding-block: var(--section-y); }

.reveal { transition: opacity 550ms ease, transform 550ms ease; }
.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal:not(.is-visible) { opacity: 1; transform: none; }
  .reveal { transition: none; }
}

/* ---------- Puoti ---------- */

.puoti { padding-bottom: var(--section-y); }
.puoti__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.puoti__head .h2 { max-width: 19ch; }
.puoti__text { max-width: 46ch; font-size: 1.1875rem; }

@media (max-width: 899px) {
  .puoti__grid { grid-template-columns: 1fr; align-items: start; gap: 24px; }
}

/* ---------- Lahjoitukset ---------- */

.lahjoita { background: var(--green-light); }

.lahjoita__head { max-width: 980px; }
.lahjoita__nowrap { white-space: nowrap; }
.lahjoita__sprig {
  display: inline-block;
  width: 112px;
  height: 56px;
  margin-left: 14px;
  vertical-align: 0.1em;
  color: var(--green);
}
.lahjoita__sprig.reveal { transition: opacity 650ms ease, transform 650ms ease; }
.js .lahjoita__sprig.reveal:not(.is-visible) { opacity: 0; transform: translateY(6px) rotate(2deg); }

.rule {
  max-width: 42ch;
  margin: 28px 0 clamp(48px, 6vw, 72px);
  font-size: clamp(1.25rem, 2.1vw, 1.8125rem);
  line-height: 1.4;
  color: var(--ink);
}
.rule strong { font-weight: 700; }

.accepts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(38, 52, 74, 0.35);
}
.accepts__col { padding: 32px clamp(24px, 3.5vw, 48px) 36px; }
.accepts__col:first-child { padding-left: 0; }
.accepts__col + .accepts__col { border-left: 1px solid var(--line); }

.accepts__icon {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--green-dark);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.accepts__title {
  margin-bottom: 12px;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.accepts__list li { font-size: 1.125rem; line-height: 1.65; }
.accepts__note { margin-top: 10px; font-size: 0.9375rem; color: var(--ink-soft); max-width: 30ch; }

.declines {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 28px;
  border-top: 1px solid rgba(38, 52, 74, 0.35);
}
.declines__title {
  margin-bottom: 20px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  line-height: 1.05;
}
.declines__list { columns: 3 220px; column-gap: clamp(24px, 4vw, 56px); }
.declines__list li {
  position: relative;
  break-inside: avoid;
  padding: 6px 0 6px 26px;
  font-size: 1.0625rem;
  line-height: 1.4;
}
.declines__list li::before,
.declines__list li::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 11px;
  height: 1.5px;
  background: var(--wood);
  transform: rotate(45deg);
}
.declines__list li::after { transform: rotate(-45deg); }
.declines__why { display: block; font-size: 0.9375rem; color: var(--ink-soft); }

.unsure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 64px;
  align-items: end;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid rgba(38, 52, 74, 0.35);
}
.unsure__title {
  max-width: 18ch;
  margin-bottom: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  line-height: 1.04;
}
.unsure__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.unsure__phone {
  padding-block: 4px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 200ms ease;
}
.unsure__phone:hover { color: var(--green-dark); }
.unsure__email { font-size: 1.125rem; padding-block: 11px; }

@media (max-width: 899px) {
  .unsure { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .lahjoita { padding-block: 60px 64px; }
  .lahjoita .label { margin-bottom: 12px; }
  .lahjoita__head .h2 { font-size: clamp(2.375rem, 11vw, 2.875rem); }
  .lahjoita__sprig { width: 64px; height: 32px; margin-left: 8px; vertical-align: 0.15em; }

  .rule { margin: 24px 0 44px; font-size: clamp(1.25rem, 5.6vw, 1.4375rem); }

  .accepts { grid-template-columns: 1fr; }
  .accepts__col,
  .accepts__col:first-child {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 16px;
    padding: 24px 0 26px;
  }
  .accepts__col + .accepts__col { border-left: 0; border-top: 1px solid var(--line); }
  .accepts__icon { width: 30px; height: 30px; margin: -5px 0 0; }
  .accepts__title { margin-bottom: 10px; font-size: 0.875rem; }
  .accepts__list li { font-size: 1.0625rem; line-height: 1.6; }
  .accepts__note { margin-top: 8px; font-size: 0.875rem; }

  .declines { margin-top: 20px; padding-top: 24px; }
  .declines__title { margin-bottom: 12px; font-size: 1.875rem; }
  .declines__list { columns: 2; column-gap: 16px; }
  .declines__list li { padding: 5px 0 5px 20px; font-size: 0.9375rem; line-height: 1.35; }
  .declines__list li::before,
  .declines__list li::after { top: 14px; left: 1px; width: 9px; }
  .declines__why { font-size: 0.8125rem; }

  .unsure { margin-top: 40px; padding-top: 24px; gap: 12px; }
  .unsure__title { font-size: 1.875rem; margin-bottom: 6px; }
  .unsure__phone { font-size: clamp(2.5rem, 12vw, 3rem); }
  .unsure__email { font-size: 1.0625rem; padding-block: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .lahjoita__sprig.reveal:not(.is-visible) { opacity: 1; transform: none; }
}

/* ---------- Yhdistys ---------- */

.yhdistys__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
}
.yhdistys__text { max-width: 48ch; }

@media (max-width: 899px) {
  .yhdistys__grid { grid-template-columns: 1fr; align-items: start; gap: 20px; }
}

/* ---------- Yhteystiedot ---------- */

.contact {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--section-y);
}
.contact .link { text-decoration-color: rgba(244, 241, 232, 0.4); }
.contact .link:hover { text-decoration-color: currentColor; }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.contact__title { max-width: 12ch; margin-bottom: 32px; }

.contact__details { font-style: normal; font-size: 1.125rem; line-height: 1.6; }
.contact__details p { margin: 0; }
.contact__details .link { display: inline-block; padding-block: 10px; }
.contact__hours { padding-block: 2px 12px; color: rgba(244, 241, 232, 0.9); }
.contact__reach {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 14px;
  border-top: 1px solid rgba(244, 241, 232, 0.2);
}
.contact__phone {
  display: inline-block;
  padding-block: 4px 0;
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}
.contact__phone:hover { color: var(--green-light); }
.contact__social span { margin-inline: 8px; color: rgba(244, 241, 232, 0.6); }

.contact__map { height: 380px; background: #34445B; }
.contact__map iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 899px) {
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .contact__map { height: 300px; }
}
@media (max-width: 767px) {
  .contact { padding-block: 60px; }
  .contact__info { text-align: center; }
  .contact__title { margin: 0 auto 24px; }
  .contact__details { font-size: 1.0625rem; }
  .contact__reach { align-items: center; padding-top: 10px; }
  .contact__phone { font-size: 2.125rem; }
  .contact__map { height: 230px; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 48px;
  font-size: 0.9375rem;
  text-align: center;
}
.site-footer__inner p { margin: 0; }
.site-footer__brand { margin-bottom: 12px !important; line-height: 0; }
.site-footer__brand picture { display: inline-block; }
.site-footer__logo { display: block; height: 48px; width: auto; margin-inline: auto; }
.site-footer__links { margin-top: 6px !important; }
.site-footer__links a { display: inline-block; padding-block: 12px; font-weight: 700; }
.site-footer__links span { margin-inline: 10px; color: var(--ink-soft); }
.site-footer__copy { margin-top: 10px !important; font-size: 0.8125rem; color: var(--ink-soft); }

@media (max-width: 767px) {
  .site-footer { padding-block: 36px; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* Mobiili: heron tekstit keskitetään, painikkeet pysyvät täysleveinä */
@media (max-width: 599px) {
  .hero__text { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { text-align: left; }
  .site-footer__logo { height: 42px; }
}
@media (max-width: 599px) {
  .infobar__list { align-items: center; text-align: center; }
  .infobar__hours { justify-content: center; }
}
@media (max-width: 359px) {
  .declines__list { columns: 1; }
}
