/* ==========================================
   Modern Content Typography
========================================== */

.alya-content {
    width: 100%;

    color: #334155;

    font-size: 16px;

    line-height: 1.85;

    font-weight: 400;

    letter-spacing: -.01em;

    word-break: break-word;

    overflow-wrap: break-word;

    text-rendering: optimizeLegibility;

    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   First Element
========================================== */

.alya-content > *:first-child {
    margin-top: 0 !important;
}

/* ==========================================
   Last Element
========================================== */

.alya-content > *:last-child {
    margin-bottom: 0 !important;
}

/* ==========================================
   Headings
========================================== */

.alya-content h1,
.alya-content h2,
.alya-content h3,
.alya-content h4,
.alya-content h5,
.alya-content h6 {
    color: #0f172a;

    font-weight: 800;

    line-height: 1.2;

    letter-spacing: -.03em;

    margin-top: 1.2em;

    margin-bottom: .45em;

    scroll-margin-top: 120px;
}
/* First Heading */

.alya-content h1:first-child,
.alya-content h2:first-child,
.alya-content h3:first-child,
.alya-content h4:first-child,
.alya-content h5:first-child,
.alya-content h6:first-child {
    margin-top: 0;
}

/* Heading Sizes */

.alya-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.alya-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);

    padding-bottom: .3rem;

    border-bottom:
        1px solid rgba(
            226,
            232,
            240,
            .7
        );
}

.alya-content h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.alya-content h4 {
    font-size: 1.5rem;
}

.alya-content h5 {
    font-size: 1.25rem;
}

.alya-content h6 {
    font-size: 1rem;

    text-transform: uppercase;

    letter-spacing: .08em;

    color: #64748b;
}

/* ==========================================
   Paragraph
========================================== */

.alya-content p {
    margin-bottom: 1em;

    color: #475569;
}

/* ==========================================
   Heading + Paragraph
========================================== */

.alya-content h1 + p,
.alya-content h2 + p,
.alya-content h3 + p,
.alya-content h4 + p,
.alya-content h5 + p,
.alya-content h6 + p {
    margin-top: .2em;
}

/* ==========================================
   Strong & Bold
========================================== */

.alya-content strong,
.alya-content b {
    color: #0f172a;

    font-weight: 700;
}

/* ==========================================
   Lists
========================================== */

.alya-content ul,
.alya-content ol {
    margin:
        1.4rem
        0;

    padding-left: 1.5rem;
}

.alya-content ul {
    list-style: disc;
}

.alya-content ol {
    list-style: decimal;
}

.alya-content li {
    margin-bottom: .75rem;

    padding-left: .2rem;

    color: #475569;
}

.alya-content li::marker {
    color: #06b6d4;
}

/* ==========================================
   Links
========================================== */

.alya-content a {
    color: #0891b2;

    font-weight: 500;

    text-decoration: underline;

    text-decoration-color:
        rgba(8,145,178,.25);

    text-underline-offset: 3px;

    transition:
        color .3s ease,
        text-decoration-color .3s ease;
}

.alya-content a:hover {
    color: #0e7490;

    text-decoration-color:
        rgba(8,145,178,.6);
}

/* ==========================================
   Images
========================================== */

.alya-content img {
    width: 100%;

    height: auto;

    display: block;

    border-radius: 28px;

    margin:
        2.5rem
        0;

    box-shadow:
        0 20px 60px rgba(
            15,
            23,
            42,
            .10
        );

    transition:
        transform .5s ease,
        box-shadow .5s ease;
}

.alya-content img:hover {
    transform:
        translateY(-4px);

    box-shadow:
        0 30px 80px rgba(
            15,
            23,
            42,
            .14
        );
}

/* ==========================================
   Figure
========================================== */

.alya-content figure {
    margin:
        2.5rem
        0;
}

.alya-content figcaption {
    margin-top: 1rem;

    text-align: center;

    font-size: .95rem;

    color: #64748b;
}

