
/* ==========================================
   MIKEY DILLON — VERSION 2
   THE LIVING COLLAGE
========================================== */

/* 01 — DESIGN TOKENS */

:root {
  --paper: #e9e8df;
  --paper-dark: #d8d9ce;
  --ink: #202b29;
  --teal: #326d68;
  --teal-light: #83aaa0;
  --teal-dark: #214b48;
  --orange: #bd7656;
  --yellow: #d5c58d;
  --muted: #777f76;
  --line: rgba(32, 43, 41, 0.25);

  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--teal);
  color: white;
}

/* 02 — MASTHEAD */

.masthead {
  position: relative;
  z-index: 20;
  min-height: 125px;
  padding: 28px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.identity {
  font-size: clamp(27px, 4vw, 49px);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.9;
}

.identity span {
  font-size: 10px;
  vertical-align: top;
  margin-left: 5px;
  letter-spacing: 0;
}

.masthead-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.about-link {
  font-size: 9px;
  letter-spacing: 0.13em;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 5px;
}

/* 03 — MAIN CANVAS */

.collage {
  position: relative;
  width: 100%;
  max-width: 1800px;
  min-height: 2550px;
  margin: 0 auto;
  overflow: hidden;
}

.piece {
  position: absolute;
}

.micro-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.piece-number {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

/* 04 — INTRODUCTION */

.intro-piece {
  top: 115px;
  left: 8%;
  width: 650px;
  z-index: 2;
}

.intro-piece h1 {
  font-family: var(--serif);
  font-size: clamp(95px, 11vw, 165px);
  font-weight: 400;
  line-height: 0.79;
  letter-spacing: -0.085em;
  margin: 35px 0;
}

.intro-piece h1 em {
  color: var(--teal);
  font-weight: 400;
}

.intro-caption {
  width: 240px;
  margin-left: 45%;
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
}

/* 05 — COORDINATES */

.coordinate-piece {
  top: 145px;
  right: 9%;
  width: 150px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--teal);
  transform: rotate(5deg);
}

.coordinate-symbol {
  font-size: 66px;
  margin: 20px 0;
  color: var(--orange);
}

.coordinate-piece small {
  font-size: 8px;
  line-height: 1.5;
  color: var(--muted);
}

/* 06 — KERNE HILLS */

.kerne-piece {
  top: 610px;
  left: 7%;
  width: 390px;
  height: 430px;
  background: var(--teal);
  color: var(--paper);
  transform: rotate(-3deg);
  overflow: hidden;
  z-index: 3;
  box-shadow: 10px 15px 35px rgba(32, 43, 41, 0.12);
}

.kerne-top {
  position: absolute;
  top: 20px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.kerne-art {
  position: absolute;
  inset: 65px 0 110px;
  overflow: hidden;
}

.sun {
  position: absolute;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: var(--yellow);
  top: 25px;
  right: 65px;
}

.hill {
  position: absolute;
  width: 120%;
  height: 180px;
  border-radius: 50% 50% 0 0;
  left: -10%;
  bottom: -85px;
}

.hill-one {
  background: #76968a;
  transform: rotate(-12deg);
}

.hill-two {
  background: #476f62;
  bottom: -115px;
  left: 5%;
  transform: rotate(12deg);
}

.hill-three {
  background: #2b5148;
  bottom: -145px;
  left: -20%;
}

.kerne-bottom {
  position: absolute;
  bottom: 18px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.kerne-bottom h2 {
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.07em;
  margin: 0;
}

.kerne-bottom span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

/* 07 — STATEMENT */

.statement-piece {
  top: 690px;
  left: 48%;
  width: 300px;
  transform: rotate(4deg);
  z-index: 4;
}

.statement-piece p {
  font-family: var(--serif);
  font-size: 49px;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.statement-piece p em {
  color: var(--orange);
  font-weight: 400;
}

.statement-mark {
  display: block;
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
}

/* 08 — BESTIARY */

.bestiary-piece {
  top: 480px;
  right: 8%;
  width: 330px;
  height: 440px;
  padding: 28px;
  background: var(--yellow);
  transform: rotate(4deg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  z-index: 2;
}

.bestiary-symbol {
  position: absolute;
  top: 25px;
  left: 35px;
  font-size: 190px;
  color: var(--teal);
  opacity: 0.75;
  transition: transform 0.7s ease;
}

.bestiary-piece h2 {
  position: relative;
  font-family: var(--serif);
  font-size: 62px;
  line-height: 0.82;
  font-weight: 400;
  letter-spacing: -0.07em;
  margin: 20px 0;
}

.bestiary-piece p {
  max-width: 200px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.4;
}

.bestiary-piece .piece-number {
  margin-top: 20px;
}

/* 09 — POSTCARD */

.postcard-piece {
  top: 1110px;
  right: 13%;
  width: 370px;
  height: 255px;
  padding: 25px;
  background: #d9cbb5;
  transform: rotate(-6deg);
  box-shadow: 5px 8px 20px rgba(32, 43, 41, 0.1);
  z-index: 3;
}

.postcard-piece > span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.postcard-stamp {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 53px;
  height: 60px;
  border: 1px dashed var(--orange);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  transform: rotate(8deg);
}

.postcard-piece h2 {
  font-family: var(--serif);
  font-size: 43px;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin: 25px 0;
}

.postcard-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
}

/* 10 — STORY FRAGMENT */

.story-piece {
  top: 1190px;
  left: 11%;
  width: 360px;
  padding: 35px;
  background: var(--paper-dark);
  transform: rotate(3deg);
  z-index: 4;
}

.story-piece h2 {
  font-family: var(--serif);
  font-size: 53px;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.06em;
  margin: 30px 0;
}

.story-piece h2 em {
  color: var(--teal);
}

.story-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

/* 11 — ABSTRACT SYMBOL */

.symbol-piece {
  top: 1500px;
  left: 53%;
  width: 250px;
  height: 250px;
  display: grid;
  place-items: center;
  transform: rotate(15deg);
}

.orbit {
  position: absolute;
  border: 1px solid var(--teal);
  border-radius: 50%;
}

.orbit-one {
  width: 180px;
  height: 180px;
}

.orbit-two {
  width: 230px;
  height: 95px;
  transform: rotate(55deg);
  border-color: var(--orange);
}

.orbit-center {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: white;
  font-family: var(--serif);
  font-size: 35px;
}

.symbol-piece > span {
  position: absolute;
  bottom: -5px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* 12 — EXPERIMENTS */

.experiments-piece {
  top: 1710px;
  left: 14%;
  width: 360px;
  height: 360px;
  padding: 30px;
  background: var(--orange);
  color: var(--paper);
  transform: rotate(-5deg);
  z-index: 2;
}

.experiments-piece h2 {
  font-family: var(--serif);
  font-size: 68px;
  line-height: 0.85;
  font-weight: 400;
  letter-spacing: -0.07em;
  margin-top: 65px;
}

.experiments-piece h2 em {
  color: #f0d9ad;
}

.experiments-piece .micro-label,
.experiments-piece .piece-number {
  color: rgba(255, 255, 255, 0.8);
}

.experiment-arrow {
  position: absolute;
  right: 30px;
  top: 45%;
  font-size: 50px;
}

/* 13 — FICTIONAL NEWSPAPER */

.newspaper-piece {
  top: 1870px;
  right: 10%;
  width: 370px;
  height: 330px;
  padding: 25px;
  background: #f1eee2;
  border: 1px solid var(--line);
  transform: rotate(3deg);
  z-index: 3;
}

.newspaper-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.newspaper-piece h2 {
  font-family: var(--serif);
  font-size: 76px;
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.8;
  margin: 45px 0 20px;
}

.newspaper-divider {
  height: 4px;
  background: var(--ink);
}

.newspaper-piece p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.3;
  max-width: 230px;
}

.newspaper-piece .piece-number {
  position: absolute;
  bottom: 25px;
  right: 25px;
}

/* 14 — VERTICAL DETAIL */

.vertical-piece {
  top: 1400px;
  right: 5%;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  height: 300px;
}

/* 15 — ABOUT */

.about-piece {
  top: 2260px;
  left: 25%;
  width: 550px;
  border-top: 1px solid var(--teal);
  padding-top: 25px;
}

.about-piece p {
  font-family: var(--serif);
  font-size: 35px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.about-piece > span:last-child {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* 16 — FOOTER */

.footer-piece {
  bottom: 30px;
  left: 5%;
  right: 5%;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

/* 17 — INTERACTION */

.project-piece {
  transition:
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.55s ease,
    filter 0.55s ease;
}

.project-piece:hover {
  transform: translateY(-10px) rotate(0deg) scale(1.025);
  box-shadow: 12px 20px 40px rgba(32, 43, 41, 0.17);
  filter: saturate(1.1);
}

.bestiary-piece:hover .bestiary-symbol {
  transform: rotate(45deg) scale(1.1);
}

.kerne-piece,
.story-piece,
.newspaper-piece,
.experiments-piece,
.bestiary-piece {
  cursor: pointer;
}

/* 18 — TABLET */

@media (max-width: 1050px) and (min-width: 701px) {
  .collage {
    min-height: 2600px;
  }

  .intro-piece {
    left: 6%;
    width: 55%;
  }

  .intro-piece h1 {
    font-size: 115px;
  }

  .coordinate-piece {
    right: 5%;
  }

  .kerne-piece {
    left: 5%;
    width: 330px;
  }

  .bestiary-piece {
    right: 5%;
    width: 280px;
  }

  .statement-piece {
    left: 47%;
  }

  .postcard-piece {
    right: 5%;
  }

  .story-piece {
    left: 6%;
  }

  .experiments-piece {
    left: 6%;
  }

  .newspaper-piece {
    right: 5%;
  }

  .about-piece {
    left: 15%;
    width: 70%;
  }
}

/* 19 — MOBILE */

@media (max-width: 700px) {

  .masthead {
    min-height: 100px;
    padding: 20px 6vw;
    flex-wrap: wrap;
    gap: 15px;
  }

  .identity {
    font-size: 32px;
  }

  .masthead-meta {
    display: none;
  }

  .about-link {
    font-size: 8px;
  }

  .collage {
    min-height: auto;
    padding: 50px 6vw 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 65px;
    overflow: hidden;
  }

  .piece {
    position: relative;
    inset: auto;
    margin: 0;
    transform: none;
    max-width: 100%;
  }

  .intro-piece {
    width: 100%;
    align-self: flex-start;
  }

  .intro-piece h1 {
    font-size: clamp(75px, 17vw, 115px);
    margin: 25px 0;
  }

  .intro-caption {
    margin-left: 20%;
    width: 75%;
  }

  .coordinate-piece {
    align-self: flex-end;
    width: 140px;
    margin-top: -20px;
    transform: rotate(4deg);
  }

  .kerne-piece {
    width: 88%;
    height: 400px;
    align-self: flex-start;
  }

  .statement-piece {
    width: 80%;
    align-self: flex-end;
    transform: rotate(2deg);
  }

  .statement-piece p {
    font-size: 48px;
  }

  .bestiary-piece {
    width: 85%;
    height: 390px;
    align-self: flex-end;
    transform: rotate(2deg);
  }

  .postcard-piece {
    width: 88%;
    height: 245px;
    align-self: flex-start;
    transform: rotate(-3deg);
  }

  .story-piece {
    width: 90%;
    align-self: flex-end;
    transform: rotate(2deg);
  }

  .symbol-piece {
    width: 250px;
    height: 250px;
    align-self: center;
  }

  .experiments-piece {
    width: 88%;
    height: 350px;
    align-self: flex-start;
    transform: rotate(-2deg);
  }

  .newspaper-piece {
    width: 90%;
    height: 320px;
    align-self: flex-end;
    transform: rotate(2deg);
  }

  .vertical-piece {
    height: auto;
    align-self: flex-start;
    writing-mode: horizontal-tb;
    line-height: 1.6;
  }

  .about-piece {
    width: 100%;
  }

  .about-piece p {
    font-size: 30px;
  }

  .footer-piece {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    line-height: 1.8;
  }

  .project-piece:hover {
    transform: translateY(-4px) rotate(0deg);
  }
}

/* 20 — ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
