@import url('base.css');

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    max-width: 680px;
    margin: 0 auto;
}

.topbar-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.theme-toggle {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.theme-toggle:hover { color: var(--text); }

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

.page {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
}

h1 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    margin-bottom: 1.25rem;
}

.body-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 60ch;
    margin-bottom: 2rem;
}

.body-text strong {
    color: var(--text);
    font-weight: 400;
}

.cta {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    margin-bottom: 0.5rem;
}

.cta:hover { opacity: 0.75; }

.note {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

h2 {
    font-size: 1rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.topic-list {
    list-style: none;
    margin-bottom: 1rem;
}

.topic-list li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    align-items: baseline;
}

.topic-list li:first-child { border-top: 1px solid var(--border); }

.topic-list .idx {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--border);
    flex-shrink: 0;
}

.credits p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 60ch;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--border);
}

@media (max-width: 480px) {
    .page { padding: 1.5rem 1.25rem 4rem; }
    .topbar { padding: 1rem 1.25rem; }
    .footer { flex-direction: column; align-items: flex-start; }
}
