/* Suspaustas laikas
   Plain CSS, no build step. Design language of the original site:
   grey paper, 2px black rules, uppercase labels, huge grotesk headings, yellow accent. */

:root {
  --black: #000;
  --white: #fff;
  --grey: #ececec;
  --yellow: #f6e821;
  --error: #b00020;

  --rule: 2px solid var(--black);
  --gutter: clamp(20px, 4.9vw, 70px);
  --header-h: 58px;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-s: clamp(13px, 0.55rem + 0.6vw, 18px);
  --fs-m: clamp(20px, 0.9rem + 1.3vw, 38px);
  --fs-l: clamp(30px, 0.9rem + 3.9vw, 70px);
  --fs-xl: clamp(48px, 1.4rem + 7.5vw, 150px);
  --track: 0.06em;
  --ease: cubic-bezier(.2, .7, .2, 1);

  interpolate-size: allow-keywords;
}

@media (min-width: 2000px) {
  :root { --gutter: 300px; }
}

/* Base */

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--grey);
  color: var(--black);
  font-family: var(--font);
  font-size: var(--fs-s);
  line-height: 1.35;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }

button { background: none; border: 0; cursor: pointer; }

ul { list-style: none; }

:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 2px;
}

.container {
  width: 100%;
  padding-inline: var(--gutter);
}

span.container { display: block; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--yellow);
  border: var(--rule);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

/* Type */

.label {
  font-size: var(--fs-s);
  text-transform: uppercase;
  letter-spacing: var(--track);
  line-height: 1.3;
}

.text-m { font-size: var(--fs-m); line-height: 1.22; }

.text-l { font-size: var(--fs-l); line-height: 1.08; letter-spacing: -0.01em; }

.text > * + *,
.text-m > * + *,
.text-l > * + * { margin-top: 0.75em; }

.text strong, .text b { font-weight: 700; }

.text em, .text i { font-style: italic; }

.text ul, .text ol { padding-left: 1.2em; }

.text ul { list-style: disc; }

.text a, .text-m a, .text-l a, .link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  transition: background-size .35s var(--ease);
}

.text a:hover, .text-m a:hover, .text-l a:hover, .link:hover { background-size: 0 2px; background-position: 100% 100%; }

/* Icons: outlined circles from the original site */

.icon {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  overflow: visible;
}

.icon__bg {
  fill: var(--white);
  stroke: currentColor;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}

.icon__line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}

@media (max-width: 900px) {
  .icon { width: 44px; height: 44px; }
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: var(--rule);
}

/* frosted bar: the page shows through, slightly blurred */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(236 236 236 / .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  transition: background-color .4s var(--ease);
}

/* over the hero image the bar is lighter and the blur fades out towards the black rule */
.header.is-over-hero::before {
  background: linear-gradient(rgb(236 236 236 / .5), rgb(236 236 236 / .1));
  -webkit-mask-image: linear-gradient(#000 20%, rgb(0 0 0 / .3));
  mask-image: linear-gradient(#000 20%, rgb(0 0 0 / .3));
}

body.menu-open .header::before { background: var(--grey); -webkit-mask-image: none; mask-image: none; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: calc(var(--header-h) - 2px);
}

.header__logo,
.header__link {
  font-size: var(--fs-s);
  text-transform: uppercase;
  letter-spacing: var(--track);
}

.header__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }

.header__link { position: relative; padding-block: 4px; }

.header__link:not(:last-child) { margin-right: 0.5em; }

.header__link:not(:last-child)::after { content: ","; }

.header__link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width .3s var(--ease);
}

.header__link:hover::before,
.header__link.is-active::before { width: calc(100% - 0.35em); }

.header__link:last-child:hover::before,
.header__link:last-child.is-active::before { width: 100%; }

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}

.header__burger i {
  display: block;
  height: 2px;
  background: var(--black);
  transition: transform .3s var(--ease), opacity .3s;
}

.header__burger[aria-expanded="true"] i:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.header__burger[aria-expanded="true"] i:nth-child(3) { opacity: 0; }
.header__burger[aria-expanded="true"] i:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 40;
  overflow-y: auto;
  background: var(--grey);
}

.menu__link {
  display: block;
  padding: 10px var(--gutter) 8px;
  border-bottom: var(--rule);
  font-size: var(--fs-l);
  line-height: 1.1;
  text-transform: uppercase;
}

