/* ==========================================================================
   Blog Beauty — Premium Beauty Blog Styles
   Archive & Single Post for Twenty Twenty Theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Design Tokens (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
    --bb-primary: #2D2926;
    --bb-accent: #C9A87C;
    --bb-accent-light: #E8D5B7;
    --bb-accent-glow: rgba(201, 168, 124, 0.25);
    --bb-bg: #FAF7F2;
    --bb-card-bg: #FFFFFF;
    --bb-text: #3A3632;
    --bb-muted: #8A8279;
    --bb-border: rgba(201, 168, 124, 0.2);
    --bb-shadow-sm: 0 2px 12px rgba(45, 41, 38, 0.06);
    --bb-shadow-md: 0 8px 30px rgba(45, 41, 38, 0.08);
    --bb-shadow-lg: 0 16px 48px rgba(45, 41, 38, 0.12);
    --bb-radius: 16px;
    --bb-radius-sm: 8px;
    --bb-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --bb-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bb-transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --bb-transition-fast: 0.2s ease;
}


/* --------------------------------------------------------------------------
   1. Base Overrides — Archive & Single context
   -------------------------------------------------------------------------- */

/* Warm cream background for blog pages */
body.blog,
body.archive,
body.single-post,
body.search {
    background-color: var(--bb-bg);
    font-family: var(--bb-font-body);
    color: var(--bb-text);
}

body.blog #site-content,
body.archive #site-content,
body.single-post #site-content,
body.search #site-content {
    padding-top: 0;
}


/* --------------------------------------------------------------------------
   2. Archive Header
   -------------------------------------------------------------------------- */

body.blog .archive-header,
body.archive .archive-header,
body.search .archive-header {
    background: linear-gradient(135deg, #FAF7F2 0%, #F3EDE3 40%, #EDE4D6 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Decorative circle accent */
body.blog .archive-header::before,
body.archive .archive-header::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--bb-accent-glow) 0%, transparent 70%);
    top: -100px;
    right: -80px;
    pointer-events: none;
}

body.blog .archive-header::after,
body.archive .archive-header::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 213, 183, 0.2) 0%, transparent 70%);
    bottom: -60px;
    left: -40px;
    pointer-events: none;
}

body.blog .archive-title,
body.archive .archive-title,
body.search .archive-title {
    font-family: var(--bb-font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--bb-primary);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

/* Decorative underline for archive title */
body.blog .archive-title::after,
body.archive .archive-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--bb-accent), var(--bb-accent-light));
    margin: 1.2rem auto 0;
    border-radius: 2px;
}

body.blog .archive-subtitle,
body.archive .archive-subtitle {
    color: var(--bb-muted);
    font-size: 1.6rem;
    margin-top: 1rem;
    font-weight: 400;
}


/* --------------------------------------------------------------------------
   3. Post Cards — Archive Grid
   -------------------------------------------------------------------------- */

/* Grid layout for archive */
body.blog #site-content > article,
body.archive #site-content > article,
body.search #site-content > article {
    background: var(--bb-card-bg);
    border-radius: var(--bb-radius);
    box-shadow: var(--bb-shadow-sm);
    margin: 0 auto 3rem;
    max-width: 84rem;
    overflow: hidden;
    transition: box-shadow var(--bb-transition), transform var(--bb-transition);
    padding: 0;
    border: 1px solid var(--bb-border);
}

body.blog #site-content > article:first-of-type,
body.archive #site-content > article:first-of-type,
body.search #site-content > article:first-of-type {
    padding: 0;
    margin-top: 3rem;
}

body.blog #site-content > article:hover,
body.archive #site-content > article:hover,
body.search #site-content > article:hover {
    box-shadow: var(--bb-shadow-md);
    transform: translateY(-4px);
}

/* Hide the default post separator HR */
body.blog .post-separator,
body.archive .post-separator,
body.search .post-separator {
    display: none;
}


