/* "Home Page" cue — same spot and type as the Architecture intro draws it
   (under the hamburger), pinned to the viewport so it travels with the
   reader. Ink follows the background (tone-watch.js). */

.page-top {
    position: fixed;
    left: clamp(56px, 5.2vw, 100px);
    top: clamp(64px, 7.2vw, 78px);
    z-index: calc(var(--z-header) - 1);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 44px;
    min-height: 44px;
    padding: 4px;
    background: none;
    border: 0;
    color: #14120F;
    font-family: var(--font-serif);
    font-size: 11px;
    letter-spacing: 0.02em;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
        opacity var(--dur-med, 240ms) var(--ease-out),
        transform var(--dur-med, 240ms) var(--ease-out),
        visibility 0s linear var(--dur-med, 240ms),
        color var(--dur-fast) var(--ease-out);
}

.page-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.page-top[data-bg="media"],
.page-top[data-bg="dark"] {
    color: #FAF7F2;
    text-shadow: 0 0 2px rgba(20, 18, 15, 0.55), 0 1px 10px rgba(20, 18, 15, 0.5);
}

.page-top:hover { opacity: 0.65; }

.page-top:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 2px;
}

@media (max-width: 720px) {
    .page-top {
        left: var(--space-4);
        top: 64px;
    }
}
