/* RESET */

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

a, button { cursor: revert; }

a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video { border: 0; font-size: 100%; font: inherit; margin: 0; padding: 0; vertical-align: baseline; }

img { max-width: 100%; }

table { border-collapse: collapse; border-spacing: 0; }

textarea { white-space: revert; }

:focus { outline: none; }

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }

blockquote, q { quotes: none; }

blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }

body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }


/* COLOURS */

:root {
  --black: 0, 0, 0;
  --white: 255, 255, 255;
  --yellow: 255, 236, 45;
  --pink: 255, 17, 121;
  --brown: 51, 25, 12;
  --orange: 255, 100, 30;
}

html { background-color: rgb(255, 236, 45); }


/* PAGE TRANSITIONS */

body { opacity: 0; transition: opacity 0.25s ease; }

body.loaded { opacity: 1; }


/* GENERAL */

body {
  background-color: rgba(var(--yellow));
  color: rgba(var(--brown));
  font-family: 'Public Sans', Arial, Helvetica, sans-serif;
  font-size: calc(16px + 0.390625vw);
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  padding: 2vh 2vw;
  min-height: 100vh;
}


/* CONTAINER */

.container {
  margin: 0 auto;
  max-width: 1366px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* TITLE BANNER */

.title-banner {
  background-color: rgba(var(--pink));
  display: inline-block;
  transform: rotate(-1deg);
  padding: 0.15rem 0.4rem 0.1rem 0.4rem;
  margin: 4vh auto 3vh 58%;
  width: fit-content;
  text-align: center;
  white-space: nowrap;
  box-shadow: 4px 4px 0 rgba(var(--black), 0.85);
  z-index: 5;
}

.title-banner h1 {
  color: rgba(var(--white));
  font-family: 'Barriecito', Arial, Helvetica, sans-serif;
  font-size: 3.5rem;
  margin: 0;
  line-height: 1.1;
}


/* INNER PAGE STYLES */

.page-nav { margin: 2vh 0 0 2vw; }

.page-content { max-width: 800px; margin: 3vh auto; padding: 0 2vw; font-size: 1rem; }

.page-content h2, .page-content h3 { font-family: 'Special Elite', monospace; margin: 1.5rem 0 0.5rem 0; }

.page-content p { margin-bottom: 1.25rem; }

.page-content a { color: rgba(var(--pink)); font-weight: 700; }


/* CATHEXIS SHELF */

.shelf-key {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1vh 0 2vh 2vw;
}

.key-item {
  font-family: 'Special Elite', monospace;
  font-size: 0.75rem;
  padding: 0.2em 0.6em;
  outline: 2px solid rgba(var(--black));
  letter-spacing: 0.05em;
}

.key-cd    { background-color: rgba(var(--pink));  color: rgba(var(--white)); }
.key-hires { background-color: rgba(var(--black)); color: rgba(var(--yellow)); }
.key-disc  { background-color: rgba(var(--brown)); color: rgba(var(--yellow)); }
.key-mp3   { background-color: rgba(200,200,200,1); color: rgba(var(--black)); }

.shelf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 2px;
  padding: 20px 2vw 0 2vw;
  border-bottom: 8px solid rgba(var(--brown));
  box-shadow: 0 6px 0 rgba(var(--black), 0.15);
  margin-bottom: 3vh;
  min-height: 165px;
}


/* SPINE BASE */

.spine {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: 1px solid rgba(var(--black), 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  transform-origin: bottom center;
  flex-shrink: 0;
}

.spine:hover {
  transform: translateY(-12px);
  box-shadow: 2px 0 8px rgba(var(--black), 0.3);
  z-index: 5;
  outline-color: rgba(var(--black));
}

.spine-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Special Elite', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 2px;
}


/* SPINE COLOURS AND FIXED DIMENSIONS */

.spine--cd    { background-color: rgba(var(--pink));  color: rgba(var(--white));  width: 10px; height: 115px; }
.spine--disc  { background-color: rgba(var(--brown)); color: rgba(var(--yellow)); width: 14px; height: 145px; }
.spine--hires { display: none; }
.spine--mp3   { display: none; }


