/*
Theme Name: KR27 Prototype
Description: Kesärauha 2027 visual prototype.
Version: 0.2.0
Text Domain: simple-classic
*/

@font-face {
  font-family: 'Kesamaxi Round';
  src: url('fonts/KESAMaxiRound-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Kesamaxi Round';
  src: url('fonts/KESAMaxiRound-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  --kr-red: #ff003c;
  --kr-white: #fbfbef;
  --kr-black: #000;
  --font-display: 'Kesamaxi Round';
  --font-body: "acumin-pro-semi-condensed", sans-serif;
  --page-gutter: clamp(18px, 2.4vw, 44px);
  --header-size: clamp(24px, 3.125vw, 54px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--kr-white);
  color: var(--kr-black);
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1.25;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
.screen-reader-text, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus { position: fixed; z-index: 400; top: 8px; left: 8px; padding: .4em .7em; background: var(--kr-white); }
:focus-visible { outline: 3px solid var(--kr-black); outline-offset: 4px; }

/* Shared fixed bar: three overlapping fields read as one blurred band. */
.site-header {
  --nav-overlap: clamp(30px, 3vw, 52px);
  --nav-blur: 32px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
  padding: 12px var(--page-gutter) 0;
  transition: transform .3s ease;
  pointer-events: none;
}
.site-header.is-hidden { transform: translateY(-125%); }
.header-slot { position: relative; min-width: 0; display: flex; }
.header-slot:hover, .header-slot:focus-within { z-index: 2; }
.header-center { z-index: 1; justify-content: center; }
.header-right { justify-content: flex-end; }
.header-chip {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 1.45em;
  padding: .04em .26em;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--kr-red);
  font-family: var(--font-display);
  font-size: var(--header-size);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  pointer-events: auto;
  transition: color .2s ease;
}
.header-chip::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -48px calc(-1 * var(--nav-overlap)) -18px;
  border-radius: 0;
  background: var(--kr-white);
  opacity: .76;
  filter: blur(var(--nav-blur));
  transition: inset .25s ease, border-radius .25s ease, filter .25s ease, background-color .25s ease, opacity .25s ease;
}
.header-left .header-chip { justify-content: flex-start; }
.header-left .header-chip::before { left: calc(-1 * (var(--page-gutter) + var(--nav-overlap))); }
.header-center .header-chip { color: var(--kr-white); }
.header-center .header-chip::before { background: var(--kr-red); opacity: .6; }
.header-right .header-chip { justify-content: flex-end; }
.header-right .header-chip::before { right: calc(-1 * (var(--page-gutter) + var(--nav-overlap))); }
.header-left .header-chip:hover, .header-left .header-chip:focus-visible,
.header-right .header-chip:hover, .header-right .header-chip:focus-visible { width: max-content; }
.header-chip:hover, .header-chip:focus-visible { border-radius: 999px; }
.header-chip:hover::before, .header-chip:focus-visible::before {
  inset: .03em -.16em;
  border-radius: 999px;
  opacity: 1;
  filter: blur(0);
}
.chip-hover { display: none; }
.page-return:hover .chip-primary, .page-return:focus-visible .chip-primary { display: none; }
.page-return:hover .chip-hover, .page-return:focus-visible .chip-hover { display: inline; }

/* Fullscreen menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  min-height: 100svh;
  overflow-y: auto;
  background: var(--kr-white) url('graphics/signal-vertical.jpg') center center / cover no-repeat;
  font-family: var(--font-display);
}
.menu-overlay[hidden] { display: none; }
.menu-topline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1.4vw;
  padding: 16px var(--page-gutter) 0;
  color: var(--kr-red);
  font-size: var(--header-size);
  line-height: 1.08;
}
.menu-topline > a { justify-self: center; text-decoration: none; white-space: nowrap; }
.menu-topline > button {
  justify-self: end;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
}
.menu-navigation {
  width: max-content;
  max-width: calc(100% - 2 * var(--page-gutter));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  column-gap: clamp(55px, 6vw, 140px);
  margin: max(10vh, 72px) auto 0;
  font-size: clamp(34px, 4.15vw, 74px);
  line-height: 1.43;
}
.menu-navigation ul { margin: 0; padding: 0; list-style: none; }
.menu-navigation a { text-decoration: none; }
.menu-navigation a:hover, .menu-navigation a:focus-visible { color: var(--kr-red); }
.menu-navigation .is-pending { cursor: default; }
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8em;
  padding: .2em 1.6em;
  border: 0;
  border-radius: 999px;
  background: var(--kr-red);
  color: var(--kr-white);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: filter .2s ease, transform .2s ease;
}
.pill-button:hover, .pill-button:focus-visible { filter: brightness(.9); transform: translateY(-2px); }
.menu-tickets { display: flex; width: max-content; min-width: 260px; margin: 5vh auto 70px; font-size: clamp(24px, 2.25vw, 40px); }

/* Home hero and ticker */
.home-hero { position: relative; height: 100svh; min-height: 610px; overflow: hidden; background: #1c1a19; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,.08), transparent 32%, transparent 77%, rgba(0,0,0,.25)); }
.hero-tickets { position: absolute; z-index: 1; left: 50%; bottom: 13%; transform: translateX(-50%); min-width: 260px; font-size: clamp(22px, 1.8vw, 32px); white-space: nowrap; }
.hero-tickets:hover, .hero-tickets:focus-visible { transform: translate(-50%, -2px); }
.news-ticker { position: relative; z-index: 1; overflow: hidden; height: 1.85em; margin-top: -.55em; background: var(--kr-white); font-family: var(--font-display); font-size: clamp(24px, 1.9vw, 34px); line-height: 1.85; white-space: nowrap; }
.news-ticker::before { content: ''; position: absolute; z-index: 1; left: 0; top: -15px; width: 100%; height: 20px; background: var(--kr-white); filter: blur(12px); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track > span { flex: 0 0 auto; }
.ticker-dot { color: var(--kr-red); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Shared WordPress news cards */
.news-section { min-height: 740px; padding: clamp(55px, 5vw, 85px) var(--page-gutter) clamp(140px, 11vw, 210px); background: var(--kr-white); }
.news-section h2 { margin: 0 0 .35em; color: var(--kr-red); font-family: var(--font-display); font-size: clamp(38px, 3.125vw, 54px); font-weight: 400; line-height: 1.05; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.9vw, 34px); }
.news-card { min-width: 0; }
.news-card > a { display: block; text-decoration: none; }
.news-card > a:hover, .news-card > a:focus-visible { color: var(--kr-red); }
.news-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.news-card h2, .news-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; margin: 1.2em 0 .25em; font-family: var(--font-display); font-size: clamp(20px, 1.4vw, 24px); font-weight: 400; line-height: 1.15; }
.news-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0; font-size: clamp(17px, 1.39vw, 24px); line-height: 1.18; }

/* Artist listing follows the vertical signal supplied with the layout. */
.artists-page { padding-top: clamp(120px, 6.5vw, 155px); background: var(--kr-white) url('graphics/signal-vertical.jpg') center top / 100% auto repeat-y; }
.artists-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; column-gap: 1.2vw; row-gap: clamp(45px, 3.8vw, 78px); padding: 0 var(--page-gutter); }
.artist-card { min-width: 0; }
.artist-card > a { display: block; text-decoration: none; }
.artist-card > a:hover, .artist-card > a:focus-visible { color: var(--kr-red); }
.artist-card figure { margin: 0; }
.artist-card img { width: 100%; height: auto; max-height: 670px; object-fit: contain; object-position: center top; }
.artist-card figcaption { margin-top: .15em; font-family: var(--font-display); font-size: clamp(23px, 2.1vw, 38px); line-height: 1.08; overflow-wrap: anywhere; }

