/* ============================================================
   Outlying One — Unified Stylesheet
   Structured • Readable • Architectural
============================================================ */

/* ------------------------------------------------------------
   Base layout and typography
------------------------------------------------------------ */

body {
    margin: 0;
    padding: 0;
    font-family: 'Lora', Georgia, serif;
    background: #f4f1ec;
    color: #222;
    line-height: 1.65;
}

header,
main {
    max-width: 850px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

h1 {
    font-weight: normal;
    font-size: 2.6rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

h2 {
    font-weight: normal;
    font-size: 1.7rem;
    margin-top: 3rem;
    letter-spacing: 0.03em;
}

/* ------------------------------------------------------------
   Dividers and text column
------------------------------------------------------------ */

.divider {
    margin: 2.5rem 0;
    height: 1px;
    background: #ccc;
    width: 60%;
}

.text-column {
    max-width: 80ch;
    margin: 0 auto;
}

/* ------------------------------------------------------------
   Press marks and colophon
------------------------------------------------------------ */

.press-mark {
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.55;
    letter-spacing: 0.08em;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    user-select: none;
}

.press-sigil {
    font-size: 1.4rem;
    opacity: 0.55;
    margin-bottom: 0.4rem;
}

.press-colophon {
    font-size: 0.85rem;
    opacity: 0.75;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.press-colophon .press-sub {
    display: block;
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0.15rem;
}

.press-device {
    width: 100px;
    height: auto;
    opacity: 0.85;
    display: block;
    margin: 0 auto 1rem;
}

/* ------------------------------------------------------------
   Navigation — fade-in + breathing separators
------------------------------------------------------------ */

.noone-nav {
    text-align: center;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: navFade 2.2s ease-out forwards;
    animation-delay: 0.6s;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

@keyframes navFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 0.65; transform: translateY(0); }
}

.noone-nav a {
    text-decoration: none;
    color: #222;
    margin: 0 0.3rem;
    transition: opacity 0.25s ease;
}

.noone-nav a:hover {
    opacity: 0.45;
}

.nav-sep {
    margin: 0 0.3rem;
    opacity: 0.45;
    font-size: 0.7rem;
    display: inline-block;
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform-origin: center;
}

.noone-nav:hover .nav-sep {
    transform: translateY(-1px);
    opacity: 0.55;
}

/* ------------------------------------------------------------
   Book covers and pairs
------------------------------------------------------------ */

.cover-pair {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 2.5rem 0;
}

img.book-cover {
    max-width: 390px;
    width: 100%;
    display: block;
    margin: 1.5rem auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, filter 0.25s ease;
    cursor: pointer;
}

img.book-cover:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

/* ------------------------------------------------------------
   Back link
------------------------------------------------------------ */

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    opacity: 0.7;
    text-decoration: none;
    color: #222;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 1;
}

/* ------------------------------------------------------------
   Footer
------------------------------------------------------------ */

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #666;
}

/* ------------------------------------------------------------
   Whisper (landing page)
------------------------------------------------------------ */

.noone-whisper {
    opacity: 0;
    transform: translateX(-20px);
    animation: whisperFade 3.5s ease-out forwards;
    animation-delay: 0.8s;
    margin: 1.5rem 0 2rem 0;
}

@keyframes whisperFade {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Fixed-width membrane (architectural mode) */
#whisper-wrapper {
    width: 100%;
    max-width: 80ch;
    margin: 0 auto;
    position: relative;
    border-radius: 2px;
    transition: box-shadow 0.35s ease, background 0.35s ease;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255,255,255,0.35) 0%,
        rgba(255,255,255,0.15) 40%,
        rgba(255,255,255,0.05) 70%,
        rgba(255,255,255,0) 100%
    );
    backdrop-filter: blur(0.6px);
    box-shadow:
        inset 0 0 4px rgba(0,0,0,0.06),
        0 0 22px rgba(200,140,90,0.18);
    padding: 0.6rem 0.8rem;
    display: block;
    cursor: pointer;
}

/* Hover: surface tension + warm perimeter */
#whisper-wrapper:hover {
    box-shadow: 0 0 0 2px rgba(200, 140, 90, 0.18);
}

/* ------------------------------------------------------------
   Breathing membrane — expands to contain Henry
------------------------------------------------------------ */

#whisper-wrapper.henry-active {
    min-height: 160px;
    transition: min-height 0.35s ease;
}

/* Membrane invocation states */
.whisper-flex {
    transform: translateY(1px);
    transition: transform 0.25s ease;
}

.whisper-cold {
    filter: brightness(0.92) saturate(0.92);
    transition: filter 0.35s ease;
}

.whisper-warm-edges {
    box-shadow: 0 0 18px rgba(200, 140, 90, 0.18);
}

