body {
    scroll-behavior: smooth;
}
 
section {
    transition: background 0.3s;
}

:root {
    /* Palette */
    --color-bg: #f5f7f9; /* light gray background */
    --color-surface: #ffffff; /* surface/cards */
    --color-graphite: #2b2f33; /* graphite text */
    --color-steel-blue: #3a5f7d; /* steel blue headings / footer */
    --color-turquoise: #2ec4b6; /* accent / buttons */
    --color-muted: #8b98a6; /* muted text */
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.08);
}

/* Base */
body {
    background: var(--color-bg);
    color: var(--color-graphite);
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Headings and section titles */
.section-title {
    color: var(--color-steel-blue);
}

/* Buttons */
.btn-accent {
    background: var(--color-turquoise);
    border: none;
    color: #0b2522;
    font-weight: 600;
    transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn-accent:hover {
    background: #25b6a9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Cards and surfaces */
.surface {
    background: var(--color-surface);
    color: var(--color-graphite);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}
.surface-dark {
    background: #f0f3f6;
}
.service-card {
    background: var(--color-surface);
    color: var(--color-graphite);
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}
.service-card:hover {
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.12);
}

/* Header and footer */
.app-header {
    background: linear-gradient(180deg, #3a5f7d 0%, #2f526c 100%);
    color: #ffffff;
}
.footer {
    background: #2f526c;
    color: #ffffff;
}
.footer a {
    color: #dff7f4;
}

/* Posts list (Telegram-like card) */
.post-card {
    background-color: var(--color-surface);
    color: var(--color-graphite);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.post-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f6;
}
.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}
.post-channel-name {
    font-weight: 600;
}
.post-body {
    padding: 16px;
    flex-grow: 1;
    max-height: 180px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}
.post-footer {
    padding: 8px 16px;
    text-align: right;
    font-size: 0.8rem;
    color: var(--color-muted);
}
.post-footer .read-more {
    float: left;
    color: var(--color-turquoise);
    text-decoration: none;
} 