/* 
Theme Name: Complexity
Author: Himanshu
Version: 0.1
Text Domain: complexity
*/
/* Basic reset */
:root {
    --bg: #ffffff;
    --accent-color: #000000;
    --accent-color-light: #424242;
    --text-color: #4b4b4b;
    --text-color-light: #6b6b6b; /* was #878787, which failed the 4.5:1 contrast minimum on white */
    --font-mono: 'Roboto Mono', monospace;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Roboto Slab', serif;
    --transition: 200ms;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* general css */
html, body {
    overscroll-behavior: none;
    width: 100%;
    height: 100%;
    color: var(--text-color);
    font-family: var(--font-sans);
}

body.home {
    overflow: hidden;
}

h1 {
    font-size: clamp(36px, 2.2vw, 2.2vw);
    line-height: 1.1;
    font-family: var(--font-serif);
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: clamp(16px, .5vw, .5vw);
}

h2 {
    font-size: clamp(28px, 1.8vw, 1.8vw);
    line-height: 1.2;
    font-family: var(--font-serif);
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: clamp(16px, .5vw, .5vw);
}

h3 {
    font-size: clamp(24px, 1.55vw, 1.55vw);
    line-height: 1.2;
    font-family: var(--font-serif);
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: clamp(16px, .5vw, .5vw);
}

h4 {
    font-size: clamp(20px, 1.2vw, 1.2vw);
    line-height: 1.3;
    font-family: var(--font-serif);
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: clamp(16px, .5vw, .5vw);
}

h5 {
    font-size: clamp(18px, 1.05vw, 1.05vw);
    line-height: 1.4;
    font-family: var(--font-serif);
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: clamp(16px, .5vw, .5vw);
}

h6 {
    font-size: clamp(16px, .92vw, .92vw);
    line-height: 1.5;
    font-family: var(--font-serif);
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: clamp(16px, .5vw, .5vw);
}

p {
    font-size: clamp(16px, .8vw, .8vw);
    line-height: 1.5;
    font-family: var(--font-sans);
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: clamp(16px, .5vw, .5vw);
}

a {
    text-decoration: none;
    color: unset;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.caption-mono-light {
    font-family: var(--font-mono);
    font-size: clamp(16px, .8vw, .8vw);
    color: var(--text-color-light);
    font-weight: 400;
    line-height: 1.3;
}

.caption-mono-dark {
    font-family: var(--font-mono);
    font-size: clamp(16px, .8vw, .8vw);
    color: var(--text-color);
    font-weight: 400;
    line-height: 1.3;
}

.caption-sans-light {
    font-family: var(--font-sans);
    font-size: clamp(16px, .8vw, .8vw);
    color: var(--text-color-light);
    font-weight: 400;
    line-height: 1.3;
}

.caption-sans-dark {
    font-family: var(--font-sans);
    font-size: clamp(16px, .8vw, .8vw);
    color: var(--text-color);
    font-weight: 400;
    line-height: 1.3;
}

.horizontal-divider {
    margin-top: clamp(16px, .5vw, .5vw);
    margin-bottom: clamp(16px, .5vw, .5vw);
}

.post .post-categories-container {
    display: flex;
    color: var(--text-color-light);
    font-family: var(--font-mono);
    font-size: clamp(14px, .7vw, .7vw);
}

.post .post-categories-container .post-parent-category a {
    color: var(--text-color-light);
}

.post .post-categories-container .post-parent-category a:hover {
    color: var(--accent-color);
}

.post .post-categories-container .post-sub-category a {
    color: var(--text-color);
}
/* authors and contributors */
.curators-contributors-section h2 {
    margin-bottom: clamp(24px, 1.5vw, 1.5vw);
}

.curators-contributors-section .curators-list {
    display: flex;
    gap: clamp(16px, 1.75vw, 1.75vw);
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: clamp(28px, 1.75vw, 1.75vw);
}

.profile {
    width: calc((100% - 8.75vw) / 6);
}



.profile img.profile-avatar, .profile img {
    object-fit: cover;
    aspect-ratio: 1/1;
    width: 100%;
    height: auto;
    margin-bottom: clamp(8px, .5vw, .5vw);
}



.profile p {
    margin: clamp(8px, .5vw, .5vw) 0;
}

.profile h5 {
    margin-bottom: 0;
}

/* Stand-in for people without a photo yet. */
.profile-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: clamp(8px, .5vw, .5vw);
    background-color: #fff5eb;
    border: 1px solid #eadccb;
    color: #6b5f52;
    font-family: var(--font-serif);
    font-size: clamp(28px, 2.5vw, 2.5vw);
}

.author-avatar .profile-initials {
    width: clamp(180px, 13vw, 13vw);
    font-size: clamp(48px, 4vw, 4vw);
}

.profile-articles {
    font-family: var(--font-mono);
    font-size: clamp(12px, .6vw, .6vw);
    color: var(--text-color-light);
}

.author-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.author-links a {
    font-family: var(--font-mono);
    text-decoration: underline;
}



/* profile page */
.author-profile-container {
    display: flex;
    gap: 16px;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: clamp(32px, 2vw, 2vw);
}



.author-avatar img {
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.author-profile-container h2 {
    font-size: clamp(1.8rem, 1.3vw, 1.3vw);
    font-family: var(--font-serif);
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: 16px;
}

.author-profile-container p {
    font-size: clamp(16px, .8vw, .8vw);
    font-family: var(--font-sans);
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: .5rem;
}

.author-profile-container p .label {
    font-family: var(--font-mono);
    color: var(--text-color-light);
    font-size: clamp(16px, .8vw, .8vw);
}

/* .author-posts-about-container {} */

/* Basic CSS for tab UI - move this to your stylesheet if needed */


.author-tabs div.tabs {
    list-style: none;
    margin-bottom: clamp(20px, 1vw, 1vw);
    display: flex;
}

.author-tabs .tabs .tab-link {
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: inherit;
    cursor: pointer;
    border: none;
    border-radius: 20px;
    margin-right: 16px;
    background-color: #EBEBEB;
    color: var(--text-color);
}

.author-tabs .tabs .tab-link.active {
    background-color: var(--accent-color);
    color: var(--bg);
}

.author-tabs .tab-content {
    display: none;
    padding-right: 30vw;
}

.author-tabs .tab-content.active {
    display: block;
}

#tab-description p {
    font-family: var(--font-sans);
    color: var(--text-color);
    font-size: clamp(16px, .8vw, .8vw);
    font-weight: 400;
    line-height: 150%;
}

#tab-posts .post h5 {
    margin: 0;
}

