/* Typography Hierarchy Fixes */

/* 1. Single Page Post Title: Should be the absolute largest text (32px) */
.main__title {
    font-size: 2rem;
}

/* 2. List Page Post Title: (24px) */
.list__title {
    font-size: 1.5rem;
}

/* 3. Article Content Headings: Scale them down to fit under the main title */
.content h2 {
    font-size: 1.35rem; /* ~22px */
}
.content h3 {
    font-size: 1.2rem; /* ~19px */
}
.content h4 {
    font-size: 1.1rem; /* ~17px */
}

/* 4. Summaries (Excerpts) on List Pages: Downsize any leaked markdown headings so they feel like normal text */
.list__excerpt h1,
.list__excerpt h2,
.list__excerpt h3,
.list__excerpt h4,
.list__excerpt h5,
.list__excerpt h6 {
    font-size: 1.15rem;
    margin: 0.75rem 0 0.5rem 0;
    line-height: 1.4;
}

/* 5. Move List Thumbnails to the Right */
.list__thumbnail {
    float: right;
    margin: 0 0 10px 20px;
}

/* 6. Prevent Inline Code Overflow */
.content code, .list__excerpt code {
    word-break: break-all;
    word-wrap: break-word;
}

/* 7. Copy Code Button Styles */
.copy-code-wrapper {
    position: relative;
    margin-bottom: 1.25rem;
}

.copy-code-wrapper pre {
    margin-bottom: 0; /* Let the wrapper handle the margin */
}

.copy-code-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 12px;
    color: #666;
    background-color: #e5e5e5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease-in-out, background-color 0.2s;
}

.copy-code-wrapper:hover .copy-code-btn,
.copy-code-btn:focus {
    opacity: 1;
}

.copy-code-btn:hover {
    background-color: #d4d4d4;
    color: #333;
}
