.preamble {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.preamble header.main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preamble header.main h1, .preamble header.main p {
    text-align: center;
}

.preamble header.main h1  {
    font-size: 5rem;
    font-variant: small-caps;
}

.preamble header.main div.tags, .preamble div.contact-options {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
}

/* TAGS */

.preamble header.main div.tags .tag {
    background: none;
    padding: 0.3rem;
    border-radius: 0.2rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: #666;
    text-transform: uppercase;
}

/* CONTACT */

.preamble div.contact-options {
    padding: 1rem 0;
    border: 1px solid #e9e9e9;
    border-left: none;
    border-right: none;
}

.preamble div.contact-options .contact {
    background: none;
    padding: 0.25rem;
    border-radius: 0.2rem;
    border: 1px solid #ccc;
    font-size: 1.3rem;
    font-weight: 400;
    color: #666;
}

.preamble div.contact-options .contact code {
    background: none;
    color: inherit;
}

.preamble div.contact-options .contact a {
    color: inherit;
    text-decoration: none;
}

/* === MEDIA SIZE === */

@media screen and (max-width: 800px) {
    .preamble header.main h1 {
        font-size: 3rem;
    }
    .preamble div.contact-options .contact {
        font-size: 1rem;
    }
}

@media screen and (max-width: 600px) {
    .preamble header.main div.tags {
        display: block;
        column-count: 3;
    }
    .preamble div.contact-options {
        flex-direction: column;
    }
}

/* === MEDIA SCREEN & DARK MODE === */

@media screen and (prefers-color-scheme: dark) {
    /* === TAGS === */
    .preamble header.main div.tags .tag {
        color: #ccc; /* Light gray for dark background contrast */
    }

    /* === CONTACT === */
    .preamble div.contact-options {
        border-color: #444; /* Soft, unobtrusive border */
    }

    .preamble div.contact-options .contact {
        border-color: #555; /* Slightly brighter than outer box */
        color: #ddd; /* Comfortable mid-light gray text */
    }
}
