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

      body {
        font-family: "Inter", sans-serif;
        line-height: 1.6;
        color: #333;
        background: #f3eee6;
      }
      
      html,
      body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
      }

      .bg-wall {
        position: fixed;
        inset: 0;
        background-image: url("https://raw.githubusercontent.com/kureliivit/kureliivit.github.io/refs/heads/main/tiiliseina_desktop.JPG");
        background-size: cover;
        background-position: center;
        z-index: -1;
        opacity: 0;
        pointer-events: none;
      }

      .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
      }

      header {
        background: #24150f;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
      }
      
      header::after {
        content: "";
        position: absolute;
        left: 0;
        top: 100%;
        margin-top: -1px;
        width: 100%;
        height: 18px;
        
        background: linear-gradient(
          to bottom,
          #24150f 0%,
          rgba(36,21,15,0.75) 35%,
          rgba(36,21,15,0.35) 70%,
          rgba(36,21,15,0) 100%
        );
        
        pointer-events: none;
      }
      
      main {
        padding-top: var(--top-stack-height);
      }
      
      :root {
        --announcement-height: 44px;
        --top-stack-height: 130px;
      }

      body.no-announcement .announcement-bar {
        display: none;
      }
      
      .announcement-bar {
        width: 100%;
        height: var(--announcement-height);
        background: #eadcc8;
        color: #4a2414;
        overflow: hidden;
        display: flex;
        align-items: center;
        border-top: 1px solid rgba(74, 36, 20, 0.12);
        border-bottom: 1px solid rgba(74, 36, 20, 0.18);
      }
      
      .announcement-viewport {
        width: 100%;
        min-width: 0;
        overflow: hidden;
      }
      
      .announcement-marquee {
        display: flex;
        flex-wrap: nowrap;
        white-space: nowrap;
        width: max-content;
        will-change: transform;
        transform: translate3d(0, 0, 0);
      }
      
      .announcement-group {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        padding-right: 0.5rem;
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
      }

      nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.6rem 0;
        position: relative;
      }
      
      .site-logo-link {
        display: flex;
        align-items: center;
        text-decoration: none;
        flex-shrink: 1;
        min-width: 0;
        padding-top: 2px;
      }
      
      .site-logo {
        display: block;
        height: clamp(64px, 8vw, 96px);
        width: auto;
        max-width: min(78vw, 520px);
        object-fit: contain;
        transition: transform 0.2s ease;
      }
      
      .site-logo-link:hover .site-logo {
        transform: scale(1.04);
      }

      .nav-links {
        display: flex;
        list-style: none;
        position: absolute;
        top: 100%;
        right: 0;
        
        background: rgba(0, 0, 0, 0.72);
        backdrop-filter: blur(8px) saturate(140%);
        -webkit-backdrop-filter: blur(8px) saturate(140%);
        border: 1px solid rgba(255,255,255,0.08);
        
        flex-direction: column;
        padding: 1rem 0;
        min-width: 260px;
        box-shadow: 0 12px 35px rgba(0,0,0,0.45);
        
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        
        transform: translateY(-18px) scale(0.98);
        transform-origin: top right;
        transition: transform 0.28s cubic-bezier(.22,.61,.36,1), opacity 0.2s ease, visibility 0.2s ease;
        z-index: 1001;

        border-radius: 10px;
        overflow: hidden;
      }

      .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
      }
      
      .nav-links a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        text-decoration: none;
        color: #ffffff;
        font-weight: 500;
        transition: color 0.3s ease;
      }
      
      .nav-links li:last-child a {
        border-bottom: none;
      }

      .nav-links a:hover {
        color: #ffb36b;
        background: rgba(255,255,255,0.06);
      }

      /* Focus indicators for accessibility */
      .nav-links a:focus,
      .skip-link:focus,
      .accordion-header:focus,
      .contact-grid a:focus {
        outline: none;
        background: rgba(0, 0, 0, 0.1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        transform: translateY(-1px);
        transition: all 0.2s ease;
      }

      .nav-links a:focus {
        border-radius: 4px;
      }

      .hero-image {
        width: 100%;
        position: relative;
        overflow: hidden;
      }

      .hero-content {
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 10;
        width: 100%;
      }

      .hero-title {
        font-size: 3.5rem;
        font-weight: bold;
        color: white;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
      }

      .hero-subtitle {
        font-size: 1.3rem;
        color: white;
        margin: 0.5rem 0 0 0;
        font-weight: 500;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
      }

      .hero-image img {
        width: 100%;
        display: block;
      }

/* Hero-kuvan koko tietokonenäkymässä */
@media (min-width: 1024px) {
  .hero-image {
    background-color: #000;
  }

  .hero-image img {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 100px);
    margin: 0 auto;
  }
}

