@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Libre+Caslon+Display&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f3efe6;
  color: #1d1b18;
  font-family: "DM Mono", monospace;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.08),
      rgba(0,0,0,0.08) 1px,
      transparent 1px,
      transparent 4px
    );
}

header {
  padding: 60px 8vw 35px;
  border-bottom: 1px solid #1d1b18;
  position: relative;
}

header > p:first-child {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 15px;
}

h1 {
  font-family: "Libre Caslon Display", serif;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.88;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.04em;
}

header > p:nth-of-type(2) {
  max-width: 650px;
  font-size: 0.95rem;
  margin-top: 25px;
}

nav {
  margin-top: 35px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-size: 0.9rem;
}

nav a:hover {
  border-bottom: 1px solid #1d1b18;
}

main {
  width: min(1100px, 88%);
  margin: 60px auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 45px;
}

section {
  border: 1px solid #1d1b18;
  padding: 28px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
}

section:nth-child(1) {
  transform: rotate(-0.7deg);
}

section:nth-child(2) {
  transform: rotate(0.6deg);
}

section:nth-child(3) {
  grid-column: 1 / -1;
}

section:nth-child(4) {
  grid-column: 1 / -1;
  border-style: dashed;
}

section h2 {
  font-family: "Libre Caslon Display", serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 15px;
}

section p {
  margin: 8px 0;
}

section::after {
  content: "FILED";
  position: absolute;
  top: -14px;
  right: 18px;
  border: 1px solid #1d1b18;
  background: #f3efe6;
  padding: 3px 10px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  transform: rotate(2deg);
}

footer {
  border-top: 1px solid #1d1b18;
  padding: 35px 8vw 60px;
  text-align: center;
  font-size: 0.8rem;
}

footer p:first-child {
  letter-spacing: 0.15em;
}

::selection {
  background: #1d1b18;
  color: #f3efe6;
}

@media (max-width: 760px) {
  header {
    padding-top: 35px;
  }

  main {
    grid-template-columns: 1fr;
  }

  section:nth-child(3),
  section:nth-child(4) {
    grid-column: auto;
  }

  h1 {
    font-size: 4rem;
  }
}

/* scrapbook photo */

.evidence-photo {
  width: 82%;
  max-width: 430px;
  margin: 36px auto 30px;
  padding: 12px 12px 28px;
  background: #eee9df;
  border: 1px solid rgba(29, 27, 24, 0.25);
  box-shadow: 7px 9px 18px rgba(0, 0, 0, 0.12);
  transform: rotate(-2.5deg);
  position: relative;
  transition: transform 0.25s ease;
}

.evidence-photo::before {
  content: "";
  position: absolute;
  width: 105px;
  height: 28px;
  background: rgba(215, 205, 176, 0.7);
  top: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
}

.evidence-photo:hover {
  transform: rotate(0deg) scale(1.02);
}

.evidence-photo img {
  width: 100%;
  display: block;
}

.evidence-number {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  margin-top: 12px;
}

.evidence-caption {
  font-family: "Libre Caslon Display", serif;
  font-size: 1.15rem;
  margin-top: 2px;
}

/* little handwritten notes */

.margin-note {
  position: absolute;
  top: 535px;
  right: 7vw;
  z-index: 10;

  font-family: cursive;
  font-size: 1.25rem;
  font-style: italic;

  transform: rotate(5deg);
  opacity: 0.75;

  border-bottom: 1px solid #1d1b18;
  padding: 2px 8px;
}

.margin-note::after {
  content: "↙";
  position: absolute;
  font-size: 1.7rem;
  left: -25px;
  top: 18px;
}

/* currently, more or less */

.currently > p {
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px dotted rgba(29, 27, 24, 0.35);
  font-size: 0.82rem;
  line-height: 1.7;
}

.currently > p:last-child {
  border-bottom: none;
}

.currently > p span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  margin-bottom: 3px;
  opacity: 0.65;
}