/* ==========================================
   Table
========================================== */

.alya-content table {
    width: 100%;

    border-collapse: collapse;

    margin:
        2.5rem
        0;

    overflow: hidden;

    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 10px 40px rgba(
            15,
            23,
            42,
            .05
        );
}

.alya-content th,
.alya-content td {
    border:
        1px solid #e2e8f0;

    padding: 16px 18px;

    text-align: left;
}

.alya-content th {
    background:
        linear-gradient(
            to bottom,
            #f8fafc,
            #f1f5f9
        );

    color: #0f172a;

    font-weight: 700;
}

.alya-content tr:nth-child(even) {
    background: rgba(
        248,
        250,
        252,
        .7
    );
}

/* ==========================================
   Blockquote
========================================== */

.alya-content blockquote {
    position: relative;

    margin:
        2.5rem
        0;

    padding:
        1.5rem
        1.75rem;

    border-radius: 24px;

    border:
        1px solid rgba(
            6,
            182,
            212,
            .12
        );

    background:
        linear-gradient(
            135deg,
            rgba(6,182,212,.05),
            rgba(14,165,233,.03)
        );

    color: #334155;

    font-style: italic;

    overflow: hidden;
}

.alya-content blockquote::before {
    content: "“";

    position: absolute;

    top: -20px;
    left: 14px;

    font-size: 7rem;

    line-height: 1;

    color:
        rgba(6,182,212,.12);

    font-family: serif;
}

.alya-content blockquote p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   Code Inline
========================================== */

.alya-content code {
    background: #f1f5f9;

    color: #0f172a;

    padding:
        3px
        8px;

    border-radius: 8px;

    font-size: .92em;

    font-family:
        ui-monospace,
        SFMono-Regular,
        monospace;
}

/* ==========================================
   Code Block
========================================== */

.alya-content pre {
    background:
        linear-gradient(
            180deg,
            #0f172a,
            #020617
        );

    color: #f8fafc;

    padding: 28px;

    border-radius: 28px;

    overflow-x: auto;

    margin:
        2.5rem
        0;

    box-shadow:
        0 20px 50px rgba(
            2,
            6,
            23,
            .35
        );
}

.alya-content pre code {
    background: transparent;

    color: inherit;

    padding: 0;
}

/* ==========================================
   Horizontal Rule
========================================== */

.alya-content hr {
    border: none;

    height: 1px;

    background:
        linear-gradient(
            to right,
            transparent,
            #cbd5e1,
            transparent
        );

    margin:
        4rem
        0;
}

/* ==========================================
   Gutenberg Buttons
========================================== */

.alya-content .wp-block-button {
    margin:
        2rem
        0;
}

.alya-content .wp-block-button__link {
    background: #0f172a;

    color: #ffffff;

    border-radius: 999px;

    padding:
        14px
        28px;

    font-weight: 600;

    transition:
        transform .3s ease,
        opacity .3s ease;
}

.alya-content .wp-block-button__link:hover {
    opacity: .92;

    transform:
        translateY(-2px);
}

/* ==========================================
   Gutenberg Gallery
========================================== */

.alya-content .wp-block-gallery {
    margin:
        2.5rem
        0;
}

/* ==========================================
   Responsive
========================================== */

@media (max-width: 768px) {

    .alya-content {
        font-size: 15.5px;

        line-height: 1.8;
    }

    .alya-content h1 {
        font-size: 2.5rem;
    }

    .alya-content h2 {
        font-size: 2rem;
    }

    .alya-content h3 {
        font-size: 1.6rem;
    }

    .alya-content h4 {
        font-size: 1.3rem;
    }

    .alya-content pre {
        padding: 22px;

        border-radius: 22px;
    }

    .alya-content table {
        display: block;

        overflow-x: auto;

        white-space: nowrap;
    }

    .alya-content img {
        border-radius: 22px;
    }

    .alya-content blockquote {
        padding:
            1.25rem
            1.4rem;
    }
}