/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "cartograph-cf", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
    padding: 5vh 5vw;
    max-width: 850px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

::selection {
    background: #a0e4e0;
    color: #333;
}


h1 {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #3a3a3a;
    font-weight: 400;
}

h1 em {
    font-size: 0.95rem;
    font-style: italic;
    color: #515151;
}

h2 {
    font-size: 0.95rem;
    margin: 1.5rem 0 0.5rem;
    font-weight: 400;
    color: #3a3a3a;
}

p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: #7d7d7d;
    line-height: 1.5;
    hyphens: none;
    word-break: keep-all;
}

.contact {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

a {
    color: #7d7d7d;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #1b1b1b;
}

/* Highlight Styles */
.highlight {
    background: linear-gradient(to right, #a0e4e0 0%, #a0e4e0 100%) no-repeat 0 100%;
    background-size: 100% 30%;
    transition: background-size 0.3s ease;
    padding: 0.1em 0;
}

.highlight:hover {
    background-size: 100% 100%;
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    body {
        padding: 6vh 8vw 6vw; /* Reduced top padding from 10vh to 6vh */
        max-width: 100%;
    }

    p, h1, h2 {
        font-size: 0.88rem;
    }

    .contact p {
        display: inline;
        word-wrap: break-word;
    }

    .contact .highlight {
        display: inline-block;
        margin-right: 0.3rem;
    }

    .contact .highlight:not(:last-child)::after {
        content: ",";
        margin-left: -0.2rem;
        color: #7d7d7d;
    }

}

@media (max-width: 400px) {
    body {
        padding: 5vh 9vw 6vw; /* Consistent top padding reduction */
    }

    p, h1, h2 {
        font-size: 0.82rem;
    }

}

/* Visitor Counter Styles */
.visitor-counter {
    font-family: "cartograph-cf", monospace, sans-serif;
    font-weight: 200;
    color: #ff7b7b !important;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.9) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

/* Mobile adjustments to match your responsive styles */
@media (max-width: 600px) {
    .visitor-counter {
        font-size: 0.88rem;
    }
}

@media (max-width: 400px) {
    .visitor-counter {
        font-size: 0.82rem;
    }
}

@media (max-width: 600px) {
    /* Remove or comment out these lines: */
    /*
    .contact .highlight:not(:last-child)::after {
        content: ",";
        margin-left: -0.2rem;
        color: #7d7d7d;
    }
    */
}