/* =========================================================
   KULJINDER.CC
   EDITORIAL WEBSITE SYSTEM
========================================================= */


/* =========================================================
   1. DESIGN TOKENS
========================================================= */

:root {

    --paper: #d9d8d2;
    --paper-light: #e3e2dc;

    --ink: #181715;
    --ink-soft: #3d3a34;
    --muted: #6b6861;

    --accent: #dce568;

    --border: rgba(24, 23, 21, 0.15);
    --border-strong: rgba(24, 23, 21, 0.28);

    --content-width: 1280px;

    --page-padding: 24px;

    --section-space: 112px;

    --radius: 14px;
    --pill: 999px;
}


/* =========================================================
   2. RESET
========================================================= */

* {
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;

    background: var(--paper);

    color-scheme: light;

    overflow-x: clip;
}


body {
    min-width: 320px;
    min-height: 100vh;

    background: var(--paper);
    color: var(--ink);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.5;

    overflow-x: clip;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


img {
    display: block;

    max-width: 100%;
}


a {
    color: inherit;

    text-decoration: none;
}


::selection {
    background: var(--accent);
    color: var(--ink);
}


/* =========================================================
   3. LEFT-ALIGNED CONTAINER
========================================================= */

.container {
    width: min(
        calc(100% - (var(--page-padding) * 2)),
        var(--content-width)
    );

    margin-left:
        clamp(
            24px,
            4vw,
            64px
        );

    margin-right: auto;
}


/* =========================================================
   4. SECTIONS
========================================================= */

.section {
    padding:
        var(--section-space)
        0;

    border-top:
        1px solid var(--border);
}


.section-head {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 52px;
}


.section-head-large {
    align-items: flex-end;
}


.section-index {
    display: flex;

    align-items: center;

    gap: 12px;

    color: var(--muted);

    font-size: 11px;

    font-weight: 650;

    letter-spacing: 0.11em;

    text-transform: uppercase;
}


.section-index span:first-child {
    color: var(--ink);
}


/* =========================================================
   5. HEADER
========================================================= */

.site-header {
    position: fixed;

    top: 18px;
    left: 0;

    width: 100%;

    z-index: 100;

    pointer-events: none;
}


.nav-shell {
    min-height: 52px;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    padding:
        0
        8px
        0
        20px;

    border:
        1px solid
        rgba(24, 23, 21, 0.13);

    border-radius: var(--pill);

    background:
        rgba(
            217,
            216,
            210,
            0.88
        );

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    pointer-events: auto;
}


.site-nav {
    display: flex;

    align-items: center;

    gap: 24px;
}


.site-nav a {
    color: var(--ink-soft);

    font-size: 11px;

    font-weight: 600;

    transition:
        opacity 160ms ease;
}


.site-nav a:hover {
    opacity: 0.52;
}


.nav-cta {
    padding:
        10px
        17px;

    border-radius: var(--pill);

    background: var(--ink);

    color: var(--paper) !important;
}


.nav-cta:hover {
    opacity: 0.82 !important;
}


/* =========================================================
   6. HERO
========================================================= */

.hero {
    min-height: 100svh;

    padding:
        142px
        0
        78px;

    display: flex;

    align-items: center;
}


.hero-topline {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 48px;

    color: var(--muted);

    font-size: 12px;
}


.hero-status {
    display: flex;

    align-items: center;

    gap: 9px;
}


.status-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: var(--accent);

    border:
        1px solid
        rgba(
            24,
            23,
            21,
            0.26
        );
}


.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(310px, 430px);

    align-items: center;

    gap:
        clamp(
            50px,
            7vw,
            110px
        );
}


.hero-copy {
    max-width: 760px;
}


.hero-kicker {
    margin-bottom: 20px;

    color: var(--muted);

    font-size: 13px;
}


.hero-copy h1 {
    max-width: 780px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            57px,
            7.3vw,
            104px
        );

    font-weight: 400;

    line-height: 0.92;

    letter-spacing: -0.065em;

    text-wrap: balance;
}


