/* Links / Hub page — loaded only by links.njk */

.links-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: linksPageFade 0.4s ease both;
}

@keyframes linksPageFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .links-page { animation: none; }
}

/* ── Header ── */

.links-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 2px solid var(--glow-color);
    background-image: url('/assets/images/author-portrait.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 18px rgba(241,196,15,0.25);
    margin-bottom: 4px;
}

.links-name {
    font-family: var(--typewriter-font);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
    margin: 0;
    text-align: center;
}

.links-tagline {
    font-family: var(--serif-font);
    font-style: italic;
    color: #999;
    font-size: 0.95rem;
    text-align: center;
    margin: 6px 0 16px;
}

/* ── Featured book card ── */

.links-featured {
    width: 100%;
    border: 1px solid var(--glow-color);
    padding: 18px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(241,196,15,0.04);
    box-sizing: border-box;
}

.links-featured-cover {
    width: 72px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
    display: block;
}

.links-featured-eyebrow {
    font-family: var(--typewriter-font);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--glow-color);
    margin: 0 0 5px;
}

.links-featured-title {
    font-family: var(--serif-font);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 6px;
    line-height: 1.3;
}

.links-featured-desc {
    font-family: var(--serif-font);
    font-size: 0.82rem;
    color: #999;
    margin: 0 0 12px;
    line-height: 1.55;
}

.links-featured-btn {
    display: inline-block;
    font-family: var(--typewriter-font);
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: var(--glow-color);
    text-decoration: none;
    border: 1px solid var(--glow-color);
    padding: 7px 14px;
    transition: background 0.15s, color 0.15s;
}

.links-featured-btn:hover,
.links-featured-btn:focus {
    background: var(--glow-color);
    color: #0d0d0d;
    outline: none;
}

/* ── Link buttons ──
   To add a new link: copy one <a class="link-btn"> block and update
   the href, label text, and gtag event_label.
   To reorder: drag the <a> blocks up or down in links.njk.
*/

.links-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 14px 20px;
    font-family: var(--typewriter-font);
    font-size: 0.88rem;
    letter-spacing: 1px;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid #3a3a3a;
    background: rgba(255,255,255,0.02);
    box-sizing: border-box;
    text-align: center;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.link-btn:hover,
.link-btn:focus {
    border-color: var(--glow-color);
    color: var(--glow-color);
    background: rgba(241,196,15,0.05);
    outline: none;
}

/* ── Substack nudge ── */

.links-substack {
    width: 100%;
    border-top: 1px solid #2a2a2a;
    padding-top: 24px;
    margin-top: 8px;
    text-align: center;
}

.links-substack p {
    font-family: var(--serif-font);
    font-style: italic;
    color: #888;
    font-size: 0.9rem;
    margin: 0 0 12px;
    line-height: 1.6;
}

.links-substack-btn {
    display: inline-block;
    font-family: var(--typewriter-font);
    font-size: 0.78rem;
    letter-spacing: 1px;
    color: #888;
    text-decoration: none;
    border: 1px solid #3a3a3a;
    padding: 10px 22px;
    transition: border-color 0.15s, color 0.15s;
}

.links-substack-btn:hover,
.links-substack-btn:focus {
    border-color: var(--glow-color);
    color: var(--glow-color);
    outline: none;
}

/* ── Mobile tightening ── */

@media (max-width: 480px) {
    .links-page {
        padding: 0 16px 60px;
    }

    .links-featured {
        padding: 14px;
        gap: 12px;
    }

    .links-featured-cover {
        width: 60px;
    }
}
