/* SGY Signal - Minimalist Tech & Science */

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

:root {
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --text: #111;
    --text-light: #555;
    --text-muted: #888;
    --bg: #fff;
    --bg-alt: #f9fafb;
    --border: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-dark);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.nav {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 100;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

/* Hero */
.hero {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
}

.hero-small {
    padding: 40px 0 30px;
}

.hero-small h1 {
    font-size: 2rem;
}

/* Articles Grid */
.articles {
    padding: 50px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    transition: border-color 0.2s;
}

.article-card:hover {
    border-color: var(--accent);
}

.article-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 32px;
    background: var(--bg-alt);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.category {
    color: var(--accent);
    font-weight: 500;
}

.date {
    color: var(--text-muted);
}

.article-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.article-card h2 a {
    color: var(--text);
}

.article-card h2 a:hover {
    color: var(--accent);
}

.article-card.featured h2 {
    font-size: 1.5rem;
}

.article-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Category Pills */
.categories {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cat-pill {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.2s;
}

.cat-pill:hover,
.cat-pill.active {
    border-color: var(--accent);
    color: var(--accent);
}

/* Article Page */
.article-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 20px 80px;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.article-header .meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.article-header .meta span {
    margin-right: 16px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2em 0 1em;
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5em 0 0.75em;
}

.article-content ul,
.article-content ol {
    margin: 1em 0 1.5em 1.5em;
}

.article-content li {
    margin-bottom: 0.5em;
}

.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 1.5em 0;
    color: var(--text-light);
    font-style: italic;
}

.article-content code {
    background: var(--bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5em 0;
}

/* Page Content */
.page {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 20px 80px;
}

.page h1 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.page h2 {
    font-size: 1.3rem;
    margin: 2em 0 1em;
}

.page p {
    margin-bottom: 1.2em;
    color: var(--text-light);
}

.page ul {
    margin: 1em 0 1.5em 1.5em;
    color: var(--text-light);
}

.page li {
    margin-bottom: 0.5em;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 60px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .article-card.featured {
        grid-template-columns: 1fr;
    }

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

    .footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
