html, body, #root { margin: 0; min-height: 100%; }

:root {
    --ink: #000000;
    --ink-2: #6e6e6e;
    --hairline: #e6e6e6;
    --panel: #f5f5f5;
}

body {
    background: #ffffff;
    color: var(--ink);
    font-family: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Inter", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.site {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- nav ---------- */
.site-nav { padding-top: 28px; }
.nav-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hairline);
}
.nav-name {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.1;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
    font-size: 16px;
    color: var(--ink-2);
    text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
    display: flex;
    justify-content: flex-end;
    padding: 96px 0 72px;
    border-bottom: 1px solid var(--hairline);
}
.hero h1 {
    margin: 0;
    width: 55%;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* ---------- work list ---------- */
.work-section {
    display: flex;
    gap: 40px;
    padding: 64px 0;
}
.section-label {
    width: 37%;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.section-label span { color: var(--ink-2); margin-right: 6px; }
.project-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 56px;
}
.project-card { text-decoration: none; color: var(--ink); display: block; }
.project-card-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 14px;
}
.project-card-title { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.project-card-year { font-size: 16px; color: var(--ink-2); flex-shrink: 0; }
.project-card-media {
    background: var(--panel);
    border-radius: 0;
    aspect-ratio: 5 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.project-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
}
.home-more {
    display: flex;
    gap: 32px;
    padding: 0 0 32px;
    justify-content: flex-end;
}
.text-link {
    color: var(--ink);
    font-size: 16px;
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
}

/* ---------- project page ---------- */
.project-page, .simple-page {
    width: 63%;
    margin-left: 37%;
    padding: 80px 0 64px;
}
.simple-page { min-height: 320px; }
.project-title {
    margin: 0 0 16px;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.03em;
}
.project-tagline {
    margin: 0 0 48px;
    font-size: 20px;
    line-height: 1.45;
    color: var(--ink-2);
    letter-spacing: -0.01em;
}
.project-meta { margin: 0 0 64px; }
.project-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline);
}
.project-meta-row dt { font-size: 17px; color: var(--ink-2); }
.project-meta-row dd { margin: 0; font-size: 17px; }
.project-hero-media {
    background: var(--panel);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.project-hero-media img { width: auto; max-width: 100%; max-height: 640px; display: block; }
.project-note { color: var(--ink-2); font-size: 16px; margin: 0 0 32px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); margin-top: 32px; }
.footer-cta { padding: 72px 0 72px 37%; border-bottom: 1px solid var(--hairline); }
.footer-cta-line {
    margin: 0 0 24px;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.footer-cta-line .muted { color: var(--ink-2); }
.footer-cta-link { font-size: 17px; color: var(--ink); text-decoration: none; }
.footer-cta-link:hover { text-decoration: underline; }
.footer-grid {
    display: flex;
    gap: 48px;
    padding: 48px 0;
}
.footer-name {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.1;
    width: 37%;
    flex-shrink: 0;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 140px; }
.footer-col-title { margin: 0 0 6px; font-size: 16px; font-weight: 500; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: 16px; }
.footer-col a:hover { color: var(--ink); }
.footer-col-text { margin: 0; color: var(--ink-2); font-size: 16px; }
.footer-base {
    border-top: 1px solid var(--hairline);
    padding: 20px 0 28px;
    color: var(--ink-2);
    font-size: 15px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .hero h1 { width: 70%; }
    .work-section { flex-direction: column; gap: 24px; }
    .section-label { width: auto; }
    .project-page, .simple-page { width: auto; margin-left: 0; }
    .footer-cta { padding-left: 0; }
    .footer-name { width: auto; }
    .footer-grid { flex-wrap: wrap; }
}
@media (max-width: 600px) {
    .site { padding: 0 20px; }
    .nav-bar { flex-direction: column; gap: 12px; align-items: flex-start; }
    .nav-name { font-size: 32px; }
    .nav-links { width: 100%; justify-content: space-between; gap: 8px; }
    .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
    .hero { padding: 56px 0 48px; }
    .hero h1 { width: 100%; font-size: 26px; }
    .footer-cta-line { font-size: 26px; }
    .footer-name { font-size: 32px; }
    .project-title { font-size: 32px; }
}

/* ---------- dashboard ---------- */
.dashboard { padding: 64px 0; max-width: 760px; }
.dash-section { border-top: 1px solid var(--hairline); padding: 32px 0; }
.dash-heading { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 20px; }
.dash-grid { display: flex; flex-direction: column; gap: 16px; }
.dash-field { display: flex; flex-direction: column; gap: 6px; }
.dash-label { font-size: 14px; color: var(--ink-2); }
.dash-field input[type="text"], .dash-field textarea, .dash-field select, .dash-add input {
    font: inherit;
    font-size: 16px;
    padding: 10px 12px;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    width: 100%;
    box-sizing: border-box;
}
.dash-field textarea { resize: vertical; }
.dash-project { border: 1px solid var(--hairline); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.dash-project-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.dash-thumb { width: 56px; height: 56px; object-fit: contain; background: var(--panel); border-radius: 0; }
.dash-project-actions { margin-left: auto; display: flex; gap: 8px; }
.dash-btn {
    font: inherit;
    font-size: 15px;
    padding: 8px 14px;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    min-height: 40px;
}
.dash-btn:hover { border-color: var(--ink); }
.dash-btn.danger { color: #b00020; }
.dash-btn:disabled { opacity: 0.4; cursor: default; }
.dash-add { display: flex; gap: 12px; }
.dash-add input { flex: 1; }
.dash-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dash-status { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; }

/* ---------- page bodies & project stories ---------- */
.page-body {
    font-size: 20px;
    line-height: 1.45;
    color: var(--ink-2);
    letter-spacing: -0.01em;
}
.page-body p { margin: 0 0 20px; }
.page-body a { color: var(--ink); }
.page-body img { max-width: 100%; display: block; margin: 24px 0; }
.project-story {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 40px;
}
.project-story p { margin: 0 0 20px; }
.project-story img { max-width: 100%; display: block; margin: 24px 0; }
.project-story a { color: var(--ink); }
.project-story h2, .project-story h3 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 40px 0 16px;
}
