/* Personal portfolio — profile + skills + projects (warm palette + Fraunces / DM Sans) */

:root {
    --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
    --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
    --bg: #f4f0ea;
    --bg-deep: #dfd4c4;
    --surface: #fffefb;
    --text: #1c1917;
    --muted: #57534e;
    --accent: #b45309;
    --accent-hover: #92400e;
    --border: #e7e5e4;
    --shadow: 0 1px 3px rgba(28, 25, 23, 0.07);
    --shadow-hover: 0 10px 28px rgba(28, 25, 23, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Full-viewport background on html — body is max-width so gradients were easy to miss when only on body */
html {
    min-height: 100%;
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 95% 58% at 50% -8%, rgba(180, 83, 9, 0.22), transparent 58%),
        radial-gradient(ellipse 75% 58% at 100% 100%, rgba(87, 83, 78, 0.2), transparent 58%),
        radial-gradient(ellipse 60% 55% at 0% 95%, rgba(180, 83, 9, 0.14), transparent 55%),
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 20px,
            rgba(28, 25, 23, 0.045) 20px,
            rgba(28, 25, 23, 0.045) 21px
        ),
        linear-gradient(
            168deg,
            #fff9f0 0%,
            var(--bg) 32%,
            #e5d9c8 72%,
            var(--bg-deep) 100%
        );
    background-attachment: scroll;
}

body {
    font-family: var(--font-body);
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px 40px;
    min-height: 100%;
    color: var(--text);
    line-height: 1.6;
    font-weight: 400;
    background: transparent;
}

/* --- Header: profile left, text right --- */

header {
    padding: 32px 0 36px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.intro {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
}

.profile-photo {
    flex-shrink: 0;
    width: 100%;
    max-width: 240px;
    height: auto;
    display: block;
    border-radius: 12px;
    max-height: 320px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.intro-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.intro-text h1 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text);
}

.intro-text > p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
    max-width: 52ch;
}

.intro-text nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.intro-text nav a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.intro-text nav a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.intro-text nav a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* --- Portfolio sections (Phase B) --- */

.subtitle {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 12px;
}

main section {
    margin-bottom: 40px;
}

main section h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    color: #292524;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
}

.skill-list li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.project-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.project-card .project-meta {
    font-size: 0.875rem;
}

.project-card a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.project-card a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

footer {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
}

footer p {
    margin-bottom: 8px;
}

footer a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .intro-text {
        text-align: center;
    }

    .intro-text nav {
        justify-content: center;
    }
}