.currently > p:nth-of-type(2) {
  transform: rotate(-0.5deg);
}

.currently > p:nth-of-type(4) {
  transform: rotate(0.4deg);
}

/* ===== PHOTOGRAPH SCRAPBOOK ===== */

.photos-page {
  display: block;
  width: min(1180px, 92%);
  margin: 70px auto;
}

.photo-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 55px 38px;
  padding: 35px 10px 90px;
}

.photo-card {
  width: 280px;
  margin: 0;
  padding: 11px 11px 34px;
  background: #f5efe3;
  border: 1px solid rgba(29,27,24,0.25);
  box-shadow: 5px 8px 16px rgba(0,0,0,0.13);
  position: relative;
  transition: transform 0.2s ease;
}

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-card figcaption {
  margin-top: 11px;
  font-family: "Libre Caslon Display", serif;
  font-size: 1rem;
  line-height: 1.3;
}

.photo-card figcaption span {
  display: block;
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  opacity: 0.6;
  margin-bottom: 5px;
}

/* different photo sizes */

.photo-card.large {
  width: 390px;
}

.photo-card.medium {
  width: 310px;
}

.photo-card.small {
  width: 230px;
}

.photo-card.tall {
  width: 270px;
}

.photo-card.wide {
  width: 420px;
}

/* make everything imperfect */

.photo-card.left {
  transform: rotate(-2.5deg);
}

.photo-card.right {
  transform: rotate(2.5deg);
}

.photo-card:nth-child(3n) {
  margin-top: 45px;
}

.photo-card:nth-child(4n) {
  margin-top: 20px;
}

.photo-card:nth-child(6n) {
  transform: rotate(-1.5deg);
}

.photo-card:nth-child(7n) {
  transform: rotate(3deg);
}

/* fake pieces of old tape */

.photo-card::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 25px;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(210,195,155,0.65);
  z-index: 3;
}

.photo-card:nth-child(2)::before {
  left: 18%;
  transform: rotate(-7deg);
}

.photo-card:nth-child(4)::before {
  left: 68%;
  transform: rotate(6deg);
}

.photo-card:nth-child(7)::before {
  left: 25%;
  transform: rotate(-4deg);
}

.photo-card:nth-child(9)::before {
  left: 65%;
  transform: rotate(7deg);
}

/* a couple pinned instead of taped */

.photo-card:nth-child(5)::before,
.photo-card:nth-child(10)::before {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  left: 50%;
  top: -6px;
  background: #292521;
  box-shadow: 1px 2px 3px rgba(0,0,0,0.3);
}

/* hovering feels like picking up a photograph */

.photo-card:hover {
  transform: rotate(0deg) scale(1.04);
  z-index: 10;
  box-shadow: 10px 15px 25px rgba(0,0,0,0.18);
}

/* phone version */

@media (max-width: 760px) {

  .photo-wall {
    display: block;
  }

  .photo-card,
  .photo-card.large,
  .photo-card.medium,
  .photo-card.small,
  .photo-card.tall,
  .photo-card.wide {
    width: 88%;
    max-width: 390px;
    margin: 45px auto;
  }

}

/* make the photograph wall feel less like rows */

.photo-wall {
  justify-content: flex-start;
  gap: 70px 34px;
}

.photo-card:nth-child(1) {
  margin-left: 4%;
}

.photo-card:nth-child(2) {
  margin-top: 85px;
}

.photo-card:nth-child(3) {
  margin-top: 20px;
}

.photo-card:nth-child(4) {
  margin-left: 2%;
}

.photo-card:nth-child(5) {
  margin-top: 55px;
}

.photo-card:nth-child(6) {
  margin-top: 105px;
  margin-left: -10px;
}

.photo-card:nth-child(7) {
  margin-top: 5px;
}

.photo-card:nth-child(8) {
  margin-left: 7%;
}

.photo-card:nth-child(9) {
  margin-top: 80px;
}

