:root {
    --bg: #000000;
    --bg-card: #0a0a0a;
    --bg-hover: #1a1a1a;
    --fg: #f5f5f5;
    --fg-muted: #a3a3a3;
    --fg-faint: #525252;
    --accent: #ffffff;
    --border-light: #222222;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    --font-mono: 'Courier New', Courier, monospace;
    --max-width: 760px;
}

:root[data-theme="light"] {
    --bg: #f8f7f5;
    --bg-card: #ffffff;
    --bg-hover: #eeecea;
    --fg: #111111;
    --fg-muted: #595959;
    --fg-faint: #8f8f8f;
    --accent: #111111;
    --border-light: #e2deda;
}

[data-theme="light"] .skill-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .skill-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .work-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .photo-backdrop {
    box-shadow: 6px 6px 0 var(--border-light);
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form textarea:focus {
    box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .btn-primary {
    background: var(--bg-card);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

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

html {
    font-size: 16px;
    background: var(--bg);
    min-height: 100vh;
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) var(--bg);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--fg-faint);
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    margin: 0 auto;
    max-width: var(--max-width);
    padding: 4rem 1.5rem;
}

.skip-link {
    position: absolute;
    top: -999px;
    left: 1rem;
}

.skip-link:focus {
    top: 1rem;
    background: var(--bg-hover);
    padding: 0.5rem;
    color: var(--accent);
    z-index: 100;
}

h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.2s ease;
}


.page-back {
    margin-bottom: 2.5rem;
}

.page-back a {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.page-back a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.page-hero {
    margin-bottom: 3.5rem;
}

.page-hero h1 {
    font-size: 2rem;
    color: var(--fg);
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.page-hero-desc {
    color: var(--fg-muted);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.page-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--fg);
    margin-bottom: 1.5rem;
}

.page-content p:last-child {
    margin-bottom: 0;
}

.page-content h2 {
    font-size: 1.15rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.page-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: var(--fg-faint);
    transition: text-decoration-color 0.2s;
}

.page-content a:hover {
    text-decoration-color: var(--accent);
}


.page-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem 0;
}

.page-gallery img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

@media (max-width: 600px) {
    body {
        padding: 3rem 1.25rem;
    }
}