.blog-index {
    max-width: 900px;
    margin: auto;
    padding: 2rem 1rem;
}

.blog-index-header {
    margin-bottom: 3rem;
}

.blog-index-title {
    font-size: 2rem;
}

.blog-index-intro {
    color: #555;
}

.blog-post-list {
    display: grid;
    gap: 2rem;
}

.blog-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.15s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-card-content {
    padding: 1rem;
}

.blog-card-title {
    margin-top: 0;
    font-size: 1.3rem;
}

.blog-card-intro {
    color: #666;
}

.blog-card-link:focus-visible {
    outline: 3px solid #005fcc;
}

.blog-post {
    max-width: 750px;
    margin: auto;
    padding: 2rem 1rem;
}

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

.blog-post-title {
    font-size: 2.2rem;
}

.blog-post-meta {
    color: #777;
    margin-bottom: 1rem;
}

.author-list {
    display: flex;
    gap: 1rem;
    padding: 0;
    list-style: none;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-image img {
    border-radius: 50%;
}

.blog-intro {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

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

.blog-gallery {
    margin-top: 3rem;
    display: grid;
    gap: 1.5rem;
}

.gallery-item img {
    width: 100%;
    border-radius: 6px;
}

.gallery-item figcaption {
    font-size: 0.9rem;
    color: #666;
}

.blog-tags {
    margin-top: 3rem;
}

.tag-list {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    padding: 0;
}

.tag {
    padding: 0.4rem 0.7rem;
    background: #d96f6f;
    border-radius: 4px;
    text-decoration: none;
    color: 'black';
}

.tag > p {
    color: 'black';
}

.tag:hover {
    background: #ad5151;
}

.blog-navigation {
    margin-top: 3rem;
}

.back-to-blog {
    text-decoration: none;
    font-weight: 500;
}

.back-to-blog:hover {
    text-decoration: underline;
}

/* screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tag-results {
    max-width: 750px;
    margin: auto;
    padding: 2rem 1rem;
}

.tag-results-title {
    margin-bottom: 2rem;
}

.tag-name {
    color: #444;
}

.tag-post-list {
    list-style: none;
    padding: 0;
}

.tag-post-item {
    margin-bottom: 1.5rem;
}

.tag-post-title {
    margin-bottom: 0.3rem;
}

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

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

.tag-post-meta {
    color: #777;
    font-size: 0.9rem;
}

.tag-empty {
    color: #777;
}
