/* ============================= ++
|| Linus Kreh - Personal Website ||
|| Last updated: 2026-08-01      ||
|| Designed by: KREH-ATIV        ||
++ ============================= */

:root {
    --clr-body: #1F1F1F;
    --clr-body-bg: whitesmoke;
    --clr-card-bg: white;
    --clr-header: #1A1A1A;
    --clr-header-hover: black;
    --clr-royalblue: royalblue;
    --clr-cornflowerblue: cornflowerblue;
    --clr-border: gainsboro;

    --shadow-default: 0 0 16px rgba(100 100 100 / .3);
    --shadow-default: 0 4px 12px rgba(0 0 0 / .1);
    --shadow-card: 0 0 8px rgba(0 0 0 / .16);
    --shadow-card-hover: 0 0 16px rgba(100 100 100 / .75);

    --header-height: 74px;


    scroll-padding-top: var(--header-height);

    font-family: system-ui, 'Segoe UI', Geneva, Verdana, sans-serif;
    font-size: 16px;

    color-scheme: light only;
    background-image: linear-gradient(
        310deg,
        hsl(225 73% 95%),
        hsl(219 79% 98%)
    );
    color: var(--clr-body);
}



/* =========================
  GENERAL
========================= */

body {
    margin: var(--header-height) 0 0 0;
}

.wrapper {
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 1rem;
}

.text-highlighted, .brand .title, .hero li strong {
    background-image: linear-gradient(
        130deg,
        var(--clr-royalblue),
        var(--clr-cornflowerblue)
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 1em;
}

/* ===== Arrow Link ===== */

a.arrow-link {
    display: flex;
    align-items: center;
    gap: .3em;
    width: fit-content;
    padding-right: .25em;

    text-decoration: none;

    color: var(--clr-royalblue);
}

a.arrow-link span {
    position: relative;

    display: inline-block;
    width: .6em;
    height: .1em;

    background: currentColor;

    transition: transform .25s ease;
}
a.arrow-link span::after {
    content: "";

    position: absolute;
    top: 50%;
    right: 0;
    width: 0.4em;
    height: 0.4em;
    border-top: 0.1em solid currentColor;
    border-right: 0.1em solid currentColor;

    transform: translateY(-50%) rotate(45deg);
}

a.arrow-link:hover {
    color: var(--clr-cornflowerblue);
}
a.arrow-link:hover span {
    transform: translateX(.25em);
}

/* ===== Default Hero ===== */

.hero-default {
    padding: 3rem 0;

    background-image: linear-gradient(
        310deg,
        hsl(225 73% 96%),
        hsl(219 79% 96%)
    );
}

.hero-default h1 {
    margin: 0;

    font-size: 2.5rem;
    font-weight: 600;
}

.hero-default p {
    margin-block: .5rem;
    
    font-size: 1.25rem;
    font-weight: 500;
}



/* =========================
  HEADER
========================= */

header {
    position: fixed;
    top: 0;
    z-index: 1;

    width: 100%;

    background-color: hsla(219 78% 90% / 0.5);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    max-width: 1140px;
    margin: 0 auto;
    padding: .75rem 1.25rem;
}

/* ===== Brand ===== */

.brand {
    display: flex;
    flex-direction: column;

    text-decoration: none;

    color: var(--clr-header);
}

.brand .title {
    font-size: 1.4rem;
    font-weight: bold;

    transition: .25s transform;
}
.brand:hover .title {
    transform: scale(1.05);
}

.brand .subtitle {
    font-size: 0.9rem;

    opacity: 0.8;
}

/* ===== Hamburger Button ===== */

.nav-toggle {
    display: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 10px;

    border-radius: 8px;
    background-color: rgba(255 255 255 / .75);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);

    cursor: pointer;
    transition: background-color .25s;
}
.hamburger:hover {
    background-color: rgb(255 255 255);
}