.menu__link.is-active { background: var(--yellow); }

@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__burger { display: flex; }
}

@media (min-width: 901px) {
  .menu { display: none; }
}

/* Hero */

.hero {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: 420px;
  overflow: hidden;
  background: var(--black);
  border-bottom: var(--rule);
}

/* the hero starts under the transparent header */
main > .hero:first-child {
  margin-top: calc(-1 * var(--header-h));
  height: 100svh;
}

.hero__media, .hero__img {
  width: 100%;
  height: 100%;
}

.hero__img { object-fit: cover; }

.hero--cover {
  display: grid;
  place-items: center;
  background: var(--hero-bg, var(--yellow));
  text-align: center;
}

.hero__text { font-size: var(--fs-l); line-height: 1.08; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 6vh, 70px);
  transform: translateX(-50%);
  transition: transform .3s var(--ease);
}

.hero__scroll:hover { transform: translate(-50%, 6px); }

/* Bars and section heads */

.year-bar {
  padding: 10px 0 8px;
  background: var(--yellow);
  border-bottom: var(--rule);
  text-align: center;
}

.city__head,
.section__head {
  padding: 12px 0 10px;
  border-bottom: var(--rule);
  font-weight: 400;
}

.section__more { padding: 18px 0; }

.intro {
  padding-block: clamp(48px, 8vw, 120px);
  border-bottom: var(--rule);
}

.intro .text-l, .intro .text-m { max-width: 26em; }

.intro--home { padding-block: clamp(28px, 5vw, 64px); background: var(--white); }

.intro--home .text-m { max-width: 34em; }

.empty { padding-block: 48px; }

/* Page head */

.page-head {
  padding-block: clamp(36px, 7vw, 100px) clamp(24px, 4vw, 48px);
  border-bottom: var(--rule);
}

.page-head__back { display: inline-block; margin-bottom: 24px; }

.page-head__title {
  font-size: var(--fs-xl);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.page-head__year {
  color: var(--yellow);
  -webkit-text-stroke: 2px var(--black);
  paint-order: stroke fill;
}

.page-head__intro {
  max-width: 44em;
  margin-top: clamp(20px, 3vw, 36px);
  font-size: var(--fs-m);
  line-height: 1.22;
}

/* Big link rows (home) */

.big-link {
  display: block;
  background: var(--white);
  border-bottom: var(--rule);
  transition: background-color .25s;
}

.big-link__inner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 10px 8px;
}

.big-link__label {
  font-size: var(--fs-l);
  line-height: 1.1;
  text-transform: uppercase;
}

.big-link__label sup { margin-left: 0.3em; vertical-align: super; }

.big-link__icon { transition: transform .3s var(--ease); }

.big-link:hover { background: var(--yellow); }

.big-link:hover .big-link__icon { transform: translateX(8px); }

/* Program: event accordions */

.city + .city { border-top: 0; }

.event { border-bottom: var(--rule); }

.event__head {
  display: block;
  padding-block: 10px 8px;
  background: var(--white);
  cursor: pointer;
  list-style: none;
  transition: background-color .25s;
}

.event__head::-webkit-details-marker { display: none; }

.event__head:hover { background: var(--yellow); }

.event__head-inner {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.event__title {
  font-size: var(--fs-l);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.event__country { margin-left: 0.4em; vertical-align: super; font-size: var(--fs-s); }

.event__icon .icon__line { transition: transform .35s var(--ease); transform-origin: 37px 37px; transform-box: view-box; }

.event[open] .event__icon .icon__line { transform: rotate(45deg); }

.event::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .45s var(--ease), content-visibility .45s allow-discrete;
}

.event[open]::details-content { block-size: auto; }

.event__body {
  padding-top: clamp(24px, 3vw, 40px);
  background: var(--black);
  color: var(--yellow);
  border-top: var(--rule);
}

.event__body--light {
  padding-bottom: clamp(24px, 3vw, 40px);
  background: var(--grey);
  color: var(--black);
}

.event__text {
  max-width: 48em;
  padding-bottom: clamp(24px, 3vw, 40px);
}

/* archive programmes: "## Part" headings over "**_Title_** / Director / Year / Duration" lines */
.event__text h2 {
  font-size: var(--fs-s);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--track);
  line-height: 1.3;
}

