/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --color-accent:      #FF6B35;
    --color-text:        #1D1D1F;
    --color-muted:       #6E6E73;
    --color-link-hover:  #007AFF;
    --color-divider:     #E5E5EA;
    --color-tag-bg:      #F2F2F7;
}


/* ============================================================
   BASE
   ============================================================ */
html, body {
    padding: 0;
    margin: 0;
    background: #fff;
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
                 Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
                 sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

main {
    margin: auto;
    max-width: 900px;
    padding: 2.5rem 2rem 8rem;
}


/* ============================================================
   ICONS — Font Awesome (loaded via CDN)
   ============================================================ */


/* ============================================================
   INTRO — bright Siri gradient hero
   ============================================================ */
#intro {
    position: relative;
    /* Siri palette: orange → coral → magenta → blue, with faint dot grid and dark scrim */
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.13) 1px, transparent 1px),
        linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.28) 100%),
        linear-gradient(135deg,
            #FF9D00  0%,
            #FF4F7B 38%,
            #C864F5 65%,
            #2B7FFF 100%
        );
    background-size: 24px 24px, auto, auto;
    color: #fff;
    padding: 4rem 2rem 2.75rem;
    overflow: hidden;
}

/* Thin shadow line at the bottom to separate from white body */
#intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.12);
}

.intro-inner {
    max-width: 900px;
    margin: auto;
}

#title {
    font-size: 5rem;
    margin: 0;
    line-height: 1.05;
}

#title #greeting {
    font-weight: 300;
    font-size: 1.25rem;
    display: block;
    margin-bottom: 0.15rem;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.03em;
}

/* Warm golden-cream — clearly not white, sits beautifully on the gradient */
#name {
    font-weight: 400;
    font-family: -apple-system-ui-serif, "Zen Antique", ui-serif, serif;
    color: #FFEEBB;
}

#description {
    margin-top: 0.75rem;
    font-weight: 300;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.02em;
}

#description span {
    padding: 0 0.5rem;
    opacity: 0.5;
}


/* ============================================================
   LINKS — frosted glass card on the Siri gradient
   ============================================================ */
#links {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.75rem;
    width: fit-content;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
}

.link-container {
    border-radius: 6px;
    transition: background 0.15s ease;
}

.link-container:hover {
    background: rgba(255, 255, 255, 0.12);
}

.link-container a {
    text-decoration: none;
    color: #fff;
    font-weight: 400;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    margin: -0.35rem -0.6rem;
    border-radius: 6px;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.link-container a:hover {
    color: #fff;
    opacity: 0.75;
}

.link-container i {
    font-size: 0.85rem;
    width: 1rem;
    text-align: center;
    color: #fff;
}


/* ============================================================
   RESUME DOWNLOAD LINK
   ============================================================ */
#resume-title-container {
    margin-bottom: 2.5rem;
}

#resume-title-container a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-left: -0.75rem;
    border-radius: 8px;
    background: var(--color-tag-bg);
    border: 1px solid var(--color-divider);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#resume-title-container a:hover {
    background: rgba(0, 122, 255, 0.07);
    border-color: rgba(0, 122, 255, 0.25);
    color: var(--color-link-hover);
}

#resume-title-container a:hover #resume,
#resume-title-container a:hover #resume i,
#resume-title-container a:hover #pdf-download {
    color: var(--color-link-hover);
}

#resume {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.625rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    padding: 0;
    border: none;
    transition: color 0.15s ease;
}

#resume i {
    font-size: 1rem;
    color: var(--color-muted);
}

#pdf-download {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-muted);
}


/* ============================================================
   RESUME CONTENT
   ============================================================ */

/* Section labels — coral with a leading rule */
.rs-wrap h2 {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.rs-wrap h2::before {
    content: '';
    display: inline-block;
    width: 1.5rem;
    height: 1.5px;
    background: var(--color-accent);
    flex-shrink: 0;
}

/* Overview summary */
.rs-overview {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-divider);
}

.rs-overview p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-text);
    margin: 0 0 0.6rem;
}

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


/* Two-column grid */
.rs-content-wrap {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 0 2.75rem;
}

/* Sidebar section headers after the first need top breathing room */
.rs-sidebar > div + div > h2:first-child {
    margin-top: 1.75rem;
}

/* Sidebar */
.rs-sidebar {
    border-left: 1px solid var(--color-divider);
    padding-left: 2rem;
}

.rs-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.25rem;
}

.rs-sidebar h3 {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted);
    margin: 1.5rem 0 0.6rem;
}

.rs-sidebar h3:first-child {
    margin-top: 0;
}

