/* ==========================================================================
   Base: the page furniture
   Sits on the shared enchanted theme (../../theme.css) and only uses its
   tokens, so every rami.party theme keeps working here.
   ========================================================================== */

/* An author display rule beats the hidden attribute, and half the controls
   here are hidden per shelf. */
[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Header -------------------------------------------------------------------- */
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

/* Hero: deliberately short, the search box is the point of this page -------- */
.hero {
    text-align: center;
    padding: 34px 0 20px;
}

.eyebrow {
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.eyebrow span {
    color: var(--gold);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.7rem, 5vw, 3.1rem);
    line-height: 1.08;
}

.glow {
    background: var(--spell);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* The flat themes have no gradient to clip, so the word would vanish. */
:root[data-rami-theme="slate"] .glow,
:root[data-rami-theme="daylight"] .glow,
:root[data-rami-theme="contrast"] .glow {
    background: none;
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.hero-sub {
    max-width: 60ch;
    margin: 14px auto 0;
    color: var(--text-muted);
}

.hero-sub strong {
    color: var(--text);
}

/* Shared little buttons ----------------------------------------------------- */
.link-btn {
    border: 0;
    background: none;
    padding: 0;
    color: var(--accent-2, var(--cyan));
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link-btn:hover {
    color: var(--text);
}

.link-btn.is-done {
    color: var(--gold);
}

.empty-state {
    margin: 40px auto;
    text-align: center;
    color: var(--text-muted);
}

/* Footer & back to top ------------------------------------------------------ */
.site-footer {
    margin-top: 60px;
}

.footer-bottom {
    text-align: center;
    display: grid;
    gap: 6px;
    font-size: 0.88rem;
}

.footer-bottom a {
    color: var(--accent-2, var(--cyan));
    text-decoration: underline;
    text-underline-offset: 3px;
}

.to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 6;
    width: 44px;
    height: 44px;
    border: 1px solid var(--card-border);
    border-radius: 50%;
    background: var(--card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.to-top:hover {
    border-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {

    .card,
    .subject,
    .shelf,
    .more__summary::before {
        transition: none;
    }

    .card:hover {
        transform: none;
    }
}
