:root {
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;

    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

@media (hover: hover) {}

html {scroll-behavior: smooth}

:root {
    --background:                   rgba(255, 255, 255, 1);

    --main-text:                    rgba(0, 0, 0, 1.00);
    --secondary-text:               #C9C9C9;

    --red:                          #E82127;
    --red-opaque:                   #E821279c;
    --blue:                         #1EA3F2;
    --yellow:                       #FED313;

    --border:                       rgba(0, 0, 0, 0.10);

    --shadow-light:                 rgba(0, 0, 0, 0.04);

    --text-selection:               rgba(0, 0, 0, 0.08);

}
@font-face {
    font-family: 'Inter';
    src: url('./typeface/inter.var.woff2') format('woff2');
    font-weight: 500 600;
    font-display: swap;
    font-style: normal;
    unicode-range: 
        U+0025-0026,    /* % & */
        U+0028-0029,    /* ( ) */
        U+002C,         /* , */
        U+002D,         /* - */
        U+002E,         /* . */
        U+0030-0039,    /* 0–9 */
        U+003A,         /* : */
        U+0040,         /* @ */
        U+0041-005A,    /* A–Z */
        U+0061-007A,    /* a–z */
        U+007E,         /* ~ */
        U+2014;         /* — */
}

body {
    display: flex;

    -ms-flex-direction: column;
    flex-direction: column;

    justify-content: center;

    align-items: center;

    margin: 0 auto;

    max-width: 480px;

    padding-top: 48px;
    padding-right: 24px;
    padding-bottom: 48px;
    padding-left: 24px;

    font-family: 'Inter', sans-serif;

    -ms-touch-action: manipulation;
    touch-action: manipulation;

    text-align: center;

    color: var(--main-text);
    background-color: var(--background);
    -webkit-animation: page_load 640ms ease;
    animation: page_load 640ms ease;
}

@-webkit-keyframes page_load {
    from {opacity: 0; -webkit-filter: blur(5px); filter: blur(5px)}
    to {opacity: 1; -webkit-filter: blur(0); filter: blur(0)}
}

@keyframes page_load {
    from {opacity: 0; filter: blur(5px)}
    to {opacity: 1; filter: blur(0)}
}

::selection {background-color: var(--text-selection)}
::-moz-selection {background-color: var(--text-selection)}

h1 {
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
    margin: 0;
}

h2 {
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
}

p {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    text-align: left;
}

aside {
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary-text);
    line-height: 24px;
}

figure {
    display: flex;
    width: 100%;

    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

figcaption {
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    margin-bottom: 32px;

    gap: 8px;
}

hgroup {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    margin-top: 64px;
    margin-bottom: 24px;

    z-index: 100;
}

article {
    margin-bottom: 56px;
}

.titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    margin-top: 64px;

    gap: 8px;

    z-index: 100;
}

button {
    background-color: var(--background);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: var(--main-text);
    cursor: pointer;
    
    -webkit-box-shadow:
    0px 1px 2px 0px var(--shadow-light);
    -moz-box-shadow:
    0px 1px 2px 0px var(--shadow-light);
    box-shadow: 
    0px 1px 2px 0px var(--shadow-light);

    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    will-change: box-shadow;
    -webkit-will-change: box-shadow;
    -moz-will-change: box-shadow;
    -ms-will-change: box-shadow;
    -o-will-change: box-shadow;

    -webkit-transition: box-shadow 180ms ease-in-out;
    -moz-transition: box-shadow 180ms ease-in-out;
    -o-transition: box-shadow 180ms ease-in-out;
    transition: box-shadow 180ms ease-in-out;
}