.author-posts {
    padding-right: 30vw;
}

.author-posts-about-container .post h5 a {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 150%;
}

.author-posts .no-des {
    padding: 6px 12px;
    max-width: fit-content;
    font-family: var(--font-mono);
    cursor: pointer;
    border-radius: 20px;
    margin-bottom: 16px;
    background-color: var(--accent-color);
    color: var(--bg);
}

.page-container .other-pages {
    padding: 0 20vw;
}

.page-container .other-pages p {
    font-family: var(--font-sans);
    color: var(--text-color-light);
    font-size: clamp(16px, .8vw, .8vw);
    font-weight: 400;
    margin-bottom: 16px;
}


/* contact */
.contact-form-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-form {
    background: #f7f7f7;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.contact-form input[type="submit"] {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 500;
    margin-top: 10px;
}

.contact-form input[type="submit"]:hover {
    background: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.contact-form label {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
}

.contact-form p {
    margin-bottom: 16px;
}

/* Honeypot: off-screen for people, still filled in by bots. */
.contact-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-sent {
    margin: 16px 0;
    padding: 16px 20px;
    border-left: 3px solid #1f1f1f;
    background: #fff5eb;
}

/* Admin messages section */
.admin-messages {
    margin-bottom: 2rem;
    padding: 16px;
    background: #f0f0f0;
    border-left: 4px solid #007bff;
}

.contact-message {
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


/* Reading column: articles, pages, Blogs & Updates, search and archives
   (single.php, page.php, page-48.php, index.php). Block content inside is styled by css/content.css. */
.post-page,
.page-container .post-list {
    width: min(100%, max(720px, 37vw));
    margin: 0 auto;
}

.post-page .entry-header,
.post-list-header {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, .75vw, .75vw);
    margin-bottom: clamp(28px, 2vw, 2vw);
}

.post-page .entry-title,
.post-list-header .entry-title {
    margin: 0;
    font-size: clamp(36px, 2.6vw, 2.6vw);
    line-height: 1.12;
    color: #1f1f1f;
}

.post-page .entry-themes,
.post-page .entry-meta {
    font-family: var(--font-mono);
    font-size: clamp(13px, .7vw, .7vw);
    line-height: 1.5;
    color: var(--text-color-light);
}

.post-page .entry-themes a:hover,
.post-page .entry-meta a:hover {
    color: var(--accent-color);
}

.post-page .entry-standfirst {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(19px, 1.15vw, 1.15vw);
    line-height: 1.5;
    color: var(--text-color);
}

.post-page .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    padding-top: 14px;
    border-top: 1px solid #e3e3e3;
}

.post-page .entry-meta a {
    color: #1f1f1f;
}

.post-page .entry-thumbnail {
    margin: 0 0 clamp(28px, 2vw, 2vw);
}

.post-page .entry-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-page .entry-thumbnail figcaption {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: clamp(13px, .7vw, .7vw);
    color: var(--text-color-light);
}

.post-page .entry-footer {
    margin-top: 3em;
    padding-top: 1.2em;
    border-top: 1px solid #e3e3e3;
}

.entry-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.entry-tags a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: #EBEBEB;
    font-family: var(--font-mono);
    font-size: clamp(13px, .7vw, .7vw);
    color: var(--text-color);
}

.entry-tags a:hover {
    background-color: var(--accent-color);
    color: var(--bg);
}

