:root {
  --red-3: hsl(350 80% 22%);
  --red-2: hsl(350 80% 30%);
  --red-1: hsl(350 80% 37%);
  --red-0: hsl(350 100% 91%);
  --ink: hsl(0 0% 8%);
  --gray-4: hsl(26 5% 26%);
  --gray-3: hsl(27 5% 34%);
  --gray-2: hsl(27 7% 68%);
  --gray-1: hsl(20 6% 90%);
  --paper: hsl(0 0% 99%);
  --shadow-color: hsl(0 0% 0%/0.1);
  --shadow-color-2: hsl(0 0% 0%/0.2);
  --light-color: hsl(0 0% 100%/0.1);

  --shadow: 0 2px 10px var(--shadow-color);
  --shadow-2: 1px 2px 6px 2px var(--shadow-color-2);
  --light: 0 0 8px var(--light-color);

  --radius: 8px;
  --gap: 10px;

  /* Note: --scrollbar-width is defined in scripts.js */
  --container: min(
    1200px,
    100vw - clamp(4px, 2vw, 40px) * 2 - var(--scrollbar-width, 15px)
  );
  --header-h: 46px;
  --footer-h: 44px;

  --title: "Newsreader", "Times New Roman", serif;
  --font: "IBM Plex Sans", Segoe UI, Roboto, Arial, sans-serif;
  --text-size: 14px;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: var(--text-size);
  font-family: var(--font);
  font-weight: 400;
  padding-top: var(--header-h);
  overflow-x: hidden;
  line-height: 1.3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-overflow-scrolling: touch;
}
body * {
  box-sizing: border-box;
  word-break: normal;
  overflow-wrap: balance;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red-1);
  text-decoration: none;
  font-weight: 600;
}

.skip-link {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 9999;
  color: var(--paper);
  background: var(--red-1);
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transform: translateY(-110%);
  transition: transform 0.3s;
}

.skip-link:focus {
  transform: translateY(0%);
}

.wrap {
  width: var(--container);
  margin-inline: auto;
}

.header {
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  position: relative;
  background-color: var(--red-2);
  background-image: linear-gradient(180deg, var(--red-2), var(--red-1));
  color: var(--paper);
  border-bottom: 2px solid var(--gray-1);
}
.js-enabled .header {
  position: fixed;
  height: var(--header-h);
}
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 0;
  height: var(--header-h);
}
.js-enabled .head {
  height: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--gap);
  color: inherit;
  text-decoration: none;
  max-height: calc(var(--header-h) - 4px);
}
.js-enabled .brand {
  height: 90%;
}
.brand_logo,
.brand_logo picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-height: calc(var(--header-h) - 8px);
}
.js-enabled .brand_logo,
.js-enabled .brand_logo picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 100%;
}
.js-enabled .brand_logo picture img {
  width: auto;
  height: 90%;
}
.brand_name {
  white-space: nowrap;
  visibility: hidden;
  width: 1px;
}
.topnav {
  display: none;
  gap: clamp(5px, 1vw, 30px);
}
.topnav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 400;
  font-size: clamp(16px, 1.5vw, 18px);
  transition-property: background-size;
  transition-duration: 0.3s;
  transition-timing-function: ease-in-out;
}
.topnav a:hover,
.topnav a:focus,
.topnav a:focus-visible {
  text-decoration: underline;
  background-position: bottom;
}
/*current link*/
.topnav a[aria-current="page"] {
  background-size: 100% 100%;
  background-image: linear-gradient(180deg, var(--red-2), var(--red-3));
  pointer-events: none;
}
.hamb {
  display: none;
}
.js-enabled .hamb {
  width: 38px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid hsl(0 0% 100%/0.25);
  background: hsl(0 0% 100%/0.06);
  cursor: pointer;
  transition: all 0.2s ease;
}

.js-enabled .hamb:focus,
.js-enabled .hamb:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 2px;
  background: hsl(0 0% 100%/0.15);
}