.event__text * + h2 { margin-top: 2em; }

.event__text h2 + * { margin-top: 0.6em; }

.event__text p { line-height: 1.45; }

.event__body--light .event__text { font-size: var(--fs-m); line-height: 1.22; padding-bottom: 0; }

/* Slider (scroll-snap) */

.slider { position: relative; }

.slider__bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}

.slider__title { font-weight: 400; }

.slider__count { margin-left: auto; font-variant-numeric: tabular-nums; }

.slider__viewport { position: relative; }

.slider__track {
  position: relative;
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.slider__track::-webkit-scrollbar { display: none; }

.slider__track.is-animating { scroll-snap-type: none; }

.slider__slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-right: var(--rule);
}

.slider__slide img {
  width: auto;
  height: clamp(250px, 70vh, 700px);
  max-width: none;
  object-fit: cover;
}

.slider__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  color: var(--black);
  transform: translateY(-50%);
  transition: opacity .25s;
}

.slider__btn--prev { left: var(--gutter); }

.slider__btn--next { right: var(--gutter); }

.slider__btn:disabled { opacity: 0; pointer-events: none; }

@media (hover: none), (max-width: 900px) {
  .slider__btn { display: none; }
}

.slider--event { padding-bottom: 0; }

.slider--event .slider__bar { padding-top: 0; }

.gallery {
  padding-bottom: clamp(24px, 4vw, 56px);
  background: var(--black);
  color: var(--white);
  border-bottom: var(--rule);
}

/* Sponsors */

.sponsors {
  padding-block: clamp(32px, 5vw, 64px);
  background: var(--white);
  border-bottom: var(--rule);
}

.sponsors__title { margin-bottom: clamp(24px, 3vw, 40px); font-weight: 400; }

.sponsors__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.sponsors__item img {
  width: auto;
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply;
}

/* Years strip (footer) */

.years-strip {
  position: relative;
  background: var(--yellow);
  border-top: var(--rule);
  border-bottom: var(--rule);
}

.years-strip__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.years-strip__track::-webkit-scrollbar { display: none; }

.years-strip__track li {
  flex: 0 0 20%;
  scroll-snap-align: start;
}

.years-strip__year {
  display: block;
  padding-block: 14px 10px;
  border-right: var(--rule);
  font-size: var(--fs-l);
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: background-color .25s, color .25s;
}

.years-strip__year:hover,
.years-strip__year.is-active {
  background: var(--black);
  color: var(--yellow);
}

@media (max-width: 900px) {
  .years-strip__track li { flex-basis: 40%; }
}

/* Footer */

.footer {
  padding-block: 16px;
  background: var(--black);
  color: var(--white);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
}

.footer__social { display: flex; gap: 20px; }

.footer a { color: inherit; }

/* Archive: years on the left, their identities as circles running down in an S on the right */

.archive-s {
  --dot: clamp(150px, 17vw, 280px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  background: var(--yellow);
  border-bottom: var(--rule);
}

.archive-s__years {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  padding-block: clamp(24px, 4vw, 56px);
  list-style: none;
}

.archive-s__year {
  display: inline-block;
  font-size: var(--fs-l);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  transition: transform .35s var(--ease);
}

.archive-s__year:hover, .archive-s__year.is-active { transform: translateX(.3em); }

.archive-s__year::before {
  content: "";
  display: inline-block;
  width: .32em;
  height: .32em;
  margin-right: .25em;
  vertical-align: .18em;
  border-radius: 50%;
  background: var(--black);
  transform: scale(0);
  transition: transform .35s var(--ease);
}

.archive-s__year:hover::before, .archive-s__year.is-active::before { transform: none; }

.archive-s__dots {
  padding: clamp(24px, 4vw, 56px) var(--gutter) calc(var(--dot) * .5);
  list-style: none;
}

/* neighbours overlap vertically so the circles read as one continuous stroke */
.archive-s__item {
  height: calc(var(--dot) * .74);
  padding-left: calc(var(--x) * (100% - var(--dot)));
}

.archive-s__dot {
  position: relative;
  display: block;
  width: var(--dot);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--white);
  transition: transform .5s var(--ease);
}

.archive-s__item:nth-child(odd) .archive-s__dot { z-index: 1; }

