@font-face {
    font-family: 'Jost';
    src: url('../build/fonts/Jost-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Jost';
    src: url('../build/fonts/Jost-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

:root {
    --bg: #0b1020;
    --bg-soft: #11182f;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: #141c36;
    --line: rgba(255, 255, 255, 0.08);
    --text: #edf2ff;
    --muted: rgba(237, 242, 255, 0.7);
    --accent: #7dd3fc;
    --accent-strong: #38bdf8;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: 'Jost', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 28%),
        radial-gradient(circle at right top, rgba(125, 211, 252, 0.12), transparent 24%),
        linear-gradient(180deg, #08111f 0%, #0b1020 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    padding: 24px;
}

.topbar,
.hero-panel,
.project-list,
.project-header,
.composer,
.timeline,
.auth-card {
    border: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 24px;
    margin-bottom: 22px;
}

.topbar h1,
.hero-panel h1,
.auth-card h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
}

.eyebrow,
.brand-mark,
.muted,
.meta,
.activity-label,
.character-count,
.timeline-date,
.timeline-author,
.timeline-header p,
.info-grid span {
    color: var(--muted);
}

.hero-panel,
.project-list,
.project-header,
.composer,
.timeline {
    border-radius: 24px;
}

.hero-panel {
    padding: 24px;
    margin-bottom: 22px;
}

.hero-panel p {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.project-list {
    overflow: hidden;
}

.project-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-top: 1px solid var(--line);
    transition: transform 160ms ease, background-color 160ms ease;
}

.project-card:first-child {
    border-top: 0;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-1px);
}

.project-main h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
}

.project-side {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 360px;
}

.activity-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 0 0 6px rgba(125, 211, 252, 0.12);
    flex: 0 0 auto;
}

.project-page {
    display: grid;
    gap: 20px;
}

.project-header,
.composer,
.timeline {
    padding: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.info-grid div {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-grid span,
.timeline-date {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.info-grid strong {
    font-size: 1.1rem;
}

.update-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.update-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.18rem rgba(125, 211, 252, 0.16);
}

.character-count {
    text-align: right;
    margin-top: 6px;
    font-size: 0.9rem;
}

.form-message {
    margin-top: 12px;
    min-height: 1.4em;
    color: var(--accent);
}

.timeline-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.timeline-header h2 {
    margin: 0;
    font-size: 1.6rem;
}

.timeline-list {
    display: grid;
    gap: 14px;
    max-height: 60vh;
    overflow: auto;
    padding-right: 8px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.timeline-message {
    white-space: pre-wrap;
    font-size: 1.04rem;
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
}

.auth-card {
    width: min(520px, calc(100vw - 32px));
    padding: 28px;
    border-radius: 28px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.auth-form {
    margin-top: 22px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    border: 0;
    color: #04111d;
    font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #04111d;
    filter: brightness(1.02);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 900px) {
    .project-card,
    .timeline-item,
    .timeline-header,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .project-side {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .app-shell {
        padding: 14px;
    }

    .project-card,
    .project-header,
    .composer,
    .timeline,
    .hero-panel,
    .topbar,
    .auth-card {
        border-radius: 18px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