/* Skills as tag chips */
.rs-skills li {
    display: inline-block;
    background: var(--color-tag-bg);
    border: 1px solid var(--color-divider);
    border-radius: 5px;
    padding: 0.15rem 0.45rem;
    margin: 0.15rem 0.1rem 0.15rem 0;
    font-size: 0.75rem;
    color: var(--color-text);
    line-height: 1.6;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.rs-skills li:hover {
    border-color: var(--color-accent);
    background: rgba(255, 107, 53, 0.06);
}

/* Chips that contain a link get a blue border to signal they're clickable */
.rs-skills li:has(a) {
    border-color: rgba(0, 122, 255, 0.3);
}

.rs-skills li:has(a):hover {
    border-color: var(--color-link-hover);
    background: rgba(0, 122, 255, 0.06);
}

.rs-skills li a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 400;
}

.rs-skills li a:hover {
    color: var(--color-link-hover);
}

.rs-skills {
    padding-bottom: 1rem;
}

/* Shows — small regular list */
.rs-projects li {
    font-size: 0.8125rem;
    padding-bottom: 0.15rem;
    color: var(--color-text);
    line-height: 1.5;
}

/* Experience — timeline style */
.rs-experience {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 1.25rem;
    border-left: 1.5px solid var(--color-divider);
    transition: border-color 0.25s ease;
}

.rs-experience::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0.45rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-divider);
    transition: background 0.25s ease;
}

.rs-experience:hover {
    border-left-color: rgba(255, 107, 53, 0.4);
}

.rs-experience:hover::before {
    background: var(--color-accent);
}

.rs-experience:last-child {
    padding-bottom: 0;
}

.rs-experience h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
    color: var(--color-text);
    line-height: 1.4;
}

.rs-experience i.fa-apple {
    font-size: 0.85rem;
    margin: 0 -0.3em;          /* negative = tighten gap on both sides; adjust this */
    color: #555;
    vertical-align: 0.1em;     /* positive = nudge up; negative = nudge down */
}

.rs-date {
    margin: 0.1rem 0 0.65rem;
    color: var(--color-muted);
    font-size: 0.8125rem;
}

.rs-experience ul {
    margin: 0;
    padding-left: 1.25rem;
}

.rs-experience li {
    padding-bottom: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--color-text);
}

li a {
    text-decoration: none;
    color: var(--color-link-hover);
    font-weight: 500;
}

li a:hover {
    text-decoration: underline;
}

/* Notable / Education */
.rs-notable-item,
.rs-edu-item {
    margin: 0 0 0.9rem;
}

.rs-notable-item h4,
.rs-edu-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.1rem;
    color: var(--color-text);
}

.rs-notable-item p,
.rs-edu-item p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-muted);
    line-height: 1.4;
}

#rs-notable,
#rs-education {
    padding-top: 0;
}


/* ============================================================
   PRINT
   ============================================================ */
@media print {
    #intro {
        background: none !important;
        border-bottom: 1px solid #E5E5EA !important;
        padding: 1.5rem 0 1rem !important;
        color: var(--color-text) !important;
    }

    #intro::after { display: none; }

    #name {
        color: #C85A00 !important;
        text-shadow: none !important;
    }

    #title #greeting,
    #description {
        color: var(--color-muted) !important;
    }

    #links {
        background: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        padding: 0 !important;
    }

    .link-container a {
        color: var(--color-text) !important;
    }

    .link-container i {
        color: var(--color-accent) !important;
    }

    main {
        padding-top: 1rem !important;
    }
}


/* ============================================================
   RESPONSIVE — wide screens
   ============================================================ */
@media only screen and (min-width: 1800px) {
    main,
    .intro-inner {
        max-width: 1200px;
    }
}


/* ============================================================
   RESPONSIVE — mobile
   ============================================================ */
@media only screen and (max-width: 600px) {
    #intro {
        padding: 2.75rem 1.25rem 2.25rem;
    }

    #title {
        font-size: 2.75rem;
    }

    #title #greeting {
        font-size: 1rem;
    }

    #name {
        display: block;
        font-size: 3.5rem;
        line-height: 1;
    }

    #description {
        margin-top: 1rem;
        font-size: 0.9rem;
    }

    /* On mobile, hide the · separators and stack items on new lines */
    #description span::after {
        content: "\a ";
        white-space: pre;
    }

    #description span {
        color: transparent;
    }

    #links {
        margin-top: 1.5rem;
        gap: 0.65rem 0;
        flex-direction: column;
        width: auto;
        border-radius: 12px;
    }

    main {
        padding: 2rem 1.25rem 5rem;
    }

    .rs-content-wrap {
        display: block;
    }

    .rs-sidebar {
        border-left: none;
        padding-left: 0;
        margin-top: 2.5rem;
        padding-top: 2rem;
        border-top: 1px solid var(--color-divider);
    }

    .rs-skills {
        padding-bottom: 0;
    }

    #rs-education {
        display: none;
    }
}
