@font-face {
  font-family: Golos;
  src: url("/golos.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Photo Display";
  src: url("/display-latin.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: "Photo Display";
  src: url("/display-cyrillic.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
:root {
  color-scheme: dark;
  --background: #080808;
  --foreground: #fff;
  --accent: #c7ff00;
  --gutter: clamp(16px, 3.2vw, 52px);
  --display: "Photo Display", "Arial Narrow", Golos, sans-serif;
  font-family: Golos, system-ui, sans-serif;
  color: var(--foreground);
  background: var(--background);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1 {
  font: italic 900 clamp(44px, 6.2vw, 104px)/.93 var(--display);
  letter-spacing: -.028em;
  overflow-wrap: anywhere;
}
.action {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .35em .6em;
  min-height: 48px;
  padding: .65em 1.25em;
  border-radius: 8px;
  color: #080808;
  background: var(--accent);
  text-align: center;
  text-decoration: none;
  font-size: clamp(16px, 1.55vw, 24px);
  font-weight: 800;
  line-height: 1.15;
}
.action:hover { background: #d8ff58; }
.action small { font-size: .68em; font-weight: 400; }
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid #252525;
}
.wordmark {
  font-size: clamp(18px, 2.8vw, 38px);
  font-weight: 800;
  text-decoration: none;
  line-height: 1.12;
}
.masthead .action { font-size: clamp(16px, 1.4vw, 22px); }
.album-cover, .featured {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(380px, 50svh, 660px);
  background: #111;
  isolation: isolate;
}
.album-cover picture, .featured picture,
.album-cover::after, .featured::after {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.album-cover img, .featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}
.album-cover::after, .featured::after {
  content: "";
  background: linear-gradient(0deg,#000d,transparent 60%), linear-gradient(100deg,#0006,transparent 62%);
}
.cover-lockup { padding: 0 var(--gutter) clamp(28px, 4vw, 58px); max-width: 62rem; }
.album-cover h1 { text-transform: uppercase; max-width: 14ch; }
.featured { min-height: clamp(390px, 53svh, 590px); }
.featured .cover-lockup { max-width: 45rem; }
.featured time { display: block; margin: 15px 0 23px; font-size: clamp(16px, 2vw, 29px); }
.back {
  position: absolute;
  inset: 12px auto auto var(--gutter);
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 2px 9px;
  margin-left: -9px;
  background: #000a;
  border-radius: 5px;
  text-decoration: none;
}
.back:hover, .wordmark:hover { text-decoration: underline; }
.album-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 26px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid #373737;
  font-size: clamp(15px, 1.55vw, 23px);
}
.feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  padding: 8px;
}
.feed.enhanced { display: block; }
.feed-row { display: flex; gap: 8px; }
.feed-row + .feed-row { margin-top: 8px; }
.frame { display: block; min-width: 0; align-self: start; }
.frame img { width: 100%; height: auto; background: #181818; }
.collection { padding: 30px var(--gutter) 52px; }
.collection h2 { margin-bottom: 20px; font-size: clamp(24px, 3.2vw, 45px); }
.entries { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 18px; }
.entry { display: block; text-decoration: none; }
.entry:hover h3 { text-decoration: underline; }
.entry img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 9px; }
.entry h3 { margin-top: 10px; font: italic 900 clamp(21px, 2.6vw, 38px)/1 var(--display); }
.entry time { display: block; margin-top: 7px; }
.empty { min-height: 72svh; display: grid; align-content: center; justify-items: start; gap: 22px; padding: 30px var(--gutter); }
.empty p { font-size: clamp(17px, 2.3vw, 33px); }
.empty .action { margin-top: 6px; width: min(100%, 420px); }
.missing .action { width: auto; }
.missing { min-height: 100svh; }

#viewer {
  margin: 0;
  border: 0;
  padding: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: var(--background);
  color: var(--foreground);
}
#viewer::backdrop { background: #080808; }
.viewer-content {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: 60px minmax(0, 1fr) 18px auto;
  justify-items: center;
  gap: 12px;
  padding: 12px clamp(12px, 4vw, 60px) max(24px, env(safe-area-inset-bottom));
}
.viewer-content form { justify-self: start; }
.viewer-close, .viewer-arrow {
  min-width: 46px;
  min-height: 46px;
  border: 0;
  background: transparent;
  border-radius: 5px;
  cursor: pointer;
}
.viewer-close { font: 800 29px/1 var(--display); }
.viewer-close span { margin-left: 5px; }
.viewer-arrow { position: absolute; top: 44%; font-size: 45px; line-height: 1; }
.viewer-arrow:disabled { opacity: .28; }
.previous { left: 4px; }
.next { right: 4px; }
.viewer-stage { position: relative; min-height: 0; width: 100%; touch-action: pan-y pinch-zoom; }
.viewer-stage img { position: absolute; inset: 0; object-fit: contain; width: 100%; height: 100%; }
.viewer-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.viewer-download { grid-row: 4; width: min(100%, 440px); font: italic 900 clamp(25px,3vw,42px)/1 var(--display); min-height: 60px; }
html:has(#viewer[open]) { overflow: hidden; }

@media (max-width: 699px) {
  .masthead { flex-wrap: wrap; padding-block: 12px; }
  .masthead .contact { width: 100%; }
  .featured, .album-cover { min-height: clamp(380px, 123vw, 580px); }
  .album-cover .back { top: 9px; }
  .album-cover img, .featured img { object-position: center 42%; }
  .missing h1 { max-width: 11ch; }
  .cover-lockup { padding-bottom: 24px; }
  .featured time { margin: 10px 0 12px; }
  .featured .action, .album-meta .action { width: 100%; }
  .album-meta { flex-direction: column; align-items: stretch; }
  .feed { display: block; }
  .frame + .frame { margin-top: 8px; }
  .entries { grid-template-columns: 1fr; }
  .viewer-content { grid-template-rows: 48px minmax(0, 1fr) 46px auto; gap: 8px; }
  .viewer-arrow { position: static; grid-row: 3; justify-self: start; }
  .next { justify-self: end; }
  .viewer-content { grid-template-columns: 1fr 1fr; }
  .viewer-content form, .viewer-stage, .viewer-download { grid-column: 1 / -1; }
  .previous { grid-column: 1; }
  .next { grid-column: 2; }
}
