/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: #1c1917;
    background: #fafaf9;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

/* ===== Layout ===== */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Nav ===== */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(250, 250, 249, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #e7e5e4;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 56px;
    position: relative;
}

.nav-name {
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: #1c1917;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.875rem;
    color: #78716c;
    text-decoration: none;
    transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1c1917;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1c1917;
    border-radius: 2px;
    transition: all 0.2s;
}

/* ===== Hero ===== */
.hero {
    padding: 5rem 0 4rem;
    border-bottom: 1px solid #e7e5e4;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.hero-tagline {
    font-size: 1.05rem;
    color: #44403c;
    margin-bottom: 0.4rem;
}

.hero-sub {
    font-size: 0.95rem;
    color: #78716c;
    margin-bottom: 2rem;
}

.hero-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-links a {
    font-size: 0.875rem;
    color: #78716c;
    text-decoration: none;
    border-bottom: 1px solid #d6d3d1;
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}

.hero-links a:hover {
    color: #1c1917;
    border-bottom-color: #1c1917;
}

/* ===== Sections ===== */
.section {
    padding: 4rem 0;
    border-bottom: 1px solid #e7e5e4;
}

.section-alt {
    background: #f5f5f4;
}

.section h2 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a8a29e;
    margin-bottom: 2rem;
}

.section-lead {
    color: #44403c;
    margin-bottom: 2rem;
}

/* ===== About ===== */
.about-inner {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 0.2rem;
}

.about-text p {
    color: #44403c;
    margin-bottom: 1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ===== Building ===== */
.building-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1c1917;
    letter-spacing: -0.01em;
}

.building-content p {
    color: #44403c;
    margin-bottom: 1rem;
}

.cta-link {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1c1917;
    text-decoration: none;
    border-bottom: 1.5px solid #1c1917;
    padding-bottom: 1px;
    transition: opacity 0.15s;
}

.cta-link:hover {
    opacity: 0.5;
}

/* ===== Photography ===== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.photo-placeholder {
    border: 1.5px dashed #d6d3d1;
    border-radius: 4px;
    padding: 4rem 2rem;
    text-align: center;
}

.photo-placeholder p {
    color: #a8a29e;
    font-size: 0.875rem;
}

/* ===== Writing ===== */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-item {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.post-date {
    font-size: 0.8rem;
    color: #a8a29e;
    padding-top: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.post-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: #1c1917;
    line-height: 1.4;
}

.post-title a {
    text-decoration: none;
}

.post-title a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-excerpt {
    font-size: 0.875rem;
    color: #78716c;
    line-height: 1.6;
}

/* ===== Contact ===== */
#contact p {
    color: #44403c;
    margin-bottom: 1.5rem;
}

#contact p a {
    color: #1c1917;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-links a {
    font-size: 0.875rem;
    color: #78716c;
    text-decoration: none;
    border-bottom: 1px solid #d6d3d1;
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}

.contact-links a:hover {
    color: #1c1917;
    border-bottom-color: #1c1917;
}

/* ===== Footer ===== */
.site-footer {
    padding: 2rem 0;
}

.site-footer p {
    font-size: 0.8rem;
    color: #a8a29e;
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-item {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .section {
        padding: 3rem 0;
    }

    /* Mobile nav */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #fafaf9;
        border-bottom: 1px solid #e7e5e4;
        padding: 1rem 1.5rem 1.25rem;
        gap: 0.875rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