button:hover {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

button:active {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.main_button {
    margin-top: 24px;
    margin-bottom: 24px;
}

.work_button {
    margin-bottom: 56px;
}

.projects {
    margin-bottom: 56px;
    width: 100%;
    list-style: none;
    padding: 0;
}

.project a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    column-gap: 16px;
    color: inherit;
    text-decoration: none;
}

.project:last-child a {
    border-bottom: none;
}

.year {
    font-weight: 500;
    color: var(--secondary-text);
}

.title {
    font-weight: 500;
    text-align: left;
    width: 100%;
}

time {
    font-weight: 500;
    color: var(--secondary-text);
}

footer {
    margin-top: 160px;
    text-align: center;
}

.footer-squares {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.square-yellow,
.square-blue {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.square-yellow {
    background-color: var(--yellow);
}

.square-blue {
    background-color: var(--blue);
}

.footer-squares img {
    display: block;
    opacity: 0.5;
    animation: spin 6s linear infinite;
}

@keyframes spin {
    from {transform: rotate(0deg)}
    to {transform: rotate(360deg)}
}

/* activity.js */

.apple-widget-container {
    display: flex;

    -ms-flex-direction: column;
    flex-direction: column;

    gap: 24px;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 380px;

    background-color: var(--background);
    border-radius: 10px;
    border: 1px solid var(--border);

    margin-top: 32px;
    margin-bottom: 16px;
    margin-left: 0px;
    margin-right: 0px;

    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* pshapes.js */

.pshape-container {
    -ms-flex-direction: row;
    flex-direction: row;

    justify-content: center;
    align-items: center;

    gap: 24px;

    overflow: visible;

    margin: 0;

    padding-top: 16px;
    padding-bottom: 16px;
}

.pShape {
    width: 40px;
    height: 40px;
}

/* bitrender.js */

.bitrender-container {
    display: flex;

    width: 100%;

    -ms-flex-direction: row;
    flex-direction: row;

    justify-content: center;
    align-items: center;

    gap: 40px;

    overflow: visible;

    margin: 0;

    padding-top: 16px;
    padding-bottom: 16px;
}

.bitrender {
    shape-rendering: crispEdges;
}

/* graf.js */

.graf {
    background-color: var(--background);
    width: 100%;
    aspect-ratio: 1.5/1;

    margin-top: 16px;
    margin-bottom: 16px;
}

.graf .dots circle {
    fill: var(--red-opaque);
}

.graf .plot_area path {
    stroke: var(--red);
}

.graf g.horizontal_lines line {
    stroke-width: 1px;
    stroke-linecap: round;
    stroke: #e5e5e5
}

.graf .x_axis text:first-of-type {text-anchor: start}
.graf .x_axis text:last-of-type {text-anchor: end}
.graf .x_axis text:not(:first-of-type):not(:last-of-type) {text-anchor: middle}

.graf-tooltip {
    display: flex;

    -ms-flex-direction: column;
    flex-direction: column;

    justify-content: start;

    left: 0;
    top: 0;

    transform-origin: 0 0;

    background-color: #ffffff;
    padding: 4px 8px;

    font-size: 14px;
    font-weight: 400;
    font-family: system-ui, -apple-system, sans-serif;
    font-variant-numeric: tabular-nums;

    border: 1px solid #eaeaea;
    border-radius: 8px;
}

.graf-tooltip .tooltip-item {
    display: flex;

    justify-content: flex-start;
    gap: 8px;
}

.graf-tooltip .tooltip-item {
    font-weight: 500;
}

.graf-tooltip .tooltip-item.x-axis .label {
    display: none;
}

.graf-tooltip .tooltip-item.y-axis .value {
    color: var(--red);
}

.graf .x_axis text:first-of-type {
    text-anchor: start;
}

.graf .x_axis text:last-of-type {
    text-anchor: end;
}

/* squiggle.js */

#squiggly_container {
    margin-top: 48px;
    margin-bottom: 40px;
    overflow: visible;
}

/* shimmerText.css*/

a.shimmer-text {
    color: inherit;
    text-decoration: none;
}

.shimmer-text {
    position: relative;
    display: inline-block;

    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;

    line-height: inherit;
    vertical-align: top;
    overflow: hidden;

    margin: 0;
    padding: 0;
}

.shimmer-text::before {
    content: '';
    position: absolute;

    top: 0;
    left: -100%;

    width: 100%;
    height: 100%;

    background: 
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);

    -webkit-filter: blur(4px);
    filter: blur(4px);

    pointer-events: none;

    opacity: 0;

    -webkit-animation: shimmer 4800ms ease-in-out infinite;
    animation: shimmer 4800ms ease-in-out infinite;

    -webkit-animation-delay: 0s, 30s;
    animation-delay: 0s, 30s;
}

@-webkit-keyframes shimmer {
    0% {
        left: -100%;
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* liquid_glass.css */

header {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;

    -webkit-box-shadow:
    0px 0.5px 1.5px 0px var(--shadow-light);
    -moz-box-shadow:
    0px 0.5px 1.5px 0px var(--shadow-light);
    box-shadow: 
    0px 0.5px 1.5px 0px var(--shadow-light);

    padding-left: 0;
    padding-right: 0;

    width: 100%;
    height: 64px;
    border-radius: 0;
    isolation: isolate;
    z-index: 9990;
    
    border-bottom: 1px solid var(--border);
}

.glass_header {
    --shadow-offset: 0;
    --shadow-blur: 20px;
    --shadow-spread: -5px;
    --shadow-color: rgba(255, 255, 255, 0.7);

    --tint-color: 255, 255, 255;
    --tint-opacity: 0.4;

    --frost-blur: 2px;

    --noise-frequency: 0.008;
    --distortion-strength: 77;

    --fade-height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 64px;
    border-radius: 0;
    isolation: isolate;
    z-index: 999;
}

.glass_header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0;

    box-shadow:
        inset var(--shadow-offset) var(--shadow-offset)
        var(--shadow-blur) var(--shadow-spread)
        var(--shadow-color);

    background-color: rgba(var(--tint-color), var(--tint-opacity));
    z-index: 0;
}

.glass_header::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0;

    backdrop-filter: blur(var(--frost-blur));
    -webkit-backdrop-filter: blur(var(--frost-blur));
    filter: url(#glass-distortion);
    isolation: isolate;

    z-index: -1;
}

@supports (-webkit-touch-callout: none) {
    .glass_header_mask {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 48px;
        z-index: 1000;
        pointer-events: none;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    }
    .glass_header {height: 48px}
    header {height: 48px}
}

/* minifigure.css */

.minifigure {
    margin-top: 0px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: -8px;
    position: relative;
    width: max-content;
    z-index: -100;
}

.minifigure::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: calc(72% + 16px);
    background: 
        linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 10;
}

.head {
    --head_scale: 0.32;

    position: relative;
    width: 116px;
    height: 100px;
    transform: scale(var(--head_scale));
    transform-origin: center top;

    background-color: hsl(50, 90%, 50%);
    background-image:
        linear-gradient(
            rgba(255,255,255,0.3),
            rgba(255,255,255,0) 20%,
            rgba(0,0,0,0) 80%,
            rgba(0,0,0,0.15) 95%,
            rgba(0,0,0,0.3)
        ),
        linear-gradient(
            to right,
            rgba(255,255,255,0) 50%,
            rgba(255,255,255,0.2),
            rgba(255,255,255,0)
        );
    border-radius: 24px;
    margin-left: auto;
    margin-right: auto;
}

.head::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 20px;
    background-color: inherit;
    background-image:
        linear-gradient(
            rgba(255,255,255,0.5),
            rgba(255,255,255,0) 30%
        ),
        linear-gradient(
            to right,
            rgba(255,255,255,0) 70%,
            rgba(255,255,255,0.25) 80%,
            rgba(255,255,255,0) 90%
        );
    border-radius: 4px 4px 0 0;
}

.head::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 16px;
    background-color: inherit;
    background-image:
        linear-gradient(
            rgba(0,0,0,0.2),
            rgba(0,0,0,0.05) 50%
        ),
        linear-gradient(
            to right,
            rgba(255,255,255,0) 70%,
            rgba(255,255,255,0.25) 80%,
            rgba(255,255,255,0) 90%
        );
    border-radius: 0 0 2px 2px;
}

