.blog-post-header {
    margin-bottom: 2rem;
}

.blog-post-header h1 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.prose {
    color: var(--foreground);
    line-height: 1.8;
}

.prose h2,
.prose h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose p,
.prose ul,
.prose ol {
    margin: 0 0 1rem;
}

.prose ul,
.prose ol {
    padding-left: 1.25rem;
}

.prose a {
    text-decoration: underline;
}

.cover-image {
    width: 100%;
    border-radius: 18px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.admin-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.sidebar-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.post-list-item {
    display: block;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    background: #fff;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-actions a + a::before {
    content: "|";
    margin-right: 0.75rem;
    opacity: 0.5;
}

.table-wrap {
    overflow-x: auto;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    gap: 0.5rem;
}

.empty-state {
    padding: 2rem;
}

.inline-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.inline-checkbox input {
    width: auto;
}

.blog-listing {
    padding: 2rem 0 4rem;
    background: transparent;
}

.blog-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-item {
    padding: 1.6rem 0 1.8rem;
}

.blog-item + .blog-item {
    border-top: 1px solid rgba(0, 0, 0, 0.10);
}

.blog-meta {
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
    opacity: 0.7;
}

.blog-title {
    margin: 0 0 0.6rem;
    font-size: 1.55rem;
    line-height: 1.25;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
}

.blog-title a:hover {
    text-decoration: underline;
}

.blog-excerpt {
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.blog-empty {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.10);
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.blog-post-page {
    padding: 2rem 0 4rem;
    flex: 1;
}

.blog-post-back {
    margin: 0 0 1.5rem;
}

.blog-back-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.75;
}

.blog-back-link:hover {
    text-decoration: underline;
    opacity: 1;
}

.blog-post-title {
    margin: 0 0 2rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
}

.blog-post-excerpt {
    margin: 0 0 2rem;
    font-size: 1.08rem;
    line-height: 1.8;
    opacity: 0.8;
    font-weight: 600;
}

.blog-post-content {
    line-height: 1.85;
}

.blog-post-content > *:first-child {
    margin-top: 0;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    margin-top: 2.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.blog-post-content p,
.blog-post-content ul,
.blog-post-content ol,
.blog-post-content blockquote {
    margin: 0 0 1.2rem;
}

.blog-post-content ul,
.blog-post-content ol {
    padding-left: 1.4rem;
}

.blog-post-content a {
    text-underline-offset: 0.14em;
}

.button.danger {
    background: none;
    color: #dc2626;
    padding: 0;
    border: none;
}

.button.danger:hover {
    text-decoration: underline;
}

.input,
input[type="email"],
input[type="password"] {
    width: 100%;
    display: block;
    padding: 0.85rem 1rem;
    font: inherit;
    line-height: 1.4;
    color: #111;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.input:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #465d55;
    box-shadow: 0 0 0 3px rgba(70, 93, 85, 0.12);
}

@media (max-width: 960px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav {
        align-items: flex-start;
        padding: 0.9rem 0;
        flex-direction: column;
    }

    .hero {
        padding-top: 4rem;
    }

    .blog-title {
        font-size: 1.3rem;
    }

    .blog-excerpt {
        line-height: 1.7;
    }

    .blog-post-page {
        padding: 1.5rem 0 3rem;
    }

    .blog-post-excerpt,
    .blog-post-content {
        line-height: 1.75;
    }
}

.login-button {
    background: transparent;
    border: 1px solid #465d55;
    color: #465d55;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.login-button:hover {
    background: #465d55;
    color: #fff;
}

.blog-author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}

.blog-author-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-author-name {
  margin: 0;
  font-size: 20px;
}