.photo-card:nth-child(10) {
  margin-top: 20px;
  margin-left: -15px;
}

.photo-card:nth-child(11) {
  margin-left: 9%;
}

.photo-card:nth-child(12) {
  margin-top: 65px;
}

/* let a couple pieces overlap a tiny bit */

.photo-card:nth-child(6) {
  margin-right: -25px;
}

.photo-card:nth-child(10) {
  margin-right: -20px;
}

/* a few special sizes */

.photo-card:nth-child(4) {
  width: 245px;
}

.photo-card:nth-child(5),
.photo-card:nth-child(6) {
  width: 300px;
}

.photo-card:nth-child(9) {
  width: 250px;
}

.photo-card:nth-child(10) {
  width: 330px;
}

.photo-card:nth-child(11) {
  width: 390px;
}

.photo-card:nth-child(12) {
  width: 315px;
}

/* ===== CLICKABLE PHOTO VIEWER ===== */

.photo-card {
  cursor: pointer;
}

/* dark background behind the opened photo */

.photo-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;

  background: rgba(20, 18, 15, 0.88);

  padding: 50px 5vw;

  align-items: center;
  justify-content: center;

  overflow-y: auto;
}

/* javascript adds "open" when a photo is clicked */

.photo-modal.open {
  display: flex;
}

/* the actual popup */

.photo-modal-inner {
  width: min(1050px, 95%);
  max-height: 90vh;

  background: #f3efe6;
  color: #1d1b18;

  border: 1px solid #1d1b18;

  display: grid;
  grid-template-columns: 1.4fr 0.8fr;

  position: relative;

  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

/* photograph side */

.photo-modal-image-wrap {
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #e9e3d8;
}

.photo-modal-image-wrap img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;

  box-shadow: 4px 6px 18px rgba(0,0,0,0.18);
}

/* notes side */

.photo-modal-notes {
  padding: 45px 35px;
  border-left: 1px solid #1d1b18;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-evidence-number {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  opacity: 0.6;

  margin-bottom: 18px;
}

.photo-modal-notes h2 {
  font-family: "Libre Caslon Display", serif;
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.05;

  margin: 0 0 25px;
}

.photo-modal-notes > p:last-child {
  font-size: 0.85rem;
  line-height: 1.8;
}

/* close button */

.photo-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 10;

  border: none;
  background: transparent;

  font-family: "DM Mono", monospace;
  font-size: 2rem;

  cursor: pointer;
  color: #1d1b18;
}

.photo-modal-close:hover {
  transform: rotate(8deg);
}

/* phone */

@media (max-width: 760px) {

  .photo-modal {
    padding: 25px 15px;
  }

  .photo-modal-inner {
    display: block;
    max-height: none;
  }

  .photo-modal-image-wrap {
    padding: 18px;
  }

  .photo-modal-image-wrap img {
    max-height: 60vh;
  }

  .photo-modal-notes {
    border-left: none;
    border-top: 1px solid #1d1b18;
    padding: 30px 25px;
  }

}

.sniper-graphic {
  width: 280px !important;
  max-width: 280px !important;
  height: auto !important;
  display: block;
  margin: 18px auto;
  transform: rotate(-1.5deg);
}

/* ===== ABOUT PAGE / DOSSIER ===== */

.about-page {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  width: min(1100px, 90%);
  margin: 70px auto;
}

.about-file,
.about-block {
  position: relative;
  padding: 28px;
  background: rgba(255,255,255,0.22);
  border: 1px solid #1d1b18;
}

.about-file {
  grid-column: 1 / -1;
  transform: rotate(-0.5deg);
}

.about-block:nth-of-type(2) {
  transform: rotate(0.6deg);
}

.about-block:nth-of-type(3) {
  transform: rotate(-0.7deg);
}

.about-block:nth-of-type(4) {
  transform: rotate(0.4deg);
}

.about-block:nth-of-type(5) {
  grid-column: 1 / -1;
  transform: rotate(-0.3deg);
}

