/** 
 * Theme Name: Swag Shop Talk
 * Author: dabaman
 * Version: 1.0.1
 */


:root {
    --text-color: #ffffff;
    --dark-color: #000000;
    --primary-yellow: #f6c224;
    --primary-color: #000;
    --primary-red: #b81825;

    --root-padding: 1.5rem;
}


body {
    padding: 0;
    font-family: "Karla", sans-serif;
    font-optical-sizing: auto;
    font-size: 1rem;
    background-color: var(--dark-color);
    color: var(--text-color);
    font-family: Lato, system-ui, sans-serif;
    display: flex;
    flex-direction: column;
}

/* typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-yellow);
    font-family: Oswald, system-ui, sans-serif;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}
h3 {
    font-size: 1.5rem;
}
h4 {
    font-size: 1.25rem;
}
h5 {
    font-size: 1.125rem;
}

h6 {    
    font-size: 1rem;
}

a {
    text-underline-offset: 3px;
}

/* utility classes */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
    gap: 1.5rem;
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.align-center {
    text-align: center;
}

[x-cloak] {
    display: none !important;
}

/* accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 9999;
    padding: 1rem 1.5rem;
    background-color: var(--primary-yellow);
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--dark-color);
}

.skip-to-content:focus {
    top: 0;
}

/* layout */

.main {
    margin-bottom: 4rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--root-padding);
}

.container-fluid {
    padding: 0 var(--root-padding);
}

.narrow-content {
    max-width: calc(800px + var(--root-padding) * 2);
    margin: 0 auto;
}


/* links */
a {
    color: var(--text-color);
}


/* buttons */


.archive-link {
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 2rem;
    padding: .5rem 1rem;
    display: inline-block;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid rgb(256 256 256 / 20%);
}

.archive-link:hover {
    background-color: var(--primary-red);
}


/* header */


.custom-logo-link {
    display: inline-block;
}

.custom-logo-link img {
    max-width: 90px;
}

@media (max-width: 767px) {
    .custom-logo-link img {
        max-width: 60px;
    }
}


.header__nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: var(--root-padding);
    border-radius: 200px;
    background-color: var(--background-color);
    border: 2px solid var(--light-blue);
    position: relative;
}

@media (max-width: 767px) {
    .header__nav {
        grid-template-columns: 1fr auto;
        padding-left: 0;
        padding-right: 0;
    }

    .header__menu-toggle {
        background-color: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 0;
        outline: none;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-color);
    }

    .header__menu-mobile-content {
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        background: black;
        padding: 1rem;
        z-index: 100;
    }

    .header__menu-mobile-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: .5rem;
    }

    .header__menu-mobile-list a {
        font-size: 1.25rem;
        display: flex;
        align-items: center;
        gap: .75rem;
        padding: .25rem 0;
        text-decoration: none;
    }

}

.header__menu {
    align-items: center;
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.header__menu a {
    text-decoration: none;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
}
@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }
}

/* search */
.header__search {
    display: flex;
    justify-content: right;
}
.header__search-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--text-color);
}

.header__menu-toggle:focus-visible,
.header__search-button:focus-visible {
    outline: 1px solid;
}

/* search modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 3rem var(--root-padding);
}

.search-modal__content {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    padding: .5rem 1rem;
    border-radius: 1rem;
    border: none;
    outline: none;
    background-color: white;
    color: var(--text-color);
}

.search-modal__form {
    position: relative;
}

.search-modal__icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal__input {
    width: 100%;
    padding: 1.5rem 0 1.5rem 3rem;
    border: none;
    outline: none;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}

.search-modal__results {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.search-modal__result-link {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .5rem;
    border-radius: .5rem;
    text-decoration: none;
}

.search-modal__result-link:hover {
    background-color: #f0f0f0;
}

.search-modal__result-title {
    color: #282a30;
    font-size: 1rem;
    font-family: Lato, system-ui, sans-serif;
    font-weight: 600;
    margin: 0;
}

.search-modal__result-excerpt {
    color: #6b6f76;
    font-size: .9rem;
}

.search-modal__loading {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.search-modal__no-results {
    color: black;
    padding: 1rem;
}


/* footer */
.footer {
    margin: rem 0 0 0;
    background: var(--primary-red);
    color: var(--primary-yellow);
    padding: 4rem 0;
    margin-top: auto;
}

