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

:root {
    --bg: #f8fafc;
    --bg-alt: #f0f9ff;
    --text: #1e3a5f;
    --muted: #4a7dad;
    --accent: #0ea5e9;
    --accent-light: #e0f2fe;
    --border: #bfdbfe;
    --font-sans: 'DM Sans', sans-serif;
    --font-serif: 'DM Serif Display', serif;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.8; }

/* ── Nav ── */
.site-nav {
    background: var(--text);
    padding: 1rem 2rem;
}
.back-link {
    color: #93c5fd;
    font-size: 0.82rem;
    text-decoration: none;
    letter-spacing: 0.06em;
}
.back-link:hover { color: #fff; }

/* ── Hero ── */
.hero {
    background: var(--text);
    color: #fff;
    padding: 3.5rem 2rem 3rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
}
.hero-sub {
    font-size: 0.95rem;
    color: #93c5fd;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    font-weight: 300;
}
.hero-intro {
    font-size: 0.92rem;
    color: #bfdbfe;
    line-height: 1.85;
}

/* ── Sections ── */
.section {
    padding: 3.5rem 2rem;
    border-top: 1px solid var(--border);
}
.section--alt { background: var(--bg-alt); }
.section--dark {
    background: var(--text);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.section-inner { max-width: 760px; margin: 0 auto; }
.section h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--text);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}
.section--dark h2 { color: #fff; }
.section p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 0.9rem;
}
.section--dark p { color: #bfdbfe; }
.section p:last-child { margin-bottom: 0; }

/* ── Cards ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}
.card h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.card p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}
.card .tag {
    display: inline-block;
    font-size: 0.68rem;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ── Blog grid ── */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}
.article-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.article-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-bottom: 1px solid var(--border);
}
.article-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-tag {
    font-size: 0.68rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-bottom: 0.4rem;
}
.article-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.article-sub {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
}
.placeholder-badge {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.72rem;
    color: var(--muted);
    font-style: italic;
    opacity: 0.7;
}

/* ── Notice ── */
.notice {
    background: var(--accent-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 1.75rem;
    font-style: italic;
}

/* ── Links ── */
.site-link {
    display: inline-block;
    margin-top: 1.25rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(14,165,233,0.35);
    padding-bottom: 1px;
    transition: border-color 0.2s;
}
.site-link:hover { border-color: var(--accent); }
.site-link--light {
    color: #93c5fd;
    border-color: rgba(147,197,253,0.4);
}
.site-link--light:hover { color: #fff; border-color: #93c5fd; }

/* ── Footer ── */
.site-footer {
    background: var(--text);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    text-align: center;
    color: #93c5fd;
    font-size: 0.85rem;
}
.site-footer a { color: #bfdbfe; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .hero { padding: 2.5rem 1.5rem 2rem; }
    .section { padding: 2.5rem 1.5rem; }
    .card-grid, .article-grid { grid-template-columns: 1fr; }
}
