:root {
    --white: #ffffff;
    --ink: #111111;
    --mid: #666666;
    --faded: #aaaaaa;
    --ghost: #cccccc;
    --rule: #e0e0e0;
    --times: 'Times New Roman', Times, serif;
    --helv: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--helv);
    font-weight: 300;
    background-color: var(--white);
    color: var(--ink);
    min-height: 100vh;
}

/* ─── NAV ─────────────────────────────────────────────── */

nav {
    padding: 18px 32px 26px;
    font-family: var(--times);
    font-size: 13px;
    line-height: 2;
    color: var(--faded);
}

nav a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

nav a:hover {
    color: var(--faded);
}

.nav-name {
    color: var(--ink);
    text-decoration: none;
}

.nav-name:hover {
    color: var(--faded);
}

/* dropdown */
.nav-dropdown {
    position: relative;
    display: inline;
}

.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--white);
    border: 0.5px solid var(--rule);
    min-width: 260px;
    z-index: 200;
    padding: 4px 0;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 14px;
    font-family: var(--times);
    font-size: 12px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 0.5px solid var(--rule);
    line-height: 1.5;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    color: var(--faded);
}

/* ─── HOME ────────────────────────────────────────────── */

.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 0.5px solid var(--rule);
}

.home-left {
    padding: 32px;
    border-right: 0.5px solid var(--rule);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 50vw;
}

.home-left h1 {
    font-family: var(--times);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 0.97;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.home-left .bio {
    font-family: var(--helv);
    font-weight: 300;
    font-size: 0.85rem;
    line-height: 1.75;
    color: var(--mid);
    max-width: 400px;
    margin-top: 32px;
}

.home-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    background: var(--rule);
    gap: 0.5px;
}

.home-right .photo-cell {
    overflow: hidden;
    background: #ebebeb;
}

.home-right .photo-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(15%);
    transition: filter 0.4s, transform 0.5s;
}

.home-right .photo-cell:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* ─── PAGE HEADER ─────────────────────────────────────── */

.page-header {
    padding: 36px 32px 28px;
    border-top: 0.5px solid var(--rule);
    border-bottom: 0.5px solid var(--rule);
}

.page-header h1 {
    font-family: var(--times);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 0.97;
    letter-spacing: -0.01em;
    color: var(--ink);
}

/* ─── PROJECTS ────────────────────────────────────────── */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--rule);
    gap: 0.5px;
    border-bottom: 0.5px solid var(--rule);
}

.project-card {
    background: var(--white);
    text-decoration: none;
    color: var(--ink);
    display: block;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.4s, transform 0.5s;
}

.project-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.project-card-placeholder {
    width: 100%;
    height: 100%;
    background: #f4f4f4;
}

.project-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(255,255,255,0.96));
}

.project-card-num {
    font-family: var(--helv);
    font-weight: 300;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--ghost);
    margin-bottom: 6px;
}

.project-card-title {
    font-family: var(--times);
    font-size: 0.9rem;
    color: var(--ink);
    line-height: 1.35;
}

.project-card-tag {
    font-family: var(--helv);
    font-weight: 300;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    color: var(--faded);
    margin-top: 4px;
}

/* project index list */
.projects-index {
    border-top: 0.5px solid var(--rule);
}

.project-index-row {
    display: grid;
    grid-template-columns: 40px 1fr 160px;
    gap: 24px;
    align-items: baseline;
    padding: 16px 32px;
    border-bottom: 0.5px solid var(--rule);
    text-decoration: none;
    color: var(--ink);
    transition: background 0.15s;
}

.project-index-row:hover {
    background: #fafafa;
}

.project-index-num {
    font-family: var(--helv);
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--ghost);
}

.project-index-title {
    font-family: var(--times);
    font-size: 1rem;
    line-height: 1.35;
}

.project-index-tag {
    font-family: var(--helv);
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    color: var(--faded);
    text-align: right;
}

/* individual project */
.project-detail {
    max-width: 680px;
    margin: 0 auto;
    padding: 56px 32px 80px;
}

.project-detail .project-meta {
    font-family: var(--helv);
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--faded);
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 0.5px solid var(--rule);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.project-detail h1 {
    font-family: var(--times);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 40px;
}

.project-detail h2 {
    font-family: var(--helv);
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--faded);
    margin: 36px 0 10px;
}

