/* ============================================================
   ghsj.me/blog — landing page styles
   Shares the design language of the posts (tokens duplicated on
   purpose: each page stays self-contained on this static site).
   ============================================================ */

:root {
    --accent: #667eea;
    --accent-2: #764ba2;
    --accent-ink: #4f5fd6;
    --bg: #f7f8fc;
    --bg-card: #ffffff;
    --text: #1f2430;
    --text-soft: #5a6172;
    --text-faint: #8a90a2;
    --line: #dfe3ef;
    --shadow: 0 10px 30px rgba(31, 36, 48, 0.08);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent-ink: #9aa8ff;
        --bg: #12141c;
        --bg-card: #1a1d29;
        --text: #e8eaf2;
        --text-soft: #aab0c2;
        --text-faint: #767d92;
        --line: #2b3042;
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
        color-scheme: dark;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-ink);
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.masthead {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #ffffff;
    padding: 28px clamp(16px, 4vw, 40px) 46px;
}

.masthead nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.masthead nav a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.masthead nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.masthead nav .sep {
    color: rgba(255, 255, 255, 0.45);
}

.masthead .mast-inner {
    max-width: 46rem;
    margin: 0 auto;
}

.masthead h1 {
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    letter-spacing: -0.02em;
}

.masthead p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 48ch;
}

main {
    max-width: 46rem;
    margin: -24px auto 60px;
    padding: 0 clamp(16px, 4vw, 24px);
}

.post-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 26px 28px;
    margin-bottom: 18px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(31, 36, 48, 0.14);
}

.post-card .pc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.post-card .pc-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-ink);
    border: 1px solid var(--accent-ink);
    border-radius: 999px;
    padding: 2px 9px;
}

.post-card h2 {
    font-size: 1.45rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.post-card:hover h2 {
    color: var(--accent-ink);
}

.post-card p {
    color: var(--text-soft);
    font-size: 0.98rem;
}

.coming-soon {
    text-align: center;
    color: var(--text-faint);
    font-size: 0.92rem;
    margin-top: 30px;
}

footer {
    text-align: center;
    color: var(--text-faint);
    font-size: 0.88rem;
    padding: 0 16px 40px;
}

footer a {
    color: var(--text-soft);
}
