/* ==========================================================================
   1. VARIABLES & CORE DESIGN SYSTEM
   ========================================================================== */
:root {
    /* --- Theme Color Palette (Midnight Rose Aesthetic) --- */
    --bg-base: #0a070b;          /* Ultra dark night amethyst */
    --bg-card: #130e15;          /* Velvet obsidian surface */
    --bg-card-hover: #1b131e;    /* Rich plum hover state */
    --primary: #ff5e84;          /* Radiant soft rose petal */
    --primary-glow: rgba(255, 94, 132, 0.25);
    --gold: #dfb28c;             /* Warm soft wedding ring gold */
    --text-pure: #ffffff;
    --text-main: #e5dee7;        /* Soft silver-white with hints of lavender */
    --text-muted: #958799;       /* Muted ash lavender */
    --border-color: #241928;     /* Fine line amethyst border */
    
    /* --- Layout Metrics --- */
    --sidebar-width: 300px;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. PERFORMANCE RESET & BASE LAYOUT
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-smooth);
}

/* ==========================================================================
   3. TYPOGRAPHY SYSTEM (Consistent Hierarchy)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-pure);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* --- Content Typography Wrappers (Use for blogs/manifestos) --- */
.content-area p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.content-area strong {
    color: var(--primary);
    font-weight: 600;
}

.content-area em {
    color: var(--gold);
    font-style: italic;
}

/* ==========================================================================
   4. LISTS & NUMBERS MATRIX
   ========================================================================== */
