/* ==========================================================================
   KONTU ELÄÄ – style.css
   Everything you are likely to want to change is in the :root block.
   ========================================================================== */

:root {
  /* ---- FONTS ----------------------------------------------------------
     First name = the Adobe Fonts CSS name (check "How to use" in your
     Adobe web project; they may differ slightly). The rest are fallbacks. */
  --font-body:  "itc-avant-garde-gothic-pro", "Avant Garde", "Century Gothic", "URW Gothic", "TeX Gyre Adventor", "Trebuchet MS", sans-serif;
  --font-names: "pitch", "Arial Black", "Helvetica Neue", Arial, sans-serif;   /* artist names, set in caps */
  --w-body: 300;     /* Book */
  --w-strong: 600;   /* Demi: menu, headings */
  --w-names: 400;    /* Adobe lists Pitch as 400 */

  /* ---- COLOURS ------------------------------------------------------- */
  --text: #fff;
  --sheet: transparent;                 /* panel behind reading text; e.g. rgba(0,52,24,.4) to bring it back */
  --line: rgba(255, 255, 255, .85);
  /* Photoshop drop shadow: angle 48, distance 3, size 2, spread 34, 68% dark */
  --shadow: -2px 2px 0 rgba(20, 17, 13, .85), -1px 1px 1px rgba(20, 17, 13, .85);

  /* Centre gradient, sampled from your design (starts where the photo strip ends) */
  --g0: #63c42b;
  --g1: #00b434;
  --g2: #00a739;
  --g3: #00963e;
  --g4: #008539;

  /* ---- WALL GEOMETRY ---------------------------------------------------
     The side panels scale with screen height, like the 1920x1080 layout,
     but never take more than 24% of the width each. */
  --u: calc(100vh / 1080);
  --wl: min(calc(var(--u) * 420), 24vw);
  --wr: min(calc(var(--u) * 424), 24vw);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--g4);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: var(--w-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: #fff; color: #000; padding: 8px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ WALL */
.wall img { position: fixed; top: 0; height: 100vh; pointer-events: none; user-select: none; }

.wall-left  { left: 0;  width: var(--wl); z-index: 1; object-fit: cover; object-position: left top; }
.wall-right { right: 0; width: var(--wr); z-index: 1; object-fit: cover; object-position: right top; }

/* Floating lines + cube: same top-right corner as the right panel, same scale */
.floaters   { right: 0; width: auto; max-width: none; z-index: 1; }

/* ----------------------------------------------------------------- STAGE */
.stage {
  position: relative;               /* no z-index: lets the wall slot between bg and content */
  margin-left: var(--wl);
  margin-right: var(--wr);
  min-height: 100vh;
}

.stage-bg {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column;
}
.strip {
  flex: none;
  aspect-ratio: 1076 / 125;
  background: url("../img/centre-strip.webp") center top / 100% 100% no-repeat;
}
.fill {
  flex: 1;
  background-color: var(--g4);
  background-image: linear-gradient(to bottom,
    var(--g0) 0, var(--g1) 275px, var(--g2) 475px, var(--g3) 725px, var(--g4) 954px);
}

/* flow-root keeps the topbar's top margin inside the column instead of pushing the whole stage down */
.stage-ui { position: relative; z-index: 2; padding-bottom: 72px; display: flow-root; container-type: inline-size; }

/* ---------------------------------------------------------------- TOPBAR */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px clamp(20px, 4cqw, 72px);
  padding: 0 8.9%;
  /* logo top sits ~28px above the end of the photo strip, as in the layout */
  margin-top: calc(125 / 1076 * 100% - 28px);
}
.brand { flex: none; }
.brand img { height: 73px; width: auto; max-width: none; }

