@font-face {
  font-family: N27;
  src: url("../fonts/n27-regular-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: N27;
  src: url("../fonts/n27-medium-webfont.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: N27;
  src: url("../fonts/n27-bold-webfont.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Patyk;
  src: url("../fonts/patyk-regular-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Patyk;
  src: url("../fonts/patyk-bold-webfont.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

.gdynska-nagroda {
  --gnd-navy: #333280;
  --gnd-teal: #014f59;
  --gnd-pink: #f4adbf;
  --gnd-paper: #f7f4ef;
  --gnd-red: #e01c2a;
  --gnd-fuchsia: #e92a8a;
  --gnd-white: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--gnd-paper);
  color: var(--gnd-navy);
  font-family: N27, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.gdynska-nagroda main {
  flex: 1 0 auto;
}

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

.gdynska-nagroda img {
  max-width: 100%;
  height: auto;
}

.gdynska-nagroda h1,
.gdynska-nagroda h2,
.gdynska-nagroda h3,
.gdynska-nagroda p {
  margin: 0;
}

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

.gnd-container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .gnd-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.gnd-section {
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .gnd-section {
    padding: 5rem 0;
  }
}

.gnd-section-title {
  margin-bottom: 1.75rem;
  font-family: Patyk, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .gnd-section-title {
    margin-bottom: 2.25rem;
    font-size: 3rem;
  }
}

.gnd-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--gnd-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.gnd-site-header__inner {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.gnd-site-header__link {
  display: block;
  line-height: 0;
}

.gdynska-nagroda .gnd-site-header__banner {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.gnd-hero {
  padding-top: 2rem;
}

.gnd-hero__poster {
  display: block;
  width: 100%;
  max-width: 42rem;
  height: auto;
  margin-right: auto;
  margin-left: auto;
}

.gnd-news {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gnd-news__link {
  display: grid;
  gap: 0;
  background: var(--gnd-white);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.gnd-news__link:hover h3,
.gnd-news__link:focus-visible h3 {
  color: var(--gnd-fuchsia);
}

.gnd-news__link:focus-visible {
  outline: 2px solid var(--gnd-red);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .gnd-news__link--image {
    grid-template-columns: 18rem minmax(0, 1fr);
  }
}

.gnd-news__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gnd-news__body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.gnd-news__body time {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gnd-red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gnd-news__body h3 {
  margin-bottom: 0.65rem;
  font-family: Patyk, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.gnd-plays {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.gnd-plays > * {
  width: 100%;
}

@media (min-width: 768px) {
  .gnd-plays > * {
    width: calc((100% - 3rem) / 3);
    max-width: calc((100% - 3rem) / 3);
  }
}

.gnd-play {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--gnd-white);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gnd-play:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.gnd-play__media {
  display: block;
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
}

.gnd-play__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.414;
  object-fit: contain;
  object-position: center;
  background: var(--gnd-pink);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gnd-play:hover .gnd-play__image {
  transform: scale(1.03);
}

.gnd-play__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.75rem;
  padding: 1.25rem;
}

.gnd-play__title {
  margin-bottom: 0.5rem;
  color: var(--gnd-navy);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gnd-play__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--gnd-navy);
  font-size: 1rem;
  line-height: 1.55;
}

.gnd-play__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.gnd-play__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.gnd-play__button,
.gnd-rules__file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--gnd-navy);
  background: transparent;
  color: var(--gnd-navy);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gnd-play__button:hover,
.gnd-play__button:focus-visible,
.gnd-rules__file:hover,
.gnd-rules__file:focus-visible {
  background: rgb(51 50 128 / 0.05);
}

.gnd-play__button:focus-visible,
.gnd-rules__file:focus-visible {
  outline: 2px solid var(--gnd-navy);
  outline-offset: 2px;
}

.gnd-rules__text {
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.gnd-rules__text p + p {
  margin-top: 0.75rem;
}

.gnd-rules__text a {
  color: var(--gnd-navy);
}

.gnd-rules__files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gnd-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
}

.gnd-gallery figure {
  margin: 0;
}

.gnd-gallery a {
  display: block;
  line-height: 0;
}

.gnd-gallery a:focus-visible {
  outline: 2px solid var(--gnd-red);
  outline-offset: 3px;
}

.gdynska-nagroda .gnd-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.gnd-footer {
  background: var(--gnd-teal);
  color: var(--gnd-white);
  padding: 1.75rem 0;
}

.gnd-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.gnd-footer__brand {
  font-family: Patyk, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gnd-footer a {
  color: var(--gnd-white);
  font-weight: 700;
  text-decoration: none;
}

.gnd-footer a:hover,
.gnd-footer a:focus-visible {
  text-decoration: underline;
}
