:root {
    --bg: #ffffff;
    --text: #000000;
    --muted: #666;
    --border: #ddd;
}

body {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* DARK MODE */
body.dark {
    --bg: #000000;
    --text: #ffffff;
    --muted: #888;
    --border: #222;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.2rem;
    margin: 0;
}

.subtitle {
    color: var(--muted);
    margin-top: 0.5rem;
}

#theme-toggle {
    background: none;
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-nav a {
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--text);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.header-nav a:hover {
    color: var(--muted);
    border-color: var(--muted);
}

h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.3rem;
}

/* PROJECTS */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.15s ease;
}

.project-card:hover {
    transform: translateY(-3px);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.project-card h3 {
    margin: 0.6rem 0 0.2rem;
    font-size: 1rem;
}

.project-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

/* VIDEOS */

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.video-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.15s ease;
}

.video-card:hover {
    transform: translateY(-3px);
}

.video-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.video-card p {
    margin: 0.6rem 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}

/* FOOTER */

footer {
    margin-top: 6rem;
    padding-bottom: 3rem;
    color: var(--muted);
    font-size: 0.9rem;
}

/* MOBILE */

/* SOCIAL LINKS */

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links a img {
    height: 32px;
    width: 32px;
    transition: transform 0.2s;
}

.social-links a:hover img {
    transform: translateY(-3px);
}

/* CONTACT PAGE LINKS */

.contact-page-section {
    margin-top: 2rem;
}

.uppercase-subtitle {
    text-transform: uppercase;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 2rem;
}

.contact-vertical-links {
    display: flex;
    flex-direction: column;
}

.contact-vertical-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 2.2rem;
    border-bottom: 2px solid var(--text);
    width: fit-content;
    padding-bottom: 4px;
    margin-bottom: 0.6rem;
    line-height: 1.1;
    transition: color 0.2s, border-color 0.2s;
}

.contact-vertical-links a:hover {
    color: var(--muted);
    border-color: var(--muted);
}

a {
    color: inherit;
    text-decoration: underline;
}

a:visited {
    color: inherit;
}

a:hover {
    opacity: 0.7;
}

@media (max-width: 700px) {

    .project-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
}