:root {
    /* PALETTE: Retro Stripe */
    --c-red:    #E76F51;
    --c-orange: #F4A261;
    --c-yellow: #E9C46A;
    --c-cyan:   #2A9D8F;
    --c-blue:   #264653;
    
    --c-bg:     #b6b6b6; /* Classic Mac Desktop Grey */
    --c-win-bg: #FFFDF0; /* Paper White for Window Content */
    --c-ink:    #1D1D1B;
    
    /* FONTS */
    --font-head: 'Space Mono', monospace;
    --font-body: 'Courier Prime', monospace;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: var(--c-bg);
    /* Dotted Desktop Pattern */
    /* The developer converts 1px stops to 0.0625rem and 20px sizing to 1.25rem */
    background-image: radial-gradient(#888 0.0625rem, transparent 0.0625rem);
    background-size: 1.25rem 1.25rem;
    font-family: var(--font-body);
    color: var(--c-ink);
    padding-bottom: 5rem; /* Scroll space */
}

/* --- SYSTEM BAR (TOP) --- */
.system-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 1.875rem; /* 30px */
    background: #FFF;
    border-bottom: 0.125rem solid var(--c-ink); /* 2px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    z-index: 1000;
    font-family: var(--font-head);
    font-size: 0.8rem;
    box-shadow: 0 0.125rem 0 rgba(0,0,0,0.1); /* 2px shadow */
}

.bar-left { display: flex; gap: 1.5rem; align-items: center; }
.apple-icon { 
    width: 1rem;       /* Matches text size */
    height: 1.2rem; 
    fill: var(--c-ink); /* Adopts the theme's ink color */
}
.menu-item a { text-decoration: none; color: inherit; }
.menu-item:hover { text-decoration: underline; cursor: pointer; }

/* --- DESKTOP LAYOUT --- */
.desktop-area {
    padding-top: 3.75rem; /* 60px: Space for bar */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

/* --- WINDOW COMPONENT --- */
.window-frame {
    width: 90%;
    max-width: 50rem; /* 800px */
    background: var(--c-win-bg);
    border: 0.125rem solid var(--c-ink); /* 2px */
    box-shadow: 0.5rem 0.5rem 0 rgba(0,0,0,0.2); /* 8px */
    display: flex;
    flex-direction: column;
}

/* THEME COLORS for Title Bars */
.theme-red    .title-bar { background: var(--c-red); }
.theme-orange .title-bar { background: var(--c-orange); }
.theme-yellow .title-bar { background: var(--c-yellow); }
.theme-cyan   .title-bar { background: var(--c-cyan); }
.theme-blue   .title-bar { background: var(--c-blue); color: #FFF; }

/* TITLE BAR STRUCTURE */
.title-bar {
    height: 2.1875rem; /* 35px */
    border-bottom: 0.125rem solid var(--c-ink); /* 2px */
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    justify-content: space-between;
    font-family: var(--font-head);
    font-weight: 700;
    user-select: none;
}

.title-controls {
    display: flex;
    gap: 0.375rem; /* 6px */
}

/* Retro Square Buttons */
.btn {
    width: 0.75rem;  /* 12px */
    height: 0.75rem; /* 12px */
    border: 0.125rem solid var(--c-ink); /* 2px */
    background: #FFF;
    box-shadow: 0.0625rem 0.0625rem 0 var(--c-ink); /* 1px */
}
.close-btn:hover { background: var(--c-ink); }

.window-title {
    text-transform: uppercase;
    letter-spacing: 0.0625rem; /* 1px */
    padding-left: 0.6rem;
}

/* Lines for texture in title bar */
.title-lines {
    flex-grow: 1;
    height: 40%;
    margin-left: 1rem;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 0.125rem, /* 2px */
        var(--c-ink) 0.125rem,
        var(--c-ink) 0.1875rem /* 3px */
    );
    opacity: 0.1;
}

/* WINDOW CONTENT */
.window-content {
    padding: 2.5rem;
    overflow: hidden;
}

/* HERO STYLES */
.glitch-text {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.role-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--c-blue);
}
.hero-summary p { margin-bottom: 0.5rem; }
.cursor { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* TEXT STYLES */
.lead-quote {
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--c-blue);
}
.body-text { line-height: 1.6; font-size: 1.1rem; }

/* JOB STYLES */
.job-group { margin-bottom: 2rem; }
.job-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 0.125rem dashed var(--c-ink); /* 2px */
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-head);
}
.company-link {
    color: var(--c-blue);
    font-weight: 700;
    text-decoration: underline;
}
.company-link:hover { background: var(--c-yellow); color: var(--c-ink); }

.role-block { margin-bottom: 1.5rem; }
.role-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
}
.role-meta span { font-family: var(--font-head); opacity: 0.7; }

.retro-list {
    list-style-type: square;
    padding-left: 1.5rem;
}
.retro-list li { margin-bottom: 0.5rem; }
.highlight {
    background: rgba(233, 196, 106, 0.4);
    padding: 0 0.25rem; /* 4px */
}
.win-divider { border: 0; border-top: 0.125rem solid var(--c-ink); margin: 2rem 0; }

/* EDUCATION GRID (Folders) */
.grid-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.folder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border: 0.0625rem dotted var(--c-ink); /* 1px */
}
.folder-item:hover {
    background: var(--c-cyan);
    color: #FFF;
    border-style: solid;
}
.folder-icon { font-size: 3rem; margin-bottom: 1rem; }

/* CONTACT STYLES */
.center-text { text-align: center; }
.btn-retro {
    display: inline-block;
    background: var(--c-ink);
    color: #FFF;
    padding: 1rem 2rem;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    margin: 2rem 0;
    box-shadow: 0.25rem 0.25rem 0 var(--c-blue); /* 4px */
    transition: transform 0.1s;
}
.btn-retro:active { 
    transform: translate(0.125rem, 0.125rem); /* 2px */
    box-shadow: 0.125rem 0.125rem 0 var(--c-blue); /* 2px */
}
.link-dock a { color: var(--c-ink); font-weight: 700; text-decoration: underline; }
.link-dock a:hover { color: var(--c-blue); }
.win-footer { margin-top: 2rem; font-size: 0.8rem; opacity: 0.6; }

/* MOBILE RESPONSIVE */
@media (max-width: 37.5rem) { /* 600px */
    .grid-content { grid-template-columns: 1fr; }
    .role-meta { flex-direction: column; }
    .window-content { padding: 1.5rem; }
    .glitch-text { font-size: 2.5rem; }
    .system-bar { padding: 0 0.5rem; }
    .bar-left { gap: 0.8rem; }
}

/* Footer Link Styling */
.win-footer a {
    color: inherit;            /* Inherits the footer's text color */
    text-decoration: underline;
}

.win-footer a:hover {
    color: var(--c-blue);      /* Matches other links on hover */
    opacity: 1;                /* Makes it stand out from the faded footer */
}