.whisper-vanish {
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Caption */
.whisper-caption {
    position: absolute;
    bottom: -1.4rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.55);
    opacity: 0.85;
    transition: opacity 2.4s ease;
    pointer-events: none;
}

.whisper-wrapper:hover .whisper-caption {
    opacity: 0.55;
}

/* Echo stacking */
#whisper-echoes {
    position: relative;
    margin-top: 0.6rem;
    pointer-events: none;
}

.whisper-echo {
    opacity: 0.48;
    font-size: 0.94em;
    transform: scale(0.99);
    filter: brightness(0.98) saturate(0.95);
    transition: opacity 3.2s ease, transform 3.2s ease;
    margin-bottom: 0.35rem;
}

.whisper-echo.fade-out {
    opacity: 0;
    transform: scale(1.0);
}

/* ------------------------------------------------------------
   Henry apparition pulse
------------------------------------------------------------ */

#henry-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(160px, 40%);
    opacity: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 1.2s ease;
    z-index: 10;
}

#henry-pulse.pulse {
    opacity: 0.22;
}

@media (max-width: 600px) {
    #henry-pulse {
        width: 120px;
    }
}

@media (max-width: 480px) {
    #henry-pulse {
        width: 100px;
    }
}

/* Flip Henry horizontally on 7-events */
.henry-flipped {
    transform: translate(-50%, -50%) scaleX(-1) !important;
}

/* ------------------------------------------------------------
   Diptych panel
------------------------------------------------------------ */

.diptych-panel {
    background: #f7f5f2;
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.03), 0 4px 14px rgba(0,0,0,0.08);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* ------------------------------------------------------------
   Book links (landing page)
------------------------------------------------------------ */

.book-links {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

@media (min-width: 700px) {
    .book-links {
        flex-direction: row;
        justify-content: center;
    }
}

.book-card {
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.book-card img {
    max-width: 220px;
    width: 100%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border-radius: 2px;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.book-card img:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.isbn-line {
    opacity: 0.75;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    margin: 0 auto 1.8rem auto;
    text-align: center;
    transition: opacity 0.35s ease, text-shadow 0.35s ease;
}

.isbn-line:hover {
    opacity: 0.95;
    text-shadow: 0 0 6px rgba(0,0,0,0.12);
}

/* ------------------------------------------------------------
   Modal (shared)
------------------------------------------------------------ */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.18s ease-out;
}

.modal.visible {
    opacity: 1;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    border-radius: 4px;
}

.modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.modal-close:hover {
    opacity: 1;
}

/* ------------------------------------------------------------
   Contact challenge
------------------------------------------------------------ */

.noone-input {
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(0,0,0,0.25);
    background: #f7f5f2;
    border-radius: 4px;
    font-family: 'Lora', Georgia, serif;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    width: 160px;
}

.reveal-button {
    padding: 0.6rem 1.2rem;
    background: #222;
    color: #f4f1ec;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    transition: opacity 0.25s ease;
}

.reveal-button:hover {
    opacity: 0.85;
}

/* ------------------------------------------------------------
   External link styling
------------------------------------------------------------ */

.amazon-link {
    text-decoration: none;
    color: #222;
    position: relative;
    padding-right: 0.4rem;
    transition: opacity 0.25s ease;
}

.amazon-link:hover {
    opacity: 0.55;
}

.amazon-link::after {
    content: "↗";
    margin-left: 0.35rem;
    opacity: 0.55;
    font-size: 0.85rem;
    position: relative;
    top: -1px;
}

.amazon-link:hover::before {
    content: "Opens in a new tab";
    position: absolute;
    bottom: 125%;
    left: 0;
    background: rgba(34, 34, 34, 0.9);
    color: #f4f1ec;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    animation: tooltipFade 0.25s ease-out forwards;
}

@keyframes tooltipFade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.noone-link-cta {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
}

.noone-link-cta:hover {
    opacity: 0.7;
}

/* ------------------------------------------------------------
   Ingress glyph
------------------------------------------------------------ */

.ingress {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
}

.ingress::before {
    content: "⟡";
    position: absolute;
    top: -0.9em;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65em;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.ingress::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.1em;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ingress:hover::before,
.ingress:hover::after {
    opacity: 0.4;
}

/* ------------------------------------------------------------
   Colophon line
------------------------------------------------------------ */

.colophon-line {
    font-size: 0.85rem;
    opacity: 0.7;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

/* ------------------------------------------------------------
   Reader quote
------------------------------------------------------------ */

.reader-quote {
    margin: 3rem auto 2rem auto;
    padding: 1.5rem 1.2rem;
    border-left: 2px solid rgba(255,255,255,0.25);
    font-style: italic;
    opacity: 0.85;
    max-width: 80ch;
}
.reader-quote blockquote {
    margin: 0;
    line-height: 1.6;
}
.quote-source {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    opacity: 0.6;
}
