:root {
    --bg: #fbfbf9;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-soft: #f6f7f4;
    --text: #0b0b0c;
    --muted: #0f0f0f;
    --accent: #1c6c72;
    --accent-soft: #e7f3f2;
    --line: rgba(24, 35, 47, 0.1);
    --shadow: 0 18px 40px rgba(29, 48, 66, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Quicksand", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(28, 108, 114, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #fbfbf9 100%);
}

a {
    color: inherit;
}

button {
    font: inherit;
}

#root {
    min-height: 100vh;
}

.page-shell {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0;
}

.site-layout {
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.left-column {
    position: sticky;
    top: 24px;
    padding-right: 10px;
}

.right-column {
    min-width: 0;
}

.profile-picture {
    width: min(100%, 350px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 18px;
    background: #eef2f1;
    box-shadow: var(--shadow);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: 50% 32%;
}

.small-label {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.personal-info h1 {
    margin: 0;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.name-top {
    display: block;
    font-size: clamp(1.2rem, 2.0vw, 1.8rem);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.name-bottom {
    display: block;
    margin-top: 5px;
    font-size: clamp(2.4rem, 4.0vw, 4.2rem);
    font-weight: 700;
}

.tagline {
    margin: 10px 0 8px;
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 700;
}

.summary {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.looking-for-section {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.looking-for-section h2 {
    margin: 0 0 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.looking-for-section p {
    margin: 0;
    color: var(--text);
    line-height: 1.75;
}

.contact-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.contact-section h2 {
    margin: 0 0 16px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.contact-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.contact-list a,
.contact-list span:last-child {
    min-width: 0;
    color: var(--text);
    text-decoration: none;
    word-break: break-word;
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
}

.top-bar {
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.nav-pill {
    padding: 10px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-pill:hover {
    color: var(--text);
}

.nav-pill.active {
    color: var(--text);
    border-color: var(--accent);
}

.nav-separator {
    color: var(--muted);
    font-weight: 700;
}

.view-shell {
    min-height: 520px;
}

.site-footnote {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    color: rgba(15, 15, 15, 0.68);
    letter-spacing: 0.02em;
}

.site-footnote-handle {
    font-weight: 700;
}

.site-footnote-heart {
    color: var(--accent);
    font-weight: 700;
}

.section-stack {
    display: grid;
    gap: 28px;
}

.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.content-section {
    padding: 0 0 24px;
    border-bottom: 1px solid var(--line);
}
/* for personal projects section */
.projects{
    padding: 0;
    border-bottom: 0px solid var(--line);
}
/* for misc section */
.misc{
    padding: 0;
    border-bottom: 0px solid var(--line);
}

.content-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.section-label {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.content-section h2,
.content-section h3,
.content-section h4 {
    margin: 0 0 12px;
}

.content-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.content-section h3 {
    font-size: 1.45rem;
}

.content-section h4 {
    font-size: 1.05rem;
}

.content-section p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.8;
}

.content-section a {
    font-weight: 600;
    color: var(--text);
    text-decoration-thickness: 2px;
}

.inline-tech-item {
    display: inline-flex;
    align-items: center;
    gap: 0.32em;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.inline-tech-icon {
    width: 1em;
    height: 1em;
    object-fit: contain;
    vertical-align: middle;
}

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

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 18px;
}

.skill-list span {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--text);
    font-weight: 700;
}

.timeline-item {
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.timeline-item:first-of-type {
    border-top: 0;
    padding-top: 6px;
}

.detail-list {
    margin: 12px 0 0 18px;
    padding: 0;
    color: var(--muted);
}

.detail-list li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--line);
}
.projects-grid p {
    font-size: 15px;
}

.project-tile {
    width: min(100%, 300px);
    text-decoration: none;
}

.project-tile h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.project-image-wrap {
    overflow: hidden;
    border-radius: 18px;
    background: #f1f4f3;
    box-shadow: var(--shadow);
}

.project-image-wrap img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.project-tile:hover .project-image-wrap img {
    transform: scale(1.02);
}

.project-tile p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.viz-collage {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.viz-collage img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.sakura-wrap {
    margin-top: 0;
    height: 100vh;
    aspect-ratio: 3 / 4;
    display: flex;
    justify-content: center;
}

.sakura {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

@media (max-width: 1024px) {
    .site-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .left-column {
        position: static;
        padding-right: 0;
    }

    .viz-collage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .viz-collage img { grid-column: auto; }
}

@media (max-width: 820px) {
    .two-up {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 24px, 1320px);
        padding: 18px 0 24px;
    }

    .profile-picture {
        width: 100%;
        max-width: 260px;
    }

    .view-shell {
        min-height: auto;
    }
}