.section {
        background: #f3eee6;
      }

      section {
        scroll-margin-top: calc(var(--top-stack-height) + 16px);
      }

      .section-title {
        text-align: left;
        font-size: 2.5rem;
        margin-bottom: 2rem;
        color: #6d1a00; /* Tummempi punaruskea, AA-kontrasti valkoisella taustalla */
        font-weight: 600;
      }

      .about-content {
        display: grid;
        grid-template-columns: 7fr 3fr;
        gap: 3rem;
        align-items: start;
      }

      .about-text {
        font-size: 1.1rem;
        line-height: 1.7;
      }

      .about-text p {
        margin-bottom: 1rem;
      }

      .about-image {
        display: flex;
        justify-content: flex-end;
        align-items: center;
      }

      .about-image img {
        max-width: 300px;
      }

      .shows-grid {
        display: grid;
        gap: 2rem;
        align-items: start;
        width: 100%;
        max-width: 550px;
      }
      
      /* Tulevien esitysten yhteydessä näytettävä kausimainos */
      .shows-layout {
        display: grid;
        grid-template-columns: minmax(0, 550px);
        gap: 2rem;
        margin-top: 3rem;
        align-items: start;
      }
      
      .seasonal-promo {
        order: -1;
        width: 100%;
      }
      
      .seasonal-promo[hidden] {
        display: none;
      }
      
      .seasonal-promo a {
        display: block;
        width: 100%;
      }
      
      .seasonal-promo img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 15px;
      }
      
      .promo-hint {
        text-align: center;
        margin-top: 0.6rem;
        font-size: 0.9rem;
        color: #6d1a00;
      }
      
      @media (min-width: 769px) {
        .shows-layout {
          grid-template-columns: minmax(0, 550px) minmax(0, 550px);
        }
        
        .seasonal-promo {
          order: 0;
        }
      }

      .show-card {
        background: white;
        padding: 2rem;
        border-radius: 15px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
      }

      .show-card:hover {
        transform: translateY(-5px);
      }
      
      .show-card[hidden] {
        display: none !important;
      }

      .show-date {
        color: #8b2c00;
        font-weight: bold;
        font-size: 1.1rem;
      }

      .show-title {
        font-size: 1.3rem;
        margin: 0.5rem 0;
        color: #333;
      }

      .show-venue {
        color: #666;
        font-style: italic;
        margin-bottom: 1rem;
      }

      .show-intro {
        margin-bottom: 1.5rem;
      }
      
      .show-content {
        margin-bottom: 1.5rem;
      }
      
      .entry-info {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
      }

     .show-image {
       width: 100%;
       height: 220px;
       object-fit: cover;
       border-radius: 10px;
       margin: 1rem 0;
     }
      
      .show-image-square,
      .show-image-wide {
        height: auto;
        object-fit: contain;
      }
      
      .show-image-landscape {
        width: 100%;
        height: auto;
        display: block;
        margin: 1rem auto;
        border-radius: 10px;
      }
            

/* Yksityiskeikkojen kompaktit kortit */
.private-show-card {
  padding: 1.25rem 1.5rem;
}

