/* ============================================================
   DESIGN TOKENS — unified with overons & contact CSS
   ============================================================ */
:root {
    --color-bg:          #D9D9D9;
    --color-teal:        #043841;
    --color-teal-mid:    #076b7a;
    --color-coral:       #DB5442;
    --color-card:        #f5f2ef;
    --color-white:       #ffffff;
    --color-muted:       rgba(4, 56, 65, 0.5);

    --radius-card:       1.2rem;
    --radius-img:        0.7rem;
    --radius-btn:        100px;
    --shadow-card:       0 4px 24px rgba(4, 56, 65, 0.10);
    --shadow-card-hover: 0 12px 40px rgba(4, 56, 65, 0.18);
    --shadow-accent:     8px 8px 0 var(--color-coral);
    --shadow-accent-hover: 12px 12px 0 var(--color-coral);
    --shadow-img:        0 6px 24px rgba(4, 56, 65, 0.15);

    --transition-base:   0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-bottom: 2cm;
    font-family: 'Georgia', 'Times New Roman', serif;
    -webkit-font-smoothing: antialiased;

    /* Shared textured background */
    background-color: var(--color-bg);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(4, 56, 65, 0.04) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(219, 84, 66, 0.04) 0%, transparent 60%),
        radial-gradient(#043841 0.6px, transparent 0.6px);
    background-size: auto, auto, 28px 28px;
    min-height: 100vh;
}

/* ============================================================
   BACK LINK
   ============================================================ */
.link {
    display: inline-flex;
    align-items: center;
    margin-top: 48px;
    margin-left: 20px;
    width: fit-content;
}

.linkh {
    color: var(--color-teal);
    font-size: clamp(17px, 2.5vw, 22px);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.01em;
    position: relative;
}

/* Arrow that slides on hover */
.linkh::before {
    content: '←';
    display: inline-block;
    margin-right: 6px;
    transition: transform var(--transition-base);
}

/* Animated coral underline */
.linkh::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var(--color-coral);
    border-radius: 2px;
    transition: width var(--transition-base);
}

.linkh:hover::after {
    width: 100%;
}

.linkh:hover::before {
    transform: translateX(-4px);
}

.linkhr {
    text-decoration: none;
}

/* ============================================================
   POST CARD — mobile first
   ============================================================ */
.postModularBlock {
    width: 88%;
    margin: 32px auto 60px;
    padding-bottom: 28px;

    background-color: var(--color-card);
    border: none;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card), var(--shadow-accent);

    transition:
        box-shadow var(--transition-base),
        transform var(--transition-base);
    overflow: hidden;
}

.postModularBlock:hover {
    box-shadow: var(--shadow-card-hover), var(--shadow-accent-hover);
    transform: translate(-2px, -2px);
}

/* ---- Timestamp ---- */
.postModularBlockTimestamp {
    width: 88%;
    margin: 18px auto 0;
    color: var(--color-teal);
    opacity: 0.55;
    font-size: clamp(12px, 2vw, 14px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---- Title ---- */
.postModularBlockTitle {
    width: 88%;
    margin: 10px auto 20px;
    text-align: center;
    font-size: clamp(22px, 5vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-teal);
    position: relative;
}

/* Coral underline accent */
.postModularBlockTitle::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background-color: var(--color-coral);
    border-radius: 2px;
    margin: 12px auto 0;
    transition: width var(--transition-base);
}

.postModularBlock:hover .postModularBlockTitle::after {
    width: 88px;
}

/* ---- Post image ---- */
.PostImage {
    width: 88%;
    display: block;
    margin: 0 auto 24px;
    border-radius: var(--radius-img);
    box-shadow: var(--shadow-img);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.PostImage:hover {
    box-shadow: 0 10px 36px rgba(4, 56, 65, 0.22);
    transform: scale(1.01);
}

/* ---- Body text ---- */
.postModularBlockText {
    color: var(--color-teal);
    opacity: 0.85;
    width: 88%;
    margin: 0 auto 24px;
    font-size: clamp(15px, 2.2vw, 19px);
    line-height: 1.78;
}

/* ============================================================
   DESKTOP  >= 1000px
   ============================================================ */
@media (min-width: 1000px) {
    .link {
        margin-top: 80px;
        margin-left: 32px;
    }

    .postModularBlock {
        width: 55%;
        margin-top: 40px;
        padding-bottom: 20px;
        border-radius: 1.6rem;
    }

    .postModularBlockTimestamp {
        width: 90%;
        font-size: 14px;
    }

    .postModularBlockTitle {
        width: 90%;
        margin-bottom: 28px;
    }

    .PostImage {
        width: 90%;
        margin-bottom: 32px;
    }

    .postModularBlockText {
        width: 90%;
        margin-bottom: 32px;
    }
}