.archive-s__dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  transition: filter .4s, transform .6s var(--ease);
}

.archive-s__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: var(--fs-m);
  color: var(--yellow);
  background: rgb(0 0 0 / .55);
  opacity: 0;
  transition: opacity .3s;
}

.archive-s__dot:hover, .archive-s__dot.is-active { z-index: 2; transform: scale(1.06); }

.archive-s__dot:hover img, .archive-s__dot.is-active img { filter: none; transform: scale(1.05); }

.archive-s__dot:hover .archive-s__label, .archive-s__dot.is-active .archive-s__label { opacity: 1; }

/* phones: a plain list of years that open in place */
.archive-m { display: none; }

@media (max-width: 700px) {
  .archive-s { display: none; }
  .archive-m { display: block; }
}

.archive-m__year { border-bottom: var(--rule); }

.archive-m__head {
  display: block;
  padding-block: 12px 10px;
  background: var(--yellow);
  cursor: pointer;
  list-style: none;
}

.archive-m__head::-webkit-details-marker { display: none; }

.archive-m__head-inner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.archive-m__title {
  font-size: var(--fs-l);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.archive-m__icon .icon__line { transition: transform .35s var(--ease); transform-origin: 37px 37px; transform-box: view-box; }

.archive-m__year[open] .archive-m__icon .icon__line { transform: rotate(45deg); }

.archive-m__year[open] > .archive-m__head { background: var(--black); color: var(--yellow); }

.archive-m__year[open] > .archive-m__head .icon { color: var(--yellow); }

.archive-m__body { border-top: var(--rule); }

.archive-m__body .event__title { font-size: var(--fs-m); }

/* Workshops */

.workshop-row {
  display: block;
  background: var(--white);
  border-bottom: var(--rule);
  transition: background-color .25s;
}

.workshop-row:hover { background: var(--yellow); }

.workshop-row.is-past { background: transparent; }

.workshop-row.is-past:hover { background: var(--white); }

.workshop-row__inner {
  display: grid !important;
  grid-template-columns: max-content 1fr auto auto;
  align-items: center;
  gap: 8px clamp(16px, 2.5vw, 32px);
  padding-block: 14px;
}

.workshop-row__date {
  font-size: var(--fs-l);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.workshop-row__title {
  display: block;
  font-size: var(--fs-m);
  line-height: 1.15;
}

.workshop-row__meta { display: block; margin-top: 6px; }

.workshop-row__icon { transition: transform .3s var(--ease); }

.workshop-row:hover .workshop-row__icon { transform: translateX(6px); }

.badge {
  padding: 6px 12px 5px;
  border: var(--rule);
  border-radius: 999px;
  white-space: nowrap;
}

.badge--open { background: var(--yellow); }

.workshop-row:hover .badge--open { background: var(--white); }

@media (max-width: 900px) {
  .workshop-row__inner { grid-template-columns: auto 1fr; align-items: start; }
  .workshop-row__date { font-size: var(--fs-m); padding-top: 2px; }
  .workshop-row .badge { grid-column: 2; justify-self: start; }
  .workshop-row__icon { display: none; }
}

.workshop {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(32px, 5vw, 64px);
}

.workshop__cover { margin-bottom: clamp(24px, 3vw, 40px); border: var(--rule); }

.workshop__cover img { width: 100%; height: auto; }

.workshop__text { font-size: var(--fs-m); line-height: 1.3; max-width: 34em; }

.workshop__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}

.facts { border-top: var(--rule); }

.facts__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 8px;
  border-bottom: var(--rule);
}

.facts dd { text-align: right; }

.register {
  margin-top: 32px;
  padding: clamp(20px, 2.5vw, 32px);
  background: var(--yellow);
  border: var(--rule);
}

.register__title { margin-bottom: 20px; font-weight: 400; }

.register__notice {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--white);
  border: var(--rule);
}

.register__notice--ok { font-size: var(--fs-m); line-height: 1.22; }

.register__notice--error { color: var(--error); border-color: var(--error); }

.register__notice:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .workshop { grid-template-columns: 1fr; }
  .workshop__aside { position: static; }
}

/* Form */

.form { display: grid; gap: 18px; }

.form__field label {
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: var(--track);
}