.hamburger span {
    width: 18px;
    height: 2px;
    
    border-radius: 2px;
    background-color: var(--clr-header);
}

/* ===== Mobile Navigation Links ===== */

.nav-links {
    overflow: hidden;
    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    max-height: 0;
    margin: 0;
    padding: 0;

    background: hsl(219 79% 86%);
    opacity: 0;
    list-style: none;

    transition: max-height 0.5s ease, opacity 0.25s ease;
}

.nav-links a {
    display: block;
    padding: .75em 1.25rem;

    text-decoration: none;

    color: var(--clr-header);
}
.nav-links a:hover {
    color: var(--clr-header-hover);
}

/* ===== Expanded Mobile Navigation ===== */

.nav-toggle:checked ~ .nav-links {
    max-height: 500px;
    opacity: 1;
}

.nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
}
.nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* --- Header - Desktop Layout --- */

@media (min-width: 450px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        position: static;

        display: flex;
        flex-direction: row;
        width: auto;
        max-height: none;

        background: none;
        opacity: 1;
    }

    .nav-links a {
        position: relative;
        padding: .5em 1em;
    }
    .nav-links a::after {
        content: "";

        position: absolute;
        bottom: 0;
        left: 1em;
        width: 0;
        height: 2px;

        background-image: linear-gradient(
            to left,
            var(--clr-royalblue),
            var(--clr-cornflowerblue)
        );

        transition: 0.25s;
    }
    .nav-links a:hover:after {
        width: calc(100% - 2em);
    }
}



/* =========================
  FOOTER
========================= */

footer {
    margin-top: 1rem;
}

footer hr {
    margin: 0;
    border: none;
    border-top: 1px solid var(--clr-border);
}

footer div {
    padding: 2rem 0;

    font-size: .85rem;
}



/* =========================
  HOME
========================= */

/* ===== Hero-Section ===== */

.hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-height));

    background-image: linear-gradient(
        120deg,
        rgba(100 148 237 / 0.7),
        rgba(215 217 208 / 0.4)
    );
}

.hero .wrapper {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem 5rem;
    padding-block: 1rem;
}

.hero-img {
    aspect-ratio: 1;
    object-fit: cover;

    align-self: center;
    width: 350px;
    max-width: 100%;

    border-radius: 32px;
    box-shadow: var(--shadow-default);
}

.hero h1 {
    margin: 0;

    font-size: clamp(2rem, 4vw, 4rem);
}

.hero h1+p {
    margin-block: .9em;

    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: normal;
}

.hero ul {
    margin-block: 0;
    padding-inline-start: 0;
    max-width: 500px;

    font-size: 1.1rem;

    list-style-type: none;
}

.hero li {
    margin-bottom: 1rem;
    padding: .5em;

    border-radius: 8px;
    background-color: rgba(255 255 255 / 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-default);
}