.private-show-card .private-event-image {
  display: block;
  height: 165px;
  object-fit: cover;
  object-position: center;
  margin: 0.5rem 0 0;
}
      
      .accordion {
        width: 100%;
        max-width: 550px;
      }
      
      @media (min-width: 769px) {
        .accordion {
          width: calc((100% - 2rem) / 2);
        }
      }

      .accordion-item {
        background: white;
        margin-bottom: 1rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        overflow: hidden;
      }

      .accordion-header {
        background: white;
        color: #a8431a; /* Vaaleampi mutta silti kontrastinen */
        padding: 1.1rem 2rem;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1.3rem;
        font-weight: 600;
        transition: all 0.3s ease;
        border: none;
        width: 100%;
        text-align: left;
        border-bottom: 2px solid #f0f0f0;
      }

      .accordion-header:focus-visible {
        outline: 3px solid #d35400;
        outline-offset: 2px;
      }

      .accordion-header:hover {
        background: #f8f9fa;
        color: #d35400;
      }

      .accordion-icon {
        font-size: 1.2rem;
        color: #a8431a;
        transition: transform 0.3s ease, color 0.3s ease;
      }

      .accordion-header:hover .accordion-icon {
        color: #d35400;
      }

      .accordion-item.active .accordion-icon {
        transform: rotate(180deg);
      }
      
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(.22,.61,.36,1);
}

.accordion-content ul {
  min-height: 0;
  overflow: hidden;
}

.accordion-item.active .accordion-content {
  grid-template-rows: 1fr;
        transition-duration: 0.55s;
}

      .accordion-content ul {
        list-style: none;
      }

      .accordion-content li {
        padding: 1rem 2rem;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
        color: #333;
        transition: background 0.2s ease;
      }

      .accordion-content li:last-child {
        border-bottom: none;
      }

      .accordion-content li:hover {
        background: #f8f9fa;
      }

      .contact-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        text-align: center;
      }

      .contact-item {
        padding: 2rem;
      }

      .contact-icon {
        font-size: 3rem;
        background: linear-gradient(45deg, #e74c3c, #f39c12);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 1rem;
      }

      footer {
        background: #0b0b0b;
        color: #ccc;
        padding: 2rem 0;
        text-align: center;
      }
      
      footer p {
        font-size: 0.85rem;
        margin: 5px auto;
        line-height: 1.5;
        max-width: 600px;
      }

      /* Skip navigation for accessibility */
      .skip-link {
        position: absolute;
        top: -100px;
        left: 6px;
        background: #000;
        color: white;
        padding: 8px;
        text-decoration: none;
        border-radius: 0 0 4px 4px;
        font-weight: bold;
        z-index: 10000;
        transition: top 0.3s;
      }

      .skip-link:focus {
        top: 0;
      }

      /* Screen reader only content */
      .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }

      /* Menu button */
      .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        color: #ffffff;
        padding: 14px;
        border-radius: 4px;
        margin-left: auto;
        transition: background 0.2s ease;
        flex-shrink: 0;
        margin-top: -4px;
        position: relative;
        z-index: 1002;
      }

      .menu-toggle:hover {
        background: rgba(0,0,0,0.05);
      }

      .menu-toggle:focus {
        outline: none;
        background: rgba(0, 0, 0, 0.1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        transform: translateY(-1px);
        transition: all 0.2s ease;
      }

      .image-section {
        padding: 30px 0 10px;
      }

      .image-section .container {
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .image-section img {
        width: 100%;
        height: auto;
        max-height: 500px;
        object-fit: contain;
      }

      @media (max-width: 768px) {
        nav {
          padding: 1rem 20px;
        }
        
        .site-logo {
          height: clamp(56px, 11vw, 82px);
          max-width: 72vw;
        }
        
        .hero-image {
          min-height: 45vh;
        }

        .hero-title {
          font-size: 2.5rem;
          margin-top: 2rem;
        }

        .hero-subtitle {
          font-size: 1.1rem;
        }


        .about-content {
          grid-template-columns: 1fr;
        }

        .about-image {
          justify-content: center;
          margin-top: 20px;
        }

        .image-section {
          padding: 20px 20px 5px;
        }

        .image-section img {
          max-height: 350px;
          margin-top: 10px;
        }
      }
      
      @media (max-width: 768px) and (orientation: portrait) {
        .hero-image {
          margin-bottom: -18px;
        }
      }

      @media (max-width: 768px) and (orientation: landscape) {
        .site-logo-link {
          transform: translateY(-2px);
        }
      }

      @media (max-width: 768px) {
        .bg-wall {
          background-image: url("https://raw.githubusercontent.com/kureliivit/kureliivit.github.io/refs/heads/main/tiiliseina_mobiili.JPG");
        }
      }
      
      /* Hero-kuvan ja "Tietoa meistä" -tekstin välin pienentäminen */  
      #tietoa {
        padding-top: 40px;
        padding-bottom: 5px;
      }
      
      #esitykset {
        padding-top: 0;
      }
      
      #menneet-keikat {
        padding-top: 40px;
      }
      
      /* Osioiden pystysuuntaiset välit */
      .section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
      }
      
      .rotating-logo {
        animation: logoSpin 60s linear infinite;
        transform-origin: center center;
      }
      
      @keyframes logoSpin {
        from {
          transform: rotate(0deg);
        }
        to {
          transform: rotate(360deg);
        }
      }

