/* Modern Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #2c2c2c;
    font-family: 'Inter', sans-serif;
    background-color: #fcfcfc;
    background-image: url('img/bg_pattern.jpg');
    background-repeat: repeat;
    background-size: 800px;
    /* Adjust scale of the pattern */
    /* Overlay to make the pattern subtle */
    position: relative;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
}

/* White overlay for subtlety */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(252, 252, 252, 0.5);
    /* 50% opacity white overlay */
    z-index: -1;
}

#content {
    background-color: rgba(255, 255, 255, 1);
    padding: 4rem 3rem;
    border-radius: 2px;
    /* Sharper corners for a print/editorial feel */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    /* Very soft shadow */
    text-align: center;
    max-width: 90%;
    width: 420px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    animation: fadeIn 0.8s ease-out;
    position: relative;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    /* Regular weight for elegance */
    font-style: italic;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

nav ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

nav ul:last-child {
    margin-bottom: 0;
}

li {
    margin-bottom: 0.8rem;
}

a {
    color: #4a4a4a;
    /* Dark gray */
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
    text-transform: uppercase;
    /* Minimalist touch */
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

/* Subtle line hover effect */
a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 50%;
    background-color: #000;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

a:hover {
    color: #000;
}

a:hover::after {
    width: 100%;
}

a.mail,
a.twitter {
    text-transform: none;
    /* Email and handles look better as is */
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    opacity: 0.8;
}

a.mail:hover,
a.twitter:hover {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    #content {
        padding: 3rem 2rem;
        width: 100%;
        margin: 1rem;
    }

    h1 {
        font-size: 2rem;
    }
}