/* --------------------------------------------------------------------------
   4. Featured Image — Archive Cards
   -------------------------------------------------------------------------- */

body:not(.singular) .featured-media {
    margin-top: 0;
    overflow: hidden;
    border-radius: var(--bb-radius) var(--bb-radius) 0 0;
}

body.blog .featured-media-inner,
body.archive .featured-media-inner,
body.search .featured-media-inner {
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

body.blog .featured-media img,
body.archive .featured-media img,
body.search .featured-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

body.blog article:hover .featured-media img,
body.archive article:hover .featured-media img,
body.search article:hover .featured-media img {
    transform: scale(1.05);
}


/* --------------------------------------------------------------------------
   5. Entry Header — Archive Cards
   -------------------------------------------------------------------------- */

body:not(.singular) .entry-header {
    padding: 2rem 2.5rem 0;
    text-align: left;
}

body:not(.singular) .entry-header.has-text-align-center {
    text-align: left;
}

body:not(.singular) .entry-header-inner {
    max-width: 100%;
    width: 100%;
}

/* Category pills */
body:not(.singular) .entry-categories {
    margin-bottom: 1.2rem;
}

body:not(.singular) .entry-categories-inner {
    justify-content: flex-start;
    margin: 0;
    gap: 0.6rem;
}

body:not(.singular) .entry-categories a {
    background: linear-gradient(135deg, var(--bb-accent-light), #F0E6D6);
    color: var(--bb-primary);
    border: none;
    border-bottom: none;
    border-radius: 50px;
    padding: 0.35rem 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--bb-transition-fast);
    margin: 0;
    display: inline-block;
}

body:not(.singular) .entry-categories a:hover {
    background: var(--bb-accent);
    color: #fff;
    transform: translateY(-1px);
}

/* Post title in card */
body:not(.singular) h2.entry-title {
    font-family: var(--bb-font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.8rem;
    letter-spacing: -0.01em;
    color: var(--bb-primary);
}

body:not(.singular) h2.entry-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--bb-transition-fast);
}

body:not(.singular) h2.entry-title a:hover {
    color: var(--bb-accent);
    text-decoration: none;
}
body:not(.singular) .post-inner.thin {
    padding: 30px;
}
body:not(.singular) .entry-content p {
    margin-left: 0;
}

/* Post meta in card */
body:not(.singular) .post-meta-wrapper {
    margin: 0;
    max-width: 100%;
}

body:not(.singular) .post-meta {
    color: var(--bb-muted);
    font-size: 1.3rem;
    font-weight: 400;
    justify-content: flex-start;
    margin: 0;
    gap: 1.5rem;
}

body:not(.singular) .post-meta li {
    margin: 0;
}

body:not(.singular) .post-meta .meta-icon {
    color: var(--bb-accent);
}

body:not(.singular) .post-meta svg * {
    fill: var(--bb-accent);
}


/* --------------------------------------------------------------------------
   6. Post Content — Archive Excerpt
   -------------------------------------------------------------------------- */

body:not(.singular) .post-inner {
    padding: 1.5rem 2.5rem 2rem;
}

body:not(.singular) .post-inner.thin {
    max-width: 100%;
    width: 100%;
}

body:not(.singular) .entry-content {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--bb-muted);
}

body:not(.singular) .entry-content p {
    margin-bottom: 0;
}

/* "Read More" link from excerpt_more filter */
body:not(.singular) .entry-content .bb-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--bb-accent);
    font-weight: 600;
    font-size: 1.4rem;
    text-decoration: none;
    margin-left: 0.3rem;
    transition: all var(--bb-transition-fast);
    letter-spacing: 0.02em;
    border-bottom: none;
}

body:not(.singular) .entry-content .bb-read-more:hover {
    color: var(--bb-primary);
    gap: 0.7rem;
}

/* Legacy "Continue reading" link (fallback) */
body:not(.singular) .entry-content a.more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bb-accent);
    font-weight: 600;
    font-size: 1.4rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: all var(--bb-transition-fast);
    letter-spacing: 0.02em;
}

