/* ============================================
   THE SKETE — style.css
   Primary palette: Weird Autumn
   Supplemental: Waldgeist
   ============================================ */

/* --- RESET & BASE --- */
* {
  box-sizing: border-box;
}

body {
  background-color: #0d1117;   /* near-black, slightly warm */
  color: #f0d9a8;               /* warm cream — Weird Autumn highlight */
  font-family: 'Palatino Linotype', Palatino, Georgia, serif;
  margin: 0;
  padding: 0;
}

/* --- MAIN CONTENT COLUMN --- */
/* Centers everything and constrains width to match room image */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- TITLE IMAGE --- */
.title-image {
  display: block;
  margin: 1.5rem auto 0 auto;
  width: 700px;
  max-width: 100%;
}

/* --- NAV BAR --- */
nav {
  margin-top: 0.75rem;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: #2c1a0e;   /* dark warm brown — Weird Autumn shadow */
  display: flex;
  justify-content: center;
  gap: 3rem;
  border-top: 1px solid #5c3a1e;
  border-bottom: 1px solid #5c3a1e;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  color: #f0d9a8;               /* warm cream */
  text-align: center;
  padding: 10px 16px;
  text-decoration: none;
  font-family: 'Courier New', Courier, monospace;  /* replace with Speed Pixel at some point */
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

nav a:hover {
  background-color: #5c3a1e;   /* mid warm brown */
  color: #f5c87a;               /* amber on hover */
}

/* --- ROOM IMAGE --- */
.nav-image {
  margin: 2rem auto 0 auto;
  text-align: center;
}

.nav-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  /* Keeps pixel art crisp when scaled */
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

nav {
  width: 100%;
  margin-top: 0.75rem;
}

/* --- DYNAMIC TEXT BOX --- */
.dynamic-text {
  margin: 1.5rem auto 0 auto;
  text-align: center;
}

.dynamic-text img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#dynamic-content {
  font-family: 'Palatino Linotype', Palatino, Georgia, serif;
  color: #f0d9a8;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  padding: 1.5rem 2rem;
  margin: 0;
}

/* --- HotSpots --- */
.hotspot {
  position: absolute;
  cursor: pointer;
}

/* Candle */
#hotspot-candle {
  position: absolute;
  left: 4%;
  top: 78%;
  width: 8%;
  height: 12%;
  cursor: pointer;
}

/* Green Book */
#hotspot-book-toc {
  position: absolute;
  left: 0%;
  top: 38%;
  width: 7%;
  height: 12%;
  cursor: pointer;
}

/* Red Book */
#hotspot-book-watches-spine {
  position: absolute;
  left: 7%;
  top: 34%;
  width: 1.5%;
  height: 14%;
  cursor: pointer;
}

#hotspot-book-watches-top {
  position: absolute;
  left: 0%;
  top: 34%;
  width: 7%;
  height: 4%;
  cursor: pointer;
}

/* Blue Book */
#hotspot-book-religion-spine {
  position: absolute;
  left: 8.5%;
  top: 36%;
  width: 2.5%;
  height: 12%;
  cursor: pointer;
}

/* Orange Book */
#hotspot-book-vinyl-spine {
  position: absolute;
  left: 11%;
  top: 32%;
  width: 1%;
  height: 15%;
  cursor: pointer;
}

#hotspot-book-vinyl-top {
  position: absolute;
  left: 4%;
  top: 32%;
  width: 8%;
  height: 3%;
  cursor: pointer;
}

/* Purple Book */
#hotspot-book-rpgs-spine {
  position: absolute;
  left: 12%;
  top: 39%;
  width: 5%;
  height: 6%;
  cursor: pointer;
}

#hotspot-book-rpgs-spine2 {
  position: absolute;
  left: 17%;
  top: 39%;
  width: 3%;
  height: 4%;
  cursor: pointer;
}

/* Window */
#hotspot-window {
  position: absolute;
  left: 43.5%;
  top: 35%;
  width: 29%;
  height: 12%;
  cursor: pointer;
}

/* Skull */
#hotspot-skull {
  position: absolute;
  left: 16%;
  top: 30%;
  width: 9%;
  height: 9%;
  cursor: pointer;
}

/* Camera */
#hotspot-camera {
  position: absolute;
  left: 89%;
  top: 8%;
  width: 5.5%;
  height: 12%;
  cursor: pointer;
}

/* Key */
#hotspot-key {
  position: absolute;
  left: 45.3%;
  top: 50%;
  width: .75%;
  height: 1.25%;
  cursor: pointer;
}

/* Dice */
#hotspot-dice {
  position: absolute;
  left: 4.5%;
  top: 70%;
  width: 4%;
  height: 4.5%;
  cursor: pointer;
}


/* Notes */
#hotspot-notes {
  position: absolute;
  left: 14%;
  top: 83.5%;
  width: 5.5%;
  height: 5%;
  cursor: pointer;
}

/* Guestbook*/
#hotspot-guestbook {
  position: absolute;
  left: 21%;
  top: 57%;
  width: 13%;
  height: 7%;
  cursor: pointer;
}