.about-block:nth-of-type(6) {
  grid-column: 1 / -1;
}

.file-label {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.17em;
  opacity: 0.6;
  margin-bottom: 12px;
}

.about-file h2 {
  font-family: "Libre Caslon Display", serif;
  font-weight: 400;
  font-size: 2.4rem;
  margin: 0 0 25px;
}

.about-block p {
  line-height: 1.8;
}

.important {
  border-style: dashed;
  background: rgba(255,255,255,0.12);
}

/* fake archive stamp */

.about-file::after {
  content: "SUBJECT ACTIVE";
  position: absolute;
  top: 20px;
  right: 24px;
  padding: 6px 10px;
  border: 2px solid #1d1b18;
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  transform: rotate(5deg);
  opacity: 0.55;
}

/* little redaction-style bar */

.important::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 10px;
  right: 24px;
  bottom: 22px;
  background: #1d1b18;
  opacity: 0.8;
  transform: rotate(-2deg);
}

@media (max-width: 760px) {
  .about-page {
    grid-template-columns: 1fr;
  }

  .about-file,
  .about-block:nth-of-type(5),
  .about-block:nth-of-type(6) {
    grid-column: auto;
  }
}

/* tighten subject file */

.about-file {
  min-height: 0 !important;
  height: auto !important;
  padding-bottom: 45px !important;
  overflow: hidden;
}

/* =========================================
   HOMEPAGE DOODLES
   ========================================= */

.homepage-doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-page {
  position: relative;
}