body:not(.singular) .entry-content a.more-link::after {
    content: '→';
    transition: transform var(--bb-transition-fast);
}

body:not(.singular) .entry-content a.more-link:hover {
    color: var(--bb-primary);
}

body:not(.singular) .entry-content a.more-link:hover::after {
    transform: translateX(4px);
}

/* Hide the bottom section-inner on archive (edit link, bottom meta, link-pages) */
body:not(.singular) article > .section-inner {
    display: none;
}


/* --------------------------------------------------------------------------
   7. Pagination — Archive
   -------------------------------------------------------------------------- */

body.blog .pagination-wrapper,
body.archive .pagination-wrapper,
body.search .pagination-wrapper {
    max-width: 84rem;
    margin: 0 auto;
    padding: 2rem 0 5rem;
}

body.blog .pagination-wrapper .styled-separator,
body.archive .pagination-wrapper .styled-separator,
body.search .pagination-wrapper .styled-separator {
    display: none;
}

body.blog .nav-links,
body.archive .nav-links,
body.search .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}

body.blog .page-numbers,
body.archive .page-numbers,
body.search .page-numbers {
    margin: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1.2rem;
    border-radius: 50px;
    font-family: var(--bb-font-body);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--bb-text);
    text-decoration: none;
    background: var(--bb-card-bg);
    border: 1px solid var(--bb-border);
    transition: all var(--bb-transition-fast);
}

body.blog .page-numbers:hover,
body.archive .page-numbers:hover,
body.search .page-numbers:hover {
    background: var(--bb-accent);
    color: #fff;
    border-color: var(--bb-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--bb-accent-glow);
}

