/* Blog-specific styles, layered on top of the shared oldercub.com design system. */

.blog-main {
    padding: 2rem 0 4rem;
}

.post-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.post-list-item {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 2rem;
}

.post-list-item:last-child {
    border-bottom: none;
}

.post-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 4.5vw, 1.9rem);
    color: var(--heading);
    letter-spacing: 0.02em;
    margin-bottom: 0.4rem;
}

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

.post-title a:hover {
    color: var(--link-hover);
}

.post-meta {
    font-size: 0.8rem;
    color: var(--text);
    opacity: 0.65;
    margin-bottom: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
}

.post-meta a {
    color: inherit;
    opacity: 1;
}

.post-excerpt {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.9;
}

.post-content {
    font-size: 1rem;
    line-height: 1.85;
}

.post-content p {
    margin-bottom: 1.4rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--heading);
    margin: 2rem 0 0.75rem;
    letter-spacing: 0.02em;
}

.post-content img,
.post-content video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.25rem 0;
}

.post-content blockquote {
    border-left: 3px solid var(--rule);
    padding-left: 1rem;
    margin: 1.5rem 0;
    opacity: 0.85;
    font-style: italic;
}

.post-tags {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tags a {
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
    border: 1px solid var(--social-border);
    border-radius: 999px;
    text-decoration: none;
    opacity: 0.85;
}

.post-tags a:hover {
    background: var(--social-hover-bg);
    border-color: var(--social-hover-border);
    color: var(--social-hover-text);
    opacity: 1;
}

.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    font-size: 0.9rem;
}

.no-posts {
    opacity: 0.75;
    font-style: italic;
}

/* ─── Comment form & Webmention form — matched to the site's contact-form style ─── */

#respond,
#webmention-form {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
}

#reply-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    color: var(--heading);
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

#reply-title small a {
    font-size: 0.7rem;
    font-family: 'Lora', Georgia, serif;
    letter-spacing: normal;
}

.comment-notes,
#webmention-source-description {
    font-size: 0.8rem;
    color: var(--text);
    opacity: 0.65;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.comment-notes a,
#webmention-source-description a {
    opacity: 1;
}

#commentform p,
#webmention-form p {
    margin: 0.65rem 0;
}

#commentform label,
#webmention-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--heading);
    margin-bottom: 0.35rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    letter-spacing: 0.02em;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea,
#webmention-form input[type="url"] {
    display: block;
    width: 100%;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: color-mix(in srgb, var(--heading) 5%, var(--bg));
    color: var(--text);
    font-family: 'Lora', Georgia, serif;
    font-size: 0.88rem;
    padding: 0.6rem 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus,
#commentform textarea:focus,
#webmention-form input[type="url"]:focus {
    border-color: var(--heading);
}

#commentform textarea {
    resize: vertical;
    min-height: 8rem;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.comment-form-cookies-consent label {
    color: var(--text);
    font-family: 'Lora', Georgia, serif;
    margin-bottom: 0;
}

#commentform input[type="submit"],
#webmention-form input[type="submit"] {
    display: inline-block;
    background: var(--heading);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    padding: 0.6rem 2.5rem;
    cursor: pointer;
    transition: filter 0.25s;
    appearance: none;
    -webkit-appearance: none;
}

#commentform input[type="submit"]:hover,
#webmention-form input[type="submit"]:hover {
    filter: brightness(1.15);
}

/* ─── Comment list (displayed comments) ─── */

#comments {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    color: var(--heading);
    letter-spacing: 0.02em;
    margin: 2.5rem 0 1.25rem;
}

ol.commentlist,
ul.children {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

ul.children {
    margin-top: 1.25rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--rule);
}

.comment-body {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1.5rem;
}

ul.children .comment-body {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-author.vcard {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.4rem;
}

.comment-author.vcard .avatar {
    border-radius: 50%;
    border: 1px solid var(--rule);
    display: block;
}

.comment-author .fn {
    font-style: italic;
    font-weight: 600;
    color: var(--heading);
    font-size: 1rem;
}

.comment-author .says {
    display: none;
}

.comment-meta.commentmetadata {
    margin-bottom: 0.6rem;
}

.comment-meta.commentmetadata a {
    font-size: 0.75rem;
    opacity: 0.6;
    text-decoration: none;
}

.comment-meta.commentmetadata a:hover {
    opacity: 1;
}

.comment-body > p {
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.comment-awaiting-moderation {
    display: inline-block;
    font-style: italic;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

.comment-body .reply {
    margin-top: 0.25rem;
}

.comment-reply-link {
    font-size: 0.78rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--social-border);
    border-radius: 999px;
    text-decoration: none;
    opacity: 0.85;
}

.comment-reply-link:hover {
    background: var(--social-hover-bg);
    border-color: var(--social-hover-border);
    color: var(--social-hover-text);
    opacity: 1;
}

.comment-navigation .alignleft,
.comment-navigation .alignright,
.navigation .alignleft,
.navigation .alignright {
    font-size: 0.85rem;
}
