@font-face {
  font-family: "Archivo Black";
  src: url("archivo-black.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --space: #0b032a;
  --ink: #180620;
  --page-gutter: clamp(13px, 5vw, 55px);
  --rainbow: linear-gradient(90deg, #f750ff, #885cff, #4cf4fa, #affb44, #ffdf3f, #ff8a53, #f750ff);
  background: var(--space) url("starfield.png") repeat;
  color: #fff8dd;
  font-family: "Courier New", monospace;
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(24px, 6.5vh, 66px) var(--page-gutter) 38px;
}

.page {
  width: min(100%, 53rem);
  margin-inline: auto;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: clamp(10px, 1.7vw, 18px) 0 clamp(13px, 3vw, 26px);
}

.masthead-title {
  display: grid;
  grid-area: 1 / 1;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  z-index: 1;
  align-items: center;
  white-space: nowrap;
}

.presenter {
  display: flex;
  grid-area: 1 / 1;
  z-index: 2;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 0 4px;
  width: max-content;
  max-width: calc(100% + var(--page-gutter));
  margin: 0 clamp(-8px, -1.25vw, -3px) 0 0;
  color: #27052e;
  font-size: clamp(0.68rem, 1.8vw, 1rem);
  font-weight: bold;
  line-height: 1.05;
}

.presenter span,
.presenter em {
  display: block;
  padding: 5px 7px;
  border: 2px dashed #3d0950;
  filter: drop-shadow(3px 4px 0 #751988);
}

.presenter span {
  background: #bdff76;
  transform: translateY(-2px) rotate(-10deg);
  animation: presenter-name-float 4.4s ease-in-out infinite alternate;
}

.presenter em {
  background: #ff73d9;
  transform: translateY(5px) rotate(-13deg);
  animation: presenter-tag-float 5.1s ease-in-out -1.4s infinite alternate;
}

@keyframes presenter-name-float {
  to { transform: translate(5px, -7px) rotate(-6deg); }
}

@keyframes presenter-tag-float {
  to { transform: translate(-3px, 1px) rotate(-8deg); }
}

h1 {
  grid-area: 1 / 2;
  z-index: 1;
  margin: 0;
  color: #fff430;
  font-family: "Archivo Black", "Arial Black", system-ui, sans-serif;
  font-size: clamp(1.5rem, 7.35vw, 4.75rem);
  font-weight: 400;
  line-height: 0.99;
  letter-spacing: -0.066em;
  text-align: center;
  text-transform: uppercase;
  transform: skew(-8deg);
}

@supports (background-clip: text) {
  h1 {
    background-image:
      linear-gradient(112deg, transparent 42%, #fffef1e6 50%, transparent 57%),
      linear-gradient(#ffffe9 13%, #ffff78 35%, #ffdc29 47%, #ff7b3d 49%, #ff24bb 75%, #fa99ef 100%);
    background-size: 300% 100%, 100% 100%;
    background-position: 100% 0, 0 0;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1px #ffeb5a;
    filter: drop-shadow(2px 3px 0 #d530d3) drop-shadow(4px 4px 0 #4e1da0);
    animation: title-shine 5s ease-in-out infinite;
  }
}

@keyframes title-shine {
  0%, 16% { background-position: 100% 0, 0 0; }
  65%, 100% { background-position: 0% 0, 0 0; }
}

img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.masthead-stars {
  --orbit-duration: 5.6s;
  display: flex;
  grid-area: 1 / 1;
  align-items: center;
  justify-self: end;
  gap: clamp(1px, 0.6vw, 7px);
  transform: rotate(14deg);
  animation: star-orbit var(--orbit-duration) linear infinite;
}

.starlight {
  display: block;
  width: clamp(20px, 6vw, 62px);
  transform: rotate(-14deg);
  animation: star-counterturn var(--orbit-duration) linear infinite;
}

.starlight:last-child img {
  transform: scaleX(-1);
}

@keyframes star-orbit {
  to { transform: rotate(374deg); }
}

@keyframes star-counterturn {
  to { transform: rotate(-374deg); }
}

.rainbow-rule {
  height: 7px;
  margin: 0;
  border: 1px solid #ffe2ff;
  background: var(--rainbow);
  background-size: 320px 100%;
  box-shadow: 0 3px #57218f;
  animation: rainbow-scroll 3.5s linear infinite;
}

.destinations + .rainbow-rule {
  animation-direction: reverse;
}

.rainbow-rule--projects {
  margin-block-start: clamp(19px, 3vw, 28px);
  animation-delay: -1s;
}

@keyframes rainbow-scroll {
  to { background-position-x: 320px; }
}

.destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 26px);
  margin-block: clamp(18px, 3.4vw, 30px) clamp(20px, 3.6vw, 34px);
}

.destination {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1;
  min-width: 0;
  border: clamp(4px, 0.85vw, 7px) outset var(--bevel);
  background: var(--label-color);
  box-shadow: 0 0 0 2px var(--edge), 5px 6px 0 #050112;
  color: var(--ink);
  text-decoration: none;
}

.destination--discord {
  --bevel: #a4a8ff;
  --edge: #f756ff;
  --label-color: #91f5ff;
  --label-shadow: #fffbe7;
  --checker-a: #2420a2;
  --checker-b: #3318b5;
}

.destination--den {
  --bevel: #b8db65;
  --edge: #fff24c;
  --label-color: #c9fc4e;
  --label-shadow: #fcffac;
  --checker-a: #301452;
  --checker-b: #491b60;
}

.destination--podcast {
  --bevel: #ffc0dc;
  --edge: #ff6ed0;
  --label-color: #ffbade;
  --label-shadow: #fff0f8;
  --checker-a: #123e52;
  --checker-b: #16576a;
}

.destination-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 2px inset var(--bevel);
  background: repeating-conic-gradient(var(--checker-a) 0 25%, var(--checker-b) 0 50%) 0 0 / 24px 24px;
}

.destination-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.destination-art img {
  width: min(88%, 21.5rem);
  height: 91%;
  object-fit: contain;
}

.podcast-mark {
  position: absolute;
  inset: 0;
  width: 71%;
  height: 75%;
  margin: auto;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(5px 6px 0 #081c2b);
  animation: smiley-bob 2.6s steps(4, end) infinite alternate;
}

@keyframes smiley-bob {
  from { transform: translateY(2px) rotate(-3deg); }
  to { transform: translateY(-4px) rotate(3deg); }
}

.visit-burst {
  --burst: polygon(0 32%, 17% 28%, 8% 4%, 34% 16%, 47% 0, 58% 16%, 81% 2%, 80% 23%, 100% 25%, 88% 44%, 100% 64%, 79% 66%, 84% 96%, 62% 80%, 46% 100%, 37% 78%, 11% 94%, 18% 69%, 0 67%, 10% 51%);
  position: absolute;
  top: clamp(3px, 1.2vw, 11px);
  right: clamp(3px, 1vw, 10px);
  display: grid;
  width: clamp(47px, 12vw, 103px);
  aspect-ratio: 1.35;
  place-items: center;
  isolation: isolate;
  color: #4e0037;
  font-family: "Archivo Black", system-ui, sans-serif;
  font-size: clamp(0.66rem, 2.4vw, 1.35rem);
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(9deg);
  filter: drop-shadow(2px 3px 0 #290026);
  pointer-events: none;
}

.visit-burst::before,
.visit-burst::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  clip-path: var(--burst);
  background: #ff55ac;
  content: "";
}

.visit-burst::after {
  inset: 3px;
  background: #fff047;
}

.destination-caption {
  display: flex;
  flex: none;
  min-height: clamp(47px, 7vw, 62px);
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 8px clamp(8px, 1.7vw, 17px);
  border-top: 2px solid #fffbdb;
  font-size: clamp(1.125rem, 2.6vw, 1.45rem);
  font-weight: bold;
  line-height: 1.15;
  text-shadow: 1px 1px var(--label-shadow);
  overflow-wrap: anywhere;
}

.den-label {
  flex: 1;
  min-width: 0;
  container-type: inline-size;
}

.den-label > span {
  font-size: clamp(1.125rem, 7cqi, 1em);
  white-space: nowrap;
}

@container (max-width: 16rem) {
  .den-label > span {
    font-family: system-ui, sans-serif;
    font-size: clamp(1.125rem, 8cqi, 1em);
    letter-spacing: -0.025em;
  }
}

@container (max-width: 13.75rem) {
  .den-label > span {
    white-space: normal;
  }
}

.arrow {
  flex: none;
  font-family: system-ui, sans-serif;
  font-size: 0.82em;
}

.polaroid {
  display: grid;
  grid-template: minmax(0, 1fr) auto / minmax(0, 1fr);
  aspect-ratio: 1;
  margin: 0;
  padding: clamp(8px, 2.1vw, 18px);
  border: 1px solid #fff;
  background: #fffdf5;
  box-shadow: 5px 6px 0 #050112;
  color: #281337;
}

.polaroid-media {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 2px inset #d8d0d9;
  background: #221833;
}

.polaroid-media picture {
  position: absolute;
  inset: 0;
}

.polaroid-media img {
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  image-rendering: auto;
}

.polaroid figcaption {
  min-height: clamp(25px, 5.7vw, 54px);
  padding-top: clamp(5px, 1.2vw, 11px);
  font-size: clamp(0.85rem, 2.6vw, 1.45rem);
  font-style: italic;
  font-weight: bold;
  text-align: center;
  transform: rotate(-2deg);
}

.small-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px clamp(9px, 1.8vw, 15px);
  margin: 0;
  padding: clamp(18px, 3.2vw, 27px) 0 0;
  list-style: none;
}

.social-pointer {
  flex: none;
  width: clamp(39px, 8.8vw, 77px);
  pointer-events: none;
}

.social-pointer picture {
  display: block;
}

.profile {
  display: flex;
  min-height: 49px;
  align-items: center;
  gap: 5px;
  padding: 4px 8px 4px 5px;
  border: 3px outset var(--badge-edge);
  background: var(--badge);
  box-shadow: 3px 3px 0 #050112;
  color: var(--ink);
  font-size: clamp(0.75rem, 2.8vw, 0.875rem);
  font-weight: bold;
  line-height: 1.04;
  text-decoration: none;
  text-transform: uppercase;
}

.profile picture {
  width: clamp(28px, 7vw, 35px);
  flex: none;
}

.profile--twitter {
  --badge: #a0edff;
  --badge-edge: #c4f0ff;
}

.profile--instagram {
  --badge: #ffb5e3;
  --badge-edge: #ffd1eb;
}

.profile--bio {
  --badge: #ffe45b;
  --badge-edge: #ffd03a;
  list-style: none;
  cursor: pointer;
}

.profile--bio::-webkit-details-marker {
  display: none;
}

.bio {
  position: relative;
}

.bio-message {
  position: absolute;
  z-index: 1;
  inset-block-end: calc(100% - 1px);
  inset-inline-end: 0;
  width: clamp(10rem, 40vw, 15rem);
  margin: 0;
  padding: 9px 12px;
  border: 3px solid transparent;
  border-image: repeating-linear-gradient(-45deg, #ffd444 0 5px, #402232 5px 10px) 3;
  background: #fff3aa;
  box-shadow: 3px 3px 0 #050112;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: bold;
  line-height: 1.35;
}

.projects {
  margin-top: clamp(22px, 3vw, 32px);
  text-align: center;
}

.projects h2 {
  margin: 0;
  color: #ffe47b;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-list {
  --project-gap: clamp(12px, 2.6vw, 19px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--project-gap);
  width: min(100%, 52rem);
  margin: 13px auto 0;
  padding: 0;
  list-style: none;
}

.project-list li {
  display: flex;
  flex: 0 1 calc((100% - 2 * var(--project-gap)) / 3);
  min-width: 0;
}

.project-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  border: 4px outset var(--project-edge);
  background: var(--project-paper);
  box-shadow: 4px 4px 0 #050112;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.project-card--civail {
  --project-edge: #baf6da;
  --project-paper: #c8f5df;
}

.project-card--earlablo {
  --project-edge: #fdd49e;
  --project-paper: #ffd3a9;
}

.project-card--katamari {
  --project-edge: #e3baff;
  --project-paper: #e8d3fa;
}

.project-card img {
  aspect-ratio: 680 / 360;
  border: 2px inset var(--project-edge);
  object-fit: cover;
  image-rendering: auto;
}

.project-info {
  display: block;
  padding: 10px 12px 12px;
}

.project-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: bold;
}

.project-description {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  line-height: 1.35;
}

@media (hover: hover) {
  .destination:hover .destination-caption,
  .profile:hover,
  .project-card:hover .project-title {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .destination:hover .destination-frame {
    filter: brightness(1.12);
  }
}

.destination:active,
.profile:active,
.project-card:active {
  border-style: inset;
  box-shadow: 1px 2px 0 #050112;
}

a:focus-visible,
.profile--bio:focus-visible {
  outline: 2px dashed #ffffff;
  outline-offset: 5px;
}

@media (max-width: 43rem) {
  .project-list li {
    flex-basis: calc((100% - var(--project-gap)) / 2);
  }
}

@media (max-width: 40rem) {
  .destinations {
    grid-template-columns: minmax(0, 1fr);
  }

  .destination-caption {
    min-height: 3.5rem;
    font-size: clamp(1.25rem, 5.2vw, 1.45rem);
  }
}

@media (max-width: 35rem) {
  .presenter {
    font-size: clamp(0.58rem, 2.35vw, 0.88rem);
  }

  .presenter span,
  .presenter em {
    padding: 4px;
  }

  h1 {
    font-size: clamp(1rem, 6.5vw, 2.6rem);
  }

  .destination-frame {
    background-size: 16px 16px;
  }

  .destination-art img {
    width: 94%;
  }
}

@media (max-width: 27rem) {
  .project-list li {
    flex-basis: 100%;
  }
}

@media (max-width: 23rem) {
  .bio-message {
    inset-inline-end: 50%;
    transform: translateX(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .presenter span,
  .presenter em,
  .masthead-stars,
  .starlight,
  h1,
  .rainbow-rule,
  .podcast-mark {
    animation: none;
  }
}
