:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-muted: #5a5a5a;
    --color-accent: #0284c7;
    --color-border: #e5e5e5;
}

[data-theme="dark"] {
    --color-bg: #121212;
    --color-text: #f0f0f0;
    --color-muted: #a0a0a0;
    --color-accent: #38bdf8;
    --color-border: #2a2a2a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

.wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* header */

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.site-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-nav a {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: var(--color-text);
}

.site-nav a.active {
    color: var(--color-text);
    font-weight: 600;
}

#theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--color-muted);
}

#theme-toggle:hover {
    color: var(--color-text);
}

#theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] #theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] #theme-toggle .icon-moon {
    display: inline-flex;
}

/* main content */

.site-main {
    flex: 1 0 auto;
}

.site-main .wrap {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

.page-title,
.hero-text h1 {
    margin-top: 0;
}

/* hero (home page) */

.hero {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.hero-text {
    flex: 1 1 0%;
    min-width: 0;
}

/* currently (home page) */

.currently {
    margin-top: 2.5rem;
}

.currently ul {
    padding-left: 1.25rem;
}

.currently li {
    margin-bottom: 0.4rem;
}

/* experience & project list */

.other-projects {
    list-style: none;
    margin: 0;
    padding: 0;
}

.other-projects li {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border);
}

.other-projects li:last-child {
    border-bottom: none;
}

.project-header,
.exp-org-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.project-header {
    flex-wrap: wrap;
}

.project-name {
    font-weight: 600;
}

.exp-dates {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.exp-org {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.exp-location {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.exp-blurb {
    margin: 0.4rem 0 0;
}

.project-stack {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.project-blurb-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.project-card--with-image {
    display: flex;
    flex-direction: row-reverse;
    gap: 1.25rem;
    align-items: flex-start;
}

.project-card__image {
    width: 230px;
    height: 172px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.project-card__body {
    min-width: 0;
    flex: 1;
}

.section-heading {
    margin-top: 2.5rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.about-footer {
    margin-top: 2.5rem;
}

/* footer */

.site-footer {
    flex-shrink: 0;
}

.site-footer .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.turtle-buddy {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    line-height: 0;
    cursor: pointer;
}

.turtle-buddy img {
    display: block;
    width: 44px;
    height: auto;
    image-rendering: pixelated;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a,
.project-blurb-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    text-decoration: none;
}

.social-links a:hover,
.project-blurb-row a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

@media (max-width: 640px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero img {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 500px) {
    .project-card--with-image {
        flex-direction: column;
    }

    .project-card__image {
        width: 100%;
        height: 160px;
    }
}
