:root {
    color-scheme: light;
    color: #222;
    background: #f9fafb;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: #1f2937;
    text-decoration: none;
}

a:hover {
    color: #111827;
}

.container {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    font-weight: 700;
    font-size: 1.1rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-nav a {
    font-size: 0.95rem;
    color: #4b5563;
}

.site-nav a:hover {
    color: #111827;
}

.hero {
    padding: 4rem 0 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
}

.hero-grid {
    display: grid;
    gap: 2rem;
    align-items: start;
}

.hero-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.eyebrow {
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    color: #6b7280;
}

h1 {
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 3.75rem);
    letter-spacing: -0.05em;
}

h2 {
    margin-top: 0;
    font-size: 1.75rem;
}

h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.hero-text,
.intro,
.section-heading p,
.post-card p,
.project-card p,
.detail-box p,
.resume-section p {
    color: #4b5563;
}

.hero-text {
    font-size: 1.3rem;
    margin: 1rem 0 1rem;
    max-width: 45rem;
}

.intro {
    max-width: 40rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.button.primary {
    background: #111827;
    color: #ffffff;
}

.button.secondary {
    background: #f3f4f6;
    color: #111827;
}

.button:hover {
    opacity: 0.92;
}

.section {
    padding: 3rem 0;
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading h1,
.section-heading h2 {
    margin-bottom: 0.75rem;
}

.post-grid,
.project-grid {
    display: grid;
    gap: 1.5rem;
}

.post-card,
.project-card,
.feature-card,
.contact-card,
.detail-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
}

.post-card h2,
.project-card h2,
.feature-card h3 {
    margin-top: 0;
}

.meta,
.tag,
.status {
    display: inline-block;
    color: #6b7280;
    font-size: 0.9rem;
}

.project-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status {
    background: #f3f4f6;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.tech-list {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6b7280;
}

.hero-card h2,
.contact-card h2,
.detail-box h3 {
    margin-bottom: 1rem;
}

.contact-grid,
.resume-grid {
    display: grid;
    gap: 1.5rem;
}

.contact-card a {
    color: #111827;
    font-weight: 600;
}

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

.site-footer {
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

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

.project-detail .project-meta {
    display: grid;
    gap: 2rem;
}

.project-detail .project-aside {
    display: grid;
    gap: 1.5rem;
}

.project-image img {
    border-radius: 1rem;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1.5fr 1fr;
        align-items: center;
    }

    .post-grid,
    .project-grid,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-detail .project-meta {
        grid-template-columns: 2fr 1fr;
    }
}

@media (min-width: 1024px) {
    .site-nav {
        gap: 1.5rem;
    }

    .button-row {
        gap: 1rem;
    }

    .post-grid,
    .project-grid,
    .contact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
