:root {color-scheme: dark; font-family: 'Montserrat', 'Metropolis', Arial, sans-serif; font-synthesis: none;}
* {box-sizing: border-box;}
html {scroll-behavior: smooth;}
body {margin: 0; background: #090514; color: #fff;}
.site {
  min-height: 100vh;
  min-height: 100svh;
  background-image: url('assets/taustakuva.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
/* Ei sumennusta, liukuvärikerrosta eikä muuta alkuperäisen kuvan päällä. */
.header {width: min(1370px, calc(100% - 64px)); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 42px;}
.brand {font-size: 32px; font-weight: 600; line-height: 1.2; white-space: nowrap; letter-spacing: -.035em;}
.nav {display: flex; gap: 29px; align-items: center; white-space: nowrap; font-size: 13px; font-weight: 600;}
.nav a, .nav span {color: white; text-decoration: none;}
.nav a.active {padding-bottom: 3px; border-bottom: 1px solid #fff;}
.nav span {cursor: default;}
.hero {text-align: center; margin: clamp(146px, 19vh, 180px) auto 0; width: min(1400px, calc(100% - 32px)); padding-bottom: 80px; text-shadow: 0 1px 2px rgba(0,0,0,.12);}
.verse {font-size: clamp(25px, 2.57vw, 46px); line-height: 1.3; font-weight: 300; font-style: italic; letter-spacing: -.025em; margin: 0 0 29px; white-space: nowrap;}
h1 {font-size: clamp(36px, 4.46vw, 80px); font-weight: 500; line-height: 1.15; letter-spacing: .013em; margin: 0 0 37px; white-space: nowrap;}
.events {font-size: clamp(17px, 1.45vw, 26px); font-weight: 400; line-height: 1.48; margin: 0 auto 37px;}
.events span {display: block;}
.maintenance {font-size: 17px; font-weight: 500; line-height: 1.5; width: fit-content; max-width: 100%; border: 1px solid rgba(255,255,255,.7); padding: 19px 30px; margin: 0 auto; background: rgba(0,0,0,.05);}
/* Yllä oleva ilmoitus säilyy, tämä lisätieto on pienempi ja rauhallinen. */
.notice {max-width: 680px; margin: 27px auto 0; padding: 0 12px; font-size: 16px; line-height: 1.55; font-weight: 400; text-shadow: 0 1px 4px rgba(0,0,0,.5);}
.notice p {margin: 0 0 7px;}
.notice .notice-title {font-size: 18px; letter-spacing: .045em; font-weight: 600; margin-bottom: 10px;}
.notice .notice-apology {font-weight: 500; margin-top: 8px;}
@media (max-width: 1050px) {
  .header {width: calc(100% - 44px); padding-top: 30px; flex-wrap: wrap;}
  .nav {gap: 18px; font-size: 12px;}
  .hero {margin-top: clamp(110px, 16vh, 160px);}
  .verse, h1 {white-space: normal;}
}
@media (max-width: 700px) {
  .site {background-position: 62% center;}
  .header {width: calc(100% - 28px); display: block; text-align: center; padding-top: 24px;}
  .brand {font-size: 27px;}
  .nav {justify-content: center; flex-wrap: wrap; gap: 12px 17px; margin-top: 20px; line-height: 1.6;}
  .hero {margin-top: clamp(80px, 12vh, 125px); width: calc(100% - 32px); padding-bottom: 56px;}
  .verse {font-size: clamp(21px, 5.1vw, 31px); line-height: 1.4; margin-bottom: 27px;}
  h1 {font-size: clamp(34px, 8.3vw, 56px); line-height: 1.18; margin-bottom: 32px;}
  .events {font-size: clamp(17px, 3.5vw, 21px); line-height: 1.6; margin-bottom: 34px;}
  .events span {display: inline;}
  .maintenance {font-size: 13px; padding: 17px 14px;}
  .notice {font-size: 14px; margin-top: 22px;}
  .notice .notice-title {font-size: 15px;}
}
@media (prefers-reduced-motion: reduce) {html {scroll-behavior: auto;}}

/* v3: tiivistetty pystyasettelu, jotta uudistustiedote näkyy ilman vieritystä
   tavallisissa tietokonenäkymissä. Pienillä näytöillä sallitaan normaali vieritys. */
.site {display: flex; flex-direction: column; overflow-x: hidden; overflow-y: visible;}
.header {flex-shrink: 0;}
.hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding-top: 24px;
  padding-bottom: 32px;
}
.verse {margin-bottom: clamp(12px, 2.2vh, 23px);}
h1 {margin-bottom: clamp(16px, 3vh, 29px);}
.events {margin-bottom: clamp(14px, 2.7vh, 26px);}
.maintenance {padding: 14px 27px;}
.notice {margin-top: clamp(12px, 2vh, 19px); font-size: 15px; line-height: 1.42;}
.notice p {margin-bottom: 5px;}
.notice .notice-title {font-size: 17px; margin-bottom: 5px;}
.notice .notice-apology {margin-top: 4px;}
@media (max-height: 800px) and (min-width: 701px) {
  .header {padding-top: 26px;}
  .hero {padding-top: 14px; padding-bottom: 18px;}
  .verse {margin-bottom: 10px; font-size: clamp(24px, 2.35vw, 42px);}
  h1 {margin-bottom: 15px; font-size: clamp(36px, 4.1vw, 73px);}
  .events {margin-bottom: 14px; font-size: clamp(17px, 1.35vw, 24px);}
  .maintenance {padding: 11px 23px; font-size: 15px;}
  .notice {margin-top: 11px; font-size: 14px; line-height: 1.34;}
  .notice .notice-title {font-size: 16px;}
}
@media (max-width: 700px) {
  .hero {margin: 0 auto; padding: 56px 0 42px; justify-content: flex-start;}
  .verse {margin-bottom: 20px;}
  h1 {margin-bottom: 22px;}
  .events {margin-bottom: 22px;}
  .notice {margin-top: 18px;}
}

/* v4: tulevien tilaisuuksien helposti luettava päiväysluettelo. */
.events {width: min(680px, 100%); font-size: clamp(15px, 1.15vw, 20px); line-height: 1.4;}
.events h2 {font-size: 1.06em; font-weight: 600; margin: 0 0 4px;}
.events-address {font-size: .82em; margin: 0 0 9px;}
.events-list {list-style: none; padding: 0; margin: 0; display: grid; gap: 5px;}
.events-list li {display: flex; align-items: baseline; justify-content: center; gap: 14px; flex-wrap: wrap;}
.events-coffee {font-size: .78em; opacity: .95;}
@media (max-width: 700px) {
  .events {font-size: 16px; line-height: 1.4;}
  .events-list {gap: 8px;}
  .events-list li {display: block;}
  .events-coffee {display: block; font-size: .83em;}
}


/* v5: hienosäädöt käyttäjän uusien toiveiden mukaan. */
.events h2 {font-size: clamp(1.22em, 1.45vw, 1.5em); margin-bottom: 6px;}
.events-list li {display: grid; grid-template-columns: minmax(15.5ch, auto) auto; align-items: baseline; justify-content: center; column-gap: 18px;}
.events-list li > time {display: inline-block; min-width: 15.5ch; text-align: right;}
.events-divider {grid-template-columns: 1fr !important; width: min(460px, 82%); height: 0; margin: 4px auto 6px; border-top: 1px solid rgba(255,255,255,.45);}
.notice-copy {max-width: 31ch; margin-left: auto; margin-right: auto; text-wrap: balance;}
@media (max-width: 700px) {
  .events h2 {font-size: 1.22em;}
  .events-list li {display: block;}
  .events-list li > time {min-width: 0; text-align: center;}
  .events-divider {width: min(260px, 72%); margin: 6px auto 8px;}
  .notice-copy {max-width: 26ch;}
}


/* v7: korjaus. Sarakkeet mitoitetaan sisällön mukaan, ei merkkileveyksillä. */
.events-list {width: max-content; max-width: 100%; margin: 0 auto; gap: 6px;}
.events-list li {display: grid; grid-template-columns: max-content max-content; justify-content: center; align-items: baseline; column-gap: 20px; flex-wrap: nowrap;}
.events-list li > time {width: auto; min-width: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums;}
.events-list .events-coffee {display: inline-block; width: auto; text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums;}
.events-list li:first-child {display: flex; justify-content: center;}
.events-list li:first-child > time {text-align: center;}
.events-list .events-divider {display: block; width: 100%; margin: 5px 0 8px; border-top: 1px solid rgba(255,255,255,.45);}
.notice {width: min(680px, 100%); max-width: 680px;}
.notice-copy {max-width: none; width: 100%; margin-inline: auto; text-wrap: initial; text-align: center;}
.notice-copy span {display: block;}
@media (max-width: 700px) {
  .events-list {width: 100%;}
  .events-list li {display: flex; flex-direction: column; align-items: center; gap: 0;}
  .events-list li > time, .events-list .events-coffee {white-space: normal; text-align: center;}
  .events-list .events-divider {width: min(320px, 85%); margin: 8px auto 10px;}
  .notice-copy span {white-space: normal;}
}
