@font-face {
  font-family: 'tiempos-text';
  src: url('/font/tiempos-text-regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'tiempos-text';
  src: url('/font/tiempos-headline-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'jubilee';
  src: url('/font/OTJubilee-Diamond.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


:root {
  /* colours */
  --pink-fog: #f2d2d2;
  --pink: #e57a9a;
  --berry: #9a123b;
  --purple: #2f1a53;
  --orange: #f6a26f;
  --yellow: #f7d98c;
  --green: #62be98;


  --v7-bg: #f5dee6;
  --v7-border: #e2bcc9;
  --bg: var(--v7-bg);


  /* sizes */
  --width-container: 1400px;

  --font-body: 'tiempos-text', serif;
  --font-size: clamp(16px, 3vw, 22px);
  --text: #44110B;



  --text: #44110B;
}

* {
  box-sizing: border-box;
}
body {
  background: var(--bg);
  border: clamp(.3em, 2vw, 1em) solid var(--v7-border);
  margin: 0;

  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--font-size);
  line-height: 1.6;
}

::selection {
  background: var(--orange);
}

img {
  max-width: 100%;
}



main {
  margin-inline: auto;
  max-width: var(--width-container);
  padding: clamp(1em, 5vw, 4em);
  width: 100%;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: clamp(.75em, 6vw, 3em);
}

@media screen and (max-width: 600px) {
  main {
    grid-template-columns: 1fr 1fr;
  }
  .peace {
    grid-row: span 2;
    grid-column: span 2;
  }
}

.tile {
  position: relative;
}

.tile.blog { 
  z-index: 2;
}


/* .tile.peace {
  transform: translate(2px, 2px);
} */

.blog__wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
}
.blog__wrapper img {
  width: 110%;
  object-fit: cover;
  max-width: unset;
}

.watch__poster {
  position: absolute;
  border-radius: 3px;

  left: 26.5%;
  top: 13%;
  /* width: 37.5%; */
  width: 38.5%;
  transform: skew(-8deg, -10deg);
  aspect-ratio: 2 / 3;
  object-fit: cover;


}
@media screen and (max-width: 600px) {
  .watch__poster {
    border-right: 1px solid rgba(255,255,255,.4);
  }
}

.watch__spine {
  position: absolute;
  border-radius: 2px;

  left: 64%;
  top: 13%;
  width: 4%;
  transform: skew(-7deg, 53deg) scaleX(-100%);
  aspect-ratio: 1 / 14;
  object-fit: cover;
  object-position: right;
}

.watch__shadow {
  background: var(--purple);
  opacity: .85;
  mix-blend-mode: multiply;

  position: absolute;
  border-radius: 2px;

  left: 63%;
  top: 13%;
  width: 5%;
  transform: skew(-7deg, 53deg) scaleX(-100%);
  aspect-ratio: 1 / 14;
}

.watch__art {
  position: relative;
  z-index: 1;
}

.watch__ding {
  position: absolute;
  width: 10%;
  left: 75%;
  top: 0%;
  transition: .2s ease-in-out;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}
.watch:hover .watch__ding {
  transform: translate(5px, -5px);
  opacity: 1;
}


.music a {
  display: block;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.music__cover {
  position: absolute;
  left: 29%;
  top: 7%;
  width: 71%;
  transform: rotate(-18deg);
  border-radius: 3px;
}
.music__overlay {

  background: var(--pink);
  mix-blend-mode: soft-light;
  position: absolute;

  left: 31%;
  top: 8%;
  width: 68%;
  aspect-ratio: 1 / 1;
  transform: rotate(-18deg);
  border-radius: 3px;
  z-index: 1;
}

.music__art {
  position: relative;
  z-index: 1;
}

.music__sparks {
  position: absolute;
  width: 20%;
  left: 25%;
  top: -10%;
  transition: .2s ease-in-out;
  pointer-events: none;
  opacity: 0;
  transform: rotate(-25deg);
  transform-origin: bottom center;
  z-index: 2;
}
.music:hover .music__sparks {
  transform: rotate(-20deg);
  opacity: 1;
}




.garden img{
  transform: rotate(0.5deg) scale(1.05);
  transform-origin: top left;
  transition: .2s ease-in-out;
}
.garden img:hover {
  transform: scale(1.05) rotate(-0.5deg);
}




.tile.mastodon {
  background-image: url('/img/tiles/mastodon-bg.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 0 5px;
  /* transform: translateY(-2em); */
}
.mastodon__cup {
  width: 80%;
  transition: .2s ease-in-out;
  transform: translateX(12%);
}
.mastodon__cup:hover {
  transform: translateX(12%) scale(1.02);
}


.frame__inner {
  position: absolute;
  width: 90%;
  aspect-ratio: 1 / 1;
  left: 5%;
  top: 5%;
  object-fit: cover;
}
.frame__outer {
  z-index: 2;
  position: relative;
}


.games__screen {
  position: absolute;

  left: 36%;
  top: 32%;
  width: 34%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.1);
  transform: rotate(-8.5deg);
  border-radius: 6px;
}

.games__art {
  position: relative;
  z-index: 1;
}

.games__laurels {
  position: absolute;
  top: 50%;
  left: 0;
  transform: scale(1.05);
  opacity: 0;
  transition: .2s ease-in-out;
  pointer-events: none;
  z-index: 2;
}
.games:hover .games__laurels {
  opacity: 1;
  transform: scale(1.05) translateY(-10px);
}

.zoom {
  transition: .2s ease-in-out;
}
.zoom:hover {
  transform: scale(1.02);
}




.site-footer {
  max-width: var(--width-container);
  margin-inline: auto;
  padding-block: clamp(3em, 5vw, 6em);
  padding-inline: clamp(1em, 5vw, 4em);
  width: 100%;

  font-size: .8em;
  text-transform: lowercase;
}
.site-nav__title {
  font-weight: bold;
}
.footer-nav__list {
  list-style-type: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  column-gap: 1em;
}
.site-footer a {
  color: var(--berry);
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: .2s ease-in-out;
}
.site-footer a:hover {
  color: var(--purple);
  text-decoration-color: var(--pink);
}




@media (prefers-reduced-motion: reduce) {
  .zoom:hover {
    transform: none;
  }
  .music:hover .music__sparks {
    transform: rotate(-25deg);
  }
  .watch:hover .watch__ding {
    transform: none;
  }
  .games:hover .games__laurels {
    transform: scale(1.05);
  }
  .garden img:hover {
    transform: rotate(0.5deg) scale(1.05);
  }
  .mastodon__cup:hover {
    transform: translateX(12%);
  }
}