.js-enabled .hamb:hover {
  background: hsl(0 0% 100%/0.12);
}
.js-enabled .bars {
  width: 25px;
  height: 16px;
  position: relative;
}
.js-enabled .bars::before,
.js-enabled .bars::after,
.js-enabled .bar {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 2px;
  top: 8px;
  border-radius: 2px;
  background: var(--paper);
  transition: 0.3s;
}
.js-enabled .bars::before {
  top: 0;
}
.js-enabled .bars::after {
  top: 16px;
}
.js-enabled .nav-open .bar {
  opacity: 0;
}
.js-enabled .nav-open .bars::before {
  top: 6px;
  transform: rotate(45deg);
}
.js-enabled .nav-open .bars::after {
  top: 6px;
  transform: rotate(-45deg);
}

.mobinav {
  display: flex;
  flex-direction: column;
  left: 0;
  right: 0;
  max-width: 100vw;
  overflow-x: hidden;
  z-index: 900;
  top: var(--header-h);
  max-height: 400px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transition-timing-function: ease-in-out;
  transition-property: opacity, translate;
  transition-duration: 0.25s;
}
.js-enabled .mobinav {
  opacity: 0;
  translate: 0 -8px;
  pointer-events: none;
  height: clamp(200px, calc(100vh - var(--header-h)), 800px);
}

.js-enabled .nav-open .mobinav {
  opacity: 1;
  translate: 0 0;
  pointer-events: all;
  min-height: calc(100vh - var(--header-h));
}
.mobinav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--paper);
  text-decoration: none;
  font-weight: 400;
  font-size: clamp(20px, 6vw, 60px);
  border-top: 1px solid var(--gray-2);
  border-bottom: 3px solid var(--red-3);
  transition-property: background-position;
  transition-duration: 0.3s;
  transition-timing-function: ease-in-out;
  background: var(--red-1);
  background-image: linear-gradient(
    180deg,
    var(--red-1),
    var(--red-1),
    var(--red-3)
  );
  background-size: 100% 200%;
  background-position: 0 0;
}
/*current link mobile*/
.mobinav a[aria-current="page"] {
  background-image: linear-gradient(180deg, var(--red-2), var(--red-3));
}

.mobinav a:hover,
.mobinav a:focus,
.mobinav a:focus-visible,
.mobinav a[aria-current="page"]:hover,
.mobinav a[aria-current="page"]:focus,
.mobinav a[aria-current="page"]:focus-visible {
  outline-color: var(--paper);
  outline-width: 2px;
  outline-style: solid;
  outline-offset: -3px;
  background-position: 0 100%;
  border-bottom-color: var(--ink);
}

.hero {
  color: var(--ink);
  padding: 3rem 0 0.5rem;
  box-shadow: var(--shadow);
  background-image: linear-gradient(135deg, var(--paper), var(--gray-1));
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--title);
  font-weight: 400;
  margin-bottom: 0.9em;
  padding-top: 0.6em;
  line-height: 0.9;
}
.hero h1 {
  font-size: clamp(31px, 6vw, 42px);
  margin: 0.25rem 0 0.5rem;
}
.hero p {
  margin: 0 0 1rem;
  max-width: 60ch;
}
.not-found h2 {
  font-size: clamp(31px, 12vw, 58px);
  line-height: 1.3;
  margin: 0 0 0.8em;
}
.not-found h2 span {
  display: block;
}
.not-found h2 span:nth-child(2) {
  font-size: clamp(28px, 4vw, 30px);
  font-weight: 400;
  line-height: 1;
  margin: 0 0 0.2em;
}
.breadcrumb-list {
  display: flex;
  flex-flow: row wrap;
  list-style: none;
  padding: 1em 0 0 0;
  margin: 0;
  gap: 0.5rem;
  font-style: italic;
}
.breadcrumb-list li:not(:last-child)::after {
  content: "\203A";
  margin-left: 0.5rem;
  color: var(--gray-3);
  font-weight: 600;
}
main h2 {
  font-size: clamp(20px, 4vw, 40x);
  margin: 0 0 0.8em;
}
main h3 {
  font-size: clamp(16px, 1vw, 24px);
  margin: 0 0 0.6em;
}
.cta {
  display: flex;
  gap: var(--gap);
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 999px;
  padding: calc(var(--gap) / 3) calc(var(--gap) * 1.5);
  text-decoration: none;
  white-space: wrap;
  transition: all 0.2s ease;
}

.btn:focus,
.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.btn-fill {
  background: var(--red-1);
  color: var(--paper);
  border: 3px solid var(--red-2);
}