/* SPINE DETAIL CARD */

.spine-card {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(var(--black), 0.8);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 2vh 2vw;
}

.spine-card.active { display: flex; }

.spine-card-inner {
  background-color: rgba(var(--yellow));
  outline: 4px solid rgba(var(--black));
  box-shadow: 8px 8px 0 rgba(var(--black), 0.9);
  padding: 1rem;
  max-width: 480px;
  width: 100%;
}

.spine-card-close {
  display: block;
  margin-left: auto;
  margin-bottom: 0.75rem;
  border: none;
  cursor: pointer;
  font-family: 'Special Elite', monospace;
}

.spine-card-img img {
  width: 100%;
  height: auto;
  outline: 3px solid rgba(var(--black));
  margin-bottom: 1rem;
}

.spine-card-content h2 {
  font-family: 'Special Elite', monospace;
  font-size: 1.2rem;
  color: rgba(var(--black));
  margin-bottom: 0.5rem;
}

.card-meta {
  font-family: 'Special Elite', monospace;
  font-size: 0.8rem;
  color: rgba(var(--pink));
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.card-notes {
  font-family: 'Public Sans', Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(var(--brown));
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(var(--pink), 0.4);
}


/* GHOST GALLERY */

.ghost-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  width: 90%;
  margin: 2vh auto 4vh auto;
}

.ghost-item {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  outline: 3px solid rgba(var(--black));
  transition: outline-color 0.2s ease, transform 0.2s ease;
}

.ghost-item:hover {
  outline-color: rgba(var(--pink));
  transform: scale(1.02);
  z-index: 2;
}

.ghost-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(60%);
  transition: filter 0.2s ease;
}

.ghost-item:hover img { filter: grayscale(0%); }

.ghost-name {
  font-family: 'Special Elite', monospace;
  font-size: 0.7rem;
  color: rgba(var(--brown));
  padding: 0.3rem 0.4rem;
  background-color: rgba(var(--yellow));
  letter-spacing: 0.03em;
}


/* GHOST LIGHTBOX */

.ghost-lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(var(--black), 0.85);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 2vh 2vw;
}

.ghost-lightbox.active { display: flex; }

.ghost-lightbox-inner {
  background-color: rgba(var(--yellow));
  outline: 4px solid rgba(var(--black));
  box-shadow: 8px 8px 0 rgba(var(--black), 0.9);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  max-width: 900px;
  max-height: 85vh;
  width: 100%;
  overflow: hidden;
}

.ghost-close {
  grid-column: 1 / -1;
  justify-self: end;
  margin: 0.75rem 0.75rem 0 0;
  border: none;
  font-family: 'Special Elite', monospace;
  cursor: pointer;
}

.ghost-lightbox-image {
  padding: 1rem 0.5rem 1rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.ghost-lightbox-image img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  outline: 3px solid rgba(var(--black));
  filter: grayscale(30%);
}

.ghost-lightbox-text {
  padding: 1rem 1rem 1rem 0.5rem;
  overflow-y: auto;
  max-height: 65vh;
}

.ghost-lightbox-text h2 {
  font-family: 'Special Elite', monospace;
  font-size: 1.1rem;
  color: rgba(var(--pink));
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.ghost-lightbox-text p {
  font-family: 'Public Sans', Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(var(--brown));
  margin-bottom: 1rem;
}

.ghost-lightbox-text p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .ghost-lightbox-inner { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .ghost-lightbox-image img { max-height: 40vh; }
  .ghost-lightbox-text { padding: 0.5rem 1rem 1rem 1rem; max-height: none; overflow-y: visible; }
}


/* CORNER TRIANGLES */

.triangle { position: fixed; width: 40%; height: auto; z-index: 0; }
.triangle--tl { top: 0; left: 0; z-index: -1; }
.triangle--br { bottom: 0; right: 0; }


/* PROFILE PIC — desktop only, fixed position */

.profile-pic {
  position: fixed;
  bottom: -20px;
  left: 15px;
  width: 500px;
  height: auto;
  z-index: 2;
}

/* mobile version hidden by default, shown in media query */
.profile-pic-mobile { display: none; }


/* BACKGROUND BLOB */

.blob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  height: auto;
  z-index: 0;
}


