@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

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

html, body {
    margin: 0;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fafafa;
}

main {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

h1:focus {
    outline: none;
}

/* Feed */

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

.loading,
.empty {
    color: #999;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Card */

.card {
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 1rem;
}

.card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.card-title {
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    color: #111;
    text-decoration: none;
}

.card-date {
    font-size: 0.75rem;
    color: #aaa;
    white-space: nowrap;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.card-content {
    margin: 0;
    font-size: 0.875rem;
    color: #333;
    font-weight: 400;
    line-height: 1.7;
}

.card-source {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.5rem;
    color: #bbb;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Error UI */

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 0.8rem;
}
