*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}

:root {
    --bg-page:    #1a1a1e;
    --bg-surface: #222228;
    --bg-card:    #26262e;
    --border:     rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.14);

    --navy:       #1a2b4a;
    --navy-mid:   #243554;
    --navy-btn:   #1e3260;

    --neon:       #3fffd2;
    --neon-dim:   rgba(63,255,210,0.1);
    --neon-glow:  0 0 14px rgba(63,255,210,0.4);

    --text-primary:   #e8e8e2;
    --text-secondary: #9a9a96;
    --text-muted:     #5e5e5a;

    --radius-card: 13px;
    --radius-btn:  8px;
    --transition:  160ms ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 0 24px 72px;
}

/* Header */
header {
    max-width: 820px;
    margin: 0 auto;
    padding: 52px 0 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.header-title {
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.header-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.header-hint {
    display: inline-block;
    font-size: 0.78rem;
    font-style: sans-serif;
    color: var(--neon);
    transform: skewX(-10deg);
    padding: 7px 14px;
    border-left: 2px solid var(--neon);
    background: var(--neon-dim);
    border-radius: 0 6px 6px 0;
    line-height: 1.55;
    opacity: 0.85;
}

/* Project rows */
main {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.project-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 18px 20px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color var(--transition), background var(--transition);
}

.project-card:hover {
    border-color: var(--border-hover);
    background: #2b2b34;
}

.card-top {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 10px;
}

.project-index {
    flex-shrink: 0;
    width: 27px;
    height: 27px;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #7a9ec8;
    letter-spacing: 0.02em;
}

.project-title {
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 11px;
    flex-wrap: wrap;
}

.tag {
    font-size: 11px;
    font-weight: 500;
    color: #6ab3e8;
    background: rgba(56,130,210,0.1);
    border: 1px solid rgba(56,130,210,0.18);
    border-radius: 4px;
    padding: 2px 8px;
    letter-spacing: 0.03em;
}

.card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.65;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    font-style: italic;
}

/* PDF button — outside the card */
.btn-pdf {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 13px;
    background: var(--navy-btn);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-btn);
    color: #7a9ec8;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
    white-space: nowrap;
    min-width: 62px;
    align-self: stretch;
}

.btn-pdf:hover {
    background: #0d1f38;
    border-color: var(--neon);
    color: var(--neon);
    box-shadow: var(--neon-glow);
}

.btn-pdf svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Footer */
footer {
    max-width: 820px;
    margin: 52px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer p {
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 560px) {
    .header-title { font-size: 1.3rem; }

    .project-row { flex-wrap: wrap; }

    .btn-pdf {
        flex-direction: row;
        align-self: auto;
        width: 100%;
        justify-content: center;
        gap: 7px;
        padding: 9px 14px;
        font-size: 11px;
    }
}
