:root {
    --size: max(0.22vw, 0.15rem);
    --s: max(1.1vw, 0.6rem) max(1.1vw, 0.6rem);
    --bg: radial-gradient(circle at 25% 0%, black var(--size), transparent 0),
        radial-gradient(circle at 75% 50%, black var(--size), transparent 0),
        radial-gradient(circle at 25% 100%, black var(--size), transparent 0),
        radial-gradient(circle at 75% 50%, black var(--size), transparent 0),
        linear-gradient(45deg, lime, cornflowerblue, darkorchid);
}

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

body {
    font-family: "Fira Sans", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.4;
    background: var(--bg);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
    shape-margin: 1rem;
}

.nav {
    display: flex;
    justify-content: space-around;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: #fff;
}

.nav-list {
    display: flex;
    margin-right: 2rem;
}

.nav-list a {
    display: block;
    font-size: 2.2rem;
    padding: 1rem;
    color: purple;
    text-shadow: 1px 1px 1px greenyellow, 3px 3px 5px orange;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

h1,
h2,
h3 {
    font-family: "Fugaz One", sans-serif;
    text-align: center;
}

.welcome-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    background: var(--bg);
    background-size: var(--s), var(--s), var(--s), var(--s), 100% 100%;
    background-position: center;
    color: #fff;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 8rem);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 0.01em yellow;
    filter: drop-shadow(0.03em 0.03em 0 whitesmoke);
}

.welcome-section>h1>span {
    color: transparent;
    background: rgb(0 0 0 / 0.75);
    border-radius: 55%;
}

.welcome-section>p {
    font-size: 2.5rem;
    font-weight: 200;
    text-align: center;
    text-shadow: 2px 2px 9px orange;
}

.blog-section {
    padding: clamp(1rem, 2vw, 5rem);
    background: rgb(0 0 0 / 0.75);
    text-align: center;
}

.blog-section h2 {
    font-size: 2.7rem;
    text-shadow: 2px 2px 2px deeppink, 3px 3px 5px blueviolet;
}

.blog-section-header {
    max-width: 640px;
    margin: 0 auto 2rem auto;
    border-bottom: 0.25rem solid white;
    color: white;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    grid-gap: 4rem;
    place-items: center;
    width: 100%;
    height: 100%;
    margin-bottom: 5rem;
}

.blog {
    border-radius: 5px;
}

.post-tile>p {
    color: #fff;
    font-size: 1.5rem;
    padding: 1.5rem 0.5rem;
}

.btn-show-all {
    padding: 0.6em 2em;
    border: none;
    outline: none;
    color: rgb(255, 255, 255);
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    font-family: "Playfair Display", serif;
}

