:root {
    --bg: #ffffff;
    --text: #2f2f2f;
    --muted: #4a4a4a;
    --max: 56ch;
    --fade-animation: 2.4s linear;
    --spinner-fade-duration: 1000ms;
}
* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        'Manrope',
        ui-sans-serif,
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color var(--fade-animation);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
body.dark {
    background: #1a1a1a;
}

/* Vine Container - Background Layer */
.vine-container {
    position: fixed;
    width: 200%;
    height: 200%;
    top: -20%;
    left: -20%;
    z-index: 1;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 10% auto;
    opacity: 0.03;
    transform: rotate(-125deg);
    transform-origin: center center;
    transition:
        filter 1s linear,
        opacity var(--fade-animation),
        transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.vine-container.mirror {
    top: -80%;
    left: -80%;
    transform: rotate(-125deg) scaleX(-1);
}
body.dark .vine-container {
    opacity: 0.05;
    filter: brightness(0) invert(1);
}

/* Content Container - Middle Layer */
.content-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.content-container h1,
.content-container h2 {
    transition: color var(--fade-animation);
}
body.dark .content-container h1,
body.dark .content-container h2 {
    color: #fff;
}

.wrap {
    width: min(92vw, var(--max));
    text-align: center;
    padding: 56px 0;
}

/* Spinner Container - Front Layer */
.spinner-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity var(--spinner-fade-duration) linear;
}
.spinner-container.fade-out {
    opacity: 0;
}

.mark {
    width: 84px;
    height: 84px;
    margin: 0 auto 34px;
    display: block;
}
h1 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.01em;
    cursor: pointer;
}
.mobile-divider {
    display: block;
    width: 60px;
    height: 1px;
    border: none;
    background: currentColor;
    margin: 20px auto;
    opacity: 0.3;
    transition:
        opacity var(--fade-animation),
        background var(--fade-animation);
}
h2 {
    margin-top: 18px;
    font-size: 18px;
    font-weight: 300;
    color: var(--muted);
    letter-spacing: 0.02em;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
h2 .middot {
    display: none;
}
.middot {
    margin: 0 10px;
    opacity: 0.5;
    transition: opacity var(--fade-animation);
}
.content-container a {
    color: var(--text);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(0, 0, 0, 1);
    transition:
        color var(--fade-animation),
        border-bottom-color var(--fade-animation);
}
body.dark .content-container a {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 1);
}
.content-container a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(0, 0, 0, 1);
    transition: background var(--fade-animation);
}
body.dark .content-container a::after {
    background: rgba(255, 255, 255, 1);
}
.content-container a:hover::after {
    animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.content-container a:not(:hover)::after {
    animation: slideOutRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideInLeft {
    from {
        left: 0;
        width: 0;
    }
    to {
        left: 0;
        width: 100%;
    }
}
@keyframes slideOutRight {
    from {
        left: 0;
        width: 100%;
    }
    to {
        left: 100%;
        width: 0;
    }
}
.content-container a:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 1);
    outline-offset: 6px;
    transition: outline-color var(--fade-animation);
}
body.dark .content-container a:focus-visible {
    outline-color: rgba(255, 255, 255, 1);
}
.content-container a:focus-visible::after {
    width: 0;
}

/* Ripple Effect */
.ripple {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(0, 0, 0, 0.2);
    width: 300px;
    height: 300px;
    animation: rippleExpand 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
body.dark .ripple {
    background: rgba(255, 255, 255, 0.2);
}
@keyframes rippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Ripple Options - Uncomment to try different styles: */

/* Option 1: More subtle, faster fade */
/*
.ripple {
    background: rgba(0, 0, 0, 0.15);
    animation: rippleExpand 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
body.dark .ripple {
    background: rgba(255, 255, 255, 0.15);
}
@keyframes rippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}
*/

/* Option 2: More pronounced, slower */
/*
.ripple {
    background: rgba(0, 0, 0, 0.3);
    animation: rippleExpand 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
body.dark .ripple {
    background: rgba(255, 255, 255, 0.3);
}
@keyframes rippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}
*/

/* Option 3: Material Design style - starts small, expands quickly */
/*
.ripple {
    background: rgba(0, 0, 0, 0.25);
    animation: rippleExpand 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
body.dark .ripple {
    background: rgba(255, 255, 255, 0.25);
}
@keyframes rippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}
*/

/* Option 4: Larger max size (300px) */
/*
.ripple {
    width: 300px;
    height: 300px;
}
*/

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    margin-top: -20px;
}

.spinner svg {
    width: 100%;
    height: 100%;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.spinner circle {
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
}

/* Spinner: Material tight */
.spinner circle {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    animation: dash 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes dash {
    0% {
        stroke-dasharray: 8, 200;
        stroke-dashoffset: 0;
    }
    48% {
        stroke-dasharray: 95, 200;
        stroke-dashoffset: -30;
    }
    100% {
        stroke-dasharray: 8, 200;
        stroke-dashoffset: -125;
    }
}
@media (max-width: 500px) {
    .ripple {
        width: 200px;
        height: 200px;
    }
    .vine-container {
        top: -10%;
    }
    .vine-container.mirror {
        top: -90%;
    }
    .wrap {
        width: 85vw;
        padding: 40px 0;
    }
    h1 {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 28px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        letter-spacing: 0.02em;
    }
    h1 .line-1,
    h1 .line-2 {
        display: block;
    }
    h1 .middot {
        display: none;
    }
    .mobile-divider {
        display: block;
        width: 60px;
        height: 1px;
        border: none;
        background: currentColor;
        margin: 20px auto;
        opacity: 0.3;
        transition:
            opacity var(--fade-animation),
            background var(--fade-animation);
    }
    h2 {
        margin-top: 0;
        font-size: 15px;
        line-height: 1.8;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    h2 .middot {
        display: none;
    }
    h2 .email,
    h2 .location {
        display: block;
    }
}