.hero-description {
    max-width: 535px;

    margin-top: 31px;

    color: var(--ink-soft);

    font-size:
        clamp(
            16px,
            1.8vw,
            19px
        );

    line-height: 1.6;
}


.hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 29px;
}


/* =========================================================
   7. BUTTONS
========================================================= */

.button {
    min-height: 46px;

    padding:
        0
        21px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius:
        var(--pill);

    font-size: 12px;

    font-weight: 650;

    white-space: nowrap;
}


.button-dark {
    background: var(--ink);

    color: var(--paper);

    border:
        1px solid
        var(--ink);
}


.button-dark:hover {
    background: #2c2a26;
}


.button-outline {
    background: transparent;

    color: var(--ink);

    border:
        1px solid
        var(--border-strong);
}


.button-outline:hover {
    background:
        rgba(
            24,
            23,
            21,
            0.06
        );
}


/* =========================================================
   8. HERO IMAGE
========================================================= */

.hero-visual {
    width: min(
        100%,
        410px
    );

    justify-self: end;
}


.hero-image-frame {
    position: relative;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    border:
        1px solid
        var(--border-strong);

    border-radius:
        var(--radius);

    background: #24221f;
}


.hero-image-frame img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    filter: none;

    opacity: 0.95;
}


.hero-caption {
    margin-top: 9px;

    display: flex;

    justify-content: space-between;

    color: var(--muted);

    font-size: 10px;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* =========================================================
   9. ABOUT
========================================================= */

.editorial-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, 0.65fr);

    gap: 110px;

    align-items: start;
}


.editorial-grid h2,
.interests-intro h2 {
    max-width: 740px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            42px,
            5.4vw,
            69px
        );

    font-weight: 400;

    line-height: 0.98;

    letter-spacing: -0.055em;
}


.body-copy {
    max-width: 470px;

    color: var(--ink-soft);

    font-size: 16px;

    line-height: 1.75;
}


.body-copy p + p {
    margin-top: 22px;
}


/* =========================================================
   10. CURRENTLY
========================================================= */

.section-currently {
    padding-top: 60px;

    padding-bottom: 82px;
}


.currently-list {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    border-top:
        1px dashed
        var(--border);
}


.currently-item {
    min-height: 112px;

    padding:
        22px
        24px
        22px
        0;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 8px;

    border-bottom:
        1px dashed
        var(--border);
}


.currently-item + .currently-item {
    padding-left: 24px;

    border-left:
        1px dashed
        var(--border);
}


.currently-item span {
    color: var(--muted);

    font-size: 10px;

    font-weight: 650;

    letter-spacing: 0.13em;

    text-transform: uppercase;
}


.currently-item strong {
    color: var(--ink);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 23px;

    font-weight: 400;

    line-height: 1.2;
}


/* =========================================================
   11. PROJECTS
========================================================= */

.section-projects {
    background: var(--paper-light);
}


#projects-intro,
#blog-intro {
    max-width: 360px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.55;
}


.projects-list {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 1px;

    background: var(--border);

    border:
        1px solid
        var(--border);
}


.project-card {
    min-height: 350px;

    padding: 26px;

    display: flex;

    flex-direction: column;

    background: var(--paper-light);
}


.project-card.is-link {
    cursor: pointer;
}


.project-card:hover {
    background: #e8e7e1;
}


.project-card-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    color: var(--muted);

    font-size: 10px;

    letter-spacing: 0.10em;
}


.project-card h3 {
    max-width: 350px;

    margin-top: auto;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 30px;

    font-weight: 400;

    line-height: 1;

    letter-spacing: -0.045em;
}


.project-card p {
    max-width: 380px;

    margin-top: 16px;

    color: var(--ink-soft);

    font-size: 14px;

    line-height: 1.6;
}


.project-technology {
    margin-top: 23px;

    color: var(--muted);

    font-size: 10px;

    line-height: 1.5;

    letter-spacing: 0.05em;
}


/* =========================================================
   12. BLOG
========================================================= */

.blog-list {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 1px;

    border-top:
        1px solid
        var(--border);

    border-bottom:
        1px solid
        var(--border);

    background: var(--border);
}