.form__field label span { text-transform: none; opacity: .7; }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: var(--rule);
  border-radius: 0;
  font-size: 16px;
}

.form textarea { resize: vertical; }

.form__check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: start;
}

.form__check input {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--black);
}

.form__check .form__error { grid-column: 2; }

.has-error input,
.has-error textarea { border-color: var(--error) !important; }

.form__error { margin-top: 6px; color: var(--error); }

.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.button {
  width: 100%;
  padding: 16px 24px 14px;
  background: var(--black);
  color: var(--yellow);
  border: var(--rule);
  text-transform: uppercase;
  letter-spacing: var(--track);
  transition: background-color .25s, color .25s;
}

.button:hover { background: var(--white); color: var(--black); }

/* Team */

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.member {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-right: var(--rule);
  border-bottom: var(--rule);
}

.member:nth-child(3n) { border-right: 0; }

.member__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--yellow);
  border-bottom: var(--rule);
}

.member__photo img { width: 100%; height: 100%; object-fit: cover; }

.member__initials {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: var(--fs-xl);
}

.member__body { padding: 16px 20px 24px; }

.member__name { font-size: var(--fs-m); font-weight: 400; line-height: 1.15; }

.member__role { margin-top: 6px; }

.member__bio { margin-top: 14px; }

.member__link { display: inline-block; margin-top: 14px; }

@media (max-width: 900px) {
  .team { grid-template-columns: repeat(2, 1fr); }
  .member:nth-child(3n) { border-right: var(--rule); }
  .member:nth-child(2n) { border-right: 0; }
}

@media (max-width: 600px) {
  .team { grid-template-columns: 1fr; }
  .member { border-right: 0 !important; }
}

/* Motion */

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

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Follow band and newsletter */

.follow {
  padding-block: 14px 12px;
  background: var(--yellow);
  border-bottom: var(--rule);
  text-align: center;
}

.follow a, .follow__toggle {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}

.follow a:hover, .follow__toggle:hover { text-decoration-color: transparent; }

.follow__news { margin-top: 8px; }

.follow__toggle {
  display: inline-block;
  list-style: none;
  cursor: pointer;
}

.follow__toggle::-webkit-details-marker { display: none; }

.follow__news[open] .follow__news .newsletter { max-width: 560px; margin: 14px auto 4px; }

.newsletter__row {
  display: flex;
  border: var(--rule);
  background: var(--white);
}

.newsletter__input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px 10px;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.newsletter__input:focus { outline: none; }

.newsletter__row:focus-within { box-shadow: 0 0 0 2px var(--yellow), 0 0 0 4px var(--black); }

