:root {
    --color-cream: #EFE3C7;
    --color-dark: #2a2a2a;
    --color-header: #4A4238;
    /* Distinct dark beige/brown */
    --font-main: "Times New Roman", Times, serif;
    --font-mono: 'Courier New', Courier, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-cream);
    color: var(--color-dark);
    font-family: var(--font-main);
    line-height: 1.6;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Dark mode support if system pref or if we want to force it? 
   User said "minimalistic not ai looking". 
   Let's stick to the cream background for a "paper" feel, 
   or check if we should match the main site's dynamic theme. 
   For now, simple static or media query. 
   Let's add the dark mode class support just in case.
*/
body.dark-mode {
    background-color: var(--color-dark);
    color: var(--color-cream);
    --color-header: #D4C5A9;
    /* Lighter beige for dark mode headers */
}

::selection {
    background: var(--color-dark);
    color: var(--color-cream);
}

/* Dark mode selection override */
body.dark-mode ::selection {
    background: var(--color-cream);
    color: var(--color-dark);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    /* Fix f-l ligature melting */
    color: var(--color-header);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: normal;
    border-bottom: 1px solid currentColor;
    display: inline-block;
    padding-bottom: 0.2rem;
    color: var(--color-header);
}

section {
    margin-bottom: 3rem;
}

p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.text-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.text-link:hover {
    opacity: 1;
}

/* Text Variability Classes */
.asterisk {
    cursor: pointer;
    color: #ff6b6b;
    /* Subtle pop of color or just inherit? User said "atrophy" style. Let's use the red from lessons or just standard. */
    font-weight: bold;
    margin-left: 2px;
    position: relative;
    top: -0.2em;
    font-size: 0.8em;
}

.reveal-text {
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-top: 0.5rem;
    opacity: 1;
    transition: opacity 0.3s ease, height 0.3s ease;
    border-left: 2px solid currentColor;
    padding-left: 1rem;
    margin-left: 0.5rem;
}

.hidden {
    display: none;
    opacity: 0;
}

/* Logo Styles */
.logo-container {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    width: 100px;
    height: auto;
    display: inline-block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.project {
    margin-bottom: 2rem;
}

footer {
    margin-top: 8rem;
    border-top: 1px solid currentColor;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.back-link,
.social-link {
    font-weight: bold;
    text-decoration: none;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.social-link {
    margin-left: 1rem;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1.1rem;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .social-link {
        margin: 0 0.5rem;
    }
}

.contact-link {
    color: #A67C52;
    /* Premium earth tone */
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: var(--color-header);
    border-bottom-color: currentColor;
    opacity: 1;
}

body.dark-mode .contact-link {
    color: #D4C5A9;
}