body.blog .page-numbers.current,
body.archive .page-numbers.current,
body.search .page-numbers.current {
    background: linear-gradient(135deg, var(--bb-accent), #B8956A);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 16px var(--bb-accent-glow);
}

body.blog .page-numbers.placeholder,
body.archive .page-numbers.placeholder,
body.search .page-numbers.placeholder {
    visibility: hidden;
}

/* Prev/Next arrows */
body.blog .page-numbers.prev,
body.blog .page-numbers.next,
body.archive .page-numbers.prev,
body.archive .page-numbers.next,
body.search .page-numbers.prev,
body.search .page-numbers.next {
    font-weight: 600;
    gap: 0.4rem;
}


/* ==========================================================================
   8. SINGLE POST STYLES
   ========================================================================== */


/* --------------------------------------------------------------------------
   8a. Single — Entry Header
   -------------------------------------------------------------------------- */

body.single-post .entry-header {
    background: linear-gradient(180deg, var(--bb-bg) 0%, #F3EDE3 100%);
    padding: 5rem 0 3.5rem;
    position: relative;
    margin: 0 0 20px;
}

body.single-post .entry-header::after {
}

/* Category pills — single */
body.single-post .entry-categories {
    margin-bottom: 1.8rem;
}

body.single-post .entry-categories a {
    background: linear-gradient(135deg, var(--bb-accent-light), #F0E6D6);
    color: var(--bb-primary);
    border: none;
    border-bottom: none;
    border-radius: 50px;
    padding: 0.4rem 1.4rem;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--bb-transition-fast);
}

body.single-post .entry-categories a:hover {
    background: var(--bb-accent);
    color: #fff;
}

/* Entry title — single */
body.single-post h1.entry-title {
    font-family: var(--bb-font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--bb-primary);
    letter-spacing: -0.02em;
    max-width: 72rem;
    margin: 0 auto;
}

/* Intro text / excerpt */
body.single-post .intro-text {
    font-size: 1.9rem;
    color: var(--bb-muted);
    line-height: 1.6;
    font-weight: 400;
    margin-top: 1.8rem;
}

/* Post meta — single top */
body.single-post .post-meta-single-top .post-meta {
    justify-content: center;
    color: var(--bb-muted);
    font-size: 1.4rem;
    gap: 2rem;
}

body.single-post .post-meta .meta-icon {
    color: var(--bb-accent);
}

body.single-post .post-meta svg * {
    fill: var(--bb-accent);
}

body.single-post .post-meta a:hover {
    color: var(--bb-accent);
    text-decoration: none;
}


/* --------------------------------------------------------------------------
   8b. Single — Featured Image
   -------------------------------------------------------------------------- */

body.single-post .featured-media {
    margin-top: 0;
}

body.single-post .featured-media::before {
    display: none;
}

body.single-post .featured-media-inner {
    position: relative;
    left: auto;
    width: 100%;
    max-width: 100rem;
    margin: 0 auto;
    border-radius: var(--bb-radius);
    overflow: hidden;
    box-shadow: var(--bb-shadow-lg);
}

body.single-post .featured-media img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.single-post .featured-media figcaption {
    font-size: 1.3rem;
    color: var(--bb-muted);
    font-style: italic;
    margin-top: 1.2rem;
}


/* --------------------------------------------------------------------------
   8c. Single — Post Content
   -------------------------------------------------------------------------- */

body.single-post .post-inner {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

body.single-post .entry-content {
    font-family: var(--bb-font-body);
    font-size: 1.8rem;
    line-height: 1.85;
    color: var(--bb-text);
    max-width: 68rem;
    margin: 0 auto;
}

body.single-post .entry-content p {
    margin-bottom: 2rem;
}

/* Drop cap on first paragraph */
body.single-post .entry-content > p:first-of-type::first-letter {
    font-family: var(--bb-font-heading);
    font-size: 4.8em;
    font-weight: 700;
    float: left;
    line-height: 0.8;
    margin: 0.08em 0.15em 0 0;
    color: var(--bb-accent);
}

/* Content headings */
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
    font-family: var(--bb-font-heading);
    color: var(--bb-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

body.single-post .entry-content h2 {
    font-size: 2.8rem;
    letter-spacing: -0.02em;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bb-border);
}

body.single-post .entry-content h3 {
    font-size: 2.2rem;
}

body.single-post .entry-content h4 {
    font-size: 1.9rem;
}

/* Links in content */
body.single-post .entry-content a {
    color: var(--bb-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--bb-accent-light);
    transition: all var(--bb-transition-fast);
}

body.single-post .entry-content a:hover {
    color: #B8956A;
    border-bottom-color: var(--bb-accent);
}

/* Blockquotes */
body.single-post .entry-content blockquote {
    border-left: 4px solid var(--bb-accent);
    background: linear-gradient(135deg, rgba(201, 168, 124, 0.06), rgba(232, 213, 183, 0.08));
    padding: 2.5rem 3rem;
    margin: 3rem 0;
    border-radius: 0 var(--bb-radius-sm) var(--bb-radius-sm) 0;
    position: relative;
}

body.single-post .entry-content blockquote::before {
    content: '"';
    font-family: var(--bb-font-heading);
    font-size: 6rem;
    color: var(--bb-accent-light);
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    line-height: 1;
}

body.single-post .entry-content blockquote p {
    font-size: 2rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--bb-primary);
    margin-bottom: 0;
}

/* Images in content */
body.single-post .entry-content img {
    border-radius: var(--bb-radius-sm);
    box-shadow: var(--bb-shadow-sm);
}

body.single-post .entry-content figure {
    margin: 3rem 0;
}

body.single-post .entry-content figcaption {
    font-size: 1.3rem;
    color: var(--bb-muted);
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
}

/* Lists */
body.single-post .entry-content ul,
body.single-post .entry-content ol {
    padding-left: 2rem;
    margin-bottom: 2rem;
}

body.single-post .entry-content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

body.single-post .entry-content ul li::marker {
    color: var(--bb-accent);
}


/* --------------------------------------------------------------------------
   8d. Single — Post Footer / Bottom Meta
   -------------------------------------------------------------------------- */

body.single-post .post-meta-wrapper.post-meta-single-bottom {
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--bb-border);
}

body.single-post .post-meta-single-bottom .post-meta {
    font-size: 1.4rem;
}

/* Tags styling */
body.single-post .post-tags a {
    background: var(--bb-bg);
    border: 1px solid var(--bb-border);
    border-radius: 50px;
    padding: 0.3rem 1rem;
    font-size: 1.25rem;
    transition: all var(--bb-transition-fast);
    text-decoration: none;
}

body.single-post .post-tags a:hover {
    background: var(--bb-accent);
    color: #fff;
    border-color: var(--bb-accent);
}


/* --------------------------------------------------------------------------
   8e. Single — Author Bio
   -------------------------------------------------------------------------- */

body.single-post .author-bio {
    background: var(--bb-card-bg);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    padding: 3rem;
    margin-top: 4rem;
    box-shadow: var(--bb-shadow-sm);
    position: relative;
    overflow: hidden;
}

/* Subtle glassmorphism accent */
body.single-post .author-bio::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--bb-accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

body.single-post .author-bio .author-title-wrapper {
    gap: 1.5rem;
}

body.single-post .author-bio .avatar {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    border: 3px solid var(--bb-accent-light);
    box-shadow: 0 0 0 6px var(--bb-accent-glow);
    transition: box-shadow var(--bb-transition);
}

body.single-post .author-bio:hover .avatar {
    box-shadow: 0 0 0 10px var(--bb-accent-glow);
}

body.single-post .author-bio .author-title {
    font-family: var(--bb-font-heading);
    font-size: 2rem;
    color: var(--bb-primary);
}

body.single-post .author-bio .author-description {
    color: var(--bb-muted);
    font-size: 1.5rem;
    line-height: 1.7;
    margin-top: 0.5rem;
}

body.single-post .author-bio .author-link {
    color: var(--bb-accent);
    font-weight: 600;
    font-size: 1.4rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--bb-transition-fast);
}