.btn-fill:hover,
.btn-fill:focus {
  background: var(--red-3);
}

.btn-fill:focus,
.btn-fill:focus-visible {
  outline: solid 3px var(--ink);
  outline-offset: 3px;
}

.btn-outline {
  background: transparent;
  color: var(--red-2);
  border: 3px solid var(--red-2);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--red-2);
  color: var(--paper);
}
.news {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 10px;
  background-image: linear-gradient(180deg, var(--paper), var(--gray-1));
  border: 1px solid hsl(0 0% 0%/0.06);
  border-radius: var(--radius);
  padding: 10px 6px 8px;
  box-shadow: var(--shadow), inset -3px -4px 0 var(--paper);
}
.news small {
  display: block;
  color: var(--ink);
}
.news a {
  display: block;
  color: var(--red-2);
  text-decoration: none;
  font-weight: 600;
  margin: 0;
  padding: 0;
}
.news a:hover {
  text-decoration: underline;
}
.news h2 {
  margin: 0.5em 0 0.3em;
  font-size: clamp(20px, 3vw, 28px);
  padding: 0;
}
.news a.new {
  margin: 0;
  padding: 0.2rem 0 0;
  color: var(--gray-3);
  font-weight: 400;
}

section {
  padding: 0.8rem 0.2rem;
}

#esittely p {
  max-width: 60ch;
  line-height: 1.5;
}
.main {
  display: grid;
  gap: var(--gap) calc(var(--gap) * 3);
  margin-top: calc(var(--gap) * 2);
  margin-bottom: calc(var(--gap) * 4);
}
main.wrap.main {
  flex: 1 0 auto;
}
.main section,
.main p {
  padding-bottom: 0;
  margin-bottom: 0;
}
.align-center {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  text-align: center;
  justify-content: center;
}
section .lede {
  max-width: 70ch;
  margin: 0;
  padding-bottom: 1em;
}
section .lede.full {
  max-width: none;
}
@media (min-width: 300px) {
  :root {
    --text-size: 16px;
  }
  body {
    padding-top: 0;
  }
  .header {
    position: sticky;
  }
  .brand_name {
    visibility: visible;
    width: 150px;
  }
  .full-width {
    grid-column: 1 / span 2;
  }
  .news {
    padding: 10px 20px 8px;
  }

  .btn {
    white-space: nowrap;
  }
}

@media (min-width: 760px) {
  :root {
    --text-size: 18px;
  }
  .topnav {
    display: flex;
    height: 100%;
    gap: 0;
  }
  .topnav a {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(0.3em, 2vw, 30px) 0 clamp(0.3em, 2vw, 30px);
    background: radial-gradient(
      circle,
      transparent,
      transparent,
      var(--light-color)
    );
    background-size: 200% 200%;
    background-position: center;
  }
  .topnav a:hover,
  .topnav a:focus,
  .topnav a:focus-visible {
    background-size: 100% 100%;
  }
  .header .hamb {
    display: none;
  }
  .header .mobinav {
    display: none;
  }
  .hero .wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--gap) * 2);
    align-items: center;
  }
  .hero .wrap.half {
    grid-template-columns: 1fr 1fr;
  }

  .full-width {
    grid-column: 1 / span 2;
  }
  .breadcrumb-list {
    font-size: 0.9em;
  }
  .main {
    grid-template-columns: 1fr 1fr;
  }
  .btn {
    font-size: 0.9em;
  }
  #esittely {
    order: -3;
  }
  #tapahtumat {
    order: -2;
    grid-column: 2;
  }
  #kuoro1 {
    order: -1;
    grid-column: 1 / span 2;
  }
}

@media (min-width: 1100px) {
  :root {
    --text-size: 20px;
  }
  .hero .wrap,
  .hero .wrap.half {
    grid-template-columns: 2fr 1fr;
  }

  .full-width {
    grid-column: 1 / span 3;
  }
  .main {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .harj {
    grid-column: 3;
  }
  #kuoro1 {
    order: unset;
  }
  #liity {
    order: -1;
    grid-column: 3;
  }
}
figure {
  margin: 0;
}
.mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: clip;
  clip-path: inset(0 round var(--radius));
  margin-bottom: 0.2em;
}
.mask-kuoro {
  aspect-ratio: 1000 / 500;
}
.mask-kuoro img {
  transform: scale(1.25);
  object-position: right;
  clip-path: inset(10% round var(--radius));
}