/* cqw = % of the centre column's width, so the menu shrinks with the column */
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 5.6cqw, 62px); }
.nav a {
  font-weight: var(--w-strong);
  font-size: clamp(15px, 1.86cqw, 20px);
  letter-spacing: .01em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover { border-bottom-color: rgba(255,255,255,.6); }
.nav a[aria-current="page"] { border-bottom-color: #fff; }

/* ------------------------------------------------------------------ VIEW */
main, main:focus-visible { outline: none; }
.view { max-width: 760px; margin: 40px auto 0; padding: 0 clamp(16px, 5%, 48px); }
.view[hidden] { display: none; }

.view-title, .day-title, .label {
  font-weight: var(--w-strong);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.view-title { font-size: clamp(22px, 3vw, 30px); margin: 0 0 20px; line-height: 1.2; }

.sheet {
  background: var(--sheet);
  padding: 0;
  border-radius: 6px;
}
.sheet p { margin: 0 0 1.1em; }
.sheet p:last-child { margin-bottom: 0; }

.artist-head {
  display: block;
  font-family: var(--font-names);
  font-weight: var(--w-names);
  text-transform: uppercase;
  font-size: 32px;
  line-height: 1.2;
  color: #ff5b70;
  margin-bottom: .15em;
}
.artist {
  font-family: var(--font-names);
  font-weight: var(--w-names);
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ------------------------------------------------------------------ HERO */
.hero { text-align: center; padding-top: 4px; }
.hero-title { position: relative; top: -25px; margin: 0 auto; width: min(260px, 62%); line-height: 0; }
.hero-title img { width: 100%; height: auto; }
.hero-date {
  margin: 26px 0 0;
  font-weight: 100;   /* Extra Light */
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: .02em;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 60, 20, .35);
}

.hero-place { margin: 8px 0 0; font-size: clamp(16px, 1.9vw, 21px); letter-spacing: .02em; }
.hero + .sheet { margin-top: 40px; }

.button {
  display: inline-block; margin-top: 24px; padding: 14px 30px;
  background: #fff; color: #00532a; text-decoration: none;
  font-weight: var(--w-strong); text-transform: uppercase; letter-spacing: .08em;
  border-radius: 4px;
}
.button:hover { background: #eaffe0; }

/* --------------------------------------------------------------- OHJELMA */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#view-ohjelma .day-title {
  font-size: 26px; font-weight: var(--w-strong);
  text-transform: none; letter-spacing: 0;
  margin: 0 0 20px; text-shadow: var(--shadow);
}
#view-ohjelma .day + .day { margin-top: 30px; }
/* text starts exactly under the first menu item */
#view-ohjelma { max-width: none; margin-left: 0; margin-right: 0; padding: 15px 4% 0 calc(8.9% + 104px + clamp(20px, 4cqw, 72px)); }
.day + .day { margin-top: 34px; }
.day-title { font-size: clamp(17px, 2vw, 21px); margin: 0 0 10px; }
.acts { list-style: none; margin: 0; padding: 0; }
.acts li {
  font-family: var(--font-names);
  font-weight: var(--w-names);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 32px;
  color: #ff5b70;
  line-height: 1.19;
  margin: 0;
  text-shadow: var(--shadow);
}
.rule { border: 0; border-top: 2px solid var(--line); margin: 34px 0 22px; }
.extras { list-style: none; margin: 0; padding: 0; }
.extras { margin-top: 30px; }
.extras li { margin: 0 0 .35em; }

/* ----------------------------------------------------------------- LIPUT */
.liput-intro { margin: 0 0 28px; }
.tickets-heading { margin: 0 0 12px; font-size: clamp(17px, 2vw, 21px); }
.tickets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 28px; padding: 0; list-style: none; }
.ticket {
  border: 2px solid var(--line); border-radius: 6px;
  padding: 16px 14px 14px; text-align: center;
}
.ticket .t-label { display: block; font-weight: var(--w-strong); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
.ticket .t-note  { display: block; font-size: 14px; opacity: .9; }
.ticket .t-price { display: block; font-weight: var(--w-strong); font-size: clamp(30px, 4vw, 44px); line-height: 1.2; margin-top: 6px; white-space: nowrap; }
.quote { margin: 0; font-weight: var(--w-strong); }

/* ----------------------------------------------------------- YHTEYSTIEDOT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.label { font-size: 15px; margin: 0 0 6px; }
.contact-block p { margin: 0 0 .9em; }
.contact-block address { font-style: normal; }
.contact-block .line { display: block; }
.contact-wide { grid-column: 1 / -1; }

/* -------------------------------------------------------------- MOBILE ART */
.m-art { display: none; }

/* ----------------------------------------------------------------- PHONES */
@media (max-width: 900px) {
  .wall { display: none; }
  .stage { margin-left: 0; margin-right: 0; }

  /* the strip keeps its height and shows the barn, instead of shrinking with the width */
  .strip { aspect-ratio: auto; height: 125px; background-size: cover; background-position: 14% top; }

  .topbar { flex-direction: column; gap: 10px; padding: 0 16px; margin-top: 78px; }
  .brand img { height: 58px; }
  .nav { flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
  .nav a { font-size: 16px; }
  .artist-head, .acts li { font-size: 26px; }

  .view { margin-top: 28px; }
  #view-ohjelma { padding: 15px 16px 0; }
  .tickets { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .m-art {
    display: block; height: 280px; margin-top: 44px;
    background: url("../img/panel-right.webp") center 92% / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 38%);
            mask-image: linear-gradient(to bottom, transparent, #000 38%);
  }
  .stage-ui { padding-bottom: 0; }
}

.nowrap { white-space: nowrap; }