.hero li strong {
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero li p {
    margin-block: 0;
}

/* --- Hero-Section - Desktop Layout --- */

@media (min-width: 800px) {
    .hero .wrapper {
        flex-direction: row;
    }
}

/* ===== Projects-Section ===== */

.project {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem 3rem;
    margin-bottom: 3rem;
}

.project strong {
    font-size: 1.1rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.project h3 {
    margin: 0;

    font-size: clamp(1.4rem, 4vw, 1.75rem);
    font-weight: 500;
}

.project p {
    margin: 1em 0;

    font-size: 1.1rem;
}

.project a {
    margin: 1em 0 0 0;

    font-size: 1.1rem;
    font-weight: 500;
}

.project img {
    aspect-ratio: 3 / 2;
    object-fit: cover;

    width: 100%;

    border-radius: 16px;
    box-shadow: var(--shadow-default);
}

/* --- Projects-Section - Desktop Layout --- */

@media (min-width: 720px) {
    .project {
        flex-direction: row;
    }
    .project:nth-child(even) {
        flex-direction: row-reverse;
    }

    .project img {
        width: calc(50% - 1.5rem);
        height: 100%;
    }
    
    .project div {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ===== About-Section ===== */

.about-card {
    max-width: 600px;
    margin: 5rem auto;
    padding: 3rem;
    border: 1px solid var(--clr-card-border);

    text-align: center;

    border-radius: 1rem;
    background-color: rgba(255 255 255 / 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-default);
}

.about-card h2 {
    margin: 0;

    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.about-card p {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
}



/* =========================
  BLOG
========================= */

.blog-list {
    display: grid;
    gap: 1rem;
    padding-block: 3rem;
}

.blog-card {
    display: flex;
    border: 1px solid var(--clr-card-border);

    font-size: .9rem;

    border-radius: .5em;
    background-color: var(--clr-card-bg);
    box-shadow: var(--shadow-card);
    
    transition: .25s box-shadow;
}
.blog-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.blog-card a {
    display: block;
    padding: 1rem;

    text-decoration: none;

    border-radius: .5em;
    color: inherit;
}

.blog-card-thumbnail {
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    padding: 1em;

    border-radius: .5em;
    background-color: var(--clr-body-bg);
}

.blog-card-thumbnail img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 250px;

    border-radius: .5em;
}

.blog-card h2 {
    font-weight: 500;
}

.blog-card-author {
    display: flex;
    align-items: center;
    column-gap: .5em;
}

.blog-card-author img {
    width: 20px;
    height: 20px;

    border-radius: 50%;
}
.blog-card-author img[src="../images/person.svg"] {
    width: 14px;
    height: 14px;
    margin: 3px 0 3px 3px;

    border-radius: 0;
}

.blog-card hr {
    margin: 1em 0;
    border: none;
    border-top: 1px solid var(--clr-border);
}

.blog-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5em 1em;
}

.blog-card .tag {
    padding: .4em .75em;

    font-size: .75rem;

    border-radius: 99999px;
    background-color: var(--clr-body-bg);
}

/* --- Blog-Card - Desktop Layout --- */

@media (min-width: 720px) {
    .blog-list .blog-card a {
        display: flex;
        column-gap: 1em;
    }

    .blog-list .blog-card-thumbnail {
        flex: 4
    }

    .blog-list .blog-card-body {
        flex: 6
    }
}



/* =========================
  BLOG-ARTICLE
========================= */

/* ===== Blog Header ===== */

.blog-header {
    padding: 2rem 0;
}

.blog-release {
    font-size: .9rem;
}

.blog-title {
    margin-top: 0;

    font-size: clamp(1.75rem, .5rem + 3vw, 2.5rem);
    font-weight: 600;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 2rem 0;
}

.blog-author-avatar {
    width: 40px;
    height: 40px;

    border-radius: 99999px;
}
.blog-author-avatar[src="../images/person.svg"] {
    width: 36px;
    height: 36px;

    border-radius: 0;
}

.blog-author-name {
    margin-right: 1rem;
}
.blog-author-name :first-child {
    font-weight: bold;
}
.blog-author-name :last-child {
    font-size: .9rem;
}

/* ===== Blog Body ===== */

.blog-body {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 2rem 5rem;
}

/* ===== Blog Content ===== */

.blog-content {
    flex: 1 1 400px;
}

.blog-content h2 {
    font-weight: 600;
}

.blog-content p {
    line-height: 1.5rem;
}

.blog-content img {
    width: 100%;

    border-radius: 1rem;
}

/* ===== Blog Table of Contents ===== */

.blog-toc {
    position: sticky;
    top: calc(var(--header-height) + 2rem);

    flex: 0 1 300px;
}

.blog-toc h2 {
    margin-top: 0;

    font-size: 1.3rem;
    font-weight: 600;
}

.blog-toc ul {
    padding-inline-start: 0;

    list-style-type: none;

    scroll-target-group: auto;
}

.blog-toc li {
    padding-block: .25em;
}

.blog-toc a {
    position: relative;

    display: inline-block;

    font-size: .9rem;
    text-decoration: none;

    color: var(--clr-body);
}
.blog-toc a:target-current {
    font-size: 1rem;
    font-weight: 500;
}
.blog-toc a:target-current::before {
    content: "";

    position: absolute;
    top: 5%;
    left: -.75rem;
    width: 3px;
    height: 90%;

    border-radius: 99999px;
    background-image: linear-gradient(
        to left,
        var(--clr-royalblue),
        var(--clr-cornflowerblue)
    );

    transition: 0.25s;
}

/* --- Blog-Body - Desktop Layout --- */

@media (max-width: calc(700px + 5rem + 2rem + 14px)) {
    .blog-toc {
        position: static;
    }
}



/* =========================
  WORK
========================= */

.project-card {
    display: flex;
    border: 1px solid var(--clr-card-border);

    border-radius: 1em;
    background-color: var(--clr-card-bg);
    box-shadow: var(--shadow-card);

    transition: .25s box-shadow;
}
.project-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.project-card a {
    display: block;
    padding: 1em;

    text-decoration: none;
    
    border-radius: 1em;
    color: var(--clr-body);
}

.project-card img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    
    width: 100%;
    margin-bottom: .75em;

    border-radius: .8em;
}

.project-card h3 {
    margin: 0.75em 0 0.4em;

    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.project-card p {
    margin: 0;

    font-size: 0.95rem;
    line-height: 1.5;

    color: color-mix(in srgb, var(--clr-body) 80%, black);
}



/* =========================
  LEARN-IN-ONE
========================= */

.hero-lio {
    padding: 3rem 0;
}

.hero-lio .wrapper {
    display: flex;
    flex-wrap: wrap-reverse;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.hero-lio h1 {
    margin: 0;

    font-size: clamp(1.5rem, 1rem + 5vw, 5rem);
}

.hero-lio h2 {
    margin-top: 0;

    font-size: clamp(1.25rem, 1rem + 3vw, 2.5rem);
    font-style: italic;
    font-weight: normal;
}

.hero-lio p {
    margin-bottom: 0;

    font-size: clamp(1.1rem, 1rem + 2vw, 1.75rem);
    text-wrap: balance;
}

.hero-lio img {
    width: min(75%, 300px);
}



/* =========================
  ABOUT
========================= */

/* ===== Interests ===== */

.interests-section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1rem;
}

.interest-section h2 {
    margin-bottom: 0.5rem;

    font-size: 2rem;
}

.interest-section p {
    margin-bottom: 2rem;

    color: #555;
}

.interest-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.interest-image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;

    width: 100%;

    border-radius: 12px;
    box-shadow: var(--shadow-default);
}

.interest-text h3 {
    margin: 0 0 0.5rem;

    font-size: 1.4rem;
}

.interest-text p {
    line-height: 1.6;
    
    color: #444;
}

/* --- Interests - Desktop-Layout --- */

@media (min-width: 768px) {
    .interest-item {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .interest-image, .interest-text {
        flex: 1;
    }
}












/* ===== Default Hero-Section ===== */

.main-btn {
    display: inline-block;
    padding: 1rem 2rem;

    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;

    border-radius: .25em;
    background-color: var(--clr-body);
    color: var(--clr-card-bg);
}




.wrapper-small {
    max-width: 840px;
    margin-inline: auto;
    padding: 4rem 1rem;
}

.wrapper-small h2 {
    margin: 0;

    font-size: clamp(1.75rem, 4vw, 3rem);
}
.wrapper-small p {
    margin: clamp(1rem, 4vw, 2rem) 0 0 0;

    font-size: clamp(1.1rem, 4vw, 1.7rem);
}

.more-section {
    padding-block: 2rem;
    
    font-size: clamp(1rem, 4vw, 1.5rem);
}
.more-section a {
    margin-left: auto;
}