@font-face {
  font-family: 'Iman DIN';
  src: url('../fonts/din-condensed.woff2?v=29b63990b568') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Iman DIN';
  src: url('../fonts/din-bold-condensed.woff2?v=8dbaaa94c80c') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(24px, 4.4vw, 88px);
}

.section-inner { padding-inline: var(--gutter); max-width: 1928px; margin-inline: auto; }

.site-header, .site-footer, .skip-link, .back-top {
  color: #fff;
  font: 400 18px/1.3 'Iman DIN', 'Oswald', sans-serif;
}

.site-header a, .site-footer a { color: inherit; }
.site-header :focus-visible, .site-footer :focus-visible, .skip-link:focus-visible, .back-top:focus-visible {
  outline: 3px solid #8cf9ee;
  outline-offset: 6px;
}

.skip-link { position: absolute; z-index: 10; top: 12px; left: 12px; padding: 12px 20px; background: #050504; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.brand-pattern { position: absolute; z-index: -1; width: 61%; height: 51%; top: 5%; right: -7%; transform: rotate(-7deg); opacity: .85; background: linear-gradient(90deg, #36050830, #360508); mask: url('../img/logo.png?v=e8c60ab45f0b') 0 0 / clamp(130px, 14vw, 270px) auto repeat; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: clamp(26px, 3vw, 60px); }
.brand { flex: 0 0 auto; }
.brand img { display: block; width: clamp(170px, 20vw, 385px); max-width: 100%; height: auto; }
.navigation { display: flex; align-items: center; gap: clamp(14px, 2vw, 36px); font-size: clamp(17px, 1.4vw, 24px); }
.navigation a { text-decoration: none; padding-block: 10px; }
.navigation a:hover { text-decoration: underline; }
.navigation [aria-current='page'] { border-bottom: 1px solid currentColor; }
.language-links { display: flex; gap: 14px; }
.menu-toggle {
  display: none;
  place-items: center;
  width: 64px;
  height: 48px;
  border: 3px solid #ffffffb0;
  border-radius: 10px;
  background: #26111955;
  color: #fff;
}

.site-footer { padding: 24px max(var(--gutter), 86px) 24px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 16px; background: #002c2b; }
.site-footer p { margin: 0; color: inherit; font: inherit; }
.site-footer p + p { margin-top: 8px; }
.archive-links { display: flex; flex-wrap: wrap; gap: 20px; }
.archive-links a { text-decoration: underline; text-underline-offset: .18em; }
.back-top {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 99;
  display: grid;
  place-items: center;
  width: 88px;
  height: 65px;
  border-radius: 10px;
  background: #e91e63;
  box-shadow: 0 8px 15px #0000001a;
}
.back-top:hover { color: #fff; }
.back-top::before {
  content: '';
  width: 28px;
  height: 28px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='5.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21V4m-8 8 8-8 8 8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.archive-page-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 12px;
  color: #fff;
  font: 400 20px/1.3 'Iman DIN', 'Oswald', sans-serif;
}
.archive-page-nav--bottom { background: #002321; }
.archive-page-nav a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-underline-offset: .18em; }
.archive-page-nav [aria-current='page'] { text-decoration: underline; }
.archive-page-nav .archive-links { column-gap: 20px; row-gap: 0; }
.archive-page-nav a:focus-visible, .gallery-trigger:focus-visible, .gallery-dialog button:focus-visible {
  outline: 3px solid #8cf9ee;
  outline-offset: 4px;
}

.archive-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(20px, 3vw, 48px);
  padding-block: 24px 56px;
}
.archive-media-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(12px, 2vw, 28px);
  border: 1px solid #ffffff60;
  border-radius: 10px;
  background: #0005;
  color: white;
}
.archive-media-card h2 { font-size: clamp(24px, 3vw, 42px); }
.archive-media-card p { font-size: clamp(17px, 1.8vw, 22px); }
.archive-media-card iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin-top: auto; border: 0; }
.archive-media-card a, .archive-piece a { color: white; text-decoration: underline; }
.archive-piece { max-width: 1100px; margin: 0 auto 48px; }
.archive-piece img { display: block; width: 100%; height: auto; }

.gallery-trigger { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-dialog {
  width: max-content;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 52px 10px 10px;
  overflow: auto;
  border: 1px solid #ffffff55;
  border-radius: 12px;
  background: #132322;
  color: white;
}
.gallery-dialog::backdrop { background: #000d; }
.gallery-dialog img { display: block; max-width: 100%; max-height: calc(100dvh - 88px); object-fit: contain; }
.gallery-dialog button {
  position: absolute;
  inset: 4px 6px auto auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 5px;
  background: #002c2b;
  color: white;
  font: 28px/1 sans-serif;
  cursor: pointer;
}
body:has(.gallery-dialog[open]) { overflow: hidden; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .back-top { transition: transform 300ms ease, box-shadow 300ms ease; }
  .back-top:hover { transform: translateY(-7px); box-shadow: 0 15px 20px #0000004d; }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.archive-page) { scroll-behavior: smooth; }
}

@media (max-width: 600px) {
  .back-top { right: 20px; bottom: 20px; width: 64px; height: 48px; }
  .back-top::before { width: 24px; height: 24px; }
}

@media (max-width: 1050px) {
  .site-header { flex-wrap: wrap; gap: 24px; }
  .navigation { gap: 20px; }
}

@media (width < 992px) {
  .site-header { gap: 12px; padding: 12px clamp(14px, 2vw, 20px) 0; }
  .site-header:has(.navigation.is-open) { background-color: #26111999; }
  .brand img { width: min(30vw, 150px); }
  .js .menu-toggle { display: grid; }
  .navigation {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(8px, 3vw, 24px);
    padding: 4px 0 24px clamp(22px, 7vw, 54px);
    font-size: 20px;
  }
  .navigation > a { display: flex; align-items: center; width: 100%; min-height: 56px; }
  .js .navigation:not(.is-open) { display: none; }
}

@media (max-width: 720px) {
  .brand-pattern { width: 74%; height: 39%; top: 5%; right: -25%; opacity: .38; }
  .site-footer { padding: 24px var(--gutter) 85px; }
}