.doodle {
  position: absolute;

  border: none;
  background: transparent;

  color: #1d1b18;

  font-family: Georgia, serif;
  font-size: 2rem;

  cursor: pointer;
  pointer-events: auto;

  opacity: 0.65;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.doodle:hover {
  opacity: 1;
}


/* STAR */

.doodle-star {
  top: 390px;
  left: 6%;

  transform: rotate(-14deg);
}

.doodle-star:hover {
  transform:
    rotate(25deg)
    scale(1.4);
}


/* HEART */

.doodle-heart {
  top: 720px;
  right: 7%;

  transform: rotate(9deg);
}

.doodle-heart:hover {
  transform:
    rotate(-12deg)
    scale(1.35);
}


/* TV */

.doodle-tv {
  top: 1080px;
  left: 5%;

  font-size: 2.4rem;

  transform: rotate(-5deg);
}

.doodle-tv:hover {
  animation: tvWiggle 0.35s infinite alternate;
}

.doodle-label {
  display: block;

  font-family: "DM Mono", monospace;
  font-size: 0.45rem;

  letter-spacing: 0.12em;

  margin-top: -5px;
}


/* MUSIC */

.doodle-headphones {
  top: 1420px;
  right: 8%;

  transform: rotate(10deg);
}

.doodle-headphones:hover {
  animation: musicBounce 0.55s infinite alternate;
}


/* QUESTION */

.doodle-question {
  top: 1760px;
  left: 9%;

  font-family: cursive;
  font-size: 2.5rem;

  transform: rotate(-12deg);
}

.doodle-question:hover {
  transform:
    rotate(12deg)
    scale(1.4);
}


/* ANIMATIONS */

@keyframes tvWiggle {

  from {
    transform: rotate(-7deg);
  }

  to {
    transform: rotate(7deg);
  }

}


@keyframes musicBounce {

  from {
    transform:
      rotate(7deg)
      translateY(0);
  }

  to {
    transform:
      rotate(12deg)
      translateY(-7px);
  }

}


/* =========================================
   SECRET NOTE POPUP
   ========================================= */

.secret-popup {
  display: none;

  position: fixed;

  left: 50%;
  top: 50%;

  transform:
    translate(-50%, -50%)
    rotate(-1deg);

  width: min(420px, 80%);

  padding: 35px;

  background: #f3eee3;

  border: 1px solid #1d1b18;

  box-shadow:
    12px 16px 40px rgba(0,0,0,0.25);

  z-index: 9999;
}

.secret-popup.open {
  display: block;
}

.secret-popup::before {
  content: "";

  position: absolute;

  width: 90px;
  height: 25px;

  top: -14px;
  left: 50%;

  transform:
    translateX(-50%)
    rotate(2deg);

  background:
    rgba(211,195,155,0.75);
}

.secret-label {
  font-family: "DM Mono", monospace;

  font-size: 0.55rem;

  letter-spacing: 0.17em;

  opacity: 0.55;
}

.secret-popup h2 {
  font-family: "Libre Caslon Display", serif;

  font-size: 2rem;
  font-weight: 400;

  margin:
    10px 0 18px;
}

.secret-popup p {
  line-height: 1.7;
}

.secret-close {
  position: absolute;

  top: 10px;
  right: 15px;

  border: none;
  background: transparent;

  font-size: 1.6rem;

  cursor: pointer;
}

/* =========================================
   FIX HOMEPAGE DOODLES
   ========================================= */

.home-page {
  position: relative;
}

/* make this invisible layer cover the whole homepage */
.homepage-doodles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

/* remove ugly default button look */
.doodle {
  position: absolute;

  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;

  padding: 0 !important;
  margin: 0;

  color: #1d1b18;

  font-family: Georgia, serif;
  line-height: 1;

  cursor: pointer;
  pointer-events: auto;

  opacity: 0.65;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.doodle:hover {
  opacity: 1;
}


/* STAR — near top-left */

.doodle-star {
  top: 500px;
  left: 4%;

  font-size: 4rem;

  transform: rotate(-14deg);
}

.doodle-star:hover {
  transform:
    rotate(25deg)
    scale(1.25);
}


/* HEART — further down on right */

.doodle-heart {
  top: 850px;
  right: 5%;

  font-size: 4rem;

  transform: rotate(10deg);
}

.doodle-heart:hover {
  transform:
    rotate(-12deg)
    scale(1.3);
}


/* TV — left middle */

.doodle-tv {
  top: 1180px;
  left: 5%;

  font-size: 3.5rem;

  transform: rotate(-5deg);
}

.doodle-tv:hover {
  animation: tvWiggle 0.35s infinite alternate;
}

.doodle-label {
  display: block;

  font-family: "DM Mono", monospace;
  font-size: 0.7rem;

  letter-spacing: 0.12em;

  margin-top: 3px;
}


/* MUSIC — right middle */

.doodle-headphones {
  top: 1500px;
  right: 6%;

  font-size: 4rem;

  transform: rotate(10deg);
}

.doodle-headphones:hover {
  animation: musicBounce 0.55s infinite alternate;
}


/* QUESTION — lower left */

.doodle-question {
  top: 1820px;
  left: 7%;

  font-family: cursive;
  font-size: 4.5rem;

  transform: rotate(-12deg);
}

.doodle-question:hover {
  transform:
    rotate(12deg)
    scale(1.25);
}


/* ANIMATIONS */

@keyframes tvWiggle {
  from {
    transform: rotate(-7deg);
  }

  to {
    transform: rotate(7deg);
  }
}

@keyframes musicBounce {
  from {
    transform:
      rotate(7deg)
      translateY(0);
  }

  to {
    transform:
      rotate(12deg)
      translateY(-8px);
  }
}


/* =========================================
   SECRET POPUP FIX
   ========================================= */

.secret-popup {
  display: none;

  position: fixed;

  left: 50%;
  top: 50%;

  transform:
    translate(-50%, -50%)
    rotate(-1deg);

  width: min(420px, 80%);

  padding: 35px;

  background: #f3eee3;

  border: 1px solid #1d1b18;

  box-shadow:
    12px 16px 40px rgba(0,0,0,0.25);

  z-index: 9999;
}

.secret-popup.open {
  display: block;
}

.secret-close {
  position: absolute;

  top: 10px;
  right: 15px;

  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;

  font-size: 1.8rem;

  cursor: pointer;
}

/* ==================================================
   JUNK DRAWER — COMPLETE FIX
   ================================================== */


/* LITTLE TAB ON RIGHT SIDE */

.junk-drawer-handle {
  position: fixed !important;
  right: 0 !important;
  top: 48% !important;

  z-index: 8000 !important;

  background: #f3eee3 !important;
  color: #1d1b18 !important;

  border: 1px solid #1d1b18 !important;
  border-right: 0 !important;

  padding: 14px 9px !important;

  font-family: "DM Mono", monospace !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.14em !important;

  writing-mode: vertical-rl !important;
  transform: rotate(180deg);

  cursor: pointer;

  box-shadow: -3px 3px 8px rgba(0,0,0,0.08);

  transition:
    padding 0.2s ease,
    background 0.2s ease;
}


.junk-drawer-handle:hover {
  background: #e7dfd0 !important;
  padding-right: 13px !important;
}


/* THE ACTUAL DRAWER */

.junk-drawer {
  position: fixed !important;

  top: 50% !important;
  right: -600px !important;

  transform: translateY(-50%) !important;

  width: 390px !important;
  max-width: 78vw !important;
  max-height: 76vh !important;

  overflow-y: auto !important;

  box-sizing: border-box !important;

  padding: 40px 32px 35px !important;

  background: #f3eee3 !important;
  color: #1d1b18 !important;

  border: 1px solid #1d1b18 !important;

  box-shadow:
    -15px 15px 45px rgba(0,0,0,0.22) !important;

  z-index: 9000 !important;

  transition:
    right 0.45s cubic-bezier(.22,.8,.3,1) !important;
}


/* THIS IS WHAT MAKES IT SLIDE OUT */

.junk-drawer.open {
  right: 25px !important;
}


/* CLOSE X */

.junk-drawer-close {
  position: absolute !important;

  top: 12px !important;
  right: 15px !important;

  padding: 0 !important;

  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;

  color: #1d1b18 !important;

  font-family: Georgia, serif !important;
  font-size: 1.8rem !important;

  cursor: pointer;
}


/* TITLE */

.junk-drawer .file-label {
  margin: 0 0 8px !important;

  font-size: 0.55rem !important;
  letter-spacing: 0.17em !important;

  opacity: 0.55;
}


.junk-drawer h2 {
  margin: 0 0 30px !important;

  font-family: "Libre Caslon Display", Georgia, serif !important;
  font-size: 2rem !important;
  line-height: 1.05 !important;

  font-weight: 400 !important;
}


/* ALL THE RANDOM JUNK */

.junk-drawer-grid {
  display: grid !important;

  grid-template-columns:
    repeat(2, minmax(0, 1fr)) !important;

  gap: 20px !important;

  align-items: start;
}


.junk-item {
  box-sizing: border-box;

  position: relative;

  padding: 17px !important;

  border: 1px solid rgba(29,27,24,0.65) !important;

  background:
    rgba(255,255,255,0.28) !important;

  font-size: 0.8rem;
  line-height: 1.5;
}


/* MAKE EVERYTHING LOOK THROWN IN */

.junk-item:nth-child(1) {
  transform: rotate(-2.5deg);
}

.junk-item:nth-child(2) {
  transform: rotate(2deg);
}

.junk-item:nth-child(3) {
  transform: rotate(-1deg);
}

.junk-item:nth-child(4) {
  transform: rotate(6deg);
}

.junk-item:nth-child(5) {
  transform: rotate(-7deg);
}

.junk-item:nth-child(6) {
  transform: rotate(1.5deg);
}


/* TAPE ON NOTES */

.junk-note::before {
  content: "";

  position: absolute;

  width: 55px;
  height: 17px;

  left: 50%;
  top: -10px;

  transform:
    translateX(-50%)
    rotate(-3deg);

  background:
    rgba(205,190,151,0.65);
}


/* LITTLE LABELS */

.junk-drawer .desk-label {
  margin: 0 0 8px !important;

  font-size: 0.52rem !important;
  letter-spacing: 0.13em !important;

  opacity: 0.55;
}


/* FAKE TICKET */

.junk-ticket {
  text-align: center;

  border-style: dashed !important;
}

.junk-ticket p {
  margin: 0 0 5px;

  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.junk-ticket span {
  font-size: 0.6rem;
  opacity: 0.6;
}


/* HEART + STAR */

.junk-mini {
  min-height: 75px;

  display: flex !important;
  align-items: center;
  justify-content: center;

  font-family: Georgia, serif;
  font-size: 2.8rem !important;

  border: 0 !important;
  background: transparent !important;
}


/* WEIRD HANDWRITTEN NOTE */

.junk-question {
  font-family: cursive;
  font-size: 0.9rem;
}


/* MOBILE */

@media (max-width: 600px) {

  .junk-drawer {
    width: 82vw !important;
  }

  .junk-drawer-grid {
    grid-template-columns: 1fr !important;
  }

}

/* ==================================================
   EVIDENCE OF LIFE — VISUAL UPGRADE
   ================================================== */


/* subtle paper texture */

body {
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(80,70,55,0.035) 0,
      transparent 20%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(80,70,55,0.025) 0,
      transparent 18%
    ),
    #f4efe5;

  background-attachment: fixed;
}


/* make text feel slightly more editorial */

body,
p,
li,
a {
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
}


/* tighten giant dead spaces */

main {
  padding-top: 35px;
  padding-bottom: 45px;
}

section {
  margin-bottom: 26px;
}


/* make cards feel like physical paper */

section,
.about-block,
.about-file,
.project-block,
.project-intro,
.home-lately,
.currently,
.mind-note,
.from-the-desk,
.obsessions,
.little-record,
.archive-status {
  background:
    linear-gradient(
      rgba(255,255,255,0.18),
      rgba(255,255,255,0.05)
    );

  box-shadow:
    1px 2px 0 rgba(29,27,24,0.08);
}


/* tiny paper imperfections */

section::after {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(0,0,0,0.015) 48%,
      transparent 52%
    );

  opacity: 0.4;
}


/* make labels look more like archive tags */

.file-label,
.desk-label,
.evidence-type,
.secret-label {
  display: inline-block;

  padding: 3px 6px;

  background: rgba(29,27,24,0.06);

  border-left: 2px solid rgba(29,27,24,0.35);

  letter-spacing: 0.15em;
}


/* underline some headings in a handmade way */

.home-main h2,
.about-page h2,
.project-page h2,
.project-page h3 {
  position: relative;
  width: fit-content;
}

.home-main h2::after,
.about-page h2::after,
.project-page h2::after,
.project-page h3::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -5px;

  width: 70%;
  height: 1px;

  background: rgba(29,27,24,0.35);

  transform: rotate(-0.6deg);
}


