
/* =================================
   GENERAL PAGE SETTINGS
================================= */

body {
    margin: 0;
    background-color: #2f7ea3;

    background-image: url("assets/bluepond.jpg");
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;

    font-family: "Ubuntu", "DejaVu Sans", sans-serif;
    font-size: 16px;
    color: #eeeeec;
}

/* =================================
   MAIN TRANSLUCENT CONTAINER
================================= */

.site-shell {
    max-width: 1100px;
    margin: 25px auto;
    padding: 25px;

    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    overflow: hidden;
    clip-path: inset(0 round 18px);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.02) 25%,
            rgba(0, 0, 0, 0.15) 100%
        ),
        rgba(15, 10, 15, 0.82);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px rgba(255, 255, 255, 0.2);
}

/* =================================
   NAVIGATION BAR
================================= */

nav ul {
    list-style-type: none;
    margin: 0 0 25px 0;
    border-radius: 7px;
    padding: 0;
    overflow: hidden;

    background:
        linear-gradient(
            rgba(255, 255, 255, 0.10),
            rgba(0, 0, 0, 0.15)
        ),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.025) 0px,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px,
            transparent 3px
        ),
        #292929;

    border-bottom: 1px solid #111;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

nav ul li {
    float: left;
}

nav ul li a {
    display: block;
    color: #eeeeec;
    text-align: center;
    padding: 12px 18px;
    text-decoration: none;
    font-size: 13px;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 -2px #e95420;
}

/* =================================
   BLOG HEADER
================================= */

.blog-header {
    padding: 10px 15px 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-header h1 {
    margin: 10px 0;
    font-size: 32px;
    color: #eeeeec;
}

.blog-header p {
    margin: 10px 0;
    color: #c5d0dc;
    font-size: 14px;
}

/* =================================
   BLOG CONTENT
================================= */

.blog-content {
    padding: 20px 15px;
}

.latest-posts h2 {
    color: #eeeeec;
    font-size: 21px;
    margin-bottom: 20px;
}

/* =================================
   POST CARDS
================================= */

.post-card {
    padding: 22px;
    margin-bottom: 18px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.015)
        ),
        rgba(20, 25, 35, 0.55);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px rgba(255, 255, 255, 0.08);

    transition: background 0.2s ease, border-color 0.2s ease;
}

.post-card:hover {
    border-color: rgba(102, 170, 203, 0.5);
    background-color: rgba(62, 90, 121, 0.25);
}

.post-meta {
    display: flex;
    gap: 15px;
    color: #9fb4c9;
    font-size: 12px;
    margin-bottom: 12px;
}

.post-card h3 {
    color: #eeeeec;
    font-size: 20px;
    margin: 0 0 12px 0;
}

.post-card p {
    color: #d0d8e0;
    font-size: 14px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 8px;
    color: #66AACB;
    font-size: 13px;
    text-decoration: none;
}

.read-more:hover {
    color: #9acde5;
    text-decoration: underline;
}

/* =================================
   FOOTER
================================= */

.blog-footer {
    padding: 10px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #aebdcb;
    font-size: 12px;
    text-align: center;
}

/* =================================
   RESPONSIVE LAYOUT
================================= */

@media (max-width: 700px) {
    .site-shell {
        margin: 10px;
        padding: 12px;
    }

    .blog-header h1 {
        font-size: 25px;
    }

    .post-card {
        padding: 16px;
    }
}

/* Individual article styling */

.post-feature-image {
    display: block;
    width: 100%;
    max-width: 850px;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    margin: 20px auto;
    border-radius: 8px;
}

.post-body img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    margin: 20px auto;
    border-radius: 8px;
}

/* Constrain the entire Ghost image card */
.post-body figure.kg-image-card {
    display: block !important;
    width: 100% !important;
    max-width: 850px !important;
    height: auto !important;
    margin: 24px auto !important;
    padding: 0 !important;
}

/* Constrain the actual image */
.post-body figure.kg-image-card img.kg-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

/* Hide the automatically generated excerpt on article pages */
.post-page #post-excerpt {
    display: none !important;
}

/* Article code blocks */
.post-body pre {
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    margin: 24px 0;
    padding: 20px 24px;

    background: rgba(15, 12, 20, 0.92);
    border: 1px solid rgba(190, 160, 210, 0.18);
    border-radius: 10px;

    color: #e6dceF;
    font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.65;
}

/* Roentengium article code blocks */
#post-body pre {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;

    margin: 24px 0 !important;
    padding: 20px 24px !important;

    background-color: #17121d !important;
    border: 1px solid rgba(190, 160, 210, 0.25) !important;
    border-radius: 10px !important;

    color: #e6dcef !important;
    font-family: "Courier New", monospace !important;
    font-size: 14px !important;
    line-height: 1.7 !important;

    overflow-x: auto !important;
}

#post-body pre code {
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    white-space: pre !important;
}

/* Article typography */
.post-body {
    line-height: 1.8;
    font-size: 1rem;
}

.post-body p {
    margin: 0 0 1.4em;
}

.post-body h2 {
    margin: 2em 0 0.75em;
    font-size: 1.65rem;
}

.post-body h3 {
    margin: 1.6em 0 0.6em;
    font-size: 1.3rem;
}


/* Image captions */
.post-body .kg-image-card figcaption {
    display: block;
    margin-top: 10px;
    padding: 0 8px;

    color: rgba(235, 225, 245, 0.7);
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}

/* =================================
   ROENTENGIUM TYPOGRAPHY
================================= */

/* Navigation */
nav ul li a {
    font-family: "Ubuntu", sans-serif;
    font-size: 14px;
    font-weight: 500;
}

/* Main blog header */
.blog-header h1 {
    font-family: "Ubuntu", sans-serif;
    font-size: 34px;
    font-weight: 700;
}

.blog-header p {
    font-family: "Ubuntu", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

/* Feed heading */
.latest-posts h2 {
    font-family: "Ubuntu", sans-serif;
    font-size: 23px;
    font-weight: 700;
}

/* Individual post cards */
.post-card h3 {
    font-family: "Ubuntu", sans-serif;
    font-size: 21px;
    font-weight: 500;
}

.post-card p {
    font-family: "Ubuntu Condensed", sans-serif;
    font-size: 17px;
    line-height: 1.7;
}

/* Metadata */
.post-meta {
    font-family: "Ubuntu", sans-serif;
    font-size: 12px;
}

/* Article title */
#post-title {
    font-family: "Ubuntu", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

/* Article content */
.post-body {
    font-family: "Ubuntu Condensed", sans-serif;
    font-size: 19px;
    line-height: 1.8;
}

/* Article headings */
.post-body h2 {
    font-family: "Ubuntu", sans-serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.3;
}

.post-body h3 {
    font-family: "Ubuntu", sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
}

/* Image captions */
.post-body .kg-image-card figcaption {
    font-family: "Ubuntu", sans-serif;
    font-size: 14px;
}

/* Links */
.read-more {
    font-family: "Ubuntu", sans-serif;
    font-size: 13px;
}

/* Footer */
.blog-footer {
    font-family: "Ubuntu", sans-serif;
    font-size: 12px;
}

/* Mobile article title */
@media (max-width: 700px) {
    #post-title {
        font-size: 28px;
    }

    .post-body {
        font-size: 18px;
    }

    .post-body h2 {
        font-size: 24px;
    }

    .post-body h3 {
        font-size: 20px;
    }
}
