:root {
  color-scheme: dark;
  font-family: 'Roboto', Arial, sans-serif;
  color: #fffff9;
  background: #000;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
.viewer-open {
  overflow: hidden;
}
.image-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
}
.image-viewer[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-viewer img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
#info-paragraph {
  white-space: pre-line;
}
h1,
h2,
p {
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.page-width {
  width: 100%;
  max-width: 1216px;
  margin-inline: auto;
  padding-inline: 48px;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover,
a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 4px;
}
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 12px;
  background: #000;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 20vh;
  padding-block: 16px;
  text-align: center;
}
h1 {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.2;
}
nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 18px;
}
nav a {
  padding-block: 8px;
}
main {
  flex: 1;
}
main:focus {
  outline: none;
}
.project {
  padding-bottom: 48px;
}
.project-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-images img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.project-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  padding-top: 16px;
  font-size: 19px;
}
.project h2 {
  font-size: inherit;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.project-type {
  color: #777;
}
.info {
  display: grid;
  justify-items: center;
  text-align: center;
}
.info-photo {
  display: block;
  max-width: 100%;
  height: 350px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.info-copy {
  width: 100%;
  max-width: 520px;
  padding-top: 12px;
}
.info h2 {
  padding-bottom: 24px;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.3;
}
.info p {
  font-size: 19px;
  line-height: 1.8;
}
.info-contact {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 19px;
}
.contact-email,
.contact-socials,
.contact-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-email {
  gap: 12px;
  min-height: 44px;
}
.contact-socials {
  gap: 12px;
}
.contact-socials a {
  width: 44px;
  height: 44px;
}
.contact-icon {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: var(--contact-icon) center / contain no-repeat;
  mask: var(--contact-icon) center / contain no-repeat;
}
.contact-icon-gmail { --contact-icon: url("x/gmail.svg"); }
.contact-icon-telegram { --contact-icon: url("x/telegram.svg"); }
.contact-icon-instagram { --contact-icon: url("x/instagram.svg"); }
.contact-icon-youtube { --contact-icon: url("x/youtube.svg"); }
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 32px;
  font-size: 12px;
}
.footer-credit {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-block: 8px;
  color: inherit;
  opacity: 0.1;
  cursor: default;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.footer-credit-icon {
  display: block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url("x/cosmic.svg") center / contain no-repeat;
  mask: url("x/cosmic.svg") center / contain no-repeat;
}
.footer-credit-name {
  position: absolute;
  right: calc(100% + 8px);
  width: 12ch;
  font-family: monospace;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}
.footer-credit.signature-charging,
.footer-credit:focus-visible {
  animation: signature-saturate 8s linear 1s forwards,
    signature-hue 1s cubic-bezier(0.76, 0, 0.24, 1) 9s infinite;
}
.footer-credit.signature-charging .footer-credit-icon,
.footer-credit:focus-visible .footer-credit-icon {
  animation: signature-shake 8s linear 1s;
}
.footer-credit.signature-charging .footer-credit-name,
.footer-credit:focus-visible .footer-credit-name {
  animation: signature-type 1.8s steps(12, end) 1s forwards,
    signature-shake 8s linear 1s;
}
.footer-credit:focus-visible {
  outline: 1px solid #777;
  outline-offset: 4px;
}
.footer-credit.signature-attached {
  opacity: 0;
  animation: none;
}
.signature-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 1000;
  pointer-events: none;
  color: hsl(0 80% 50%);
  animation: signature-hue 1s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}
.signature-cursor .footer-credit-icon,
.signature-cursor-letter {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}
.signature-cursor-letter {
  font: 12px / 18px monospace;
  transform-origin: center;
}
@keyframes signature-type {
  to {
    clip-path: inset(0);
  }
}
@keyframes signature-shake {
  0%, 100% { transform: translate(0, 0); }
  2.5% { transform: translate(0.005px, 0.002px); }
  5% { transform: translate(-0.013px, -0.006px); }
  7.5% { transform: translate(0.025px, -0.011px); }
  10% { transform: translate(-0.038px, 0.017px); }
  12.5% { transform: translate(0.053px, 0.024px); }
  15% { transform: translate(-0.070px, -0.031px); }
  17.5% { transform: translate(0.088px, -0.040px); }
  20% { transform: translate(-0.107px, 0.048px); }
  22.5% { transform: translate(0.128px, 0.058px); }
  25% { transform: translate(-0.150px, -0.068px); }
  27.5% { transform: translate(0.173px, -0.078px); }
  30% { transform: translate(-0.197px, 0.089px); }
  32.5% { transform: translate(0.222px, 0.100px); }
  35% { transform: translate(-0.248px, -0.112px); }
  37.5% { transform: translate(0.276px, -0.124px); }
  40% { transform: translate(-0.304px, 0.137px); }
  42.5% { transform: translate(0.332px, 0.150px); }
  45% { transform: translate(-0.362px, -0.163px); }
  47.5% { transform: translate(0.393px, -0.177px); }
  50% { transform: translate(-0.424px, 0.191px); }
  52.5% { transform: translate(0.456px, 0.205px); }
  55% { transform: translate(-0.489px, -0.220px); }
  57.5% { transform: translate(0.523px, -0.235px); }
  60% { transform: translate(-0.558px, 0.251px); }
  62.5% { transform: translate(0.593px, 0.267px); }
  65% { transform: translate(-0.629px, -0.283px); }
  67.5% { transform: translate(0.665px, -0.299px); }
  70% { transform: translate(-0.703px, 0.316px); }
  72.5% { transform: translate(0.741px, 0.333px); }
  75% { transform: translate(-0.779px, -0.351px); }
  77.5% { transform: translate(0.819px, -0.368px); }
  80% { transform: translate(-0.859px, 0.386px); }
  82.5% { transform: translate(0.899px, 0.405px); }
  85% { transform: translate(-0.940px, -0.423px); }
  87.5% { transform: translate(0.982px, -0.442px); }
  90% { transform: translate(-1.025px, 0.461px); }
  92.5% { transform: translate(1.068px, 0.480px); }
  95% { transform: translate(-1.111px, -0.500px); }
  97.5% { transform: translate(1.155px, -0.520px); }
}
@keyframes signature-saturate {
  from {
    opacity: 0.1;
    color: #fffff9;
    filter: drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent);
  }
  to {
    opacity: 1;
    color: hsl(0 80% 50%);
    filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 12px currentColor);
  }
}
@keyframes signature-hue {
  from {
    filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 12px currentColor) hue-rotate(0deg);
  }
  to {
    filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 12px currentColor) hue-rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer-credit.signature-charging,
  .footer-credit:focus-visible {
    animation: signature-saturate 8s linear 1s forwards;
  }
  .footer-credit.signature-charging .footer-credit-icon,
  .footer-credit:focus-visible .footer-credit-icon,
  .footer-credit.signature-charging .footer-credit-name,
  .footer-credit:focus-visible .footer-credit-name {
    animation: none;
    clip-path: inset(0);
  }
}
@media (max-width: 600px) {
  .page-width {
    padding-inline: 24px;
  }
  h1 {
    font-size: 39px;
  }
  .project-images {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-caption {
    font-size: 17px;
    padding-top: 12px;
  }
  .info h2 {
    font-size: 29px;
  }
}
