@font-face {
  font-family: "Bulletin Typewriter";
  src: url("/fonts/bulletin-webfont.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --gold: #c2954e;
  --gold-light: #e2c48e;
  --ink: #090909;
  --panel: rgba(0, 0, 0, 0.72);
  --text: #f6f3ec;
  --muted: #d4d0c8;
  --border: rgba(194, 149, 78, 0.5);
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: #111;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: #111;
  font-family: "Century Gothic", "Trebuchet MS", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

img {
  height: auto;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #f2c674;
  outline-offset: 3px;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20000;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  transform: translateY(-160%);
  color: #111;
  background: #f2c674;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-frame {
  position: relative;
  width: min(100%, 980px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background-color: #050505;
  background-image: url("/images/header.png");
  background-image: image-set(url("/images/optimized/decor/header.webp") type("image/webp"), url("/images/header.png") type("image/png"));
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.55);
}

.site-header {
  position: relative;
  padding: 12px 20px 0;
  text-align: center;
}

.company-logo {
  display: block;
  width: min(190px, 52vw);
  margin: 0 auto;
}

.company-logo picture,
.site-logo picture {
  display: block;
}

.company-logo img,
.site-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.language-switch {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #222;
  font-size: 12px;
  line-height: 1.2;
}

.language-switch span,
.language-switch a {
  display: inline-block;
  padding-left: 18px;
  color: #333;
  background-image: url("/images/bayrak.png");
  background-repeat: no-repeat;
}

.language-switch span {
  color: #777;
  background-position: 0 0;
}

.language-switch a {
  background-position: 0 -13px;
}

.site-logo {
  display: block;
  width: min(400px, 88vw);
  margin: clamp(34px, 5.5vw, 58px) auto 22px;
}

.primary-nav {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 0 0 20px;
}

.primary-nav ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav li {
  min-width: 0;
}

.primary-nav a {
  display: block;
  padding: 4px 2px;
  color: var(--gold);
  font-family: "Bulletin Typewriter", "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.3;
  text-shadow: 1px 1px 2px #555;
}

.primary-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.site-content {
  width: min(calc(100% - 32px), 900px);
  margin: 12px auto 0;
  padding: 20px 0 0;
  background-image: url("/images/plak.jpg");
  background-image: image-set(url("/images/optimized/decor/plak.webp") type("image/webp"), url("/images/plak.jpg") type("image/jpeg"));
  background-position: center 24px;
  background-repeat: no-repeat;
  background-size: min(539px, 100%) auto;
}

.content-page {
  width: min(100%, 720px);
  min-height: 370px;
  margin: 0 auto;
  padding: clamp(22px, 4.2vw, 42px);
  color: #f9f7f2;
  background-color: var(--panel);
  background-image: url("/images/bgtxt.png");
  font-size: clamp(16px, 1.8vw, 19px);
  text-align: center;
  text-shadow: 1px 1px 1px rgba(80, 80, 80, 0.65);
  overflow-wrap: anywhere;
}

.content-page h1 {
  margin: 0 0 1.15em;
  color: var(--gold-light);
  font: 700 clamp(21px, 2.8vw, 26px)/1.3 Arial, sans-serif;
  text-transform: uppercase;
}

.content-page p {
  margin: 0 0 1.1em;
}

.content-page strong {
  color: #fff;
}

.home-page {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  line-height: 1.75;
}

.home-page p {
  margin: 0;
}

.announcement {
  padding-top: 8px;
}

.text-page {
  text-align: left;
}

.text-page h1,
.soundtrack-page h1,
.gallery-page h1,
.article-page h1,
.not-found-page h1 {
  text-align: center;
}

.film-details,
.contact-details {
  display: grid;
  gap: 8px;
  margin: 18px auto 26px;
}

.film-details div,
.contact-details div {
  display: grid;
  grid-template-columns: minmax(95px, 0.7fr) minmax(0, 1.3fr);
  gap: 8px;
}

.film-details dt,
.contact-details dt {
  color: var(--gold-light);
  font-weight: 700;
}

.film-details dd,
.contact-details dd {
  margin: 0;
}

.credits-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.credit-item h2,
.acknowledgements h2 {
  margin: 0 0 6px;
  color: var(--gold-light);
  font: 700 14px/1.4 Arial, sans-serif;
}

.credit-item p,
.acknowledgements p {
  margin: 0;
  font-size: 0.92em;
}

.acknowledgements {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.soundtrack-page {
  text-align: left;
}

.soundtrack-intro {
  margin-bottom: 28px;
}

.artist-signature {
  color: var(--gold-light);
  font-style: italic;
  text-align: right;
}

.track-list {
  display: grid;
  gap: 10px;
}

.track-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid rgba(194, 149, 78, 0.28);
}

.track-link {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.track-link strong {
  color: var(--gold-light);
}

.track-link span {
  color: #eee;
  font-size: 0.82em;
  line-height: 1.5;
}

.track-link i {
  color: var(--gold-light);
  font-style: normal;
}

.track-action,
.current-player__close,
.photo-modal__button,
.photo-modal__close {
  color: var(--gold-light);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
}

.track-action {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 3px;
  font: 20px/1 Arial, sans-serif;
}

.track-action:hover,
.photo-modal__button:hover,
.photo-modal__close:hover {
  color: #fff;
  border-color: var(--gold-light);
}

.current-player {
  position: fixed;
  z-index: 9000;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  left: auto;
  display: flex;
  max-width: calc(100vw - 24px);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  color: #eee;
  border: 1px solid #70532c;
  background: rgba(0, 0, 0, 0.96);
  box-shadow: 0 5px 24px rgba(0, 0, 0, 0.45);
  font: 12px Arial, sans-serif;
}

.current-player__title {
  max-width: 170px;
  color: var(--gold-light);
}

.current-player audio {
  width: min(340px, 44vw);
  height: 36px;
}

.current-player__close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 20px;
}

.gallery-page {
  text-align: left;
}

.gallery-group + .gallery-group {
  margin-top: 30px;
}

.gallery-group h2 {
  margin: 0 0 12px;
  color: var(--gold-light);
  font: 700 17px/1.4 Arial, sans-serif;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 104px), 1fr));
  gap: 10px;
}