/* subtle little corner marks */

.home-lately::before,
.currently::before,
.mind-note::before,
.about-block::before,
.project-block::before {
  content: "✦";

  position: absolute;

  top: 10px;
  right: 14px;

  font-size: 0.7rem;
  opacity: 0.28;

  transform: rotate(8deg);
}


/* more scrapbook feeling for desk notes */

.desk-scrap {
  background: #f2eadc !important;

  box-shadow:
    5px 6px 0 rgba(29,27,24,0.06),
    9px 10px 18px rgba(29,27,24,0.08);

  border-color: rgba(29,27,24,0.55) !important;
}

.desk-scrap:nth-child(odd) {
  background: #efe7d6 !important;
}

.desk-scrap:nth-child(even) {
  background: #f5ede1 !important;
}


/* tape looks a little more real */

.desk-scrap::before,
.junk-note::before {
  background:
    linear-gradient(
      90deg,
      rgba(210,194,154,0.45),
      rgba(222,205,162,0.7),
      rgba(210,194,154,0.45)
    ) !important;

  border-left: 1px solid rgba(120,100,70,0.08);
  border-right: 1px solid rgba(120,100,70,0.08);
}


/* slightly messier obsession tags */

.obsession-list span {
  background: rgba(255,255,255,0.16);

  box-shadow:
    2px 2px 0 rgba(29,27,24,0.07);
}

