:root {
    --accent: #6C5CE7;
    --bg: #f4f5f9;
    --card-bg: #ffffff;
    --text: #1f2230;
    --muted: #6b7080;
    --border: #e6e7ee;
    --radius: 16px;
}

* { box-sizing: border-box; }

body.public-page {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, white) 0%, var(--bg) 320px);
    color: var(--text);
    min-height: 100vh;
}

.profile-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

.profile-card {
    text-align: center;
    margin-bottom: 28px;
}

.avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    overflow: hidden;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-card h1 {
    font-size: 22px;
    margin: 0 0 4px;
}

.handle {
    color: var(--muted);
    margin: 0 0 12px;
    font-size: 14px;
}

.bio {
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    max-width: 420px;
    margin: 0 auto;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(20, 20, 40, 0.08);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.link-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--accent);
}
.link-icon svg { width: 100%; height: 100%; }

.link-title { flex: 1; }

.blog-preview h2 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    margin: 0 0 16px;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog-card {
    display: flex;
    gap: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    overflow: hidden;
    transition: box-shadow .15s ease;
}
.blog-card:hover { box-shadow: 0 10px 24px rgba(20, 20, 40, 0.08); }

.blog-cover {
    width: 96px;
    height: 96px;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-card-body {
    padding: 14px 16px 14px 0;
    padding-left: 0;
}
.blog-card:not(:has(.blog-cover)) .blog-card-body { padding-left: 16px; }

.blog-card-body h3 {
    font-size: 15px;
    margin: 0 0 4px;
}
.blog-card-body p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 8px;
    line-height: 1.4;
}
.blog-date {
    font-size: 12px;
    color: var(--muted);
}

.view-all {
    display: inline-block;
    margin-top: 14px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.site-footer {
    text-align: center;
    margin-top: 48px;
    font-size: 12px;
    color: var(--muted);
}

.empty-note { color: var(--muted); text-align: center; }

/* Blog single/list page */
.post-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.back-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px;
}
.post-cover {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 20px;
    max-height: 320px;
    object-fit: cover;
}
.post-wrap h1 { font-size: 26px; margin: 0 0 8px; }
.post-meta { color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.post-content { line-height: 1.7; font-size: 16px; }
.blog-list-full { margin-top: 20px; }
