:root {
    --bg: #FAFBFD;
    --bg-gradient-start: #F0F4FF;
    --bg-gradient-end: #E8EDFA;
    --text: #1A1A2E;
    --text-muted: #5A5A7A;
    --text-body: #2A2A4A;
    --border: #EEF1F7;
    --accent: #1A1A2E;
    --accent-contrast: #FFFFFF;
    --link: #3D5AFE;
    --radius: 999px;
    --max-content: 680px;
    --max-site: 720px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.body-home {
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
}

main { flex: 1; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Header --- */
.site-header {
    padding: 1.25rem 1.5rem;
}
.site-header-inner {
    max-width: var(--max-site);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* --- Hero (home) --- */
.hero {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
}
.hero-inner { max-width: 480px; }
.hero-title {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.5rem;
    background: var(--accent);
    color: var(--accent-contrast);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.15);
}
.cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(26, 26, 46, 0.22);
    text-decoration: none;
}
.cta svg { width: 18px; height: 18px; fill: currentColor; }

/* --- Footer --- */
.site-footer {
    padding: 2rem 1.5rem;
}
.site-footer-inner {
    max-width: var(--max-site);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.site-footer-inner a {
    color: var(--text-muted);
}
.site-footer-inner a:hover { color: var(--text); text-decoration: none; }

/* --- Content page (privacy, listings, posts) --- */
.page, .post {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.page-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.page-header h1 {
    font-size: 1.75rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}
.page-description {
    font-size: 1rem;
    color: var(--text-muted);
}
.page-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.page-content h2 {
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}
.page-content p, .page-content li {
    font-size: 0.95rem;
    color: var(--text-body);
}
.page-content ul { padding-left: 1.2rem; margin-top: 0.3rem; }
.page-content li { margin-bottom: 0.35rem; }

/* --- Post listing (blog / release index) --- */
.post-list { list-style: none; }
.post-list li {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}
.post-list li:last-child { border-bottom: none; }
.post-list a {
    display: block;
    color: var(--text);
}
.post-list a:hover { text-decoration: none; }
.post-list a:hover h3 { color: var(--text-muted); }
.post-list time {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
}
.post-list h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
    transition: color 0.15s ease;
    letter-spacing: -0.01em;
}
.post-list .post-excerpt {
    font-size: 0.95rem;
    color: var(--text-body);
}
.post-list-empty {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Single post (blog/release detail) --- */
.post-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
}
.post-meta a { color: var(--text-muted); }
.post-meta .sep { color: #C0C5D0; margin: 0 0.4rem; }
.post-title {
    font-size: 1.75rem;
    line-height: 1.35;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}
.post-body h2 {
    font-size: 1.15rem;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}
.post-body p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-body);
}
.post-body ul, .post-body ol { margin: 0.5rem 0 1rem 1.2rem; }
.post-body li {
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: var(--text-body);
}
.post-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0 1.5rem;
}
.post-body strong { color: var(--text); }
