/* ==========================================================================
   Cameron Dearsley - Personal Website Styles
   
   Design: Black and white, minimal, editorial
   Fonts: System fonts only
   Layout: Single column, responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base Reset & Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                 "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: #000;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Links - Consistent styling across all links
   -------------------------------------------------------------------------- */
a {
    color: #0000FF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus {
    outline: 2px solid #0000FF;
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Layout Container
   -------------------------------------------------------------------------- */
.header,
main,
.footer {
    max-width: 640px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
    padding-top: 80px;
    padding-bottom: 24px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 48px;
    object-fit: cover;
    margin-bottom: 20px;
}

.name {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.descriptor {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
    padding-top: 24px;
    padding-bottom: 24px;
}

.section h2 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.section p {
    margin-bottom: 1.25rem;
}

.section p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Experience Items
   -------------------------------------------------------------------------- */
.experience-item {
    margin-bottom: 24px;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.experience-date {
    font-weight: 400;
    opacity: 0.5;
}

.experience-desc {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Connect Links
   -------------------------------------------------------------------------- */
.connect-links {
    display: flex;
    gap: 24px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    padding-top: 60px;
    padding-bottom: 40px;
}

.footer p {
    font-size: 0.85rem;
    opacity: 0.4;
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    .header {
        padding-top: 48px;
        padding-bottom: 40px;
    }

    .section {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .connect-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer {
        padding-top: 40px;
        padding-bottom: 32px;
    }
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* --------------------------------------------------------------------------
   Dark Mode
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #000;
        color: #fff;
    }

    a {
        color: #5C9AFF;
    }

    a:focus {
        outline-color: #5C9AFF;
    }

    .descriptor {
        color: rgba(255, 255, 255, 0.7);
    }

    .section h2 {
        opacity: 0.5;
    }

    .experience-date {
        opacity: 0.5;
    }

    .footer p {
        opacity: 0.4;
    }
}