/* --- Unordered Lists (Romantic Heart Bullets) --- */
.content-area ul {
    list-style: none;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.content-area ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.content-area ul li::before {
    content: "♥";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-size: 1rem;
    text-shadow: 0 0 8px var(--primary-glow);
}

/* --- Ordered Lists (Glow Number Accents) --- */
.content-area ol {
    list-style: none;
    counter-reset: romantic-counter;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.content-area ol li {
    counter-increment: romantic-counter;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.content-area ol li::before {
    content: counter(romantic-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.95rem;
}

/* ==========================================================================
   5. MEDIA HANDLING PIPELINE (Images, Videos, Audios)
   ========================================================================== */
/* --- Fluid Responsive Images --- */
.media-container {
    margin: 2rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.content-area img {
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* --- Responsive HTML5 Video Players --- */
video {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-md);
    background-color: #000;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    outline: none;
}

/* --- Custom Styled HTML5 Audio Players --- */
audio {
    width: 100%;
    margin: 1rem 0;
    border-radius: 30px;
    outline: none;
    filter: invert(0.9) hue-rotate(180deg); /* Adapts default system players cleanly to dark themes */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   6. FLOATING SIDEBAR NAVIGATION
   ========================================================================== */
/* [DEBUG] Target .sidebar if background alignment or tracking layout fails */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.menu-close {
    display: none;
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sidebar Identity Presentation Card */
.sidebar-profile {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

/* [DEBUG] Modify dimensions inside .avatar-ring to change the profile picture scope */
.avatar-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 1.2rem auto;
    padding: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* --- Sidebar Profile Image Handler [DEBUG] --- */
.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover; /* Prevents the image from stretching if it isn't a perfect square */
    display: block;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.2rem;
}

.sidebar-profile h2 {
    font-size: 1.25rem;
    color: var(--text-pure);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.relationship-status {
    font-size: 0.82rem;
    color: var(--gold);
    margin-top: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Scrollable Menu Items Matrix */
.sidebar-menu {
    padding: 2rem 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    -webkit-overflow-scrolling: touch;
}

.sidebar-menu::-webkit-scrollbar {
    width: 3px;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
}

.menu-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    font-weight: 700;
    margin: 1.2rem 0 0.4rem 0;
}
.menu-label:first-of-type {
    margin-top: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.96rem;
    font-weight: 500;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    color: var(--primary);
    background-color: rgba(255, 94, 132, 0.05);
}

/* Romantic Dynamics Meta Block */
.status-card {
    background: linear-gradient(180deg, rgba(36,25,40,0.3) 0%, rgba(19,14,21,0.6) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 2rem;
}

.status-card h3 {
    font-size: 0.82rem;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

/* [DEBUG] Contextual scoping to keep status card items clean without heart icons */
.status-card ul {
    list-style: none;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-left: 0;
}
.status-card ul li {
    padding-left: 0;
    margin-bottom: 0;
}
.status-card ul li::before {
    display: none;
}

.status-card ul li color {
    color: var(--text-muted);
}
.status-card ul li strong {
    color: var(--text-main);
}

.sidebar-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   7. MAIN CONTENT AREA LAYOUT STRUCTURE
   ========================================================================== */
/* [DEBUG] Check margin-left properties here if content overlaps or clips under desktop screens */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 3rem clamp(1.5rem, 5vw, 4rem);
    max-width: calc(1200px + var(--sidebar-width));
    min-height: 100vh;
}

/* --- Romantic Styled Hero Space --- */
.hero {
    background: linear-gradient(135deg, #1d1222 0%, #110c14 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-pure);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 1.2rem;
}

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-main);
    max-width: 720px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.anniversary-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(223, 178, 140, 0.06);
    border: 1px solid rgba(223, 178, 140, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.88rem;
    color: var(--gold);
    font-weight: 500;
}

/* --- Feed Display Section --- */
.feed-heading {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-pure);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 94, 132, 0.35);
    background-color: var(--bg-card-hover);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
}

.blog-card h3 {
    font-size: 1.4rem;
    color: var(--text-pure);
    margin-bottom: 1rem;
    line-height: 1.35;
}
.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
    margin-top: auto;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.site-footer {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   8. INTERACTIVE ENGINE: FLOATING HEARTS & ANIMATIONS
   ========================================================================== */
/* --- Global Ambient Heart Animations Engine --- */
.heart-particle {
    position: fixed;
    pointer-events: none; /* Keeps particles completely non-interactive */
    color: var(--primary);
    font-size: 1.5rem;
    opacity: 0;
    z-index: 999;
    animation: floatHeart 4s ease-in infinite;
    text-shadow: 0 0 10px var(--primary-glow);
}

/* [DEBUG] Adjust keyframes values to tweak floating speed, direction, or spin vectors */
@keyframes floatHeart {
    0% {
        transform: translateY(100vh) translateX(0) scale(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-10vh) translateX(100px) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

/* ==========================================================================
   9. MOBILE BREAKPOINTS INTERSECTIONS
   ========================================================================== */
/* --- Floating Mobile Toggle Mechanism --- */
.mobile-toggle {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #d03b60 100%);
    border: none;
    color: var(--text-pure);
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--primary-glow);
    z-index: 140;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-toggle:hover {
    transform: scale(1.08);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 3, 6, 0.75);
    backdrop-filter: blur(5px);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    /* [DEBUG] Tweak this translation rule if the responsive navigation panel jams */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 200;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }

    .menu-close {
        display: block;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }
}


/* --- Hero Interactive Button Core Elements [DEBUG] --- */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #d03b60 100%);
    color: var(--text-pure);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 22px rgba(255, 94, 132, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
}

/* ==========================================================================
   10. ARCHIVE FILTER BAR PILLS [DEBUG]
   ========================================================================== */
.filter-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--text-main);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, #d03b60 100%);
    color: var(--text-pure);
    border-color: transparent;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==========================================================================
   11. ARTICLES CORE TYPOGRAPHY & MEDIA ENHANCEMENTS [DEBUG]
   ========================================================================== */
.content-area {
    max-width: 800px;
}

/* --- Breadcrumb Utilities --- */
.breadcrumb-nav {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb-nav a {
    color: var(--primary);
}

.breadcrumb-nav .divider {
    margin: 0 0.4rem;
    opacity: 0.5;
}

.breadcrumb-nav .current {
    color: var(--text-muted);
}

/* --- Article Header Structures --- */
.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.article-header .article-tag {
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--text-pure);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.article-meta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-meta-group span i {
    margin-right: 0.2rem;
}

.article-meta-group span:nth-child(1) i { color: var(--primary); }
.article-meta-group span:nth-child(2) i { color: var(--gold); }

/* --- In-Article Typography Spacing Helpers --- */
.content-area h2 {
    margin: 2.5rem 0 1rem 0;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-area h3 {
    margin: 2rem 0 1rem 0;
    font-size: 1.35rem;
}

.media-caption {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* --- Landscape-Safe Aspect Ratio Guards [DEBUG] --- */
.media-container.aspect-landscape {
    aspect-ratio: 16 / 9; /* Automatically frames standard cinematic landscape layouts */
    background-color: #000;
}

.media-container.aspect-landscape img,
.media-container.aspect-landscape video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures landscape data covers spaces beautifully without distortion */
}

/* --- Contextual Layout Alignment Adjusters --- */
.media-container.no-margin-top {
    margin-top: 0;
}

/* --- Portrait-Safe Aspect Ratio Guards [DEBUG] --- */
.media-container.aspect-portrait {
    max-width: 420px; /* Prevents giant vertical explosion on desktop screens */
    margin-left: auto; /* Centers the portrait image on the page */
    margin-right: auto;
    aspect-ratio: 3 / 4; /* Perfect for mobile character portraits & app screenshots */
    background-color: #000;
}

.media-container.aspect-portrait img,
.media-container.aspect-portrait video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps her face sharp without squash or distortion */
}

/* ==========================================================================
   12. GALLERY MASONRY DESIGN MATRIX [DEBUG]
   ========================================================================== */
.gallery-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.gallery-photo-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.gallery-photo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 94, 132, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.gallery-info-block {
    padding: 1.5rem;
}

.gallery-info-block h3 {
    font-size: 1.15rem;
    color: var(--text-pure);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-info-block p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.gallery-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gold);
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    font-weight: 500;
}


/* ==========================================================================
   13. VERTICAL TIMELINE STYLING PIPELINE [DEBUG]
   ========================================================================== */
.timeline-track {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* The vertical connecting line track */
.timeline-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--border-color) 0%, var(--primary) 50%, var(--border-color) 100%);
}

.timeline-node {
    position: relative;
    display: flex;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.timeline-node:last-child {
    margin-bottom: 1rem;
}

/* The icon circle badge */
.timeline-badge {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    z-index: 5;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

/* Glowing aesthetic rules for special highlighted events */
.timeline-node.milestone-highlight .timeline-badge {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.timeline-node:hover .timeline-badge {
    transform: scale(1.08);
    border-color: var(--gold);
    color: var(--gold);
}

/* Content Panel Card */
.timeline-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    flex-grow: 1;
    transition: border-color var(--transition-smooth);
}

.timeline-node:hover .timeline-panel {
    border-color: rgba(255, 94, 132, 0.25);
}

.timeline-date {
    display: inline-block;
    font-size: 0.82rem;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.timeline-panel h3 {
    font-size: 1.3rem;
    color: var(--text-pure);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.timeline-panel p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

@media (max-width: 576px) {
    .timeline-track::before {
        left: 20px;
    }
    .timeline-badge {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    .timeline-node {
        gap: 1rem;
    }
    .timeline-panel {
        padding: 1.25rem 1.5rem;
    }
}


/* ==========================================================================
   14. LOVE LETTERS STATIONERY CARD INDEX & POPUP GRID [DEBUG]
   ========================================================================== */
.letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.letter-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
    cursor: pointer;
}

.letter-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 94, 132, 0.35);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.letter-card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--primary-glow);
}

.letter-card h3 {
    font-size: 1.25rem;
    color: var(--text-pure);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.letter-card-date {
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.letter-card-preview {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Truncates long letter strings cleanly onto two rows */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.open-letter-btn {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.letter-card:hover .open-letter-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #d03b60 100%);
    color: var(--text-pure);
    border-color: transparent;
    box-shadow: 0 4px 10px var(--primary-glow);
}

/* ==========================================================================
   15. ROMANTIC LETTER MODAL DISPLAY ENGINE [DEBUG]
   ========================================================================== */
/* [DEBUG] Blur density and backdrop dimming properties can be adjusted here */
.letter-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 3, 6, 0.85);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.letter-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.letter-modal-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 850px;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.letter-modal-backdrop.open .letter-modal-box {
    transform: scale(1);
}

/* Rounded Close Action Button Floating Layer */
.close-letter-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(10, 7, 11, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-pure);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-smooth);
}

.close-letter-modal:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

/* Side-by-Side Panel Splitting Rules */
.letter-modal-split {
    display: flex;
    height: 100%;
    max-height: 85vh;
}

/* [DEBUG] Tweak width here if you want her photo to take up more or less space */
.letter-modal-image {
    width: 42%;
    flex-shrink: 0;
    background-color: #000;
    border-right: 1px solid var(--border-color);
}

.letter-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.letter-modal-text {
    width: 58%;
    padding: 3.5rem 3rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-letter-date {
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.letter-modal-text h2 {
    font-size: 1.65rem;
    margin-bottom: 1.5rem;
    color: var(--text-pure);
    letter-spacing: -0.5px;
}

/* Clean spacing specifically for letter paragraph stacks */
.letter-modal-text p {
    font-size: 1.02rem;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    line-height: 1.65;
    opacity: 0.95;
}

.letter-signature {
    margin-top: 3rem;
    font-style: italic;
    color: var(--gold);
    line-height: 1.5 !important;
}

/* ==========================================================================
   16. RESPONSIVE MODAL MEDIA QUERY COLLAPSING [DEBUG]
   ========================================================================== */
@media (max-width: 768px) {
    .letter-modal-split {
        flex-direction: column;
    }
    
    .letter-modal-image {
        width: 100%;
        height: 220px; /* Locks picture height on small devices to prioritize letter space */
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .letter-modal-text {
        width: 100%;
        padding: 2.5rem 1.75rem;
    }
    
    .letter-modal-text h2 {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   17. SITE POLICY & LEGAL DOCUMENTATION ENGINE
   ========================================================================== */
.policy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.policy-section {
    margin-bottom: 3rem;
}

.policy-section h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.policy-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 1rem;
}

/* Ensure consistent spacing on mobile */
@media (max-width: 768px) {
    .policy-container {
        padding: 1.5rem;
    }
}