/* ==========================================================================
   pages.css — Standalone page styles (markdown pages, landing page)
   ========================================================================== */

/* ── Markdown page ── */
.md-page {
    max-width: 720px; width: 100%; position: relative; z-index: 1;
}
.md-page h1 { font-size: 1.2rem; font-weight: 600; color: var(--text-bright); margin-bottom: 0.5em; text-shadow: 0 0 10px rgba(232,148,60,0.2); }
.md-page h2 { font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-top: 2em; margin-bottom: 0.6em; }
.md-page h2::before { content: '# '; color: var(--text-muted); }
.md-page p, .md-page li { font-size: 0.82rem; font-weight: 300; color: var(--text-dim); line-height: 1.7; margin-bottom: 0.6em; }
.md-page em { color: var(--text-muted); }
.md-page strong { color: var(--text); font-weight: 500; }
.md-page ul { list-style: none; padding-left: 0; margin-bottom: 0.8em; }
.md-page li::before { content: '- '; color: var(--text-muted); }
.md-page a { color: var(--text); }
.md-page a:hover { color: var(--text-glow); }
.md-page hr { border: none; border-top: 1px solid var(--border); margin: 1.5em 0; }
.md-page code { background: rgba(200,120,48,0.1); padding: 0.15em 0.4em; border-radius: 2px; font-size: 0.8rem; }
.md-page .back-link { display: inline-block; margin-bottom: 1.5em; font-size: 0.8rem; color: var(--text-muted); }
.md-page .back-link::before { content: '< '; }
.md-page .back-link:hover { color: var(--text); }

/* ── Landing / welcome page ── */
.landing-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-bright);
    margin-bottom: 0.3em;
    text-shadow: 0 0 20px rgba(232,148,60,0.3), 0 0 40px rgba(232,148,60,0.1);
}
.landing-title .dot, .dot {
    color: var(--text-glow);
    text-shadow: 0 0 15px rgba(255,168,84,0.5);
}
.landing-nav-header {
    display: flex;
    gap: 0.8em;
    flex-wrap: wrap;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}
.landing-nav-header a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
}
.landing-nav-header a:hover {
    color: var(--text-glow);
}
.landing-section-label[id] {
    scroll-margin-top: 6.5em;
}
.landing-intro {
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 720px;
    margin: 0.5em 0 1.5em 0;
}
.landing-section-label,
.welcome-section-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-bright);
    margin-top: 2.5em;
    margin-bottom: 0.3em;
    font-weight: 600;
}
.landing-section-label::before,
.welcome-section-label::before {
    content: '# ';
    color: var(--text-faint);
}
.landing-section-intro {
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--text-dim);
    margin: 0 0 1em 0;
}
.landing-section-intro a {
    color: var(--text-bright);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.landing-section-intro a:hover {
    color: var(--text-glow);
}

/* ── Card grid ── */
.landing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6em;
}
.landing-card {
    display: flex;
    flex-direction: column;
    padding: 0.8em 1em;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.landing-card:hover {
    border-color: rgba(200,120,48,0.4);
    background: rgba(200,120,48,0.04);
}
.landing-card-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-bright);
    margin-bottom: 0.3em;
    transition: color 0.2s ease;
}
.landing-card-title::before {
    content: '> ';
    color: var(--text-faint);
}
.landing-card:hover .landing-card-title {
    color: var(--text-glow);
    text-shadow: 0 0 12px rgba(255,168,84,0.3);
}
.landing-card-desc {
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.5;
}
.landing-card-retired {
    opacity: 0.4;
    cursor: default;
}
.landing-card-retired .landing-card-title {
    text-decoration: line-through;
}
@media (max-width: 900px) {
    .landing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .landing-grid { grid-template-columns: 1fr; }
}

/* ── Welcome page footer ── */
.welcome-footer {
    margin-top: 2.5em;
    font-size: 0.7rem;
}
.welcome-footer a {
    color: var(--text-muted);
}
.welcome-footer a:hover {
    color: var(--text-bright);
}