body.single-post .author-bio .author-link:hover {
    color: #B8956A;
    text-decoration: none;
    gap: 0.7rem;
}


/* --------------------------------------------------------------------------
   8f. Single — Post Navigation (Prev/Next)
   -------------------------------------------------------------------------- */

body.single-post .pagination-single {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

body.single-post .pagination-single hr {
    border: none;
    height: 1px;
    background: var(--bb-border);
}

body.single-post .pagination-single-inner {
    gap: 1.5rem;
}

body.single-post .pagination-single a {
    background: var(--bb-card-bg);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-sm);
    padding: 1.5rem 2rem;
    font-weight: 500;
    color: var(--bb-text);
    transition: all var(--bb-transition);
    text-decoration: none;
}

body.single-post .pagination-single a:hover {
    border-color: var(--bb-accent);
    box-shadow: var(--bb-shadow-sm);
    transform: translateY(-2px);
}

body.single-post .pagination-single a .arrow {
    color: var(--bb-accent);
    font-size: 1.4em;
    margin-right: 1rem;
    transition: transform var(--bb-transition-fast);
}

body.single-post .pagination-single a:hover .arrow {
    transform: translateX(-3px);
}

body.single-post .pagination-single a.next-post:hover .arrow {
    transform: translateX(3px);
}

body.single-post .pagination-single a .title-inner {
    font-family: var(--bb-font-heading);
    font-weight: 600;
    color: var(--bb-primary);
    font-size: 1.6rem;
}


/* --------------------------------------------------------------------------
   8g. Single — Comments
   -------------------------------------------------------------------------- */

body.single-post .comments-wrapper {
    margin-top: 2rem;
    padding-top: 4rem;
    border-top: 1px solid var(--bb-border);
}

