:root {
    --background: #f4f6f2;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --text: #173328;
    --text-muted: #64746d;
    --line: rgba(23, 51, 40, 0.12);
    --accent: #1b4332;
    --accent-soft: #dce9e2;
    --highlight: #d4a373;
    --shadow: 0 14px 40px rgba(32, 55, 45, 0.08);
    --shadow-hover: 0 22px 48px rgba(32, 55, 45, 0.14);
    --radius-large: 24px;
    --radius-medium: 18px;
    --radius-small: 999px;
}

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

html {
    min-width: 320px;
    background: var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(212, 163, 115, 0.16), transparent 28rem),
        radial-gradient(circle at 88% 22%, rgba(82, 121, 101, 0.15), transparent 30rem),
        var(--background);
}

a {
    color: inherit;
}

svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-shell {
    width: min(100% - 32px, 720px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 64px 0 28px;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 52px;
}

.brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #f7fbf8;
    background: var(--accent);
    box-shadow: 0 14px 30px rgba(27, 67, 50, 0.2);
}

.brand-mark svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.7;
}

.header-copy {
    min-width: 0;
}

.eyebrow {
    margin: 2px 0 7px;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2.25rem, 8vw, 3.6rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

h1 span {
    color: var(--highlight);
}

.intro {
    max-width: 470px;
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.github-link {
    grid-column: 2;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    color: var(--accent);
    background: rgba(255, 255, 255, 0.55);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.github-link:hover {
    border-color: rgba(27, 67, 50, 0.26);
    background: var(--surface-strong);
    transform: translateY(-2px);
}

.github-link > svg:first-child {
    width: 17px;
    height: 17px;
}

.github-link > svg:last-child {
    width: 13px;
    height: 13px;
}

main {
    flex: 1;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 2px 14px;
}

.section-heading h2 {
    margin: 0;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.project-list {
    display: grid;
    gap: 14px;
}

.project-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 138px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-large);
    background: var(--surface);
    box-shadow: var(--shadow);
    text-decoration: none;
    backdrop-filter: blur(12px);
    transition: transform 230ms ease, box-shadow 230ms ease, border-color 230ms ease, background-color 230ms ease;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: auto -54px -72px auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--accent-soft);
    opacity: 0.38;
    pointer-events: none;
    transition: transform 230ms ease, opacity 230ms ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(27, 67, 50, 0.2);
    background: var(--surface-strong);
    box-shadow: var(--shadow-hover);
}

.project-card:hover::after {
    transform: scale(1.12);
    opacity: 0.56;
}

.project-card:focus-visible,
.github-link:focus-visible {
    outline: 3px solid rgba(212, 163, 115, 0.72);
    outline-offset: 4px;
}

.project-icon,
.empty-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: var(--accent-soft);
}

.project-icon svg,
.empty-icon svg {
    width: 23px;
    height: 23px;
}

.project-content,
.project-title-row,
.badge-list {
    display: flex;
}

.project-content {
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.project-title-row {
    max-width: 100%;
    align-items: center;
    gap: 8px;
}

.project-title {
    overflow-wrap: anywhere;
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.018em;
}

.external-icon {
    flex: 0 0 auto;
    color: var(--text-muted);
}

.external-icon svg {
    width: 15px;
    height: 15px;
}

.project-description {
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.91rem;
    line-height: 1.55;
}

.badge-list {
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.badge {
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    color: var(--accent);
    background: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.025em;
}

.open-project {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 750;
}

.open-project svg {
    width: 18px;
    height: 18px;
    transition: transform 180ms ease;
}

.project-card:hover .open-project svg {
    transform: translateX(3px);
}

.empty-state {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 138px;
    padding: 24px;
    border: 1px dashed rgba(23, 51, 40, 0.22);
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.42);
}

.empty-state h2 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.empty-state p {
    margin: 7px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 58px;
    padding: 22px 2px 0;
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 0.76rem;
}

.site-footer p {
    margin: 0;
    color: var(--text);
    font-weight: 650;
}

.reveal-item {
    opacity: 0;
    transform: translateY(12px);
}

.reveal-item[data-visible="true"],
.no-js .reveal-item {
    opacity: 1;
    transform: none;
}

.reveal-item[data-visible="true"] {
    transition: opacity 500ms ease var(--reveal-delay, 0ms), transform 500ms ease var(--reveal-delay, 0ms);
}

@media (max-width: 600px) {
    .page-shell {
        width: min(100% - 24px, 720px);
        padding-top: 34px;
    }

    .site-header {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 15px;
        margin-bottom: 42px;
    }

    .brand-mark {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .brand-mark svg {
        width: 25px;
        height: 25px;
    }

    .eyebrow {
        margin-top: 0;
    }

    h1 {
        font-size: clamp(2.15rem, 13vw, 3rem);
    }

    .intro {
        grid-column: 1 / -1;
        font-size: 0.94rem;
    }

    .github-link {
        grid-column: 1 / -1;
    }

    .project-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
        padding: 19px;
    }

    .project-icon {
        align-self: start;
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .open-project {
        grid-column: 2;
        justify-self: start;
        margin-top: -2px;
    }

    .empty-state {
        align-items: flex-start;
        padding: 20px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal-item {
        opacity: 1;
        transform: none;
    }
}
