/* ============================================================
   ARKA Blog — style.css
   Single blog post template stylesheet
   Mobile-first | Design system: team4lifespacesarka.com
   Fonts: Cormorant Garamond (display) + Montserrat (body)
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
    --color-primary:      #1A0A04;
    --color-secondary:    #3D1A10;
    --color-accent:       #C9A96E;
    --color-accent-light: #E8C98A;
    --color-text-light:   #F5EFE6;
    --color-text-muted:   #A89078;
    --color-off-white:    #F8F3ED;
    --color-near-black:   #0D0604;
    --color-header-bg:    #E8E4DE;
    --color-body-text:    #5A3A28;
    --font-display:       'Cormorant Garamond', Georgia, serif;
    --font-body:          'Montserrat', sans-serif;
    --transition:         0.3s ease;
    --content-max-width:  780px;
    --site-max-width:     1200px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.85;
    color: var(--color-body-text);
    background: var(--color-off-white);
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ============================================================
   HEADER
============================================================ */
#header {
    position: relative;
    z-index: 100;
    padding: 16px 60px;
    background: var(--color-header-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-img-arka {
    height: 70px;
    width: auto;
    transition: opacity var(--transition);
}

.logo-img-arka:hover {
    opacity: 0.85;
}

.logo-img-builder {
    height: 34px;
    width: auto;
}

/* ============================================================
   BLOG POST HERO
============================================================ */
.blog-post-hero {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: var(--color-primary);
}

.blog-post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13, 6, 4, 0.88) 0%,
        rgba(13, 6, 4, 0.35) 50%,
        rgba(13, 6, 4, 0.08) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px 60px;
}

.blog-post-category {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-accent);
    padding: 5px 14px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 18px;
    align-self: flex-start;
    line-height: 1.4;
}

.blog-post-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text-light);
    margin-bottom: 16px;
    max-width: 820px;
}

.blog-post-date {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* ============================================================
   BACK BUTTON
============================================================ */
.back-btn-wrap {
    padding: 32px 60px 0;
    max-width: calc(var(--content-max-width) + 120px);
    margin: 0 auto;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-secondary);
    transition: color var(--transition), gap var(--transition);
}

.back-btn:hover {
    color: var(--color-accent);
    gap: 13px;
}

.back-btn-arrow {
    display: inline-block;
    font-style: normal;
    transition: transform var(--transition);
    font-size: 13px;
}

.back-btn:hover .back-btn-arrow {
    transform: translateX(-4px);
}

/* ============================================================
   BLOG CONTENT WRAPPER
============================================================ */
.blog-content-wrap {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 48px 60px 100px;
}

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

/* H1 */
.blog-content h1 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-primary);
    margin-top: 48px;
    margin-bottom: 24px;
}

.blog-content h1:first-child {
    margin-top: 0;
}

/* H2 */
.blog-content h2 {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
    margin-top: 44px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.25);
}

/* H3 */
.blog-content h3 {
    font-family: var(--font-display);
    font-size: clamp(17px, 2.5vw, 22px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-secondary);
    margin-top: 32px;
    margin-bottom: 12px;
}

/* Paragraphs */
.blog-content p {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.85;
    color: var(--color-body-text);
    margin-bottom: 22px;
}

.blog-content p:last-child {
    margin-bottom: 0;
}

/* Unordered lists */
.blog-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.blog-content ul li {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.85;
    color: var(--color-body-text);
    padding-left: 22px;
    position: relative;
    margin-bottom: 8px;
}

.blog-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 12px;
    height: 2px;
    background: var(--color-accent);
}

/* Ordered lists */
.blog-content ol {
    list-style: none;
    counter-reset: ol-counter;
    padding: 0;
    margin: 0 0 24px 0;
}

.blog-content ol li {
    counter-increment: ol-counter;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.85;
    color: var(--color-body-text);
    padding-left: 32px;
    position: relative;
    margin-bottom: 10px;
}

.blog-content ol li::before {
    content: counter(ol-counter) '.';
    position: absolute;
    left: 0;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1.65;
}

/* Blockquotes */
.blog-content blockquote {
    position: relative;
    margin: 36px 0;
    padding: 30px 36px 30px 36px;
    background: var(--color-primary);
    border-radius: 4px;
    overflow: hidden;
}

.blog-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: -12px;
    left: 18px;
    font-family: var(--font-display);
    font-size: 110px;
    color: rgba(201, 169, 110, 0.12);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.blog-content blockquote p {
    font-family: var(--font-display);
    font-size: clamp(15px, 2vw, 19px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.65;
    color: var(--color-text-light);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.blog-content blockquote cite {
    display: block;
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    font-style: normal;
    position: relative;
    z-index: 1;
}

/* Figures / Images */
.blog-content figure {
    margin: 36px 0;
}

.blog-content figure img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-content figure figcaption {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 12px;
    letter-spacing: 0.5px;
    font-style: italic;
}


/* Horizontal rule */
.blog-content hr {
    border: none;
    height: 1px;
    background: rgba(201, 169, 110, 0.2);
    margin: 40px 0;
}

/* Inline links inside content */
.blog-content a {
    color: var(--color-secondary);
    border-bottom: 1px solid rgba(201, 169, 110, 0.4);
    transition: color var(--transition), border-color var(--transition);
}

.blog-content a:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Tables */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 14px;
}

.blog-content th,
.blog-content td {
    padding: 12px 16px;
    border: 1px solid rgba(201, 169, 110, 0.3);
    text-align: left;
}

.blog-content th {
    background: var(--color-primary);
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.blog-content td {
    color: #5A3A28;
}

.blog-content tr:nth-child(even) td {
    background: rgba(201, 169, 110, 0.06);
}

@media (max-width: 640px) {
    .blog-content table {
        font-size: 12px;
    }
    .blog-content th,
    .blog-content td {
        padding: 8px 10px;
    }
}

/* Strong / em */
.blog-content strong {
    font-weight: 600;
    color: var(--color-primary);
}

.blog-content em {
    font-style: italic;
    color: var(--color-secondary);
}

/* ============================================================
   FOOTER
============================================================ */
#footer {
    background: var(--color-near-black);
    padding: 24px 80px;
    border-top: 1px solid rgba(201, 169, 110, 0.1);
    text-align: center;
}

.footer-copy {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS — TABLET (max 1100px)
============================================================ */
@media (max-width: 1100px) {
    #header {
        padding: 16px 40px;
    }

    #footer {
        padding: 28px 40px;
    }

    .blog-post-hero-overlay {
        padding: 40px 40px;
    }

    .back-btn-wrap {
        padding: 28px 40px 0;
    }

    .blog-content-wrap {
        padding: 40px 40px 80px;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE NAV (max 900px)
============================================================ */
@media (max-width: 900px) {
    #header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9000;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        padding: 8px 16px;
    }

    body {
        padding-top: 90px;
    }

    .blog-post-hero {
        height: 360px;
    }

    .blog-post-hero-overlay {
        padding: 28px 24px;
    }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 640px)
============================================================ */
@media (max-width: 640px) {
    .blog-post-hero {
        height: 280px;
    }

    .blog-post-hero-overlay {
        padding: 20px 20px;
    }

    .back-btn-wrap {
        padding: 20px 20px 0;
    }

    .blog-content-wrap {
        padding: 28px 20px 60px;
    }

    .blog-content blockquote {
        padding: 22px 22px;
    }

    .blog-content blockquote p {
        font-size: 15px;
    }


    #footer {
        padding: 20px;
    }
}