.mask-kuoro2 {
  aspect-ratio: 1000 / 300;
}
.mask-pianist {
  aspect-ratio: 900 / 470;
}
.section-olli {
  display: flex;
  justify-content: center;
  align-items: center;
}
.mask-olli {
  padding: 0.3em;
  max-width: 300px;
  height: auto;
}
.mask-olli img {
  border-radius: 30% 70% 50% 55% / 30% 50% 50% 70%;
  transition-property: border-radius, transform, outline;
  transition-duration: 0.3s;
  transition-timing-function: ease-in-out;
}
.mask-olli img:hover,
.mask-olli img:focus,
.mask-olli img:focus-visible {
  border-radius: 70% 100% 80% 100%;
  transform: scale(1.03);
  outline: var(--red-1) double 8px;
  outline-offset: -9px;
  cursor: pointer;
}
.position-kuoro2 {
  object-position: 50% 50%;
}
.position-pianist {
  object-position: 84% 50%;
}

.facts {
  border: 1px solid hsl(0 0% 0%/0.08);
  background: linear-gradient(180deg, var(--paper), var(--gray-1));
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-2), inset -3px -4px 0 var(--paper);
}
.facts p {
  margin: 0.25rem 0;
}
body .mt1 {
  margin-top: 1rem;
}
body .mt2 {
  margin-top: 2rem;
}
body .block {
  display: block;
}
body .pb1 {
  padding-bottom: 1rem;
}
body .pb2 {
  padding-bottom: 2rem;
}
.caption,
.credit {
  color: var(--gray-4);
  font-size: 0.95rem;
}

.footer {
  background-image: linear-gradient(180deg, var(--gray-3), var(--ink));
  color: var(--paper);
  display: flex;
  align-items: center;
  border-top: 2px solid var(--paper);
  padding: 0.3rem 0;
}
.footer .row {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
  gap: calc(var(--gap) / 3);
  flex-direction: column;
}
.footer p {
  margin: 0;
  font-size: 0.9rem;
  padding: 0;
  text-align: center;
}
body footer p:last-of-type {
  margin-bottom: 0;
}
.footer a {
  color: var(--paper);
  text-decoration: underline;
}
@media (min-width: 300px) {
  .footer .row {
    flex-flow: row wrap;
    justify-content: space-between;
    height: var(--footer-h);
  }
  .footer p {
    text-align: left;
  }
  .mask-kuoro {
    aspect-ratio: 2000 / 500;
  }
  .mask-kuoro img {
    transform: scale(1);
    clip-path: inset(0 round var(--radius));
    object-position: 50% 40%;
  }
}
@media (min-width: 760px) {
  .footer .row {
    gap: var(--gap);
  }
  #kuka {
    order: -3;
  }
  #harj-kuoro {
    order: -2;
  }
  #kuoro2 {
    grid-column: 1 / span 2;
    order: -1;
  }
}

@media (min-width: 1100px) {
  #ohjelmisto {
    grid-column: 3;
    grid-row: 1 / span 2;
    order: unset;
  }
  #kuoro2 {
    grid-column: 1 / span 3;
    order: unset;
  }
}

.media-grid {
  display: grid;
  gap: var(--gap);
}

@media (min-width: 760px) {
  .section-video,
  .section-audio {
    grid-column: span 2;
  }
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section-video,
  .section-audio {
    grid-column: span 2;
  }
  .section-video {
    order: 0;
  }
  .section-cta {
    order: 1;
  }
  .section-audio {
    order: 2;
  }
}

body p:last-of-type {
  margin-bottom: 0.9em;
}

.embed {
  background: var(--gray-1);
  border: 1px solid hsl(0 0% 0%/0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: clip;
}
.ratio-16x9 {
  aspect-ratio: 16 / 9;
}
.ratio-audio {
  min-height: 166px;
}

.embed > iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card .meta {
  color: var(--gray-3);
  font-size: 0.95rem;
}

.btn-row {
  display: flex;
  flex-flow: row wrap;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.small {
  color: var(--gray-3, hsl(0 0% 40%));
  font-size: 0.95rem;
}

/*screen-reader only*/
.scr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
