/* Blog-specific styles for blog.oldercub.com (micro.blog/Hugo), layered on top of
   the shared oldercub.com design system (style.css). Targets the class names emitted
   by the micro.blog default theme templates, not WordPress-era class names. */

.page-content {
    padding: 0 0 4rem 0;
}

/* ─── Secondary bar: categories, search, RSS ─── */

.blog-subnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem 1rem;
    padding-bottom: 1.75rem;
    font-size: 0.8rem;
}

.blog-subnav-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.blog-subnav-categories a {
    padding: 0.2rem 0.7rem;
    border: 1px solid var(--social-border);
    border-radius: 999px;
    text-decoration: none;
    opacity: 0.8;
}

.blog-subnav-categories a:hover {
    background: var(--social-hover-bg);
    border-color: var(--social-hover-border);
    color: var(--social-hover-text);
    opacity: 1;
}

.blog-subnav-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.blog-subnav-actions a {
    opacity: 0.7;
    font-size: 1rem;
    text-decoration: none;
}

.blog-subnav-actions a:hover {
    opacity: 1;
    color: var(--link-hover);
    background-color: transparent;
}

/* ─── Post list (home / list / archive-category pages) ─── */

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

/* Card container, matching the live-page widgets: a transparent-fill box
   with a theme-adaptive border (--social-border already resolves to the
   right shade for both light and dark mode). */
.post-list-item {
    border: 1px solid var(--social-border);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    background: transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.post-list-item:hover {
    background: var(--social-hover-bg);
    border-color: var(--social-hover-border);
}

.post-list-item-title {
    display: block;
    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;
    text-decoration: none;
}

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

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

.post-list-item-date {
    color: inherit;
    text-decoration: none;
    opacity: 1;
}

/* .post-meta hardcodes its own color for the (unrelated) author-row usage
   on single-post pages; in list view it also wraps the <time> inside the
   date permalink, where that hardcoded color blocks the link's :hover
   color from ever reaching the visible text. Force it through here. */
.post-list-item-date:hover .post-meta {
    color: var(--link-hover);
}

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

.post-list-item-content p {
    margin-bottom: 0.9rem;
}

.continue-link {
    color: var(--heading);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.continue-link:hover {
    opacity: 1;
}

.post-list-title h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    color: var(--heading);
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ─── Single post ─── */

.post.h-entry {
    display: block;
}

h1.post-list-item-title {
    font-size: clamp(1.7rem, 5.5vw, 2.4rem);
    margin-bottom: 1rem;
}

/* Untitled ("micro") posts fall back to the date as their <h1>; keep that
   modest instead of inheriting the full post-title size. */
h1.post-list-item-title .post-list-item-date {
    display: inline-block;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: normal;
    opacity: 0.7;
}

.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 a,
.post-list-item-content a {
    padding: 0.05em 0.3em;
    margin: 0 -0.3em;
}

/* Track/artist/album caption under embedded Apple Music players */
#music-info {
    font-size: 0.7rem;
    line-height: 1.6;
    color: var(--text);
    opacity: 0.65;
    margin-top: 0.5rem;
}

#music-info a {
    color: inherit;
}

/* ─── Category / tag pills (archive_categories) ─── */

.archive_categories {
    margin: 0.5rem 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.archive_categories p {
    margin: 0;
}

.archive_categories a,
.p-category {
    display: inline-block;
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
    border: 1px solid var(--social-border);
    border-radius: 999px;
    text-decoration: none;
    opacity: 0.85;
}

.archive_categories a:hover,
.p-category:hover {
    background: var(--social-hover-bg);
    border-color: var(--social-hover-border);
    color: var(--social-hover-text);
    opacity: 1;
}

/* ─── Replies / response options (IndieWeb reply mechanisms, in place of comments) ─── */

.response-options {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.response-options a,
.response-options button {
    color: var(--text);
    opacity: 0.75;
    text-decoration: none;
    font-family: 'Lora', Georgia, serif;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.15em 0.4em;
    margin: -0.15em -0.4em;
    border-radius: 0.3em;
    transition: opacity 0.2s, color 0.2s, background-color 0.2s;
}

.response-options a:hover,
.response-options button:hover {
    opacity: 1;
    color: var(--link-hover);
    background-color: var(--social-hover-bg);
}

/* ─── Search (archive page) ─── */

.blog-search {
    margin-bottom: 2rem;
}

.blog-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.blog-search-box i {
    position: absolute;
    left: 1rem;
    opacity: 0.5;
    font-size: 0.85rem;
    pointer-events: none;
}

.blog-search-box input[type="search"] {
    width: 100%;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: color-mix(in srgb, var(--heading) 5%, var(--bg));
    color: var(--text);
    font-family: 'Lora', Georgia, serif;
    font-size: 0.95rem;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.blog-search-box input[type="search"]:focus {
    border-color: var(--heading);
}

.blog-search-box input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
}

.blog-search-results {
    margin-top: 1.75rem;
}

.blog-search-results mark,
.blog-search-empty mark {
    background: color-mix(in srgb, var(--heading) 30%, transparent);
    color: inherit;
    border-radius: 3px;
    padding: 0 0.15em;
}

.blog-search-empty {
    opacity: 0.7;
    font-style: italic;
    margin-top: 1.75rem;
}

.blog-search-results[hidden],
.archive-list[hidden],
.home.h-feed[hidden],
.pagination[hidden] {
    display: none;
}

/* ─── Archive page (flat h-entry list) ─── */

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.archive-list p.h-entry {
    margin: 0;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--rule);
}

.archive-list p.h-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.archive-list time {
    font-size: 0.78rem;
    opacity: 0.6;
}

.archive-list .p-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--heading);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.archive-list .p-summary {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ─── Pagination ─── */
/* Reuses the site nav's "frequency dial" wholesale (.dial-track for the
   tick-mark track/inset shadow/edge fade/red needle, .site-nav for the
   scrollable item row and its hover/current-page glow) so pagination is
   pixel-identical in width and behaviour. .pagination-dial-track is just
   a JS hook to tell the two dial instances apart; initDial() in site.js
   drives needle position, edge hover-scroll, and touch swipe/tap. */

.pagination {
    margin-top: 2.5rem;
}

.pagination-scroll-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
}

/* ─── micro.blog's native reply form (conversation.js) ─── */

.microblog_reply_form {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
}

.microblog_reply_signin {
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 0.85rem;
}

.microblog_reply_signin a {
    opacity: 1;
}

.microblog_reply_textarea textarea {
    display: block;
    width: 100%;
    min-height: 8rem;
    resize: vertical;
    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.95rem;
    padding: 0.75rem 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.microblog_reply_textarea textarea:focus {
    border-color: var(--heading);
}

.microblog_reply_textarea textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.microblog_reply_button {
    margin-top: 0.85rem;
}

.microblog_reply_button 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;
}

.microblog_reply_button input[type="submit"]:hover:not(:disabled) {
    filter: brightness(1.15);
}

.microblog_reply_button input[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── "pretty-tag" badges (e.g. AI-attribution notes at the end of a post) ───
   Base styles apply to every pretty-tag; each colour variant just sets
   background + text colour. Add new variants here as new posts use them. */

.pretty-tag {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
    background: var(--heading);
    color: var(--bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.pretty-tag.snap-yellow {
    background: #fffc00;
    color: #000;
}