/* Editorial pages: the left rail sticks only within its own content row. */
.news-archive-page { background: var(--kr-white); }
.news-archive-grid { padding: clamp(120px, 8vw, 160px) var(--page-gutter) clamp(130px, 10vw, 190px); row-gap: clamp(65px, 5vw, 105px); }
.news-archive-grid .news-card h2 { margin-top: .8em; }
.editorial-layout {
  --editorial-top: clamp(110px, 9vw, 150px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(35px, 5.5vw, 105px);
  align-items: stretch;
  padding: var(--editorial-top) var(--page-gutter) clamp(120px, 12vw, 210px);
  background: var(--kr-white);
}
.editorial-left, .editorial-right { min-width: 0; }
.editorial-sticky { position: sticky; top: var(--editorial-top); }
.news-story h1, .artist-profile h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 62px);
  font-weight: 400;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.editorial-image { margin: 0 0 1.1em; }
.editorial-image img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.story-lead { max-width: 600px; margin: 0 0 1.4em; font-size: clamp(23px, 2.2vw, 32px); line-height: 1.17; }
.editorial-copy { max-width: 630px; font-size: 24px; line-height: 1.25; overflow-wrap: break-word; }
.editorial-copy p { margin: 0 0 1.1em; }
.editorial-copy h2, .editorial-copy h3, .editorial-copy h4 { margin: 1.5em 0 .45em; font-family: var(--font-display); font-weight: 400; line-height: 1.1; }
.editorial-copy h2 { font-size: 32px; }
.editorial-copy h3 { font-size: 28px; }
.editorial-copy h4 { font-size: 24px; }
.editorial-copy ul, .editorial-copy ol { padding-left: 1.3em; margin: .5em 0 1.2em; }
.editorial-copy li { margin-bottom: .35em; }
.editorial-copy a { text-underline-offset: .1em; }
.info-intro { font-family: var(--font-display); font-size: clamp(25px, 2.25vw, 38px); line-height: 1.15; }
.info-nav { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 7px; max-width: 540px; margin-top: 1.2em; }
.info-nav a { display: inline-block; padding: .26em .65em; border-radius: 999px; background: var(--kr-black); color: var(--kr-white); font-family: var(--font-display); font-size: clamp(15px, 1.16vw, 20px); line-height: 1.1; text-decoration: none; }
.info-nav a:hover, .info-nav a:focus-visible { background: var(--kr-red); }
.info-image { margin-bottom: clamp(80px, 8vw, 140px); }
.info-section { margin: 0 0 clamp(85px, 9vw, 160px); scroll-margin-top: 110px; }
.info-section h2 { margin: 0 0 1.1em; font-size: clamp(30px, 2.5vw, 42px); }
.info-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 2.5em; }
.info-person p { margin: 0; }
.artist-profile { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 110px); min-height: 720px; padding: clamp(115px, 9vw, 160px) var(--page-gutter) clamp(90px, 8vw, 150px); background: var(--kr-white); }
.artist-profile-text, .artist-profile-image { min-width: 0; }
.artist-profile h1 { margin-bottom: .5em; }
.artist-profile-image { margin: 0; }
.artist-profile-image img { width: 100%; height: auto; max-height: 780px; object-fit: contain; object-position: top; }
.artist-social { display: flex; align-items: center; gap: 12px; margin-top: 1.2em; color: var(--kr-red); font-family: var(--font-display); font-size: 18px; }
.artist-social a { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; color: var(--kr-red); text-decoration: none; }
.artist-social svg { width: 100%; height: 100%; }
.related-artists { padding-top: clamp(60px, 5vw, 90px); background: var(--kr-white) url('graphics/signal-vertical.jpg') center top / 100% auto repeat-y; }
.related-artists h2 { margin: 0 0 1em; padding: 0 var(--page-gutter); font-family: var(--font-display); font-size: clamp(32px, 3.125vw, 54px); font-weight: 400; }
.related-artists .artists-grid { padding-bottom: 100px; }

