@font-face {
  font-family: "Benzin";
  src: url("assets/fonts/Benzin-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Benzin";
  src: url("assets/fonts/Benzin-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #080d0a;
  --bg-2: #0d1710;
  --panel: #0e1b12;
  --text: #e8e9e1;
  --text-soft: #d4d7cd;
  --muted: #98a094;
  --faint: rgba(232, 233, 225, 0.46);
  --line: rgba(205, 213, 199, 0.16);
  --line-strong: rgba(205, 213, 199, 0.26);
  --accent: #b6472b;
  --accent-soft: rgba(182, 71, 43, 0.42);
  --font-display: "Benzin", "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;
  --wrap: 1280px;
  --pad: clamp(20px, 4vw, 52px);
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(120% 90% at 72% 0%, rgba(39, 75, 52, 0.52) 0%, rgba(17, 32, 22, 0.24) 46%, transparent 72%),
    linear-gradient(180deg, #0a120d 0%, #080d0a 42%, #0a120d 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--text);
}

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

h1,
h2,
p,
figure,
figcaption {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.page-frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  color: var(--accent);
  opacity: 0.24;
  pointer-events: none;
}

.pcb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  filter: blur(1.2px);
  transform: scale(1.06);
  transform-origin: center;
}

.pcb-orange {
  stroke: rgba(182, 71, 43, 0.34);
}

.pcb-green {
  stroke: rgba(112, 143, 116, 0.24);
}

.pcb-pads {
  fill: rgba(182, 71, 43, 0.38);
}

.masthead,
main,
.footer {
  position: relative;
  z-index: 1;
}

.masthead {
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
}

.mark {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.masthead-role {
  margin-left: auto;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-bar {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
}

.status-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 28px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.ansi-palette {
  display: inline-flex;
  gap: 4px;
}

.sw {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(232, 233, 225, 0.25);
}

.sw-a {
  background: #b6472b;
}

.sw-b {
  background: #2c4a34;
}

.sw-c {
  background: #e8e9e1;
}

.status-code {
  color: var(--muted);
}

/* cover */
.cover {
  position: relative;
  padding-top: clamp(44px, 6vw, 78px);
  padding-bottom: 26px;
}

.cover-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: 100vw;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
}

.cover-bg::before {
  content: "";
  position: absolute;
  top: 6%;
  right: 4%;
  width: min(54vw, 720px);
  height: min(54vw, 720px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(65, 96, 64, 0.2) 0%, rgba(31, 55, 39, 0.1) 46%, transparent 70%);
  filter: blur(24px);
}

.cover-top,
.cover-main {
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.cover-title {
  margin: 6px 0 18px -0.03em;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 9.4vw, 9rem);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cover-subline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.carets {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--accent-soft);
  white-space: nowrap;
  overflow: hidden;
}

.profession {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.name {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.cover-main {
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 6vw, 90px);
  margin-top: clamp(24px, 4vw, 48px);
}

.cover-copy {
  max-width: 380px;
  padding-top: 12px;
}

.cover-copy p {
  max-width: 360px;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  color: var(--text-soft);
}

.cover-photo {
  width: 100%;
  max-width: 400px;
  justify-self: start;
}

.photo-link {
  display: block;
  cursor: zoom-in;
}

.photo-link img {
  transition: opacity 150ms ease;
}

.photo-link:hover img,
.photo-link:focus-visible img {
  opacity: 0.84;
}

.photo-link:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.photo-frame {
  padding: 8px;
  border: 1px solid var(--accent-soft);
  background: rgba(12, 23, 16, 0.72);
  box-shadow: 9px 9px 0 rgba(182, 71, 43, 0.13);
}

.photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
}

.cover-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cover-photo figcaption span:last-child {
  color: var(--text-soft);
}

/* ascii divider */
.ascii-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 18, 12, 0.55);
}

.ascii-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  overflow: hidden;
}

.ascii-inner span:first-child,
.ascii-inner span:last-child {
  font-family: var(--font-display);
  color: var(--accent-soft);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ascii-inner span:nth-child(2) {
  white-space: nowrap;
}

/* series */
.series {
  padding-bottom: clamp(62px, 8vw, 104px);
}

.series-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.series-head .section-label {
  grid-column: 1 / -1;
}

.series-title {
  grid-column: 1;
  margin-left: -0.03em;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.35vw, 5.5rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.series-meta {
  grid-column: 2;
  justify-self: end;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.frame-count {
  color: var(--faint);
}

.grid {
  display: grid;
  gap: 8px;
}

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(182, 71, 43, 0.38);
  background: #0b130d;
}

.shot-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.shot-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
  transition: opacity 150ms ease;
}

.shot-link:hover img,
.shot-link:focus-visible img {
  opacity: 0.84;
}

.shot-link:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}

.grid-grad-1 {
  grid-template-columns: 1.5fr 0.8fr 1.05fr 1fr;
  gap: 8px;
  align-items: start;
  margin-top: 18px;
}

.grid-grad-1 .shot {
  aspect-ratio: 3 / 2;
}

.grid-grad-1 .shot.tall {
  aspect-ratio: 2 / 3;
}

.grid-grad-1 .shot:nth-child(1) {
  margin-top: 18px;
}

.grid-grad-1 .shot:nth-child(3) {
  margin-top: 40px;
}

.grid-grad-1 .shot:nth-child(4) {
  margin-top: 10px;
}

