:root {
    --main-background: #12131a;
    --main-text: #f3f4f6;
    --accent-color: #84cc16;
    --accent-text: #0f172a;
    --secondary-background: #1e293b;
    --secondary-text: #e2e8f0;
    --muted-text: #9ca3af;
    --headings-font: 'Space Grotesk', sans-serif;
    --body-font: 'Plus Jakarta Sans', sans-serif;
}

*,
::before,
::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--main-background);
    color: var(--main-text);
    font-family: var(--body-font);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: all 0.3s ease-in-out;
}

button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--headings-font);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0.5em;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 3.5vw, 2.0rem);
    }

    h3 {
        font-size: clamp(1.25rem, 3vw, 1.6rem);
    }

    h4 {
        font-size: clamp(1.10rem, 2.5vw, 1.3rem);
    }

    h5 {
        font-size: 1.0rem;
    }

    h6 {
        font-size: 0.875rem;
    }

    span,
    p,
    a,
    div {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* ===== header ===== */
header {
    border-color: rgba(30, 41, 59, 0.8);
}

.js-mobile-menu {
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

/* ===== hero ===== */
#hero {
    overflow-x: hidden;
    background-color: var(--main-background);
}

#hero h1,
#hero h3 {
    hyphens: auto;
    word-break: break-word;
}

#hero .absolute.inset-0 {
    background-color: rgba(18, 19, 26, 0.88);
}

/* ===== about_author ===== */
#about {
    overflow-x: hidden;
}

.js-timeline-pane {
    transition: all 0.3s ease-in-out;
}

.js-timeline-btn:focus {
    outline: none;
}

/* ===== featured_article ===== */
.js-share-btn:active {
    transform: scale(0.95);
}

/* ===== latest_posts ===== */
.custom-h2 {
    font-size: 16px;
    line-height: 1.2;
    hyphens: auto
}

@media (min-width:768px) {
    .custom-h2 {
        font-size: 32px
    }
}

.custom-h3 {
    font-size: 14px;
    line-height: 1.2;
    hyphens: auto
}

@media (min-width:768px) {
    .custom-h3 {
        font-size: 22px
    }
}

.js-expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease-in-out;
    opacity: 0
}

.js-expanded-content.is-active {
    max-height: 1500px;
    opacity: 1
}

.post-card-img {
    height: 100%;
    min-height: 250px;
    object-fit: cover
}

/* ===== saidbar ===== */
#sidebar {
    overflow-x: hidden;
}

#sidebar .hyphens-auto {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* ===== feedback_form ===== */
#contact {
    background-color: var(--main-background, #12131a);
    color: var(--main-text, #f3f4f6);
    overflow-x: hidden;
}

#contact .form-container {
    background-color: var(--secondary-background, #1e293b);
}

#contact input,
#contact textarea {
    background-color: var(--main-background, #12131a);
    color: var(--main-text, #f3f4f6);
    border-color: rgba(255, 255, 255, 0.1);
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: var(--muted-text, #9ca3af);
    opacity: 0.7;
}

#contact input:focus,
#contact textarea:focus {
    border-color: var(--accent-color, #84cc16);
    outline: none;
}

#contact .btn-accent {
    background-color: var(--accent-color, #84cc16);
    color: var(--accent-text, #0f172a);
}

#contact .btn-accent:hover {
    opacity: 0.9;
}

/* ===== footer ===== */
#footer {
    background-color: var(--main-background);
    color: var(--main-text);
    overflow-x: hidden;
}

.footer-text-muted {
    color: var(--muted-text);
}

.footer-text-accent {
    color: var(--accent-color);
}

.footer-accent-bg {
    background-color: var(--accent-color);
    color: var(--accent-text);
}

.footer-secondary-bg {
    background-color: var(--secondary-background);
    color: var(--secondary-text);
}

.js-newsletter-card .js-form-screen {
    transition: all 0.4s ease-in-out;
}

.js-newsletter-card .js-success-screen {
    transition: all 0.4s ease-in-out;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.js-newsletter-card.is-success .js-form-screen {
    transform: translateY(-50px);
    opacity: 0;
    pointer-events: none;
}

.js-newsletter-card.is-success .js-success-screen {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

input#footer-email::placeholder {
    color: #9ca3af;
}