.newsletter__submit {
  padding: 12px 18px 10px;
  background: var(--black);
  color: var(--yellow);
  border: 0;
  text-transform: uppercase;
  letter-spacing: var(--track);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.newsletter__submit:hover { background: var(--yellow); color: var(--black); box-shadow: inset 2px 0 0 var(--black); }

.newsletter__note { margin-top: 8px; font-size: 12px; letter-spacing: .02em; opacity: .7; }

.newsletter__message { margin-top: 8px; }

.newsletter__message:empty { display: none; }

.newsletter.is-done .newsletter__row,
.newsletter.is-done .newsletter__note { display: none; }

.newsletter.is-error .newsletter__message { color: var(--error); }

/* Exit popup: rises from the bottom like a stack of folders, the page stays usable above it */

.popup {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  transform: translateY(100%);
  transition: transform 1.3s var(--ease);
}

.popup[hidden] { display: none; }

.popup.is-visible { transform: none; }

/* the folder layers trail behind each other while rising */
.popup > * {
  transform: translateY(var(--lag, 0));
  transition: transform 1.4s var(--ease);
}

.popup.is-visible > * { transform: none; }

.popup__band { border-top: var(--rule); }

.popup__band--grey { --lag: 60px; height: 12px; background: #9a9c9e; }

.popup__band--yellow {
  --lag: 30px;
  padding-block: 8px 6px;
  background: var(--yellow);
}

.popup__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popup__sheet {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 16px 48px;
  padding-block: 24px 28px;
  background: var(--white);
  border-top: var(--rule);
}

.popup__title {
  font-size: clamp(28px, 0.6rem + 3.4vw, 64px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.popup__variant[hidden] { display: none; }

.popup__sub {
  margin-top: 14px;
  max-width: 34em;
  font-size: var(--fs-s);
  line-height: 1.4;
}

.popup__sub u {
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}

.popup__mark {
  background: var(--yellow);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding-inline: .08em;
}

/* close: spins in while the sheet rises and keeps turning for 2 s after it stops, settling as an X */
.popup__close {
  position: relative;
  width: 40px;
  height: 40px;
  margin-block: -8px -6px;
  border: var(--rule);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  transform: rotate(-990deg) scale(.4);
  transition: transform 3.2s cubic-bezier(.25, .6, .3, 1) .2s, background-color .2s;
}

.popup.is-visible .popup__close { transform: none; }

.popup__close:hover { background: var(--black); color: var(--yellow); }

.popup__close i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
  background: currentColor;
  transform: rotate(45deg);
}

.popup__close i + i { transform: rotate(-45deg); }

@media (max-width: 900px) {
  .popup__sheet { grid-template-columns: 1fr; padding-block: 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .popup, .popup > *, .popup__close { transition: none; }
}

/* About: key facts and history */

.about-facts { background: var(--white); border-bottom: var(--rule); }

.about-facts__row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 3fr;
  gap: 8px 32px;
  padding-block: 12px 10px;
  border-bottom: 1px solid rgb(0 0 0 / .25);
}

.about-facts__row:last-child { border-bottom: 0; }

.about-facts__row dd { max-width: 40em; }

.history { list-style: none; padding-bottom: clamp(24px, 3vw, 40px); }

.history__year {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 4px 24px;
  padding-block: 10px 8px;
  border-bottom: 1px solid rgb(0 0 0 / .25);
}

.history__title { justify-self: start; font-size: var(--fs-m); line-height: 1.1; }

.history__places { max-width: 48em; align-self: center; }

@media (max-width: 600px) {
  .about-facts__row, .history__year { grid-template-columns: 1fr; }
}

/* Articles */

.article-row {
  display: block;
  background: var(--white);
  border-bottom: var(--rule);
  transition: background-color .25s;
}

.article-row:hover { background: var(--yellow); }

.article-row__inner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px 14px;
}

.article-row__title { display: block; font-size: var(--fs-m); line-height: 1.15; }

.article-row__lead { display: block; max-width: 48em; margin-top: 6px; }

.article-row__icon { flex: none; transition: transform .3s var(--ease); }

.article-row:hover .article-row__icon { transform: translateX(6px); }

.article { background: var(--white); border-bottom: var(--rule); }

.article__inner { max-width: calc(52em + 2 * var(--gutter)); padding-block: clamp(28px, 4vw, 56px); }

.article__lead { margin-top: 12px; }

/* article cover behind the title */
.article-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(380px, 62svh, 720px);
  overflow: hidden;
  background: var(--black);
  border-bottom: var(--rule);
  color: var(--yellow);
}

.article-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(.55) contrast(1.05);
}

/* darker towards the text at the bottom left */
.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / .75), rgb(0 0 0 / .15) 60%, rgb(0 0 0 / .3)),
              linear-gradient(to right, rgb(0 0 0 / .45), transparent 70%);
}

.article-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(80px, 10vw, 140px) clamp(28px, 4vw, 56px);
}

.article-hero__back { display: inline-block; margin-bottom: 24px; }

.article-hero__date { margin-bottom: 12px; }

.article-hero__title {
  max-width: 16em;
  font-size: var(--fs-xl);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.article__text { margin-top: 32px; font-size: clamp(16px, 0.7rem + 0.5vw, 20px); line-height: 1.55; }

.article__text h2 {
  margin-top: 1.8em;
  font-size: var(--fs-s);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--track);
}

.article__text h2 + * { margin-top: .6em; }

.article__text ul { padding-left: 1.2em; }

.article__text li + li { margin-top: .3em; }

.article-cta { padding-block: clamp(28px, 4vw, 56px); background: var(--yellow); border-bottom: var(--rule); }

.article-cta__label { margin-bottom: 10px; }

.article-cta__text { max-width: 30em; }

.article-cta__link { margin-top: 16px; }

/* long article titles: one size down on phones so words do not break */
@media (max-width: 600px) {
  .tpl-article .page-head__title, .article-hero__title { font-size: var(--fs-l); }
}
