@import url('https://fonts.googleapis.com/css2?family=Cherry+Bomb+One&family=Coiny&family=Quicksand:wght@400;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #4e3f39;
  font-family: 'Quicksand', sans-serif;
  background:
    radial-gradient(circle at 25px 25px, #f5c3ca 2px, transparent 3px),
    #fff8f2;
  background-size: 45px 45px;
}

.page {
  width: min(1120px, 94%);
  margin: 28px auto;
  padding: 28px;
  background: #fffdf8;
  border: 2px dashed #e9b9aa;
  box-shadow: 0 0 30px rgba(89, 63, 50, 0.15);
  overflow: hidden;
  position: relative;
}

.site-header {
  text-align: center;
  padding: 25px 10px 18px;
}

.site-header h1 {
  margin: 0;
  font-family: 'Cherry Bomb One', cursive;
  font-size: clamp(3.5rem, 9vw, 6.8rem);
  line-height: .9;
  color: #c94c4c;
  text-shadow: 5px 5px 0 #f7e38a;
}

.site-header p {
  margin-top: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .95rem;
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 0 35px;
}

.nav a {
  text-decoration: none;
  color: #4e3f39;
  font-weight: 700;
  padding: 11px 24px;
  border: 2px dashed #a67863;
  border-radius: 10px;
  box-shadow: 4px 4px 0 rgba(166, 120, 99, .35);
  transition: .2s ease;
}

.nav a:nth-child(1) { background: #f7e38a; }
.nav a:nth-child(2) { background: #d9cbf7; }
.nav a:nth-child(3) { background: #b7dbf7; }
.nav a:nth-child(4) { background: #bfd8b8; }
.nav a:nth-child(5) { background: #f5c3ca; }

.nav a:hover {
  transform: rotate(-2deg) scale(1.05);
}

h2,
h3 {
  font-family: 'Coiny', cursive;
}

footer {
  margin-top: 32px;
  text-align: center;
  padding: 20px;
  border: 2px dashed #e9b9aa;
  font-family: 'IBM Plex Mono', monospace;
}

/* HOME */

.home-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}

.scrap-card {
  position: relative;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 7px 7px 0 rgba(145, 103, 83, .23);
  line-height: 1.5;
}

.scrap-card::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 35px;
  width: 85px;
  height: 25px;
  background: rgba(255, 232, 166, .85);
  transform: rotate(-5deg);
}

.scrap-card h2 {
  margin: 0 0 12px;
  color: #7a8f58;
  font-size: 1.75rem;
}

.scrap-card p {
  margin: 6px 0;
}

.scrap-card b {
  color: #c94c4c;
}

.photo-card {
  grid-column: span 3;
  background: white;
  text-align: center;
  transform: rotate(-2deg);
}

.photo-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border: 8px solid white;
  box-shadow: 3px 3px 0 #ead8cb;
  display: block;
}

.photo-card p {
  margin-top: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.2rem;
  letter-spacing: 5px;
}

.about-card {
  grid-column: span 5;
  background: #fff7e8;
  border: 8px solid #c89f7b;
}

.current-card {
  grid-column: span 4;
  background: #ffd9dd;
  border: 2px solid #ec9fad;
  transform: rotate(2deg);
}

.todo-card {
  grid-column: span 3;
  background: #fff3a6;
  border: 2px solid #e6cf73;
  transform: rotate(-2deg);
}

.music-card {
  grid-column: span 4;
  background: #d9cbf7;
  border: 3px solid #bca7e8;
}

.update-card {
  grid-column: span 5;
  background:
    linear-gradient(to right, transparent 35px, #f0a0a0 36px, transparent 38px),
    repeating-linear-gradient(#fff 0 28px, #d8ecff 29px 30px);
  border: 2px solid #b7dbf7;
  padding-left: 55px;
  transform: rotate(1deg);
}

.favorite-card {
  grid-column: span 4;
  background: #eaf5e2;
  border: 4px dashed #7a8f58;
  transform: rotate(-1deg);
}

.inspo-card {
  grid-column: span 4;
  background: #fff1f4;
  border: 3px solid #f0b6c3;
}

.camera-card {
  grid-column: span 4;
  background: #fff7e8;
  border: 3px solid #ead8cb;
  transform: rotate(1deg);
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.mini-gallery img {
  width: 100%;
  height: 115px;
  object-fit: cover;
  border: 6px solid white;
  border-radius: 6px;
  box-shadow: 2px 2px 0 #d7b7a3;
}

.musicbar {
  height: 13px;
  background: #f8f7ff;
  border: 2px solid #9980d4;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 14px;
}

.musicfill {
  width: 45%;
  height: 100%;
  background: #9980d4;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .8rem;
}

.controls {
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 8px;
}

.date {
  font-family: 'IBM Plex Mono', monospace;
  color: #4e7ca8;
}

.guestbook-board {
  grid-column: 2 / span 10;
  background:
    radial-gradient(circle at 14px 14px, #d7b082 2px, transparent 3px),
    #e8c79f;
  background-size: 30px 30px;
  border: 10px solid #bb8d63;
  border-radius: 18px;
  box-shadow: 10px 10px 0 rgba(0,0,0,.15);
  padding: 28px;
  text-align: center;
}

.guestbook-board h2 {
  margin: 0;
  color: #6f9255;
  font-size: 2.4rem;
}

.guestbook-board > p {
  margin-top: 8px;
  font-family: 'IBM Plex Mono', monospace;
}

.guestbook-notes {
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  gap: 28px;
  align-items: center;
  margin: 25px 0;
}

.cork-note {
  background: #fff8bf;
  padding: 18px;
  border-radius: 10px;
  font-family: 'IBM Plex Mono', monospace;
  box-shadow: 4px 4px 0 rgba(0,0,0,.15);
  transform: rotate(-3deg);
}

.pink-note {
  background: #ffe2ea;
  transform: rotate(3deg);
}

.cork-polaroid {
  background: white;
  padding: 10px 10px 20px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.15);
  transform: rotate(-2deg);
}

.cork-polaroid div {
  height: 115px;
  background: #e8e8e8;
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.cork-polaroid p {
  margin: 10px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .8rem;
}

.guestbook-button {
  display: inline-block;
  padding: 14px 30px;
  background: #f5c3ca;
  border: 2px dashed #b98972;
  border-radius: 10px;
  text-decoration: none;
  color: #4e3f39;
  font-weight: bold;
  box-shadow: 4px 4px 0 rgba(0,0,0,.12);
}

/* JOURNAL */

.journal-book {
  display: grid;
  grid-template-columns: 190px 1fr 230px;
  gap: 24px;
  align-items: start;
  padding: 25px 0 40px;
}

.journal-archive,
.journal-side-note,
.diary-page {
  position: relative;
  box-shadow: 7px 7px 0 rgba(145, 103, 83, .22);
}

.journal-archive {
  background: #fff3a6;
  border: 2px dashed #b98972;
  border-radius: 14px;
  padding: 18px;
  transform: rotate(-2deg);
}

.journal-archive h2,
.journal-side-note h2,
.diary-page h2 {
  margin-top: 0;
}

.journal-archive a {
  display: block;
  color: #4e3f39;
  text-decoration: none;
  background: #fff8f2;
  border: 1px dashed #dec3af;
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
}

.diary-page {
  background:
    linear-gradient(to right, transparent 44px, #f0a0a0 45px, transparent 47px),
    repeating-linear-gradient(#fff 0 31px, #d8ecff 32px 33px);
  border: 2px solid #b7dbf7;
  border-radius: 14px;
  padding: 42px 38px 38px 72px;
  min-height: 720px;
}

.journal-date {
  font-family: "IBM Plex Mono", monospace;
  color: #4e7ca8;
  font-size: .95rem;
  margin-bottom: 10px;
}

.diary-page h2 {
  color: #c94c4c;
  font-size: 2rem;
  margin-bottom: 26px;
}

.diary-page p {
  line-height: 2;
  font-size: 1.02rem;
  margin-bottom: 18px;
}

.journal-signature {
  margin-top: 34px;
  text-align: right;
  font-family: "Cherry Bomb One", cursive;
  font-size: 1.8rem;
  color: #c94c4c;
}

.journal-side-note {
  background: #fff1f4;
  border: 3px solid #f0b6c3;
  border-radius: 14px;
  padding: 18px;
  transform: rotate(2deg);
}

.journal-side-note b {
  color: #c94c4c;
}

.mini-sticky {
  margin-top: 22px;
  background: #fff3a6;
  border: 2px solid #e6cf73;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  transform: rotate(-3deg);
  font-family: "IBM Plex Mono", monospace;
}

/* CLICK SPARKLES */

.click-sticker {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: floatAway 1.2s ease-out forwards;
  font-size: 20px;
}

@keyframes floatAway {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-45px) scale(1.5) rotate(20deg);
  }
}

/* MOBILE */

@media (max-width: 900px) {
  .page {
    padding: 18px;
  }

  .site-header h1 {
    font-size: 3rem;
    line-height: 1;
    text-shadow: 3px 3px 0 #f7e38a;
  }

  .nav a {
    width: 180px;
    text-align: center;
  }

  .home-grid,
  .journal-book {
    grid-template-columns: 1fr;
  }

  .scrap-card,
  .guestbook-board {
    grid-column: auto;
    transform: none;
  }

  .photo-card img {
    height: 320px;
  }

  .guestbook-notes {
    grid-template-columns: 1fr;
  }

  .journal-archive,
  .journal-side-note {
    transform: none;
  }

  .diary-page {
    padding: 38px 24px 30px 55px;
  }
}