body.single-post .comments-title,
body.single-post .comment-reply-title {
    font-family: var(--bb-font-heading);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--bb-primary);
    margin-bottom: 2.5rem;
}

body.single-post .comment-reply-title {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 1rem;
}

body.single-post .comment-reply-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--bb-accent), var(--bb-accent-light));
    border-radius: 2px;
}

/* Individual comments */
body.single-post .comment-body {
    background: var(--bb-card-bg);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    transition: box-shadow var(--bb-transition);
}

body.single-post .comment-body:hover {
    box-shadow: var(--bb-shadow-sm);
}

body.single-post .comment-meta .avatar {
    border-radius: 50%;
    border: 2px solid var(--bb-accent-light);
}

body.single-post .comment-author .fn {
    font-family: var(--bb-font-heading);
    font-weight: 600;
    color: var(--bb-primary);
}

body.single-post .comment-metadata {
    color: var(--bb-muted);
    font-size: 1.25rem;
}

body.single-post .comment-metadata a {
    color: var(--bb-muted);
    text-decoration: none;
}

body.single-post .comment-metadata a:hover {
    color: var(--bb-accent);
}

body.single-post .comment-content {
    font-size: 1.5rem;
    line-height: 1.75;
    color: var(--bb-text);
}

/* Reply link */
body.single-post .comment-reply-link {
    color: var(--bb-accent);
    font-weight: 600;
    font-size: 1.3rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--bb-transition-fast);
}

body.single-post .comment-reply-link:hover {
    color: #B8956A;
}

/* Comment form */
body.single-post .comment-respond {
    margin-top: 3rem;
}

body.single-post .comment-form input[type="text"],
body.single-post .comment-form input[type="email"],
body.single-post .comment-form input[type="url"],
body.single-post .comment-form textarea {
    background: var(--bb-bg);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-sm);
    padding: 1.2rem 1.5rem;
    font-family: var(--bb-font-body);
    font-size: 1.5rem;
    color: var(--bb-text);
    transition: border-color var(--bb-transition-fast), box-shadow var(--bb-transition-fast);
    width: 100%;
}

body.single-post .comment-form input:focus,
body.single-post .comment-form textarea:focus {
    outline: none;
    border-color: var(--bb-accent);
    box-shadow: 0 0 0 3px var(--bb-accent-glow);
}

body.single-post .comment-form label {
    font-weight: 500;
    color: var(--bb-primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    display: block;
}

body.single-post .comment-form .form-submit input[type="submit"] {
    background: linear-gradient(135deg, var(--bb-accent), #B8956A);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 1.2rem 3rem;
    font-family: var(--bb-font-body);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all var(--bb-transition);
    box-shadow: 0 4px 16px var(--bb-accent-glow);
}

body.single-post .comment-form .form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--bb-accent-glow);
}


/* --------------------------------------------------------------------------
   9. Animations — Fade-in on scroll
   -------------------------------------------------------------------------- */

@keyframes bbFadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bbFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.blog #site-content > article,
body.archive #site-content > article,
body.search #site-content > article {
    animation: bbFadeInUp 0.6s ease both;
}

body.blog #site-content > article:nth-child(2) { animation-delay: 0.08s; }
body.blog #site-content > article:nth-child(3) { animation-delay: 0.16s; }
body.blog #site-content > article:nth-child(4) { animation-delay: 0.24s; }
body.blog #site-content > article:nth-child(5) { animation-delay: 0.32s; }
body.blog #site-content > article:nth-child(6) { animation-delay: 0.4s; }

body.single-post .entry-header {
    animation: bbFadeIn 0.5s ease both;
}

body.single-post .featured-media {
    animation: bbFadeInUp 0.6s ease 0.15s both;
}

body.single-post .post-inner {
    animation: bbFadeInUp 0.6s ease 0.25s both;
}


/* --------------------------------------------------------------------------
   10. Responsive — Tablet (max-width: 999px)
   -------------------------------------------------------------------------- */

