@font-face {
  font-family: 'IBMPlexSerif';
  src: url('https://images.echofyre.com/IBMPlexSerif-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Unica One';
  src: url('https://images.echofyre.com/UnicaOne-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  background-color: #0d0d0f;
  background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)), url('https://images.echofyre.com/author_background.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  font-family: 'Spectral', serif;
  color: #f0eadb;
}

.portrait-intro {
  max-width: 450px;
  margin: 6rem auto 1rem auto; /* increased top margin */
  padding: 1.5rem 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 12px;
  border: 2px solid #f0eadb;
  box-shadow: 0 0 16px #f0eadb60;
  z-index: 1;
}

.portrait-intro h2 {
  color: #f0eadb;
  font-weight: normal;
  font-size: 1.2rem;
  text-shadow: 0 0 6px #000;
  min-height: 4rem;
}

.entry-box {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  background-color: rgba(13, 13, 15, 0.88);
  border: 2px solid #f0eadb;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 0 20px #f0eadb60;
}

.entry-box h1, {
  font-family: 'Unica One', sans-serif;
  color: #f0eadb;
  border-bottom: 1px solid #f0eadb;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

.entry-box p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.echo-entry {
  white-space: pre-line;
  font-style: italic;
  margin-top: 0.5rem;
  font-size: 1.15rem;
  text-align: center;
}

hr {
  border: none;
  height: 1px;
  background: #f0eadb;
  margin: 2rem 0;
}

.return-button {
  display: block;
  width: fit-content;
  margin: 0 auto 4rem auto;
  padding: 0.8rem 1.6rem;
  background-color: #f0eadb;
  color: #0d0d0f;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 0 6px #f0eadb80;
}

.return-button:hover {
  background-color: #ffffff;
  color: #0d0d0f;
}

@media (max-width: 600px) {
  .entry-box,
  .portrait-intro {
    margin: 0 auto 1rem auto;
    padding: 1.5rem 1rem;
  }

  .portrait-intro h2 {
    font-size: 1rem;
  }

  .entry-box h1 {
    font-size: 1.2rem;
  }

  .entry-box p {
    font-size: 0.95rem;
  }

  .echo-entry {
    font-size: 1rem;
    text-align: left;
  }

  .return-button {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
}

.archive-ps {
  text-align: center;
  font-style: italic;
  font-size: 1rem;
  margin-top: 2rem;
  color: #f0eadb;
  text-shadow: 0 0 12px #f0eadb, 0 0 20px #e0b84a;
  transition: transform 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}

.archive-ps:hover,
.archive-ps:active {
  transform: scale(1.03);
  text-shadow: 0 0 18px #f0eadb, 0 0 28px #e0b84a;
}

@media (hover: none) {
  .archive-ps:active {
    transform: scale(1.03);
    text-shadow: 0 0 18px #f0eadb, 0 0 28px #e0b84a;
  }
}

/* === Floating Sigil === */

#veilFloatLink {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: block;
  opacity: 0.3;
  transition: opacity 0.3s ease-in-out;
}

#veilFloatLink img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 0 12px #e0b84a88;
}

#veilFloatLink:hover {
  opacity: 1;
}