.type-line {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0 10px;
  overflow: hidden;
}

.type-word {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.9vw, 5.3rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.04em;
}

.type-line .carets {
  flex: 1;
  min-width: 0;
  font-size: 12px;
}

.type-ascii {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--faint);
  white-space: nowrap;
}

.grad-middle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: start;
}

.pair .shot {
  aspect-ratio: 2 / 3;
}

.pair .shot:nth-child(2) {
  margin-top: 28px;
}

.grad-note {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--text-soft);
}

.grad-note span:last-child {
  color: var(--accent);
}

.grid-grad-3 {
  grid-template-columns: 1.15fr 1fr 1.15fr;
  gap: 6px;
  align-items: start;
  margin-top: 8px;
}

.grid-grad-3 .shot {
  aspect-ratio: 3 / 2;
}

.grid-grad-3 .shot:nth-child(2) {
  margin-top: 24px;
}

.grid-grad-3 .shot:nth-child(3) {
  margin-top: 8px;
}

.series-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.series-caption .carets {
  grid-column: 1 / -1;
  font-size: 9px;
}

.series-caption span:last-child {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.series-events {
  padding-bottom: clamp(58px, 7vw, 90px);
}

.events-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 7px;
  align-items: start;
  margin-top: 18px;
}

.events-grid .shot {
  aspect-ratio: 3 / 2;
}

.events-grid .shot:nth-child(-n+4) {
  grid-column: span 3;
}

.events-grid .shot:nth-child(n+5):nth-child(-n+7) {
  grid-column: span 4;
  aspect-ratio: 4 / 3;
}

.events-grid .shot:nth-child(n+8):nth-child(-n+11) {
  grid-column: span 3;
}

.events-grid .shot:nth-child(n+12):nth-child(-n+14) {
  grid-column: span 4;
  aspect-ratio: 4 / 3;
}

.events-grid .shot:nth-child(n+15) {
  grid-column: span 6;
  aspect-ratio: 16 / 9;
}

.events-grid .shot:nth-child(2),
.events-grid .shot:nth-child(6),
.events-grid .shot:nth-child(9),
.events-grid .shot:nth-child(14) {
  margin-top: 18px;
}

/* footer */
.footer {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 20px;
  padding-bottom: 38px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-soft);
}

.footer-tg {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 2px;
  transition: color 150ms ease, border-color 150ms ease;
}

.footer-tg:hover,
.footer-tg:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
}

.footer-year {
  margin-left: auto;
}

/* 404 */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--pad);
}

.error-wrap {
  width: min(760px, 100%);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.error-title {
  margin: 18px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.error-text {
  max-width: 460px;
  color: var(--muted);
  font-size: 14px;
}

.error-link {
  display: inline-block;
  margin-top: 28px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.error-link:hover,
.error-link:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
}

@media (prefers-reduced-motion: reduce) {
  .photo-link img,
  .shot-link img,
  .footer-tg {
    transition: none;
  }
}

/* responsive */
@media (max-width: 1024px) {
  .cover-main {
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  }
  .grad-middle {
    grid-template-columns: minmax(0, 1fr) 0.75fr minmax(0, 1fr);
  }
  .events-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .events-grid .shot:nth-child(n) {
    grid-column: auto;
    aspect-ratio: 3 / 2;
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  .cover-main {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .cover-photo {
    justify-self: start;
    max-width: min(78vw, 400px);
  }
  .series-head {
    grid-template-columns: 1fr auto;
    gap: 12px 20px;
  }
  .series-head .section-label {
    grid-column: 1 / -1;
  }
  .series-meta {
    text-align: right;
  }
  .grid-grad-1 {
    grid-template-columns: 1fr 0.7fr;
  }
  .grid-grad-1 .shot {
    aspect-ratio: 3 / 2;
    margin-top: 0;
  }
  .grid-grad-1 .shot.tall {
    aspect-ratio: 2 / 3;
  }
  .grad-middle {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .pair .shot {
    margin-top: 0;
  }
  .grad-note {
    order: -1;
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 4px;
  }
  .grid-grad-3 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-grad-3 .shot {
    aspect-ratio: 3 / 2;
    margin-top: 0;
  }
  .grid-grad-3 .shot:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
  .footer {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .footer-year {
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  .cover-title {
    font-size: clamp(2rem, 10.4vw, 4rem);
  }
  .ascii-inner span:nth-child(2) {
    display: none;
  }
  .series-title {
    font-size: clamp(1.65rem, 7.2vw, 3rem);
  }
  .series-head {
    grid-template-columns: 1fr;
  }
  .series-meta {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }
  .grid-grad-1 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-grad-1 .shot {
    aspect-ratio: 3 / 2;
  }
  .grad-note {
    flex-direction: column;
    gap: 8px;
  }
  .grid-grad-3 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-grad-3 .shot {
    aspect-ratio: 3 / 2;
  }
  .grid-grad-3 .shot:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
  .status-code {
    display: none;
  }
  .series-caption {
    grid-template-columns: 1fr;
  }
  .series-caption span:last-child {
    white-space: normal;
  }
  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .masthead-role {
    display: none;
  }
  .cover-title {
    font-size: clamp(1.9rem, 10.2vw, 3rem);
  }
  .cover-main {
    margin-top: 24px;
  }
  .cover-photo {
    max-width: 88vw;
  }
  .footer {
    font-size: 8px;
  }
}