/* Shared newsletter, signal transition, logo rows */
.site-bottom { background: var(--kr-white); }
.newsletter-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 560px; padding: 100px 20px 180px; }
.site-bottom--home .newsletter-zone, .site-bottom--editorial .newsletter-zone { background: linear-gradient(to bottom, var(--kr-white) 0%, var(--kr-white) 43%, rgba(251,251,239,.85) 60%, rgba(251,251,239,0) 90%), url('graphics/signal-horizontal.jpg') center bottom / 100% auto no-repeat; }
.site-bottom--artists .newsletter-zone { margin-top: 30px; background: url('graphics/signal-vertical.jpg') center center / 100% auto repeat-y; }
.newsletter-title { width: min(550px, 94vw); margin: 0 0 -10px; }
.newsletter-title svg { width: 100%; height: auto; overflow: visible; }
.newsletter-title text { fill: var(--kr-black); font-family: var(--font-display); font-size: 83px; font-weight: 700; }
.site-bottom--artists .newsletter-title text { fill: var(--kr-red); }
.newsletter-form { display: flex; flex-direction: column; align-items: center; gap: 18px; width: min(320px, 100%); }
.newsletter-form input { width: 100%; min-height: 43px; padding: 5px 11px; border: 1px solid #e8e5d3; border-radius: 5px; background: #fff; color: var(--kr-black); font-family: var(--font-body); font-size: 18px; }
.newsletter-form .pill-button { width: 100%; font-size: 24px; }
.newsletter-status { min-height: 1em; margin: 0; font-size: 16px; text-align: center; }
.partner-zone { padding: clamp(35px, 4vw, 72px) var(--page-gutter) clamp(24px, 3vw, 50px); background: #fff; }
.partner-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; gap: clamp(28px, 4vw, 78px) clamp(15px, 3vw, 60px); }
.partner-grid img { width: 100%; max-height: 70px; object-fit: contain; filter: grayscale(1); margin: auto; }
.partner-grid img:nth-child(-n+3) { grid-column: span 2; max-width: 230px; max-height: 100px; }

/* Black footer */
.site-footer { font-family: var(--font-display); }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 95px; padding: 15px var(--page-gutter); background: var(--kr-black); color: var(--kr-white); }
.footer-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: .45em; font-size: clamp(14px, 1vw, 18px); }
.footer-navigation a { text-decoration: none; }
.footer-navigation a:hover, .footer-navigation a:focus-visible { color: var(--kr-red); }
.footer-navigation .is-pending { cursor: default; }
.footer-social { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 30px); font-size: clamp(16px, 1.2vw, 20px); white-space: nowrap; }
.footer-social a, .footer-social .social-pending { display: block; width: clamp(24px, 2.1vw, 36px); height: clamp(24px, 2.1vw, 36px); }
.footer-social svg { width: 100%; height: 100%; }
.footer-social a:hover { color: var(--kr-red); }
.footer-legal { display: flex; justify-content: center; gap: .35em; flex-wrap: wrap; min-height: 27px; padding: 4px 15px; background: var(--kr-white); color: var(--kr-black); font-size: clamp(11px, .8vw, 14px); text-align: center; }
.not-built { min-height: 80svh; padding: 160px var(--page-gutter) 70px; background: var(--kr-white); }
.not-built h1 { font-family: var(--font-display); font-size: clamp(32px, 3vw, 54px); }

