/* Root */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital@0;1&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

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

:root {
    --primary-color: #ff48b6; /* Accent (links, borders) */
    --text-color: #E4E4E4;    /* Primary text */
    --bg-color: #2C2C2C;      /* Background */
    --focus-primary: #A8DADC; /* Accent for focus/hover */
    --text-on-focus: #2C2C2C; /* Text color when on accent background */
    --max-width: 1200px;
    --spacing-unit: 1rem;
}

html {
    height: 100%;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

html, body, header, main, footer, .nav-links a {
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

/* All Styles */

header {
    background-color: var(--primary-color);
}

header nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-top img {
    height: 150px;
    max-height: 150px;
    width: auto;
    display: block;
}

header h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    text-align: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 4px solid transparent;
    color: var(--text-on-focus);
    white-space: nowrap;
    cursor: pointer;
}

/* Utility: visually hidden but accessible to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0.25rem;
    cursor: pointer;
}

.hamburger {
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--bg-color);
    position: relative;
    vertical-align: middle;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--bg-color);
}
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-links a:hover,
.nav-links a:focus {
    text-decoration: underline;
    text-decoration-color: var(--text-on-focus);
    text-underline-offset: 4px;
    text-decoration-thickness: 3px;
}

.nav-links a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--text-on-focus);
    text-underline-offset: 4px;
    text-decoration-thickness: 3px;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1rem;
    flex: 1;
}

.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 2rem;
    border-radius: 12px;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.hero-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    border: 4px solid transparent;
}

.hero-content a:hover,
.hero-content a:focus {
    text-decoration: none;
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.journey {
    max-width: 800px;
    margin: 0 auto;
}

.journey h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.journey p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.journey ul {
    list-style: none;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.journey li {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

.journey li strong {
    font-weight: 800;
}

.journey a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    border: 4px solid transparent;
}


.journey a:hover,
.journey a:focus {
    text-decoration: none;
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--bg-color);
}

footer {
    padding: 2rem 1rem;
    text-align: center;
}

footer p {
    color: var(--text-color);
    font-size: 0.875rem;
}

@media (max-width: 800px) {
    .hero {
        flex-direction: column;
        margin: 0;
        padding: 0;
    }

    .nav-top {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .nav-top h1 {
        text-align: left;
        font-size: 1.25rem;
        margin: 0;
        padding-left: 0.25rem;
    }

    .nav-top img {
        height: 120px;
        max-height: 120px;
        width: auto;
        display: block;
    }

    .nav-top .nav-toggle {
        display: block;
        position: static;
        margin: 0;
    }

    .main-nav.menu-open {
        display: block;
    }

    .main-nav.menu-open .nav-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-links {
        display: none !important;
        position: static;
        width: 100%;
        gap: 0.5rem;
        padding: 0.5rem 0 1rem 0;
        margin-top: 0.5rem;
    }

    .nav-links.open {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .nav-links li { margin: 0; }
    .nav-links a { display: inline-block; padding: 0.5rem 0.75rem; font-size: 1rem; }

    .nav-links a {
        white-space: nowrap;
        font-size: 1rem;
    }

        header {
        padding: 1rem;
    }

    header h1 {
        font-size: 2.5rem;
    }

    main {
        padding: 2rem 2rem;
    }
}