.btn:before {
    content: "";
    background: linear-gradient(45deg,
            #ff0000,
            #ff7300,
            #fffb00,
            #48ff00,
            #00ffd5,
            #002bff,
            #7a00ff,
            #ff00c8,
            #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowingbtn 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 10px;
}

/* Cards used on the index posts grid (title + summary) */
.posts-grid .post-tile {
    display: block;
    width: 100%;
    max-width: 600px;
}

.post-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 1.25rem;
    border-radius: 10px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card-title {
    font-size: 1.25rem;
    margin: 0 0 0.4rem 0;
    color: #fff;
    font-family: "Fugaz One", sans-serif;
}

.post-card-summary {
    margin: 0;
    color: #e9e9e9;
    font-size: 0.98rem;
    line-height: 1.45;
}

.posts-grid .post-tile:hover .post-card {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.post-tile.disabled {
    opacity: 0.7;
    pointer-events: none;
}

@media (min-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@keyframes glowingbtn {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.btn:active {
    color: greenyellow;
}

.btn:active:after {
    background: transparent;
}

.btn:hover:before {
    opacity: 1;
}

.btn:after {
    z-index: -1;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    color: #fffb00;
    left: 0;
    top: 0;
    border-radius: 10px;
}

.contact-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100vh;
    padding: 0 2rem;
    background: var(--bg);
    background-size: var(--s), var(--s), var(--s), var(--s), 100% 100%;
    background-position: center;
    color: white;
}

.contact-section-header>h3>span {
    color: transparent;
    background: rgb(0 0 0 / 0.75);
    border-radius: 45%;
}

.contact-section-header>h3 {
    font-size: clamp(2rem, 6vw, 8rem);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 0.01em yellow;
    filter: drop-shadow(0.03em 0.03em 0 whitesmoke);
}

.contact-section-header>p {
    font-size: 1.9rem;
    color: rgb(252, 252, 252);
    padding-top: clamp(1rem, 2vw, 5rem);
    filter: drop-shadow(0.05em 0.05em 0 deeppink);
}

.contact-list {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 980px;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-details {
    font-size: 1.6rem;
    color: whitesmoke;
    text-shadow: 2px 2px 2px deeppink, 2.5px 2.5px 2.5px yellow;
    transition: transform 0.3s ease-out;
}

.btn {
    display: inline-block;
    padding: 2rem 4rem;
    border-radius: 2px;
}

a {
    text-decoration: none;
    color: #fff;
}

hr {
    border: 4px solid black;
}

footer {
    font-weight: 400;
    text-align: center;
    width: 100%;
    height: 17vh;
}

.btn {
    position: relative;
}

.contact-list .contact-details {
    padding: 0.6em 1.2em;
    border-radius: 10px;
    margin: 0.25rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.12s ease;
    display: inline-flex;
    align-items: center;
}

.contact-list .contact-details:hover,
.contact-list .contact-details:focus {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    outline: none;
}

.contact-list .contact-details:before {
    opacity: 0;
}

.contact-list .contact-details:hover:before,
.contact-list .contact-details:focus:before {
    opacity: 1;
}

footer>p {
    font-size: 1.5rem;
    font-family: "Playfair Display", serif;
    padding: 2rem;
}

@media screen and (width <=900px) {
    body {
        min-height: 100vh;
    }

    .nav {
        display: flex;
        position: fixed;
        justify-content: space-around;
        top: 0;
        left: 0;
        width: 100%;
    }

    .nav-list {
        display: flex;
        margin-right: 2rem;
    }

    .nav-list a {
        display: block;
        font-size: 2.2rem;
        padding: 1rem;
        color: purple;
        text-shadow: 1px 1px 1px greenyellow, 3px 3px 5px orange;
    }

    .contact-links {
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 978px;
    }
}

/* Post page specific styles */
.post-page {
    padding: clamp(1rem, 2vw, 3rem);
    max-width: 980px;
    margin: 6rem auto;
    color: #fff;
}

.post-article {
    background: rgba(0, 0, 0, 0.55);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.post-header h1 {
    font-family: "Fugaz One", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    margin-bottom: 0.25rem;
    color: #fff;
}

.post-meta {
    font-size: 0.95rem;
    color: #dcdcdc;
    margin-bottom: 0.75rem;
}

.post-summary {
    font-style: italic;
    color: #f3f3f3;
    margin-bottom: 1.25rem;
}

.post-body {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #fff;
}

.post-body h2 {
    margin-top: 1.25rem;
    color: #ffdca8;
}

.post-body ol,
.post-body ul {
    margin: 0.75rem 0 1rem 1.25rem;
}

.post-body li {
    margin-bottom: 0.6rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
    border-radius: 6px;
}

/* Divider inserted by small script on posts */
.post-divider {
    border: 0;
    /* thicker, centered, and more visible */
    height: 3px;
    width: 80%;
    margin: 1.5rem auto 2rem auto;
    /* brand-accent purple gradient */
    background: linear-gradient(90deg,
            rgba(122, 0, 255, 0.14),
            rgba(122, 0, 255, 0.55),
            rgba(122, 0, 255, 0.14));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35),
        0 0 8px rgba(255, 255, 255, 0.03) inset;
    border-radius: 4px;
}

.post-footer {
    margin-top: 1.5rem;
    text-align: left;
}

.post-footer a {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .post-page {
        margin: 5rem 1rem;
        padding: 1rem;
    }

    .post-article {
        padding: 1rem;
    }

    .post-header h1 {
        font-size: 1.6rem;
    }
}