@media (max-width: 1050px) {
  :root { --header-size: clamp(24px, 3.6vw, 40px); }
  .news-card p { font-size: 18px; }
  .footer-main { flex-direction: column; align-items: flex-start; }
  .footer-social { align-self: flex-end; }
}
@media (max-width: 900px) {
  .news-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-layout { display: block; padding-top: 100px; }
  .editorial-sticky { position: static; }
  .news-story h1 { max-width: 750px; margin-bottom: 1em; }
  .info-sidebar { margin-bottom: 3em; }
  .artist-profile { grid-template-columns: 1fr; min-height: 0; }
  .artist-profile-image img { max-height: none; }
}
@media (max-width: 700px) {
  :root { --page-gutter: 16px; --header-size: clamp(15px, 4vw, 23px); }
  body { font-size: 18px; }
  .site-header { --nav-overlap: 34px; --nav-blur: 30px; padding-top: 12px; }
  .header-chip::before { top: -64px; opacity: .7; }
  .header-center .header-chip::before { opacity: .7; }
  .header-chip { min-height: 1.9em; padding: .05em .16em; }
  .header-chip::before { bottom: -7px; }
  .header-chip:hover::before, .header-chip:focus-visible::before { top: .03em; bottom: .03em; opacity: 1; }
  .header-date { letter-spacing: -.03em; }
  .menu-topline { gap: 2px; padding-top: 18px; font-size: var(--header-size); }
  .menu-navigation { width: auto; max-width: none; column-gap: 20px; margin: max(20vh, 120px) var(--page-gutter) 0; font-size: clamp(23px, 5.2vw, 37px); line-height: 1.65; }
  .menu-navigation ul:nth-child(2) { justify-self: end; }
  .menu-tickets { margin-top: 9vh; font-size: 24px; min-width: 220px; }
  .home-hero { height: 80svh; min-height: 560px; }
  .hero-photo { object-position: 55% center; }
  .hero-tickets { bottom: 10%; min-width: 185px; }
  .news-ticker { font-size: 21px; }
  .news-section { padding-top: 55px; padding-bottom: 110px; }
  .news-grid { grid-template-columns: 1fr; gap: 45px; }
  .news-archive-grid { padding-top: 90px; padding-bottom: 100px; }
  .editorial-layout { padding: 90px var(--page-gutter) 100px; }
  .news-story h1, .artist-profile h1 { font-size: clamp(30px, 7vw, 44px); }
  .story-lead { font-size: 23px; }
  .editorial-copy { font-size: 18px; }
  .info-intro { font-size: clamp(24px, 5.5vw, 32px); }
  .info-nav a { font-size: 16px; }
  .info-image { margin-bottom: 70px; }
  .info-section { margin-bottom: 80px; }
  .info-contacts { grid-template-columns: 1fr; }
  .artist-profile { gap: 35px; padding: 90px var(--page-gutter) 80px; }
  .related-artists { padding-top: 55px; }
  .related-artists .artists-grid { padding-bottom: 70px; }
  .news-card img { aspect-ratio: 1.18 / 1; }
  .news-card h2, .news-card h3 { margin-top: .7em; font-size: 23px; }
  .news-card p { font-size: 18px; }
  .artists-page { padding-top: 100px; background-size: auto 1100px; }
  .artists-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .artist-card figcaption { font-size: clamp(20px, 4.2vw, 30px); }
  .newsletter-zone { min-height: 450px; padding: 70px 20px 110px; }
  .newsletter-title { width: min(430px, 95vw); }
  .newsletter-title text { font-size: 75px; }
  .newsletter-form { width: min(260px, 76vw); }
  .site-bottom--home .newsletter-zone, .site-bottom--editorial .newsletter-zone { background-size: 100% auto; }
  .site-bottom--artists .newsletter-zone { background-size: auto 1100px; }
  .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; }
  .partner-grid img:nth-child(-n+3) { grid-column: span 1; }
  .partner-grid img { max-height: 55px; }
  .footer-main { gap: 24px; padding: 28px var(--page-gutter); }
  .footer-navigation { font-size: 15px; gap: .6em; }
  .footer-social { align-self: flex-start; font-size: 17px; }
}
@media (max-width: 430px) {
  :root { --header-size: clamp(12px, 3.6vw, 14px); }
  .site-header { grid-template-columns: minmax(94px, 1fr) minmax(0, 1.5fr) minmax(55px, .75fr); }
  .menu-navigation { font-size: 21px; column-gap: 10px; }
  .artists-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artist-card figcaption { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