.obsession-list span:nth-child(3n) {
  transform: rotate(-2deg);
}

.obsession-list span:nth-child(4n) {
  transform: rotate(2deg);
}


/* hand-drawn-ish archive border */

.archive-status {
  border:
    1px dashed rgba(29,27,24,0.65) !important;

  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.10),
      rgba(255,255,255,0.10) 24px,
      rgba(29,27,24,0.018) 25px
    );
}


/* make nav less plain */

nav a {
  position: relative;

  text-decoration: none;

  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -3px;

  width: 0;
  height: 1px;

  background: #1d1b18;

  transition: width 0.2s ease;
}

nav a:hover {
  transform: translateY(-1px);
}

nav a:hover::after {
  width: 100%;
}


/* footer less empty */

footer {
  position: relative;

  border-top:
    1px solid rgba(29,27,24,0.35);

  background:
    rgba(255,255,255,0.08);

  padding-top: 35px;
  padding-bottom: 35px;
}

footer::before {
  content: "file continues ↓";

  position: absolute;

  top: 8px;
  left: 50%;

  transform:
    translateX(-50%)
    rotate(-1deg);

  font-family: cursive;

  font-size: 0.72rem;

  opacity: 0.45;
}


/* a few tiny decorative marks around the page */

.home-main::before {
  content: "✶";

  position: absolute;

  left: 3%;
  top: 12%;

  font-size: 2rem;

  opacity: 0.18;

  transform: rotate(-12deg);
}

