* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
header { background: #fff; border-bottom: 1px solid #ddd; padding: 1rem 0; margin-bottom: 2rem; }
header .container { display: flex; justify-content: space-between; align-items: center; }
header h1 { font-size: 1.5rem; }
header h1 a { color: #333; text-decoration: none; }
nav ul { list-style: none; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
nav a { color: #666; text-decoration: none; transition: color 0.3s; }
nav a:hover { color: #333; }
.menu-root { margin-right: 0.75rem; font-weight: 500; }
.btn { display: inline-block; padding: 0.5rem 1rem; background: #007bff; color: #fff; text-decoration: none; border-radius: 4px; border: none; cursor: pointer; transition: background 0.3s; }
.btn:hover { background: #0056b3; }
.btn-secondary { background: #6c757d; }
.btn-secondary:hover { background: #545b62; }
.btn-danger { background: #dc3545; }
.btn-danger:hover { background: #c82333; }
.btn-small { padding: 0.25rem 0.5rem; font-size: 0.875rem; }
main { min-height: 60vh; }
footer { background: #fff; border-top: 1px solid #ddd; padding: 2rem 0; margin-top: 3rem; text-align: center; color: #666; }
.footer-links { margin-top: 0.5rem; }
.footer-links a { color: #2563eb; text-decoration: none; }
.footer-hosted { margin-top: 0.5rem; font-size: 0.875rem; color: #666; }
.footer-hosted a { color: #2563eb; text-decoration: none; }
.alert { padding: 1rem; margin-bottom: 1rem; border-radius: 4px; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.5rem; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; font-family: inherit; }
.form-group textarea { min-height: 200px; resize: vertical; }

.posts-list { display: grid; gap: 1.5rem; }
.post-card { background: #fff; padding: 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.post-card h2 { margin-bottom: 0.5rem; }
.post-card h2 a { color: #333; text-decoration: none; }
.post-card h2 a:hover { color: #007bff; }
.post-meta { display: flex; gap: 1rem; margin-bottom: 1rem; font-size: 0.875rem; color: #666; flex-wrap: wrap; }
.access-badge { padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 500; }
.access-0 { background: #d1ecf1; color: #0c5460; }
.access-1 { background: #fff3cd; color: #856404; }
.access-2 { background: #f8d7da; color: #721c24; }
.post-excerpt { color: #666; margin-bottom: 1rem; }
.post-actions { display: flex; gap: 0.5rem; }
.inline-form { display: inline; }

.post-single { background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 2rem; }
.post-header h1 { margin-bottom: 1rem; }
.post-tags { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tag { background: #e9ecef; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.875rem; color: #495057; }
.post-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.gallery-item img { width: 100%; height: auto; border-radius: 4px; transition: transform 0.3s; }
.gallery-item a:hover img { transform: scale(1.05); }
.gallery-item .caption { margin-top: 0.5rem; font-size: 0.875rem; color: #666; text-align: center; }
.post-content { margin-top: 2rem; line-height: 1.8; }
.post-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 1rem 0; }
.post-content h2 { margin-top: 2rem; margin-bottom: 1rem; }
.post-content p { margin-bottom: 1rem; }
.post-navigation { text-align: center; }

.error-404 { text-align: center; padding: 4rem 2rem; }
.error-404 h1 { font-size: 6rem; color: #ddd; margin-bottom: 1rem; }
.error-404 h2 { font-size: 2rem; margin-bottom: 1rem; }
.error-404 p { color: #666; margin-bottom: 2rem; }

.login-form, .guest-access-form { max-width: 400px; margin: 3rem auto; background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.login-form h1 { margin-bottom: 2rem; text-align: center; }
.guest-access-form h1 { margin-bottom: 1rem; text-align: center; }
.guest-access-form p { margin-bottom: 2rem; text-align: center; color: #666; }

.section-description { margin-bottom: 1rem; color: #555; }
.section-content { margin-bottom: 1.5rem; }

.project-root h1 { margin-bottom: 1rem; }
.project-intro { margin-bottom: 1.5rem; }
.project-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.project-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 1rem; }
.project-card h2 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.project-card h2 a { color: #0f172a; text-decoration: none; }
.project-card h2 a:hover { color: #1d4ed8; }
.project-card p { color: #64748b; margin: 0; }
