:root {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --uci-blue: #003262;
    --uci-blue-light: #004b87;
    --uci-navy: #012640;
    --uci-gold: #fdb515;
    --uci-gray: #e9eff5;
    --uci-white: #ffffff;
    color-scheme: light;
}

body {
    margin: 0;
    background: var(--uci-gray);
    color: var(--uci-navy);
}

.site-header {
    background: linear-gradient(135deg, var(--uci-blue), var(--uci-blue-light));
    color: var(--uci-white);
    box-shadow: 0 2px 12px rgb(0 0 0 / 0.15);
}

.site-footer {
    background: var(--uci-navy);
    color: var(--uci-white);
    padding: 0.75rem 0;
}

.site-header__content,
.site-footer .wrapper,
.hero-overlay .wrapper,
main.wrapper {
    width: min(960px, 90vw);
    margin: 0 auto;
}

.site-header__content {
    padding: 1.75rem 0 1rem;
}

.brand {
    color: var(--uci-white);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.4rem;
    letter-spacing: 0.03em;
}

.tagline {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    color: rgb(255 255 255 / 0.85);
}

.hero-banner {
    position: relative;
    overflow: hidden;
    max-height: 240px;
}

.hero-banner img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    filter: saturate(0.85);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(180deg, rgb(0 0 0 / 0) 30%, rgb(0 0 0 / 0.5));
    padding: 1.5rem;
}

.hero-overlay p {
    margin: 0;
    color: var(--uci-white);
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 6px rgb(0 0 0 / 0.4);
}

main.wrapper {
    padding: 2rem 0 3rem;
}

.feed-header {
    margin-bottom: 1.5rem;
}

.feed-header h1,
.feed-header h2 {
    color: var(--uci-blue);
    margin-bottom: 0.25rem;
}

.feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-card,
.profile-card {
    background: var(--uci-white);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.1);
    border: 1px solid rgb(0 0 0 / 0.04);
}

.post-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--uci-blue-light);
}

.post-card .author {
    font-weight: 600;
    color: var(--uci-blue);
    text-decoration: none;
}

.post-card .author:hover,
.post-card .author:focus {
    text-decoration: underline;
    color: var(--uci-gold);
}

.post-card time {
    font-size: 0.85rem;
    color: rgb(0 0 0 / 0.55);
}

.post-card .message {
    font-size: 1rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--uci-navy);
}

.profile-card h1 {
    margin-top: 0;
    color: var(--uci-blue);
}

.bio-full {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin-bottom: 0;
}

.error {
    text-align: center;
    padding: 2rem;
}

.pagination {
    margin-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-link {
    color: var(--uci-white);
    background: var(--uci-blue);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
    transition: background 0.2s ease;
}

.page-link:hover,
.page-link:focus {
    background: var(--uci-blue-light);
}

.page-link.disabled {
    background: rgb(0 0 0 / 0.2);
    cursor: not-allowed;
    box-shadow: none;
}

.page-status {
    font-weight: 600;
    color: var(--uci-blue);
}

@media (max-width: 640px) {
    .hero-banner img {
        height: 180px;
    }

    .post-card,
    .profile-card {
        padding: 1rem;
    }
}