/* INNER PAGE STYLES */

.page-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 4vh 0 2vh 0;
  flex-wrap: wrap;
}

.page-back {
  font-family: 'Special Elite', monospace;
  font-size: 0.9rem;
  color: rgba(var(--pink));
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.page-back:hover { color: rgba(var(--black)); }

.page-title-banner {
  margin: 0 !important;
  position: static !important;
  transform: rotate(-1deg) !important;
}


/* JOURNAL */

.journal {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 2vw 4vh 2vw;
}

.journal-entry { padding: 1.5rem 0; }

.journal-date {
  display: block;
  font-family: 'Special Elite', monospace;
  font-size: 0.75rem;
  color: rgba(var(--pink));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.journal-entry p {
  font-family: 'Public Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(var(--brown));
  margin-bottom: 1rem;
}

.journal-entry p:last-child { margin-bottom: 0; }

.journal-divider {
  border: 0;
  border-top: 1px solid rgba(var(--pink), 0.4);
  margin: 0;
}


/* SCATTERED LINK STAGE */

.link-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 70vh;
  margin: 2vh 0 1vh 0;
  isolation: isolate;
}


/* BASE LABEL STYLE — mimics cut-out sticker */

.label {
  position: absolute;
  display: inline-block;
  font-family: 'Special Elite', monospace;
  font-size: clamp(0.85rem, 1.5vw + 0.4rem, 1.35rem);
  font-weight: 400;
  text-decoration: none;
  line-height: 1.15;
  padding: 0.35em 0.75em 0.2em 0.75em;
  outline: 4px solid rgba(var(--black));
  box-shadow: 3px 3px 0 rgba(var(--black), 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* SIZE TIERS */

.label.label--lg { font-size: clamp(1.6rem, 3.5vw + 0.5rem, 3rem);      padding: 0.4em 1em 0.25em 1em;        outline-width: 6px; box-shadow: 6px 6px 0 rgba(var(--black), 0.9); }
.label.label--md { font-size: clamp(1.1rem, 2.2vw + 0.4rem, 1.9rem);    padding: 0.38em 0.85em 0.22em 0.85em; outline-width: 4px; }
.label.label--sm { font-size: clamp(0.65rem, 0.9vw + 0.25rem, 0.95rem); padding: 0.28em 0.6em 0.16em 0.6em;   outline-width: 3px; box-shadow: 2px 2px 0 rgba(var(--black), 0.9); }

.label:hover {
  transform: rotate(0deg) scale(1.08) !important;
  box-shadow: 5px 5px 0 rgba(var(--black), 0.9);
  filter: brightness(1.1);
  z-index: 10;
}

/* YELLOW label */

.label--yellow {
  background-color: rgba(var(--yellow));
  color: rgba(var(--black));
}

.label--yellow:hover:not(.label--chaos) {
  background-color: rgba(var(--pink));
  color: rgba(var(--white));
}

/* CHAOS LABELS — should  be hidden on mobile, decorative on desktop only */

.label--chaos { display: inline-block; position: absolute; z-index: 4; opacity: 0.92; cursor: default; }


/* RESPONSIVITY */

@media (max-width: 768px) {

  .blob, .triangle { display: none; }

  .profile-pic { display: none; }

  .profile-pic-mobile {
    display: block;
    width: 55vw;
    max-width: 260px;
    height: auto;
    margin: 0 auto 1rem auto;
  }

  .link-stage {
    position: static;
    min-height: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0.1rem 1rem;
  }

  .label--chaos { display: none; }

  .label {
    position: static !important;
    font-size: 8vw !important;
    transform: none !important;
  }

  .label:nth-child(odd)  { transform: rotate(-1.5deg) !important; }
  .label:nth-child(even) { transform: rotate(1.5deg) !important; }

  .label:hover {
    transform: rotate(0deg) scale(1.06) !important;
  }

  .title-banner {
    margin: 2vh auto;
  }

  .title-banner h1 { font-size: 13vw; }

}