.blog-card {
    min-height: 350px;

    padding: 26px;

    display: flex;

    flex-direction: column;

    background: var(--paper);
}


.blog-card:hover {
    background: var(--paper-light);
}


.blog-card-meta {
    display: grid;

    grid-template-columns:
        auto
        1fr
        auto;

    gap: 13px;

    color: var(--muted);

    font-size: 9px;

    letter-spacing: 0.09em;

    text-transform: uppercase;
}


.blog-card h3 {
    max-width: 360px;

    margin-top: auto;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 29px;

    font-weight: 400;

    line-height: 1.03;

    letter-spacing: -0.045em;
}


.blog-card p {
    max-width: 380px;

    margin-top: 17px;

    color: var(--ink-soft);

    font-size: 14px;

    line-height: 1.6;
}


.blog-card-footer {
    margin-top: 23px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: var(--muted);

    font-size: 10px;

    letter-spacing: 0.08em;
}


.blog-card-footer span:last-child {
    color: var(--ink);

    font-size: 17px;
}


.text-link {
    display: inline-block;

    margin-top: 28px;

    color: var(--ink);

    border-bottom:
        1px solid
        var(--ink);

    padding-bottom: 3px;

    font-size: 12px;

    font-weight: 650;
}


/* =========================================================
   13. INTERESTS
========================================================= */

.interests-intro {
    margin-bottom: 50px;
}


.interests-list {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    border-top:
        1px dashed
        var(--border);
}


.interest-item {
    min-height: 82px;

    padding:
        18px
        20px
        18px
        0;

    display: flex;

    align-items: center;

    gap: 23px;

    border-bottom:
        1px dashed
        var(--border);
}


.interest-item:nth-child(even) {
    padding-left: 20px;

    border-left:
        1px dashed
        var(--border);
}


.interest-item span {
    color: var(--muted);

    font-size: 10px;

    letter-spacing: 0.1em;
}


.interest-item strong {
    color: var(--ink);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 27px;

    font-weight: 400;

    letter-spacing: -0.035em;
}


/* =========================================================
   14. SOCIALS
========================================================= */

.section-socials {
    background: var(--ink);

    color: var(--paper);
}


.section-socials .section-index {
    color:
        rgba(
            217,
            216,
            210,
            0.55
        );
}


.section-socials .section-index span:first-child {
    color: var(--paper);
}


.social-list {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    border-top:
        1px solid
        rgba(
            217,
            216,
            210,
            0.20
        );
}


.social-card {
    min-height: 105px;

    padding:
        24px
        0;

    display: grid;

    grid-template-columns:
        40px
        minmax(0, 1fr)
        auto;

    gap: 18px;

    align-items: center;

    border-bottom:
        1px solid
        rgba(
            217,
            216,
            210,
            0.20
        );
}


.social-card:nth-child(even) {
    padding-left: 24px;

    border-left:
        1px solid
        rgba(
            217,
            216,
            210,
            0.20
        );
}


.social-card:hover {
    background:
        rgba(
            217,
            216,
            210,
            0.04
        );
}


.social-number {
    color:
        rgba(
            217,
            216,
            210,
            0.44
        );

    font-size: 10px;
}


.social-content strong {
    display: block;

    color: var(--paper);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 24px;

    font-weight: 400;

    line-height: 1;
}


.social-content span {
    display: block;

    margin-top: 5px;

    color:
        rgba(
            217,
            216,
            210,
            0.58
        );

    font-size: 11px;
}


.social-arrow {
    color: var(--accent);

    font-size: 18px;
}


/* =========================================================
   15. CONTACT
========================================================= */

.contact-section {
    padding-top: 120px;

    padding-bottom: 120px;
}


.contact-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.12fr)
        minmax(250px, 0.5fr);

    gap: 100px;

    align-items: end;
}


.contact-grid h2 {
    max-width: 800px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            52px,
            6.8vw,
            90px
        );

    font-weight: 400;

    line-height: 0.94;

    letter-spacing: -0.065em;
}


.contact-action {
    max-width: 350px;
}


.contact-action p {
    margin-bottom: 24px;

    color: var(--ink-soft);

    font-size: 15px;

    line-height: 1.65;
}