.gallery-card {
  display: grid;
  min-width: 0;
  height: 118px;
  place-items: center;
  padding: 6px;
  border: 1px solid #555;
  background: rgba(0, 0, 0, 0.44);
}

.gallery-card--tall {
  height: 154px;
}

.gallery-card picture {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.gallery-card img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.photo-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(42px, 8vw) minmax(0, 1fr) minmax(42px, 8vw);
  grid-template-rows: 42px minmax(0, 1fr) 28px;
  align-items: center;
  justify-items: center;
  padding: 12px 16px 16px;
  background: rgba(0, 0, 0, 0.94);
}

.photo-modal__picture {
  display: grid;
  width: 100%;
  height: 100%;
  grid-column: 2;
  grid-row: 2;
  place-items: center;
}

.photo-modal__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.photo-modal__button,
.photo-modal__close {
  display: grid;
  place-items: center;
  border-radius: 2px;
  font: 28px/1 Arial, sans-serif;
}

.photo-modal__button {
  width: 42px;
  height: 50px;
  grid-row: 2;
}

.photo-modal__previous {
  grid-column: 1;
}

.photo-modal__next {
  grid-column: 3;
}

.photo-modal__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 40px;
  height: 40px;
  font-size: 26px;
}

.photo-modal__count {
  grid-column: 1 / -1;
  grid-row: 3;
  color: #ddd;
  font: 13px/1.5 Arial, sans-serif;
}

.article-page {
  text-align: left;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.75;
}

.article-page h1 {
  font-family: Arial, sans-serif;
}

.article-back {
  margin-bottom: 22px !important;
  font: 14px/1.4 Arial, sans-serif;
  text-align: left;
}

.article-back--bottom {
  margin: 28px 0 0 !important;
}

.address {
  margin-top: 24px !important;
}

.link-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.not-found-page {
  display: grid;
  min-height: 360px;
  align-content: center;
  justify-items: center;
}

.button-link {
  display: inline-block;
  padding: 8px 14px;
  color: #111;
  border: 1px solid var(--gold-light);
  background: var(--gold-light);
  text-shadow: none;
}

.decorative-footer {
  height: clamp(100px, 26.6vw, 261px);
  margin-top: 22px;
  background-image: url("/images/footer.png");
  background-image: image-set(url("/images/optimized/decor/footer.webp") type("image/webp"), url("/images/footer.png") type("image/png"));
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.copyright {
  width: min(100% - 24px, 980px);
  margin: 12px auto 20px;
  color: #c9c4ba;
  font-size: 12px;
  text-align: center;
}

.copyright a {
  color: #c9c4ba;
}

@media (max-width: 700px) {
  .site-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .site-logo {
    margin-top: 44px;
    margin-bottom: 18px;
  }

  .primary-nav {
    width: min(100%, 540px);
    padding-bottom: 12px;
  }

  .primary-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 8px;
  }

  .primary-nav a {
    padding: 4px 1px;
    font-size: clamp(20px, 5.5vw, 28px);
  }

  .site-content {
    width: min(calc(100% - 20px), 900px);
    margin-top: 6px;
  }

  .content-page {
    min-height: 300px;
    padding: clamp(20px, 5vw, 32px);
  }

  .home-page {
    min-height: 330px;
  }

  .credits-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .credit-item {
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 96px), 1fr));
    gap: 8px;
  }

  .gallery-card {
    height: 112px;
    padding: 5px;
  }

  .gallery-card--tall {
    height: 142px;
  }

  .current-player {
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .current-player audio {
    width: calc(100% - 46px);
    flex: 1 1 210px;
  }
}

@media (max-width: 420px) {
  .company-logo {
    width: 150px;
    margin-left: 0;
  }

  .language-switch {
    top: 13px;
    right: 10px;
    gap: 7px;
    font-size: 11px;
  }

  .site-logo {
    width: 88vw;
    margin-top: 42px;
  }

  .primary-nav a {
    font-size: clamp(19px, 6vw, 24px);
  }

  .site-content {
    width: calc(100% - 16px);
  }

  .content-page {
    padding: 19px 16px 24px;
    font-size: 16px;
  }

  .film-details div,
  .contact-details div {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-modal {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .photo-modal__button {
    width: 32px;
    height: 44px;
  }
}

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

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