:root {
    --header-height: 75px;
    --bg-color: #FFEFE3;         /* your light pink */
    --accent:    #b87c5f;     /* active tab color */
    --text:      var(--color-Yonsininen);
    --header-bg-color: white;
    --header-bg-image: none;
  }
  
  /* RESET & GLOBALS */
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Hepta Slab';
    background-color: var(--bg-color);
    color: var(--text);
    /* push all content below the fixed header */
    padding-top: var(--header-height);
    overscroll-behavior-y: none;
    display: grid;
    min-height: 100svh;
    grid-template-rows: auto 1fr auto; /* hero | main grows | footer */
  }

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

  main .huuto {
    font-family: 'Hepta Slab';
    text-align: center;
    font-size: clamp(18px, 4vw, 24px);
    margin: 10px;
    padding-top: 1rem;
  }
  
  /* === 1) TOP BAR === */
  header.top-bar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--header-bg-color);
    background-image: var(--header-bg-image);
    background-size: auto 1200%;          /* scale vertically to fit header */
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    padding-left: 4rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: visible;
  }
  
  /* logo on the left */
  .top-bar .logo {
    height: 100px;
    position: absolute;
    left: 2rem;
    top: 0;
    transform: translateY(23%);
    z-index: 1001;
  }
  
  /* tabs in the center */
  .top-bar .nav-tabs {
    display: flex;
    gap: 2rem;
  }
  .top-bar .nav-tabs .tab {
    padding: 0.7em 1.2em;
    background: rgba(255, 254, 250, 0.7);
    border-radius: 999px;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
  }
  .top-bar .nav-tabs .tab:hover:not(.active) {
    background: var(--color-LuonnonValkoinen);
  }
  .top-bar .nav-tabs .active {
    background: var(--accent);
    color: var(--color-LuonnonValkoinen);
  }
  
  /* hamburger on the right (only shown on small screens) */
  .top-bar .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
  }
  .top-bar .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
  }
  
  /* === 2) HERO + TORN EDGE === */
  .hero {
    width: 100%;
    height: 68vh;
    background-color: var(--bg-color);
    overflow: hidden;         /* crops anything outside the box */
  }
  .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* fills the box */
    object-position: bottom center; /* pins the image’s bottom edge */
    display: block;
  }
  
  /* === 3) MAIN CONTENT === */
  main {
    padding: 2rem;
  }
  main h1 {
    font-family: 'Expletus Sans';
    font-weight: 700;
    text-align: center;                        /* center it */
    color: var(--accent);                             /* pick your hex color */
    font-size: clamp(45px, 12vw, 96px);        /* fluid: min 2.5rem, max 5rem */
    margin: 0rem 0.5rem;                          /* vertical spacing & small side gutters */
    line-height: 1.1;                           /* tighten up the lines if it wraps */
  }

  main h2{
  font-family: "Expletus Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.25;
  margin: 0;
  color: #0F262B;
}
.Intro {
  padding: 2rem 1.5rem;
}
  main ul {
    list-style: disc inside;
    margin-top: 1rem;
  }

 

  /* Biisis sivun hommelit*/
  .page-biisi {
  background-color: #FFEFE3;
  background-image: url('Images/Vaiski26_Sininen_Huomaamaton_JPG.jpg');
  background-repeat: repeat;
  background-size: 700px auto;
  }

  .page-biisi header.top-bar {
    background: transparent !important;
    box-shadow: none;
  }

  .page-biisi .nav-tabs { display: none !important; }

  .lyrics-box {
  font-family: 'Hepta Slab';
  max-width: 400px;
  margin: 2rem auto;                 /* center the box */
  padding: 2rem 2.5rem;
  background: rgba(255,255,255,0.6);/* white tint for readability */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  line-height: 1.65;

  /* keep your \n line breaks from the HTML */
  white-space: pre-line;

  }

  .rip-hero{
  /* keep text clear of the torn edges */
  --safe-block: clamp(40px, 10vh, 120px);
  width: 100vw;
  aspect-ratio: 1652 / 768;              /* use your PNG’s ratio */
  min-height: 420px;                      /* fallback height */
  display: grid;
  place-items: center;
  padding-block: var(--safe-block);
  text-align: center;

  /* show the full width of the image by default (no side crop) */
  background: url("Images/Vaiski pattern rip turkoosi.png")
              top center / 100% auto no-repeat;
}

@media (max-aspect-ratio: 1652/768){
  .rip-hero{
    background-position: center;
    background-size: cover;
  }
  
}

/* Big, centered title */
.rip-hero__title{
  font-family: "Expletus Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw + .5rem, 5rem);
  line-height: 1.05;
  letter-spacing: .01em;
  color: var(--color-LuonnonValkoinen);
  margin: 0;
  max-width: min(1100px, 90vw);
  text-shadow: 0 2px 15px rgba(0,0,0,0.6);
}
  
  /* --- mobile: hide or reposition icons so they don’t overlap text --- */
  @media (max-width: 600px) {
     .hero {height: 60vh;}
    .feature {
      grid-template-columns: 1fr;
      grid-template-areas:
        "media"
        "text";
    }
  }


  /* === 4) RESPONSIVE HAMBURGER BEHAVIOR === */
 
  @media (max-width: 800px) {
    .top-bar .nav-tabs {
      display: none;
      position: absolute;
      top: var(--header-height);
      right: 0;
      background: white;
      flex-direction: column;
      width: 200px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .top-bar .nav-tabs.open {
      display: flex;
    }
    .top-bar .hamburger {
      display: flex;
    }
  }
  