.home-main::after {
  content: "↘";

  position: absolute;

  right: 4%;
  top: 42%;

  font-family: cursive;

  font-size: 2rem;

  opacity: 0.18;

  transform: rotate(9deg);
}


/* make interactive doodles feel more hand-drawn */

.doodle {
  filter:
    drop-shadow(1px 1px 0 rgba(29,27,24,0.08));
}


/* optional selection styling */

::selection {
  background: #1d1b18;
  color: #f4efe5;
}


/* mobile cleanup */

@media (max-width: 760px) {

  section {
    margin-bottom: 20px;
  }

  .home-main::before,
  .home-main::after {
    display: none;
  }

}

/* =========================================
   TITLE COLLAGE
   ========================================= */

.title-area {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 170px;
}

.title-area h1 {
  position: relative;
  z-index: 3;
  margin: 0;
  max-width: 78%;
}

.title-collage {
  position: absolute;

  width: 330px;
  max-width: 32vw;
  height: auto;

  right: 1%;
  top: 50%;

  transform:
    translateY(-50%)
    rotate(2deg);

  z-index: 2;

  pointer-events: auto;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.title-collage:hover {
  transform:
    translateY(-50%)
    rotate(-1deg)
    scale(1.04);
}


/* slightly tucked behind title on medium screens */

@media (max-width: 1050px) {

  .title-collage {
    width: 280px;
    opacity: 0.92;
    right: 0;
  }

  .title-area h1 {
    max-width: 80%;
  }

}


/* mobile */

@media (max-width: 700px) {

  .title-area {
    display: block;
    min-height: 0;
  }

  .title-area h1 {
    max-width: 100%;
  }

  .title-collage {
    position: relative;

    display: block;

    width: 260px;
    max-width: 80%;

    top: auto;
    right: auto;

    margin: 18px 0 5px auto;

    transform: rotate(2deg);
  }

  .title-collage:hover {
    transform:
      rotate(-1deg)
      scale(1.03);
  }

}