body {
  margin: 0;
  padding: 2rem 5vw;
  font-family: 'Times New Roman', serif;
  font-size: 1.4rem;
  line-height: 1.8;
  color: #222;
  background: #fefefe;
  margin-top: 80px;
  min-height: 100vh;
  overflow: auto; /* varmista, että sisältösivut voivat skrollata */
  -webkit-overflow-scrolling: touch;
}

/* Rullaava sisältöalue, ei sisäistä skrollausta */
.container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
  /* poista max-height ja overflow, jotta body vastaa skrollauksesta */
  max-height: none;
  overflow: visible;
}

.text-column {
  margin-top:50px;
}

.image-column {
  justify-content: center;
  align-items: flex-start;
}

.image-column img, .text-column img {
  width: 50%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bookmark-button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: #800000; /* tumma viininpunainen */
  color: white;
  text-decoration: none;
  font-family: 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.8rem 1rem;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: background 0.3s ease;
}

.bookmark-button:hover {
  background: #a00000;
}

/* hero image area (ei sisältä taustakuvaa — määritellään sivulla) */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* gradient mask: image fades downwards */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

/* hero text */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 1rem 2rem;
  max-width: 90%;
}

.hero-content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.hero-content p {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  margin: 0;
  text-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

/* responsive: pienennä hero-korkeutta mobiilissa */
@media (max-width: 768px) {
  .hero { height: 45vh; min-height: 220px; }
  .hero-content h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  h1{
    font-size: 1.5em;
  }

  h2{
    font-size: 1em;
    margin:5% 0 5% 0
  }

  .image-column img, .text-column img {
  width: 100%;
  
}
}

html, body {
  /* jos ei jo asetettu, käytä: */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