/* =========================================================
   16. FOOTER
========================================================= */

.site-footer {
    padding:
        26px
        0
        32px;

    background: var(--paper-light);

    border-top:
        1px solid
        var(--border);

    color: var(--muted);

    font-size: 11px;
}


.footer-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr
        auto;

    gap: 20px;

    align-items: center;
}


.footer-label {
    display: block;

    margin-bottom: 2px;
}


.footer-grid strong {
    color: var(--ink);

    font-weight: 600;
}


.footer-status {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;
}


.footer-grid > a {
    color: var(--ink-soft);
}


/* =========================================================
   17. ARTICLE PAGE
========================================================= */

.blog-page {
    min-height: 100vh;
}


.blog-header,
.article-header {
    padding-top: 145px;
}


.blog-header {
    padding-bottom: 80px;
}


.blog-back,
.article-back {
    display: inline-block;

    margin-bottom: 50px;

    color: var(--muted);

    font-size: 10px;

    font-weight: 650;

    letter-spacing: 0.10em;

    text-transform: uppercase;
}


.blog-page-title {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            60px,
            8vw,
            112px
        );

    font-weight: 400;

    line-height: 0.92;

    letter-spacing: -0.065em;
}


.blog-page-description {
    max-width: 560px;

    margin-top: 25px;

    color: var(--ink-soft);

    font-size: 17px;

    line-height: 1.6;
}


.blog-archive {
    padding-bottom: 120px;
}


.article-header {
    padding-bottom: 70px;
}


.article-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 13px;

    margin-bottom: 24px;

    color: var(--muted);

    font-size: 10px;

    letter-spacing: 0.10em;

    text-transform: uppercase;
}


.article-header h1 {
    max-width: 900px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            54px,
            7.3vw,
            105px
        );

    font-weight: 400;

    line-height: 0.93;

    letter-spacing: -0.065em;
}


.article-content {
    width: min(
        720px,
        calc(100% - 48px)
    );

    margin-left:
        clamp(
            24px,
            4vw,
            64px
        );

    padding-bottom: 130px;
}


.article-content p {
    color: var(--ink-soft);

    font-size: 18px;

    line-height: 1.85;
}


.article-content p + p {
    margin-top: 27px;
}


.article-content h2 {
    margin-top: 65px;

    margin-bottom: 21px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 38px;

    font-weight: 400;

    line-height: 1;

    letter-spacing: -0.045em;
}


.missing-post {
    padding: 90px 0;
}


.missing-post span {
    color: var(--muted);

    font-size: 10px;

    letter-spacing: 0.1em;
}


.missing-post h1 {
    margin-top: 12px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 54px;

    font-weight: 400;
}


/* =========================================================
   18. FOCUS
========================================================= */

:focus-visible {
    outline:
        2px solid
        var(--ink);

    outline-offset: 4px;
}


/* =========================================================
   19. TABLET
========================================================= */

@media (max-width: 900px) {

    :root {
        --page-padding: 20px;

        --section-space: 90px;
    }


    .hero {
        padding-top: 125px;
    }


    .hero-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }


    .hero-visual {
        justify-self: start;

        width: min(
            100%,
            400px
        );
    }


    .editorial-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }


    .currently-list {
        grid-template-columns: 1fr;
    }


    .currently-item + .currently-item {
        padding-left: 0;

        border-left: none;
    }


    .projects-list,
    .blog-list {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .blog-card {
        border-right: none;
    }


    .contact-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .contact-action {
        max-width: 500px;
    }
}


/* =========================================================
   20. MOBILE
========================================================= */

