/* ============================= */
/* ✦ BASE SCRAPBOOK ENTRY CARD ✦ */
/* ============================= */

#posts article {
  position: relative;
  background: #fffdf8;
  border: 2px solid #f7b6da;
  padding: 1.6em;
  margin: 3em 0;
  box-shadow:
    6px 6px 0 #ffd6ee,
    12px 12px 0 rgba(255,182,218,0.35);
}

/* faint paper lines */
#posts article::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0.03) 0px,
      rgba(0,0,0,0.03) 1px,
      transparent 1px,
      transparent 26px
    );
  pointer-events: none;
}

/* ============================= */
/* ✦ WASHI TAPE STRIPS ✦ */
/* ============================= */

#posts article::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 20px;
  top: -12px;
  left: 35px;
  transform: rotate(-4deg);
  background: repeating-linear-gradient(
    45deg,
    #fff2b8,
    #fff2b8 8px,
    #ffe6a3 8px,
    #ffe6a3 16px
  );
  box-shadow: 0 2px 3px rgba(0,0,0,0.15);
}

/* ============================= */
/* ✦ TITLE STYLE ✦ */
/* ============================= */

#posts h2 {
  margin-top: 0;
  color: #7a3b5c;
  font-size: 1.6em;
  letter-spacing: 0.03em;
}

/* optional handwritten look */
.scrap-handwritten #posts h2 {
  font-family: "Comic Sans MS", "Marker Felt", cursive;
}

/* ============================= */
/* ✦ DATE TAG ✦ */
/* ============================= */

#posts time {
  display: inline-block;
  font-size: 0.8em;
  color: #b06286;
  margin-bottom: 0.8em;
  background: #ffe1f2;
  padding: 4px 10px;
  border-radius: 8px;
}

/* ============================= */
/* ✦ POLAROID IMAGE STYLE ✦ */
/* ============================= */

#posts img {
  background: white;
  padding: 8px 8px 26px 8px;
  border: 1px solid #ddd;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.12);
  transform: rotate(-1.2deg);
}

/* alternate rotation for collage feel */
#posts img:nth-of-type(even) {
  transform: rotate(1.4deg);
}

/* ============================= */
/* ✦ STICKER LINKS ✦ */
/* ============================= */

#posts a {
  color: #5870c8;
  font-weight: bold;
  background: #e6f0ff;
  padding: 2px 6px;
  border-radius: 6px;
}

#posts a:hover {
  background: #ffffff;
}

/* ============================= */
/* ✦ WITCHY MODE (optional) ✦ */
/* ============================= */

.scrap-witchy #posts article {
  border-color: #d9b3ff;
  box-shadow:
    6px 6px 0 #ecd8ff,
    12px 12px 0 rgba(190,150,255,0.35);
}

.scrap-witchy #posts time {
  background: #efe6ff;
}

/* adds tiny moon corner doodle */
.scrap-witchy #posts article {
  background-image:
    radial-gradient(circle at 98% 96%, rgba(160,130,255,0.25) 0 6px, transparent 7px);
  background-repeat: no-repeat;
}

/* ============================= */
/* ✦ 2000s TEEN MODE ✦ */
/* ============================= */

.scrap-y2k #posts article::after {
  background: repeating-linear-gradient(
    45deg,
    #ffbdf0,
    #ffbdf0 6px,
    #ffd9f7 6px,
    #ffd9f7 12px
  );
}

/* ============================= */
/* ✦ COLLAGE MODE ✦ */
/* ============================= */

.scrap-collage #posts article {
  transform: rotate(-0.4deg);
}

.scrap-collage #posts article:nth-child(even) {
  transform: rotate(0.5deg);
}

/* ============================= */
/* ✦ NAVIGATION STYLE ✦ */
/* ============================= */

#nextprev {
  margin-top: 2.4em;
  padding-top: 1em;
  border-top: 2px dashed #f7b6da;
  text-align: center;
  font-size: 0.9em;
}