.project-detail p {
    font-family: var(--times);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--ink);
    margin-bottom: 14px;
}

.project-detail a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.project-detail a:hover {
    color: var(--faded);
}

.learning-objective {
    font-family: var(--helv);
    font-weight: 300;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    border: 0.5px solid var(--rule);
    padding: 3px 8px;
    color: var(--mid);
}

.project-divider {
    border: none;
    border-top: 0.5px solid var(--rule);
    margin: 0 32px;
}

/* ─── WHO AM I ────────────────────────────────────────── */

.who-body {
    max-width: 680px;
    margin: 0 auto;
    padding: 52px 32px 80px;
}

.who-body p {
    font-family: var(--times);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--ink);
    margin-bottom: 22px;
}

.who-body a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.who-body a:hover {
    color: var(--faded);
}

.values-list {
    list-style: none;
    margin: 44px 0;
    border-top: 0.5px solid var(--rule);
}

.values-list li {
    padding: 20px 0;
    border-bottom: 0.5px solid var(--rule);
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 24px;
    align-items: start;
}

.values-list .value-label {
    font-family: var(--times);
    font-size: 1rem;
    color: var(--ink);
}

.values-list .value-text {
    font-family: var(--helv);
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--mid);
}

/* ─── ART ─────────────────────────────────────────────── */

.art-intro {
    padding: 20px 32px;
    font-family: var(--times);
    font-size: 13px;
    line-height: 2;
    color: var(--faded);
    border-bottom: 0.5px solid var(--rule);
}

.art-intro a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--rule);
    gap: 0.5px;
}

.art-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    filter: grayscale(10%);
    transition: filter 0.3s, transform 0.4s;
}

.art-grid img:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
    position: relative;
    z-index: 2;
}

/* ─── READING ─────────────────────────────────────────── */

.reading-body {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 32px 80px;
}

.reading-intro {
    font-family: var(--times);
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--faded);
    margin-bottom: 40px;
}

.reading-section {
    margin-bottom: 48px;
}

.reading-section h2 {
    font-family: var(--times);
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 0.5px solid var(--rule);
}

.reading-section ul {
    list-style: none;
}

.reading-section li {
    padding: 12px 0;
    border-bottom: 0.5px solid var(--rule);
    font-family: var(--times);
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--ink);
}

.reading-section li:last-child {
    border-bottom: none;
}

.reading-section li a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--rule);
    transition: text-decoration-color 0.2s;
}

.reading-section li a:hover {
    text-decoration-color: var(--ink);
}

.reading-section iframe {
    margin-top: 12px;
    width: 100%;
}

/* ─── FOOTER ──────────────────────────────────────────── */

footer {
    border-top: 0.5px solid var(--rule);
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 80px;
}

footer .footer-links {
    display: flex;
    gap: 20px;
}

footer a {
    font-family: var(--times);
    font-size: 0.75rem;
    color: var(--faded);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s, color 0.2s;
}

footer a:hover {
    color: var(--ink);
    text-decoration-color: var(--ink);
}

footer .copyright {
    font-family: var(--times);
    font-size: 0.75rem;
    color: var(--ghost);
}

/* ─── RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 900px) {
    nav { padding: 16px 20px 20px; }

    .home-grid { grid-template-columns: 1fr; }
    .home-left {
        border-right: none;
        border-bottom: 0.5px solid var(--rule);
        padding: 24px 20px;
        min-height: unset;
    }
    .home-right { min-height: 60vw; }

    .projects-grid { grid-template-columns: repeat(2, 1fr); }

    .project-index-row {
        grid-template-columns: 32px 1fr;
        padding: 14px 20px;
    }
    .project-index-tag { display: none; }

    .project-detail { padding: 40px 20px 60px; }
    .project-divider { margin: 0 20px; }
    .who-body { padding: 40px 20px 60px; }
    .art-intro { padding: 16px 20px; }
    .art-grid { grid-template-columns: repeat(2, 1fr); }
    .reading-body { padding: 32px 20px 60px; }
    .page-header { padding: 28px 20px 20px; }
    footer {
        padding: 16px 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .projects-grid { grid-template-columns: 1fr; }
    .project-card { aspect-ratio: 3/2; }
    .values-list li { grid-template-columns: 1fr; gap: 6px; }
}