/* Warhol-rivi footerissa */
.footer-warhol {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto 5px;
}

/* Warhol-rivi pienemmäksi pystynäkymässä */
@media (max-width: 600px) {
  .footer-warhol {
    width: 80%;
  }
}

/* Tehdyt keikat -sivun haitarit ja kuva */
#menneet-keikat > .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

#menneet-keikat .section-title {
  grid-column: 1 / -1;
}

.tehdyt-keikat-kuva {
  width: 100%;
  max-width: 600px;
  margin: 10px auto 0;
}

.tehdyt-keikat-kuva img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 769px) {
  #menneet-keikat > .container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 40px;
    align-items: start;
  }

  #menneet-keikat .accordion {
    width: 100%;
    max-width: none;
  }

  .tehdyt-keikat-kuva {
    max-width: none;
    margin: 0;
    align-self: center;
  }
}


/* Ryhmäkuva ja yhteysteksti */
.contact-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
}

.contact-photo img {
  display: block;
  width: 100%;
  max-width: 600px;
  max-height: 350px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* Vaakanäkymässä teksti vasemmalle ja kuva oikealle */
@media (min-width: 600px) and (orientation: landscape) {
        .contact-intro {
                grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
                gap: 2rem;
                align-items: center;
        }

  .contact-copy {
    grid-column: 1;
    grid-row: 1;
  }
        
        .contact-photo {
                grid-column: 2;
                grid-row: 1;
                transform: translateY(20px);
        }

  .contact-photo img {
    max-height: none;
  }
}


/* Tehdyt keikat: tiiviimpi pystynäkymä */
@media (max-width: 768px) and (orientation: portrait) {
  #menneet-keikat {
    padding-top: 0 !important;
  }

  #menneet-keikat .section-title {
    margin-bottom: 18px;
  }

  #menneet-keikat .accordion-item {
    margin-bottom: 8px;
  }
}

/* Tietoa meistä -osion tiivistys pystynäkymässä */
@media (max-width: 768px) and (orientation: portrait) {
  .about-content {
    gap: 0;
  }

  .about-image {
    margin-top: 0;
  }

  #tietoa {
    padding-bottom: 10px !important;
  }

  #esitykset {
    padding-top: 10px !important;
  }
}

/* Keikkakorttien työpöytänäkymän hienosäätö */
@media (min-width: 1024px) {

  /* Yksityiskeikkojen kuvitus suuremmaksi */
  .private-show-card .private-event-image {
    height: 220px;
    object-fit: contain;
    object-position: center;
    margin: -0.25rem 0 -2.5rem;
    transform: translateY(-25px);
  }

}

/* Kureliivien talvinen lumisade */
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;

  background-image:
    radial-gradient(1px 1px at 31px 57px, white 98%, transparent),
    radial-gradient(2px 2px at 149px 113px, white 98%, transparent),
    radial-gradient(2.5px 2.5px at 79px 231px, white 98%, transparent),
    radial-gradient(3px 3px at 294px 174px, white 98%, transparent),
    radial-gradient(1.5px 1.5px at 187px 313px, white 98%, transparent),
    radial-gradient(4px 4px at 421px 369px, white 98%, transparent);

  background-size:
    197px 197px,
    283px 283px,
    367px 367px,
    439px 439px,
    503px 503px,
    607px 607px;

  animation: kureliivit-snow 32s linear infinite;
}

@keyframes kureliivit-snow {
  from {
    background-position:
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0;
  }

  to {
    background-position:
      0 394px,
      0 566px,
      0 367px,
      0 439px,
      0 503px,
      0 607px;
  }
}

/* Kunnioitetaan vähennetyn liikkeen asetusta */
@media (prefers-reduced-motion: reduce) {
  .hero-image::after {
    animation: none;
  }
}







