@font-face {
  font-family: Geologica;
  src: url("../fonts/geologica.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #10081c;
  --ink: #fff6ec;
  --quiet: #b9a8c9;
  --line: rgba(255, 246, 236, 0.12);
  --hot: #ff2d6a;
  --ice: #3de0ff;
  --gold: #ffd84a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--void);
  font-family: "Golos Text", "Segoe UI", sans-serif;
  font-size: 1.06rem;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #10081c;
}

.fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(16, 8, 28, 0.15), rgba(16, 8, 28, 0.82) 62%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.38;
  animation: drift 18s ease-in-out infinite;
}

.b1 {
  width: 48vw;
  height: 48vw;
  left: -12vw;
  top: -10vw;
  background: #ff2d6a;
}

.b2 {
  width: 42vw;
  height: 42vw;
  right: -14vw;
  top: 20vh;
  background: #6b2bff;
  animation-delay: -6s;
}

.b3 {
  width: 36vw;
  height: 36vw;
  left: 28vw;
  bottom: -12vw;
  background: #3de0ff;
  animation-delay: -11s;
  opacity: 0.45;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.spot {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 216, 74, 0.22), transparent 68%);
  transform: translate(-50%, -50%);
  left: 60%;
  top: 30%;
}

.page {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 72rem;
  padding: 1.25rem 1.4rem 0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.me {
  font-family: Geologica, sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--gold);
  line-height: 1.2;
  text-shadow: 0 0 24px rgba(255, 216, 74, 0.55);
  flex: 1 1 auto;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.48rem 0.9rem 0.52rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 246, 236, 0.28);
  background: rgba(255, 246, 236, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
  color: #fff;
  background: rgba(61, 224, 255, 0.18);
  border-color: var(--ice);
  transform: translateY(-1px);
}

nav a[href="#napisat"] {
  background: var(--hot);
  border-color: var(--hot);
  color: #fff6ec;
}

nav a[href="#napisat"]:hover,
nav a[href="#napisat"]:focus-visible {
  background: #ff4d82;
  border-color: #ff4d82;
  color: #fff6ec;
}

.hero {
  padding: 2.2rem 1.6rem 2.4rem;
  margin-top: 1.4rem;
  backdrop-filter: blur(18px);
}

h1,
h2 {
  font-family: Geologica, sans-serif;
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(2.05rem, 5vw, 3.55rem);
}

h1 span {
  display: block;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  animation: none;
}

h1 span:nth-child(2) {
  animation: rise 0.9s ease 0.16s;
  color: var(--gold);
  text-shadow: 0 0 32px rgba(255, 216, 74, 0.45);
}

.hero p {
  margin: 1.25rem 0 1.7rem;
  color: var(--quiet);
  max-width: 36rem;
  animation: rise 0.9s ease 0.28s;
}

.go {
  display: inline-block;
  padding: 0.8rem 1.25rem 0.85rem;
  background: var(--hot);
  color: #fff6ec;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(255, 45, 106, 0.7);
  animation: rise 0.9s ease 0.4s, pulse 2.4s ease-out 1.2s infinite;
  transition: transform 0.2s ease, background 0.2s ease;
}

.go:hover,
.go:focus-visible {
  background: #ff4d82;
  transform: translateY(-2px) scale(1.03);
}

.go:focus-visible,
nav a:focus-visible,
.me:focus-visible,
.card:focus-visible,
#napisat a:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

.ticker {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--line);
  background: rgba(16, 8, 28, 0.35);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  padding: 0.85rem 0;
  animation: marquee 28s linear infinite;
  font-family: Geologica, sans-serif;
  font-weight: 620;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  color: var(--gold);
}

.ticker-track span + span::before {
  content: "✦";
  margin-right: 2.4rem;
  color: var(--hot);
}

#umeyu,
#primery,
#napisat {
  padding-top: 3.4rem;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  margin-bottom: 1rem;
}

dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