.post-page .post-page-comments {
    margin-top: 3em;
    padding-top: 1.2em;
    border-top: 1px solid #e3e3e3;
}

.post-list-header .entry-content {
    font-size: clamp(16px, .8vw, .8vw);
}

.post-list .post-item .post-title {
    margin: 0;
}

/* Comments under articles (comments.php, inc/comments.php) */
.comments-title {
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: clamp(13px, .7vw, .7vw);
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-color-light);
}

.comment-list,
.comment-list .children {
    list-style: none;
}

.comment-list .children {
    margin-left: clamp(12px, 1.5vw, 1.5vw);
    padding-left: clamp(16px, 1.2vw, 1.2vw);
    border-left: 1px solid #e3e3e3;
}

.comment-body {
    padding: 18px 0;
    border-bottom: 1px solid #ececec;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-family: var(--font-serif);
    font-size: clamp(17px, .95vw, .95vw);
    color: #1f1f1f;
}

.comment-date,
.comment-actions a,
.comment-awaiting,
.comments-closed,
.comment-notes,
.logged-in-as,
.comment-reply-title small a {
    font-family: var(--font-mono);
    font-size: clamp(12px, .65vw, .65vw);
    color: var(--text-color-light);
}

.comment-content p {
    font-size: clamp(16px, .8vw, .8vw);
    line-height: 1.65;
    margin-bottom: .8em;
}

.comment-awaiting {
    margin-bottom: 8px;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.comment-actions a:hover,
.logged-in-as a:hover,
.comment-reply-title small a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.comments .nav-links {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    font-family: var(--font-mono);
    font-size: clamp(12px, .65vw, .65vw);
}

.comment-respond {
    margin-top: 32px;
}

.comment-reply-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
    margin-bottom: 8px;
    font-family: var(--font-serif);
    font-size: clamp(22px, 1.3vw, 1.3vw);
    font-weight: 400;
    color: #1f1f1f;
}

.comment-notes,
.logged-in-as {
    margin-bottom: 16px;
}

.logged-in-as a {
    text-decoration: underline;
}

.comment-form p {
    margin-bottom: 16px;
}

.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: clamp(13px, .7vw, .7vw);
    color: #1f1f1f;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #ffffff;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text-color);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form textarea:focus-visible,
.comment-form input:focus-visible {
    outline: 2px solid #1f1f1f;
    outline-offset: 1px;
    border-color: #1f1f1f;
}

.comment-form input[type="submit"] {
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    background: #1f1f1f;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: clamp(13px, .7vw, .7vw);
    cursor: pointer;
}

.comment-form input[type="submit"]:hover {
    background: #000000;
}

/* about us */
.container-about-us {
    display: flex;
}

.left-about-us {
    width: 50vw;
    height: 100vh;
}

.left-about-us iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.right-about-us {
    padding-top: 10vh;
    padding-left: 2vw;
    padding-right: 4vw;
    list-style: none;
    max-width: 50vw;
    max-height: 100vh;
    overflow: auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1920px) {
    /* authors and contributors */
    .profile {
        width: calc((100% - 7vw) / 5);
    }

    .profile h4 {
        margin-bottom: 8px;
    }


    .author-tabs .tab-content {
        padding-right: 0;
    }

    #tab-posts .post h3 {
        margin: 0;
    }
}

@media (max-width: 1334px) {
    .profile {
        width: calc((100% - 5.25vw) / 4);
    }

    .author-profile-container h2 {
        margin-bottom: .5rem;
    }




}

@media (max-width: 916px) {
    .profile {
        width: calc((100% - 32px) / 3);
    }


}

@media (max-width: 744px) {

    .page-container {
        padding: clamp(100px, 12vh, 10%) 4vw clamp(100px, 12vh, 10%) 4vw;
    }


    .profile {
        width: calc((100% - 16px) / 2);
    }


    .left-about-us {
        display: none;
    }

    .left-about-us iframe {
        display: none;
    }

    .right-about-us {
        padding-top: 10vh;
        padding-left: clamp(16px, 2vw, 2vw);
        padding-right: clamp(16px, 2vw, 2vw);
        list-style: none;
        max-width: 100%;
        max-height: 100vh;
        overflow: auto;
    }
}

@media (max-width: 425px) {
    .author-avatar {
        width: 100%;
        height: auto;
    }

    .author-avatar img {
        width: 100%;
        height: auto;
    }

}

.pagination {
    text-align: center;
    margin: clamp(30px, 1vw, 1vw) 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.page-numbers {
    list-style: none;
    display: flex;
}

/* At least 40px tall so page numbers are easy to tap. */
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    font-size: clamp(16px, .8vw, .8vw);
    color: var(--text-color-light);
    font-family: var(--font-mono);
    padding: 5px 10px;
    margin: 0 3px;
    text-decoration: none;
}

.pagination a:hover, .pagination span.current {
    color: var(--accent-color);
    font-weight: 600;
}

/* https://meet.google.com/xcx-napt-kjh */