@media (max-width: 620px) {

    :root {
        --page-padding: 16px;

        --section-space: 76px;
    }


    .container {
        width: calc(
            100% -
            (var(--page-padding) * 2)
        );

        margin-left: var(--page-padding);

        margin-right: 0;
    }


    .site-header {
        top: 10px;
    }


    .nav-shell {
        width:
            calc(
                100% -
                32px
            );

        margin-left: 16px;

        padding:
            0
            7px
            0
            15px;
    }


    .site-nav {
        width: 100%;

        gap: 14px;

        overflow-x: auto;

        scrollbar-width: none;
    }


    .site-nav::-webkit-scrollbar {
        display: none;
    }


    .site-nav a {
        flex: 0 0 auto;

        font-size: 9px;
    }


    .nav-cta {
        flex: 0 0 auto;

        padding:
            9px
            13px;

        font-size: 10px;
    }


    .hero {
        min-height: auto;

        padding-top: 125px;

        padding-bottom: 75px;
    }


    .hero-topline {
        margin-bottom: 36px;
    }


    .hero-location {
        display: none;
    }


    .hero-copy h1 {
        font-size:
            clamp(
                51px,
                15vw,
                76px
            );
    }


    .hero-description {
        font-size: 16px;
    }


    .hero-actions {
        width: 100%;
    }


    .button {
        min-height: 44px;

        padding-inline: 18px;
    }


    .hero-visual {
        width: 100%;
    }


    .hero-image-frame {
        border-radius: 12px;
    }


    .section-head {
        margin-bottom: 38px;
    }


    .section-head-large {
        display: block;
    }


    #projects-intro,
    #blog-intro {
        margin-top: 18px;
    }


    .editorial-grid h2,
    .interests-intro h2 {
        font-size: 41px;
    }


    .body-copy {
        font-size: 15px;
    }


    .projects-list,
    .blog-list {
        grid-template-columns: 1fr;
    }


    .project-card,
    .blog-card {
        min-height: 300px;
    }


    .interests-list {
        grid-template-columns: 1fr;
    }


    .interest-item:nth-child(even) {
        padding-left: 0;

        border-left: none;
    }


    .social-list {
        grid-template-columns: 1fr;
    }


    .social-card:nth-child(even) {
        padding-left: 0;

        border-left: none;
    }


    .contact-section {
        padding-top: 88px;

        padding-bottom: 88px;
    }


    .contact-grid h2 {
        font-size: 52px;
    }


    .footer-grid {
        grid-template-columns: 1fr;

        gap: 15px;

        align-items: start;
    }


    .footer-status {
        justify-content: flex-start;
    }


    .blog-header,
    .article-header {
        padding-top: 125px;
    }


    .blog-page-title {
        font-size: 57px;
    }


    .article-header h1 {
        font-size: 53px;
    }


    .article-content {
        width: calc(100% - 32px);

        margin-left: 16px;

        padding-bottom: 90px;
    }


    .article-content p {
        font-size: 16px;

        line-height: 1.75;
    }


    .article-content h2 {
        font-size: 34px;
    }
}


/* =========================================================
   21. VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .site-nav a:nth-child(4) {
        display: none;
    }


    .hero-copy h1 {
        font-size: 49px;
    }


    .editorial-grid h2,
    .interests-intro h2 {
        font-size: 36px;
    }


    .contact-grid h2 {
        font-size: 46px;
    }


    .hero-actions {
        flex-direction: column;
    }


    .button {
        width: 100%;
    }
}
/* =========================================================
   22. ERROR PAGE
========================================================= */

.error-page {
    min-height: 100svh;

    display: flex;
    align-items: center;
}


.error-content {
    padding-top: 100px;
}


.error-code {
    display: block;

    margin-bottom: 18px;

    color: var(--muted);

    font-size: 11px;

    font-weight: 650;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.error-content h1 {
    max-width: 760px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            54px,
            7vw,
            96px
        );

    font-weight: 400;

    line-height: 0.94;

    letter-spacing: -0.06em;
}


.error-content p {
    max-width: 470px;

    margin-top: 24px;

    color: var(--ink-soft);

    font-size: 16px;

    line-height: 1.6;
}


.error-content .button {
    margin-top: 28px;
}
/* =========================================================
   SOCIAL CARD FIX
========================================================= */

.social-icon {
    color: var(--color-text);
}

.social-icon svg {
    fill: currentColor !important;
    color: inherit;
}

.social-info {
    min-width: 0;
}

.social-info strong {
    display: block !important;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.social-info span {
    display: block !important;
    margin-top: 4px;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.3;
}