dl > div {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 0.8rem 1.4rem;
  padding: 1.1rem 0.8rem 1.1rem 0.6rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
  border-radius: 12px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

dl > div:hover {
  background: linear-gradient(90deg, rgba(255, 45, 106, 0.18), rgba(61, 224, 255, 0.08));
  transform: translateX(8px);
  box-shadow: inset 3px 0 0 var(--hot);
}

dt {
  font-family: Geologica, sans-serif;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
  color: var(--gold);
}

dd {
  margin: 0;
  color: #e4d7ef;
  max-width: 40rem;
}

.more,
.hint {
  color: var(--quiet);
  max-width: 40rem;
}

.more {
  margin: 1.4rem 0 0;
}

.hint {
  margin: -0.3rem 0 1.4rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  perspective: 900px;
}

.card {
  display: grid;
  grid-template-rows: 210px auto;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  background: rgba(20, 12, 36, 0.72);
  border: 1px solid rgba(255, 246, 236, 0.14);
  border-radius: 18px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.card:focus-visible {
  border-color: rgba(255, 45, 106, 0.7);
  box-shadow: 0 18px 50px rgba(255, 45, 106, 0.22);
}

.shot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 210px;
  overflow: hidden;
  background: #0a0612;
}

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

.cap {
  padding: 1rem 1.05rem 1.15rem;
}

.card strong {
  display: block;
  font-family: Geologica, sans-serif;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.card span {
  color: var(--quiet);
  font-size: 0.98rem;
}

#napisat ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
  border-top: 1px solid var(--line);
}

#napisat li {
  border-bottom: 1px solid var(--line);
}

#napisat a {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0.4rem;
  text-decoration: none;
  align-items: baseline;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}

#napisat a:hover,
#napisat a:focus-visible {
  background: rgba(61, 224, 255, 0.1);
  transform: translateX(6px);
}

#napisat span {
  color: var(--quiet);
}

#napisat strong {
  font-family: Geologica, sans-serif;
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

#napisat a:hover strong,
#napisat a:focus-visible strong {
  color: var(--ice);
}

footer {
  padding: 2.4rem 0 2.6rem;
  color: var(--quiet);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 4, 16, 0.72);
  overflow: auto;
}

.modal[hidden] {
  display: none !important;
}

.modal-panel {
  width: min(60rem, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 1.2rem 1.3rem 1.5rem;
  border: 1px solid rgba(255, 246, 236, 0.16);
  border-radius: 22px;
  background: #160c24;
  color: var(--ink);
}

.modal-close {
  float: right;
  margin: 0 0 0.6rem 0.8rem;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  background: var(--hot);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.modal h3 {
  font-family: Geologica, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
  margin: 0 4.5rem 0.8rem 0;
}

.modal-body {
  white-space: pre-wrap;
  color: #e4d7ef;
  margin: 0 0 1rem;
  max-width: 42rem;
}

.modal-link {
  margin: 0 0 1.1rem;
}

.modal-link a {
  color: var(--ice);
  font-weight: 600;
}

.modal-shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.7rem;
}

.modal-shots button {
  margin: 0;
  padding: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0612;
  border: 1px solid rgba(255, 246, 236, 0.12);
  border-radius: 12px;
  cursor: zoom-in;
}

.modal-shots img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 0.6rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 0.8rem 0.8rem 0.8rem;
  background: rgba(8, 4, 16, 0.96);
}

.viewer[hidden] {
  display: none !important;
}

.viewer img {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  max-height: calc(100dvh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.viewer-x {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: end;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  background: var(--hot);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.viewer-nav {
  grid-row: 2;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 246, 236, 0.12);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.viewer-nav.prev {
  grid-column: 1;
}

.viewer-nav.next {
  grid-column: 3;
}

.viewer-count {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0;
  color: var(--quiet);
}

.cards-empty {
  color: var(--quiet);
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(6vw, 4vh) scale(1.12);
  }
}

@keyframes sheen {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 180% 50%;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 45, 106, 0.55);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(255, 45, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 45, 106, 0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 700px) {
  .page {
    padding: 1rem 1.05rem 0;
  }

  header {
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .hero {
    padding-top: 2.4rem;
  }

  dl > div,
  #napisat a {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .blob {
    filter: blur(60px);
  }
}

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

  .blob,
  h1 span,
  .hero p,
  .go,
  .ticker-track,
  .card img {
    animation: none;
  }

  .spot {
    display: none;
  }

  dl > div,
  #napisat a,
  .go,
  .card {
    transition: none;
  }
}

@media (max-width: 700px) {
  .viewer {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto auto;
    padding: 0.7rem 0.5rem 0.9rem;
  }

  .viewer img {
    grid-column: 1 / -1;
    max-height: calc(100vh - 9rem);
    max-height: calc(100dvh - 9rem);
    border-radius: 8px;
  }

  .viewer-nav {
    grid-row: 3;
  }

  .viewer-nav.prev {
    grid-column: 1;
    justify-self: end;
  }

  .viewer-nav.next {
    grid-column: 2;
    justify-self: start;
  }

  .viewer-count {
    grid-row: 4;
  }
}
