:root {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    color: #25252a;
    background: #d6d9df;
    --window: #fff;
    --sidebar: #f0f0f3;
    --toolbar: #f7f7f9;
    --line: #dedee3;
    --muted: #777982;
    --selected: #d8e7fc;
    --blue: #1674d8;
    --card: #f7f8fa;
    color-scheme: light;
}

:root.dark {
    color: #f1f1f3;
    background: #1c1e23;
    --window: #26272b;
    --sidebar: #303136;
    --toolbar: #303136;
    --line: #48494f;
    --muted: #aaaab1;
    --selected: #345273;
    --blue: #83baff;
    --card: #313238;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

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

button,
a {
    font: inherit;
}

a {
    color: var(--blue);
}

.desktop {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
    gap: 14px;
    background:
        radial-gradient(ellipse at 15% 5%, #ffffff55, transparent 55%),
        radial-gradient(ellipse at 90% 95%, #8b9db044, transparent 50%);
}

.window {
    width: min(1180px, 100%);
    height: min(790px, calc(100dvh - 105px));
    min-height: 490px;
    background: var(--window);
    border: 1px solid #0002;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 65px #0003, 0 2px 8px #0001;
}

.toolbar {
    height: 54px;
    flex-shrink: 0;
    background: var(--toolbar);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 18px;
}

.traffic {
    display: flex;
    gap: 8px;
    align-items: center;
}

.traffic span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #0002;
}

.close {
    background: #ff5f57;
}

.minimize {
    background: #febc2e;
}

.maximize {
    background: #28c840;
}

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    pointer-events: none;
}

.window-title svg {
    width: 19px;
    height: 19px;
}

.toolbar-button {
    margin-left: auto;
    border: 1px solid var(--line);
    background: var(--card);
    color: inherit;
    border-radius: 7px;
    width: 31px;
    height: 29px;
    cursor: pointer;
}

.toolbar-button:hover {
    filter: brightness(.95);
}

.layout {
    display: grid;
    grid-template-columns: 215px minmax(0, 1fr);
    min-height: 0;
    flex: 1;
}

.sidebar {
    background: var(--sidebar);
    border-right: 1px solid var(--line);
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 0;
}

.sidebar-heading {
    font-size: 11px;
    font-weight: 650;
    color: var(--muted);
    padding: 0 11px;
    margin-bottom: 8px;
}

.secondary-heading {
    margin-top: 25px;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
    border-radius: 6px;
    padding: 8px 11px;
    font-size: 13px;
    font-weight: 500;
}

.sidebar a:hover {
    background: color-mix(in srgb, var(--selected), transparent 55%);
}

.sidebar a.active {
    background: var(--selected);
}

.nav-icon {
    font-size: 18px;
    color: var(--blue);
    width: 20px;
    text-align: center;
    line-height: 1;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 10px 11px;
    color: var(--muted);
    font-size: 11px;
}

.content-area {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.content-header {
    height: 42px;
    border-bottom: 1px solid var(--line);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
}

.view-symbol {
    color: var(--muted);
    font-size: 17px;
}

main {
    flex: 1;
    overflow: auto;
    padding: 34px clamp(22px, 5vw, 65px);
    min-height: 0;
}

.statusbar {
    height: 28px;
    flex-shrink: 0;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    font-size: 11px;
    color: var(--muted);
}

footer {
    margin-top: 20px;
    font-size: 12px;
    color: #555a63;
}

.dark footer {
    color: #a5a5af;
}

.page {
    max-width: 880px;
    margin: auto;
    animation: appear .2s ease-out;
}

@keyframes appear {
    from {
        opacity: .35;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.page-heading {
    display: flex;
    align-items: center;
    gap: 19px;
    margin-bottom: 24px;
}

.folder-icon {
    position: relative;
    width: 74px;
    height: 52px;
    background: linear-gradient(#76baff, #378bea);
    border-radius: 5px;
    box-shadow: inset 0 1px #ffffff88, 0 4px 9px #0002;
    flex-shrink: 0;
}

.folder-icon:before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    width: 35px;
    height: 13px;
    background: #75b9fb;
    border-radius: 5px 6px 0 0;
}

.folder-icon:after {
    content: "";
    position: absolute;
    inset: 5px 0 auto;
    height: 6px;
    background: #ffffff24;
}

.page h1 {
    font-size: 29px;
    letter-spacing: -.8px;
    margin: 0 0 5px;
}

.eyebrow {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

.page hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 22px 0;
}

.intro {
    font-size: 19px;
    line-height: 1.55;
    max-width: 620px;
    margin: 18px 0;
    overflow-wrap: anywhere;
}

.page p {
    line-height: 1.65;
}

.details {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 18px 22px;
    font-size: 14px;
}

.details .key {
    color: var(--muted);
}

.details strong {
    font-weight: 500;
    overflow-wrap: anywhere;
}

.projects-grid {
    display: grid;
    gap: 20px;
}

.project {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 15px;
    background: var(--card);
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 7px;
    background: #dce7f2;
    display: block;
}

.project-info h2 {
    font-size: 18px;
    margin: 0 0 6px;
}

.project-info p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 10px;
}

.project-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
}

.project-links a {
    text-underline-offset: 3px;
}

.tag {
    display: inline-block;
    font-size: 11px;
    border: 1px solid var(--line);
    padding: 4px 7px;
    border-radius: 5px;
    color: var(--muted);
    margin: 0 5px 12px 0;
}

.item {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.item h2 {
    font-size: 15px;
    margin: 0 0 5px;
}

.item p {
    margin: 0;
    font-size: 14px;
}

.file-note {
    font-size: 12px;
    color: var(--muted);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .desktop {
        padding: 10px;
        gap: 8px;
        justify-content: flex-start;
    }

    .window {
        height: calc(100dvh - 48px);
        min-height: 0;
    }

    .layout {
        display: flex;
        flex-direction: column;
    }

    .toolbar {
        height: 48px;
    }

    .window-title {
        font-size: 12px;
    }

    .sidebar {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 4px;
        overflow-x: auto;
        padding: 8px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        flex-shrink: 0;
    }

    .sidebar-heading,
    .sidebar-bottom {
        display: none;
    }

    .sidebar a {
        white-space: nowrap;
        padding: 8px 9px;
        font-size: 12px;
    }

    .nav-icon {
        font-size: 15px;
        width: 16px;
    }

    .content-area {
        flex: 1;
    }

    .content-header {
        height: 35px;
        padding: 0 20px;
    }

    main {
        padding: 25px 20px;
    }

    .page h1 {
        font-size: 25px;
    }

    .folder-icon {
        width: 57px;
        height: 41px;
    }

    .page-heading {
        gap: 15px;
    }

    .details {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 14px;
        font-size: 12px;
    }

    .project {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .intro {
        font-size: 17px;
    }

    footer {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page {
        animation: none;
    }
}





.sidebar img.nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Light mode - original icon */
.sidebar img.nav-icon {
  filter: none;
}

/* Dark mode - white icon */
.dark .sidebar img.nav-icon {
  filter: brightness(0) invert(1);
}