@media (max-width: 999px) {

    body.blog .archive-title,
    body.archive .archive-title {
        font-size: 2.6rem;
    }

    body.single-post h1.entry-title {
        font-size: 3.2rem;
    }

    body.single-post .entry-content {
        font-size: 1.7rem;
    }

    body.single-post .featured-media-inner {
        border-radius: var(--bb-radius-sm);
    }

    body.single-post .featured-media img {
        max-height: 420px;
    }

    body.blog .featured-media img,
    body.archive .featured-media img {
        height: 220px;
    }

    body.single-post .entry-content blockquote {
        padding: 2rem;
    }

    body.single-post .entry-content blockquote p {
        font-size: 1.8rem;
    }
}


/* --------------------------------------------------------------------------
   11. Responsive — Mobile (max-width: 599px)
   -------------------------------------------------------------------------- */

@media (max-width: 599px) {

    body.blog .archive-header,
    body.archive .archive-header {
        padding: 3rem 0 2.5rem;
    }

    body.blog .archive-title,
    body.archive .archive-title {
        font-size: 2.2rem;
    }

    body.blog #site-content > article,
    body.archive #site-content > article,
    body.search #site-content > article {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
        border-radius: var(--bb-radius-sm);
    }

    body:not(.singular) .entry-header {
        padding: 1.5rem 1.8rem 0;
    }

    body:not(.singular) .post-inner {
        padding: 1rem 1.8rem 1.5rem;
    }

    body.blog .featured-media img,
    body.archive .featured-media img {
        height: 180px;
    }

    body:not(.singular) h2.entry-title {
        font-size: 1.8rem;
    }

    body:not(.singular) .entry-categories a {
        font-size: 1rem;
        padding: 0.25rem 0.9rem;
    }

    /* Single post mobile */
    body.single-post .entry-header {
        padding: 3rem 0 2.5rem;
    }

    body.single-post h1.entry-title {
        font-size: 2.6rem;
    }

    body.single-post .intro-text {
        font-size: 1.6rem;
    }

    body.single-post .entry-content {
        font-size: 1.6rem;
        line-height: 1.8;
    }

    body.single-post .entry-content > p:first-of-type::first-letter {
        font-size: 3.6em;
    }

    body.single-post .entry-content h2 {
        font-size: 2.2rem;
    }

    body.single-post .entry-content h3 {
        font-size: 1.9rem;
    }

    body.single-post .featured-media-inner {
        --bb-radius-sm: 8px;
        margin: 0;
        padding: 10px;
    }

    body.single-post .featured-media img {
        border-radius: var(--bb-radius-sm);
        max-height: 280px;
    }

    body.single-post .entry-content blockquote {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    body.single-post .entry-content blockquote::before {
        font-size: 4rem;
        top: -0.3rem;
        left: 0.8rem;
    }

    body.single-post .entry-content blockquote p {
        font-size: 1.6rem;
    }

    body.single-post .author-bio {
        padding: 2rem;
    }

    body.single-post .author-bio .avatar {
        width: 5.5rem;
        height: 5.5rem;
    }

    body.single-post .pagination-single a {
        padding: 1.2rem 1.5rem;
    }

    body.single-post .pagination-single a .title-inner {
        font-size: 1.4rem;
    }

    body.single-post .comment-body {
        padding: 1.8rem;
    }

    body.single-post .comments-title {
        font-size: 2.2rem;
    }

    /* Pagination mobile */
    body.blog .page-numbers,
    body.archive .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 1.3rem;
        padding: 0 0.8rem;
    }
}


/* --------------------------------------------------------------------------
   12. Print overrides
   -------------------------------------------------------------------------- */

@media print {
    body.blog #site-content > article,
    body.archive #site-content > article,
    body.single-post .author-bio,
    body.single-post .comment-body,
    body.single-post .pagination-single a {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    body.blog #site-content > article,
    body.archive #site-content > article {
        animation: none;
    }
}