/* --- BOTTOM GRID --- */
/* Reliquary(tall), neighbors + nav stacked on right */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem auto 2rem auto;
}

.bottom-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --- BOTTOM PANELS --- */
.bottom-panel {
  background-color: #1a1008;   /* very dark warm brown */
  border: 1px solid #5c3a1e;
  padding: 1rem;
  min-height: 150px;
}

.reliquary {
  min-height: 320px;            /* tall to match two stacked right panels */
}

.panel-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: #c49a5a;
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.05em;
  text-align: center;
}

/* --- DIGITAL NEIGHBORS GALLERY --- */
.neighbors-gallery {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.neighbors-window {
  overflow: hidden;
  height: 105px;
  flex: 1;
  display: flex;
  justify-content: center;
}

.neighbors-track {
  display: grid;
  grid-template-columns: repeat(2, 88px);
  gap: 6px;
  transition: transform 0.3s ease;
  align-content: start;
}

.neighbors-track a img {
  width: 88px;
  height: 31px;
  display: block;
  image-rendering: pixelated;
}

.neighbors-track a:hover img {
  opacity: 0.8;
}

.neighbors-arrow {
  background: none;
  border: 1px solid #5c3a1e;
  color: #c49a5a;ne
  font-size: 1rem;
  padding: 4px 8px;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
}

.neighbors-arrow:hover {
  background-color: #2c1a0e;
  color: #f5c87a;
}

.my-buttons {
  display: grid;
  grid-template-columns: repeat(3, 88px);
  gap: 6px;
  width: fit-content;
  margin: 0 auto;
  justify-content: center; /* harmless now, but keep as fallback */
}
.my-buttons img {
  width: 88px;
  height: 31px;
  display: block;
  image-rendering: pixelated;
}
.my-buttons a:hover {
  opacity: 0.8;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 1.5rem 0 2rem 0;
  color: #7a5c3a;               /* muted warm brown */
  font-size: 0.8rem;
  border-top: 1px solid #2c1a0e;
  margin-top: 1rem;
}

footer img {
  display: block;
  margin: 0.75rem auto 0 auto;
}

/* --- LINKS --- */
a {
  color: #c49a5a;               /* amber */
  text-decoration: none;
}

a:hover {
  color: #f5c87a;               /* brighter amber on hover */
  text-decoration: underline;
}

dt {
  margin-top: 1.5rem;
}

/* --- CURRENT OBSESSION GLOW (apply to active room object) --- */
/* Add class="current" to whichever object img is the active hobby */
.current {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%   { filter: drop-shadow(0 0 2px #c46a1f44); }
  50%  { filter: drop-shadow(0 0 8px #c46a1faa); }
  100% { filter: drop-shadow(0 0 2px #c46a1f44); }
}

/* Stack bottom grid on mobile */
@media (max-width: 600px) {
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  
  .title-image {
    width: 100%;
  }

  nav ul {
    gap: 1rem;
  }
}

.about-grid {
  display: flex;
  flex-direction: row-reverse;
  gap: 2rem;
  align-items: flex-start;
  margin: 2rem auto;
  max-width: 800px;
  padding: 0 1rem;
}

.about-image img {
  max-width: 350px;
  width: 100%;
  display: block;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: .1rem;
}

/* Stack on mobile */
@media (max-width: 600px) {
  .about-grid {
    flex-direction: column;
  }
  
  .about-image img {
    max-width: 100%;
  }
}

/* --- BLOG LAYOUT --- */
.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  max-width: 800px;
  margin: 1.5rem auto 2rem auto;
  padding: 0 1rem;
}

@media (max-width: 600px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

/* --- MAIN ARTICLE --- */
.blog-main,
.blog-post {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.post-title {
  font-family: 'Palatino Linotype', Palatino, Georgia, serif;
  color: #f5d898;
  font-size: 1.6rem;
  margin: 0 0 0.25rem 0;
  font-weight: normal;
}

.post-date {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: #7a5c3a;
  margin: 0 0 1.5rem 0;
}

.post-content p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: #f0d9a8;
}

.post-link a,
.post-back a {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #c49a5a;
}

.post-link a:hover,
.post-back a:hover {
  color: #f5c87a;
}

/* --- SIDEBAR --- */
.blog-sidebar {
  border-left: 1px solid #2c1a0e;
  padding-left: 1.5rem;
}

.sidebar-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: #c49a5a;
  font-weight: normal;
  margin: 0 0 1rem 0;
  letter-spacing: 0.05em;
}

.recent-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent-posts li {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.recent-posts a {
  color: #f0d9a8;
  font-size: 0.95rem;
  line-height: 1.4;
}

.recent-posts a:hover {
  color: #f5c87a;
}

.post-date-small {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: #7a5c3a;
}

/* --- BLOG MOBILE --- */
@media (max-width: 600px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

.title-image {
  width: 100%;
}

nav ul {
  gap: 0.5rem;
}

nav a {
  padding: 10px 8px;
  font-size: 0.8rem;
}
}
  .blog-sidebar {
    border-left: none;
    border-top: 1px solid #2c1a0e;
    padding-left: 0;
    padding-top: 1.5rem;
  }
}