.footer__title {
    font-size: .9rem;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 1rem;
    margin: 0 0 2rem 0;
}

.footer__copyright {
    font-size: 0.75rem;
    font-weight: 600;
}

/* pages */
.page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.page-header__title {
    font-size: 2.5rem;
}


.page-header__description {
    font-size: 1.25rem;
}

.page-header__description p {
    margin: 0;
}

/* home */
.home-header {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.home-header__title {
    text-transform: uppercase;
    letter-spacing: 1rem;
    font-size: 2rem;
    font-size: 4rem;
}

@media (max-width: 767px) {
    .home-header__title {
        font-size: 1.875rem;
    }
}

.home-header__tagline  {
    font-size: 1.5rem;
    font-family: Oswald, system-ui, sans-serif;
}

.home-section:not(.articles) {
    margin-bottom: 4rem;
}

.home-section__title {
   font-weight: 200;
   color: white;
   margin: 0 0 1.5rem 0;
}

.cover-story__image img {
    width: 100%;
    aspect-ratio: 5 / 4 !important;
}


/* blog */


/* single */
.single__header {
    margin-bottom: 3rem;
}

.single__title {
    font-size: 2.5rem;
}

.single__excerpt {
    font-size: 1.2rem;
}

.single__meta {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .8rem;
}

.single__share-buttons {
    margin-left: auto;
}

.single__image {
    margin-bottom: 1.5rem;
    text-align: center;
}

.single__image img {
    width: auto;
    display: inline-block;
    max-height: 660px;
}

.single__tags {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.single__logo-separator {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.single__logo-separator img {
    max-width: 77px;
}

/* posts grid */
.posts-loop {
    gap: 2rem 1.5rem;
}

.post__image {
    position: relative;
}

.post__link {
    text-decoration: none;
    display: block;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.time-to-read__icon{
    padding-right: .25rem;
    display: inline-block;
}

.post__content {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.post__excerpt p, 
.post__title {
    margin: 0;
}

.post__title {
    font-size: 1.5rem;
}

.post__meta {
    font-size: .8rem;
}

.post__image img {
    border-radius: 10px;
    aspect-ratio: 1.77778 / 1;
    object-fit: cover;
    object-position: center top;
}


.post__categories {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.has-post-thumbnail .post__categories {
    position: absolute;
    left: .5rem;
    top: .5rem;
}

.post__category {
    background-color: var(--primary-red);
    padding: .25rem .75rem;
    border-radius: 50px;
    font-size: .8rem;
}

/* pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: .5rem;
}

.pagination .nav-links * {
    padding: .25rem .5rem;
    border: 1px solid transparent;
}

.pagination .nav-links .current {
    background-color: white;
    color: black;
}

.pagination .nav-links a {
    text-decoration: none;
    border-color: rgb(256 256 256 / 20%);
}


/* single related posts */

.single__related {
    margin-top: 4rem;
}

.single__related-title {
    color: white;
}

.single__related-posts {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.single__related-post-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-decoration: none;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 480px) {
    .single__related-post-link {
        grid-template-columns: 1fr;
    }
}

.single__related-text {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.single__related-date {
    font-size: .8rem;
}

.single__related-text * {
    margin: 0;
}


/* categories */

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-link {
    text-decoration: none;
    border-radius: 8px;
    display: block;
    border: 1px solid var(--primary-yellow);
    padding: 1rem;
    height: 100%;
}

.category-title {
    margin: 0;
    font-size: 1.5rem;
}

.category-description {
    text-wrap: pretty;
}