/* ---------- ROOT VIBES ---------- */
:root {
  --green-dark: #1f3d2b;
  --green-mid: #4f7c5a;
  --green-light: #cfe8d6;
  --cream: #f6fff8;
}

/* ---------- GLOBAL ---------- */

body {
  margin: 0;
  font-family: 'VT323', monospace;
  font-size: 1.25rem;
  background-image: url("texture-bg.png"); /* add a cute tiled texture */
  background-repeat: repeat;
  color: rgba(68, 122, 95, 1);
}

a {
  color: rgba(68, 122, 95, 1);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- SPARKLY CURSOR!!! ---------- */
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #ffffff, #8fd19e);
  pointer-events: none;
  animation: sparkleFade 0.5s linear forwards;
}

@keyframes sparkleFade {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0);
  }
}

/* ---------- PAGE WRAP ---------- */
.page-wrap {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
}

/* ---------- HEADER ---------- */
.site-header {
  background: linear-gradient(180deg, #eafff1, #cfe8d6);
  border: 3px solid rgba(68, 122, 95, 0.25);
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 6px 6px 0 rgba(68, 122, 95, 0.25);
}

.site-header h1 {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 2.5rem;
  margin: 0;
}

.site-header nav {
  margin-top: 10px;
}

.site-header nav a {
  margin: 0 10px;
}

/* ---------- LAYOUT ---------- */
.layout {
  display: flex;
  gap: 40px; /* THIS is the visible space for background ✨ */
}

/* ---------- MAIN CONTENT (BOOK) ---------- */
.main {
  flex: 2;
  background: var(--cream);
  border: 3px solid rgba(68, 122, 95, 0.25);
  padding: 25px;
  box-shadow: 8px 8px 0 rgba(68, 122, 95, 0.25);
  position: relative;
  background:
    url("paper-texture.png"),
    linear-gradient(90deg, #eef9f1 0%, #f6fff8 50%, #eef9f1 100%);
  background-blend-mode: multiply;
}

.main section {
  margin-bottom: 40px;
}

.main::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(
    to right,
    #2f5d3d,
    #4f7c5a
  );
}

.main h2 {
  font-family: 'Pixelify Sans', sans-serif;
  border-bottom: 2px dashed rgba(68, 122, 95, 0.25);
  padding-bottom: 5px;
}

/* ---------- ART GRID (BOOK PAGES) ---------- */
.art-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.art-grid img {
  width: 100%;
  border: 2px solid rgba(68, 122, 95, 0.25);
  background: white;
  padding: 6px;
  box-shadow: 4px 4px 0 rgba(68, 122, 95, 0.25);
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar section {
  background: linear-gradient(180deg, #f0fff5, #d9f2e3);
  border: 3px solid rgba(68, 122, 95, 0.25);
  padding: 15px;
  box-shadow: 8px 8px 0 rgba(68, 122, 95, 0.25);
}

.sidebar h3 {
  font-family: 'Pixelify Sans', sans-serif;
  margin-top: 0;
}

/* ---------- FOOTER ---------- */
.footer {
  margin-top: 40px;
  text-align: center;
  font-size: 1rem;
}