.upper-body {
    --scale_factor: 0.32;
    position: absolute;
    z-index: -10;
    top: 36px;
    left: 50%;
    transform-origin: top center;
    transform: translateX(-50%) scale(var(--scale_factor));
    width: auto;
    color: hsl(200,0%,90%);
    perspective: 320px;
}

.upper-body::before,
.upper-body::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.upper-body::before {
    bottom: 100%;
    width: 3em;
    height: 3.5em;
    background-color: currentColor;
    background-image:
        linear-gradient(
            to right,
            rgba(255,255,255,0) 50%,
            rgba(255,255,255,0.2),
            rgba(255,255,255,0) 90%
        ),
        linear-gradient(
            rgba(0,0,0,0) 50%,
            rgba(0,0,0,0.05) 80%,
            rgba(0,0,0,0.1)
        );
    border-radius: 50% 50% 0 0/10% 10% 0 0;
}

.upper-body::after {
    top: -2.75em;
    width: 2em;
    height: 2em;
    background-color: rgba(0,0,0,0.9);
    background-image:
        linear-gradient(
            to right,
            rgba(255,255,255,0) 50%,
            rgba(255,255,255,0.2) 80%,
            rgba(255,255,255,0)
        );
    border-radius: 50%/10%;
}

.torso {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 50%;
    width: 7.75em;
    height: 9.125em;
    transform-origin: top center;
    transform: translateX(-50%) rotateX(45deg);
    background-color: currentColor;
    background-image:
        linear-gradient(
            rgba(255,255,255,0.1),
            rgba(0,0,0,0) 80%,
            rgba(0,0,0,0.05) 98%,
            rgba(0,0,0,0.25) 100%
        );
    border-radius: 0.5em 0.5em 0.125em 0.125em;
    box-shadow:
        inset 0 0.25em 0.25em rgba(255,255,255,0.5),
        -1.5em 0.5em 1em -1.25em rgba(0,0,0,0.3),
        1.5em 0.5em 1em -1.25em rgba(0,0,0,0.3);
}

