/* === Reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Variables === */
:root {
    --accent: #c45e10;
    --accent-light: #f4e8df;
    --text: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #888;
    --bg: #fafaf8;
    --bg-alt: #f0efec;
    --border: #ddd;
    --radius: 3px;
}

/* === Base === */
html {
    scroll-behavior: smooth;
}

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

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

a:hover {
    text-decoration: underline;
}

/* === Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
}

.brand-mark {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 0.8rem;
    background: var(--text);
    color: var(--bg);
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.brand-name {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
}

.header-nav a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.header-nav a:hover {
    color: var(--text);
    text-decoration: none;
}

@media (max-width: 500px) {
    .header-nav {
        gap: 1rem;
    }
    .header-nav a {
        font-size: 0.8rem;
    }
    .brand-name {
        display: none;
    }
}

/* === Intro === */
.intro {
    padding: 7rem 1.5rem 4rem;
    border-bottom: 1px solid var(--border);
}

.intro-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 3rem;
    align-items: end;
}

.intro h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
}

.intro-sub {
    margin-top: 1.25rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.65;
}

.intro-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 700px) {
    .intro-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .intro h1 {
        font-size: 2rem;
    }
    .intro-meta {
        flex-direction: row;
        gap: 2rem;
    }
}

/* === Section Shared === */
.section-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-heading {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.section-desc {
    margin-top: -1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === Products === */
.products {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.product-card {
    background: var(--bg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-platform-icon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 1.4rem;
    height: 1.4rem;
    color: var(--text-muted);
    opacity: 0.4;
}

.product-card-alt {
    background: var(--bg-alt);
}

.product-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.product-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.product-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
}

.product-links {
    margin-top: 1.25rem;
    display: flex;
    gap: 1.25rem;
}

.product-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
}

.product-link:hover {
    text-decoration: underline;
}

@media (max-width: 800px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* === Reading (Reviews) === */
.reading {
    padding: 3.5rem 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

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

.article-card {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.article-card:last-child {
    border-bottom: none;
}

.article-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.article-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0.25rem 0 0.3rem;
    line-height: 1.4;
}

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

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

.article-source {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.article-card > p:last-child {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === News === */
.news {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.news-card {
    background: var(--bg);
    padding: 1.5rem;
}

.news-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.news-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.35rem 0 0.5rem;
    line-height: 1.4;
}

.news-card h3 a {
    color: var(--text);
}

.news-card h3 a:hover {
    color: var(--accent);
}

.news-card > p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Daily news loaded via JS */
#daily-news {
    margin-top: 2rem;
}

#daily-news .section-heading {
    margin-top: 1rem;
}

.daily-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.daily-news-card {
    background: var(--bg);
    padding: 1.5rem;
}

.daily-news-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.25rem 0 0.4rem;
    line-height: 1.4;
    color: var(--text);
}

.daily-news-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.daily-news-card .news-topic {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

@media (max-width: 700px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .daily-news-grid {
        grid-template-columns: 1fr;
    }
}

/* === Footer === */
.site-footer {
    padding: 3rem 1.5rem;
    background: var(--text);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.footer-company {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.footer-company .brand-mark {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.footer-company strong {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-address {
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: right;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-copy {
    grid-column: 1 / -1;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .footer-links {
        text-align: left;
        flex-direction: row;
        gap: 1rem;
    }
}
