/* =====================================
   MANUARCHIVE
   Archive Room
===================================== */


/* Header */

.archive-room-header {
    text-align: center;
    padding: 4rem 1rem 2rem;
    opacity: 0.9;
}

.archive-room-header h1 {
    font-family: "IBM Plex Mono", monospace;
    font-size: 2rem;
    letter-spacing: 0.12em;
    font-weight: 400;
}

.archive-room-header p {
    margin-top: 1rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.9rem;
    opacity: 0.65;
}


/* Main archive chamber */

.archive-room {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.archive-drawer-container {
    width: min(700px, 90vw);
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem 2rem 2rem;

    scrollbar-width: thin;
}


/* Fragment area */

.fragment-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}


/* Individual archive drawer */

.fragment-drawer {
    position: relative;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);

    transition:
        transform 0.35s ease,
        padding-left 0.35s ease;
}

.fragment-drawer:hover {
    transform: translateX(8px);
    padding-left: 10px;
}


/* Fragment label */

.fragment-number {
    display: block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    opacity: 0.45;
    margin-bottom: 0.7rem;
}


/* Fragment title */

.fragment-drawer a {
    font-family: "IBM Plex Mono", monospace;
    text-decoration: none;
    color: inherit;
    font-size: 1.1rem;
    letter-spacing: 0.03em;

    transition: opacity 0.3s ease;
}

.fragment-drawer a:hover {
    opacity: 0.65;
}


/* Small archive indicator */

.fragment-drawer::before {
    content: "";

    position: absolute;
    left: -18px;
    top: 2rem;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: currentColor;
    opacity: 0.25;
}


/* Continue button */

.archive-more {
    display: block;

    margin: 3rem auto 1rem;
    padding: 0.8rem 1.5rem;

    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);

    color: inherit;

    font-family: "IBM Plex Mono", monospace;
    font-size: 0.85rem;
    letter-spacing: 0.08em;

    cursor: pointer;

    transition:
        border-color 0.3s ease,
        transform 0.3s ease,
        opacity 0.3s ease;
}

.archive-more:hover {
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-3px);
}


/* Hidden fragments */

.fragment-hidden {
    display: none;
}

.fragment-revealed {
    display: block;
    animation: archiveReveal 0.8s ease forwards;
}


/* Reveal animation */

@keyframes archiveReveal {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* Mobile */

@media (max-width: 600px) {

    .archive-room-header {
        padding-top: 2.5rem;
    }

    .archive-drawer-container {
        width: 95vw;
        padding: 1rem;
    }

    .fragment-drawer a {
        font-size: 1rem;
    }

}

/* Return doorway */

.archive-back {

    width: 100%;

    margin: 2rem 0 3rem;

    text-align: left;

    padding-left: 2rem;

}


.archive-back a {

    display: inline-block;

    font-family: "IBM Plex Mono", monospace;

    text-decoration: none;

    color: inherit;

    font-size: 1rem;

    letter-spacing: 0.04em;

    opacity: 0.75;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

}


.archive-back a:hover {

    opacity: 1;

    transform: translateX(-8px);

}

/* Back doorway */

.archive-back {

    width: min(700px, 90vw);

    margin: 2rem auto 3rem;

    text-align: left;

}


.archive-back a {

    display: inline-block;

    font-family: "IBM Plex Mono", monospace;

    font-size: 1.05rem;

    font-weight: 500;

    letter-spacing: 0.04em;

    color: inherit;

    text-decoration: none;

    opacity: 0.85;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

}


.archive-back a:hover {

    opacity: 1;

    transform: translateX(-6px);

}

/* =========================
   READING DISCLAIMER NOTE
========================= */

.reading-disclaimer {

    margin: 35px auto;

    max-width: 620px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.78rem;

    line-height: 1.55;

    letter-spacing: -0.01em;

    color: #952f26;

    opacity: 0.8;

}


.reading-disclaimer strong {

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 0.65rem;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    color: #b93006;

}


.reading-disclaimer i {

    font-style: italic;

}
#archive-intro {
  visibility: hidden;
}

#archive-intro.typing {
  visibility: visible;
}

#archive-intro .typing-char {
  opacity: 0;
  animation: archiveCharIn 0.08s ease forwards;
}

@keyframes archiveCharIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}   

.archive-back {
  max-width: 760px;
  margin: 1rem auto 0;
  padding: 0 3.5rem;
  box-sizing: border-box;
  text-align: left;
}

.archive-back a {
  color: #5c5146;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.75;
}

.archive-back a:hover {
  color: #241f19;
  opacity: 1;
}

/* =========================
   READING ROOM HERO IMAGE
========================= */

.reading-room-hero {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.reading-room-hero img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}