.arm {
    position: absolute;
    left: 50%;
    top: 4em;
    width: 3em;
    height: 5.5em;
    transform-origin: center 1.5em;
    background-color: currentColor;
    border-radius: 1.5em/1em;
}

.arm.right {
    margin-left: -6.25rem;
    transform: translateX(-50%) rotate(12deg);
    box-shadow:
        inset 0.5em 0.25em 0.375em -0.25em rgba(255,255,255,0.4),
        inset 0 0 0.75em 0.75em currentColor,
        inset 0 0 0 2em rgba(255,255,255,0.15);
}

.arm.left {
    margin-left: 6.25rem;
    transform: translateX(-50%) rotate(-12deg);
    box-shadow:
        inset -0.5em 0.25em 0.375em -0.25em rgba(255,255,255,0.4),
        inset 0 0 0.75em 0.75em currentColor,
        inset 0 0 0 2em rgba(255,255,255,0.15);
}

.arm::before {
    content: '';
    position: absolute;
    bottom: 3.5em;
    left: 0;
    width: 100%;
    height: 5.5em;
    backface-visibility: hidden;
    transform-origin: center 4.5em;
    background-color: currentColor;
    border-radius: 1.5em/1.5em 1.5em 1em 1em;
}

.arm.right::before {
    transform: rotate(14deg);
    box-shadow:
        inset 0.75em 0.125em 0.375em -0.5em rgba(255,255,255,0.4),
        inset 0.25em 1.1em 0.75em 0.75em currentColor,
        inset 0 0 0 2em rgba(255,255,255,0.15);
}

.arm.left::before {
    transform: rotate(-14deg);
    box-shadow:
        inset -0.75em 0.125em 0.375em -0.5em rgba(255,255,255,0.4),
        inset -0.25em 1.1em 0.75em 0.75em currentColor,
        inset 0 0 0 2em rgba(255,255,255,0.15);
}

.arm::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5em;
    transform-origin: center 4.5em;
    background-color: currentColor;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1em rgba(255,255,255,0.2);
}

.hand {
    position: absolute;
    z-index: 1;
    top: 80%;
    left: 50%;
    width: 1.75em;
    height: 1.75em;
    transform: translateX(-50%);
    color: hsla(50,90%,50%,1);
    background-color: currentColor;
    background-image:
        linear-gradient(
            to right,
            rgba(255,255,255,0.2),
            rgba(0,0,0,0.075),
            rgba(255,255,255,0.2)
        );
    border-radius: 1em/0.5em;
    box-shadow: 0 -0.125em 0.125em rgba(0,0,0,0.1);
}

.hand::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: 1em;
    left: 50%;
    width: 3.5em;
    height: 3.5em;
    transform: translateX(-50%);
    color: hsla(50,90%,60%,1);
    border: 0.75em solid;
    border-bottom-color: transparent;
    box-shadow:
        inset 0 0.25em rgba(0,0,0,0.15),
        inset 0 0.25em;
    border-radius: 50%;
}

/* minifigure_head.css */

.lego-head {
    --head_scale: 0.24;

    width: 116px;
    height: 16px;
    transform: scale(var(--head_scale));
    transform-origin: center center;
    
    cursor: pointer;

    background-color: hsl(50, 90%, 50%);
    background-image:
        linear-gradient(
            rgba(255,255,255,0.3),
            rgba(255,255,255,0) 20%,
            rgba(0,0,0,0) 80%,
            rgba(0,0,0,0.15) 95%,
            rgba(0,0,0,0.3)
        ),
        linear-gradient(
            to right,
            rgba(255,255,255,0) 50%,
            rgba(255,255,255,0.2),
            rgba(255,255,255,0)
        );
    border-radius: 6px;
}

.lego-head::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 20px;
    background-color: inherit;
    background-image:
        linear-gradient(
            rgba(255,255,255,0.5),
            rgba(255,255,255,0) 30%
        ),
        linear-gradient(
            to right,
            rgba(255,255,255,0) 70%,
            rgba(255,255,255,0.25) 80%,
            rgba(255,255,255,0) 90%
        );
    border-radius: 4px 4px 0 0;
}

.lego-head::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background-color: inherit;
    background-image:
        linear-gradient(
            rgba(0,0,0,0.2),
            rgba(0,0,0,0.05) 50%
        ),
        linear-gradient(
            to right,
            rgba(255,255,255,0) 70%,
            rgba(255,255,255,0.25) 80%,
            rgba(255,255,255,0) 90%
        );
    border-radius: 0 0 2px 2px;
}