@layer reset,
base,
elements,
utilities,
animations;

@layer reset {

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

    html {
        text-size-adjust: none;
    }

    body,
    h1,
    h2,
    h3,
    h4,
    p,
    figure,
    blockquote,
    dl,
    dd {
        margin: 0;
    }

    [role="list"] {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    body {
        min-block-size: 100vh;
        line-height: var(--line-height-m);
    }

    h1,
    h2,
    h3,
    button,
    input,
    label {
        line-height: var(--line-height-xs);
    }

    h1,
    h2,
    h3,
    h4 {
        text-wrap: balance;
    }

    p,
    li {
        text-wrap: pretty;
    }

    img,
    picture {
        vertical-align: middle;
        max-inline-size: 100%;
        display: block;
    }

    input,
    button,
    textarea,
    select {
        font: inherit;
    }
}

@layer base {
    :root {
        --color-neutral-1000: oklch(100% 0 264);
        --color-primary-950: oklch(95% 0 264);
        --color-neutral-900: oklch(90% 0 264);
        --color-neutral-800: oklch(80% 0 264);
        --color-neutral-700: oklch(70% 0 264);
        --color-neutral-600: oklch(60% 0 264);
        --color-neutral-500: oklch(50% 0 264);
        --color-neutral-400: oklch(40% 0 264);
        --color-neutral-300: oklch(30% 0 264);
        --color-neutral-250: oklch(25% 0 264);
        --color-neutral-200: oklch(20% 0 264);
        --color-neutral-150: oklch(15% 0 264);
        --color-neutral-100: oklch(10% 0 264);
        --color-neutral-50: oklch(5% 0 264);
        --color-neutral-0: oklch(0 0 264);

        --color-primary-dark: oklch(23% 0.0452 273.09);
        --color-primary-light: oklch(95.58% 0.0117 231.65);

        --accent-900: oklch(91.13% 0.1548 151.55);
        --accent-800: oklch(89.48% 0.07886862083483745 336.4736891030262);
        --accent-700: oklch(74.01% 0.13349035624122288 271.06711992815286);
        --accent-600: oklch(78.96% 0.16867277559044624 338.9491136717834);
        --accent-550: oklch(97.23% 0.1256 108.52);
        --accent-500: oklch(92.63% 0.1134 94.36);
        --accent-400: oklch(92.32% 0.1528569373852482 140.92698894545197);
        --accent-300: oklch(85.68% 0.08657057701527926 50.23705263425665);
        --accent-200: oklch(86.41% 0.0802664862424282 233.24785956339008);
        --accent-100: oklch(81.27% 0.1596 321.69);

        --accent-dark-mode-800: oklch(34% 0.14 13);
        --accent-dark-mode-200: oklch(34% 0.14 240);
        --accent-dark-mode-100: oklch(34% 0.14 316);

        --icon-url-sun: url('../icons/sun-light.svg');
        --icon-url-moon: url('../icons/half-moon.svg');

        --font-primary: "Polysans", system-ui, sans-serif;
        --font-secondary: "Polysans", "Courier New", Courier, monospace;

        --fs-200: clamp(0.69rem, 0.65rem + 0.19vw, 0.8rem);
        --fs-250: clamp(0.76rem, 0.71rem + 0.25vw, 0.9rem);
        --fs-300: clamp(0.83rem, 0.77rem + 0.3vw, 1rem);
        --fs-400: clamp(1rem, 0.91rem + 0.44vw, 1.25rem);
        --fs-500: clamp(1.2rem, 1.06rem + 0.64vw, 1.56rem);
        --fs-600: clamp(1.44rem, 1.25rem + 0.91vw, 1.94rem);
        --fs-700: clamp(1.73rem, 1.46rem + 1.27vw, 2.44rem);
        --fs-800: clamp(2.07rem, 1.7rem + 1.74vw, 3.05rem);
        --fs-900: clamp(2.49rem, 1.99rem + 2.36vw, 3.82rem);

        --line-height-2xs: 1;
        --line-height-xs: 1.2;
        --line-height-s: 1.4;
        --line-height-m: 1.6;
        --line-height-l: 1.8;
        --line-height-xl: 2;

        --space-3xs: clamp(0.3125rem, 0.3rem + 0.0625vw, 0.375rem);
        --space-2xs: clamp(0.5625rem, 0.525rem + 0.1875vw, 0.75rem);
        --space-xs: clamp(0.875rem, 0.825rem + 0.25vw, 1.125rem);
        --space-s: clamp(1.125rem, 1.05rem + 0.375vw, 1.5rem);
        --space-m: clamp(1.6875rem, 1.575rem + 0.5625vw, 2.25rem);
        --space-l: clamp(2.25rem, 2.1rem + 0.75vw, 3rem);
        --space-xl: clamp(3.375rem, 3.15rem + 1.125vw, 4.5rem);
        --space-2xl: clamp(4.5rem, 4.2rem + 1.5vw, 6rem);
        --space-3xl: clamp(6.75rem, 6.3rem + 2.25vw, 9rem);

        --space-3xs-2xs: clamp(0.3125rem, 0.225rem + 0.4375vw, 0.75rem);
        --space-2xs-xs: clamp(0.5625rem, 0.45rem + 0.5625vw, 1.125rem);
        --space-xs-s: clamp(0.875rem, 0.75rem + 0.625vw, 1.5rem);
        --space-s-m: clamp(1.125rem, 0.9rem + 1.125vw, 2.25rem);
        --space-m-l: clamp(1.6875rem, 1.425rem + 1.3125vw, 3rem);
        --space-l-xl: clamp(2.25rem, 1.8rem + 2.25vw, 4.5rem);
        --space-xl-2xl: clamp(3.375rem, 2.85rem + 2.625vw, 6rem);
        --space-2xl-3xl: clamp(4.5rem, 3.6rem + 4.5vw, 9rem);

        --space-s-l: clamp(1.125rem, 0.75rem + 1.875vw, 3rem);

        --theme-switcher-symbol-active: var(--icon-url-sun);
        --color-caption-bg: var(--color-neutral-100);
        --color-bg: var(--color-primary-dark);
        --color-fg: var(--color-primary-light);
        --color-footer-bg: var(--color-bg);
        --color-image-border: var(--color-neutral-800);
        --color-icon-hover: var(--color-neutral-500);
        --color-line-effect: var(--color-neutral-300);
        --color-box-shadow: var(--color-neutral-100);
        --color-table-separator: var(--color-neutral-900);
        --icon-filter-invert: 100%;
    }

    :root:has(#theme-switch:checked) {
        --theme-switcher-symbol-active: var(--icon-url-moon);
        --color-bg: var(--color-primary-light);
        --color-fg: var(--color-primary-dark););
        --color-footer-bg: var(--color-bg);
        --color-image-border: var(--color-neutral-200);
        --color-icon-hover: var(--color-primary-950);
        --color-line-effect: var(--color-neutral-900);
        --icon-filter-invert: 0;
        --color-table-separator: var(--color-neutral-500);
    }

    @media (prefers-color-scheme: light) {
        :root {
            --theme-switcher-symbol-active: var(--icon-url-moon);
            --color-bg: var(--color-primary-light);
            --color-fg: var(--color-primary-dark););
            --color-footer-bg: var(--color-bg);
            --color-image-border: var(--color-neutral-200);
            --color-icon-hover: var(--color-primary-950);
            --color-line-effect: var(--color-neutral-900);
            --icon-filter-invert: 0;
            --color-table-separator: var(--color-neutral-500);
        }

        :root:has(#theme-switch:checked) {
            --theme-switcher-symbol-active: var(--icon-url-sun);
            --color-caption-bg: var(--color-neutral-100);
            --color-bg: var(--color-primary-dark);
            --color-fg: var(--color-primary-light);
            --color-footer-bg: var(--color-bg);
            --color-image-border: var(--color-neutral-800);
            --color-icon-hover: var(--color-neutral-500);
            --color-line-effect: var(--color-neutral-300);
            --color-box-shadow: var(--color-neutral-100);
            --color-table-separator: var(--color-neutral-900);
            --icon-filter-invert: 100%;
        }
    }

    @font-face {
        font-family: 'Polysans';
        font-weight: 700;
        font-style: normal;
        font-display: swap;
        src: url('../fonts/Polysans-Bold.woff2') format('woff2');
    }

    @font-face {
        font-family: 'Polysans';
        font-weight: 600;
        font-style: normal;
        font-display: swap;
        src: url('../fonts/Polysans-SemiBold.woff2') format('woff2');
    }

    @font-face {
        font-family: 'Polysans';
        font-weight: 400;
        font-style: normal;
        font-display: swap;
        src: url('../fonts/Polysans-Regular.woff2') format('woff2');
    }

    @font-face {
        font-family: 'Polysans';
        font-weight: 300;
        font-style: normal;
        font-display: swap;
        src: url('../fonts/Polysans-Light.woff2') format('woff2');
    }

    @font-face {
        font-family: 'DMMono';
        font-weight: 400;
        font-style: normal;
        font-display: swap;
        src: url('../fonts/DMMono-Regular.woff2') format('woff2');
    }

    * {
        font: inherit;
        margin: 0;
        padding: 0;
    }

    body {
        background-color: var(--color-bg);
        color: var(--color-fg);
        font-family: var(--font-primary);
        font-size: var(--fs-400);
        font-weight: 300;
        line-height: var(--line-height-m);
    }

    a {
        color: inherit;
    }

    a:is(:hover, :focus) {
        cursor: pointer;
        color: var(--color-neutral-700);
    }

    ul {
        list-style: none;
    }
}

@layer elements {
    @media screen and (min-width: 45em) {
        .hero {
            margin-block: var(--space-3xl)
        }
    }

    .hero__image {
        margin-inline: auto;
        min-width: 16rem;
        max-width: 20rem;
    }

    @media screen and (min-width: 25em) {
        .hero__image {
            max-width: 25rem;
        }
    }

    .hero__intro>h3 {
        text-align: left;
    }

    .hero__header {
        text-align: left;
    }

    @media screen and (min-width: 45em) {
        .hero__header {
            grid-column: 2;
            grid-row: 1;
        }

        .hero__intro>h3 {
            grid-column: 2;
            grid-row: 2;
            font-weight: 400;
        }

    }

    .tech-stack {
        overflow: hidden;
    }

    .tech-stack__wrapper {
        padding-block: var(--space-m);
        overflow: hidden;
        --gap: var(--space-2xs);
        display: flex;
        gap: var(--gap);
    }

    .tech-stack__wrapper-list {
        list-style: none;
        flex-shrink: 0;
        min-width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: var(--gap);
        animation: scroll 20s linear infinite;
    }

    .tech-stack__square {
        aspect-ratio: 1;
        height: 3rem;
        padding: var(--space-xs);
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 0.375rem !important;
        font-size: 34px !important;
    }

    @media screen and (min-width: 45em) {
        .tech-stack__square {
            height: 4rem;
        }
    }

    .tech-stack__content {
        min-height: 100%;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: var(--space-s);
    }

    .tech-stack__icon {
        width: 2.4rem;
        height: 2.4rem;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-position: center;
        mask-position: center;
        background-color: var(--color-fg);
        margin: 0 0.6rem;
    }

    .tech-stack__icon-star {
        -webkit-mask-image: url('../icons/star.svg');
        mask-image: url('../icons/star.svg');
    }

    .tech-stack__icon-flower {
        -webkit-mask-image: url('../icons/flower.svg');
        mask-image: url('../icons/flower.svg');
    }

    .tech-stack__icon-cards {
        -webkit-mask-image: url('../icons/cards.svg');
        mask-image: url('../icons/cards.svg');
    }

    .tech-stack__icon-outer {
        padding: 2rem;
    }

    .tech-stack__letter {
        user-select: none;
        color: var(--color-bg);
        background-color: var(--color-fg);
        margin-top: var(--space-2xs-xs);
        margin-bottom: var(--space-2xs-xs);
        aspect-ratio: 1/1;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        -webkit-user-select: none;
        border-radius: 0.375rem;
        text-transform: uppercase;
        --un-text-opacity: 1;
        transition: color 0.1s , background-color 0.1s , border-color 0.1s ;
        transition-duration: 0.5s;
        font-size: var(--space-m);
        will-change: transform, opacity;
    }

    .tech-stack__letter::before {
        position: absolute;
        border-radius: 0.375rem;
        inset:0;
        z-index: -1;
        content: '';
        background: var(--color-fg);
        transition: opacity 2s ease-out;
        transition-delay: 0.5s;
        opacity: 0;
    }

    .tech-stack__letter:hover {
        color: var(--color-neutral-1000);
    }

    .tech-stack__letter:hover::before {
        opacity: 1;
        transition: opacity 0.01s ease-in;
    }

    .tech-stack__letter:nth-of-type(1n)::before,
    .tech-stack__letter:nth-of-type(1n):hover::before {
        background: var(--accent-100);
    }

    .tech-stack__letter:nth-of-type(2n)::before,
    .tech-stack__letter:nth-of-type(2n):hover::before {
        background: var(--accent-200);
    }

    .tech-stack__letter:nth-of-type(3n)::before,
    .tech-stack__letter:nth-of-type(3n):hover::before {
        background: var(--accent-300);
    }

    .tech-stack__letter:nth-of-type(4n)::before,
    .tech-stack__letter:nth-of-type(4n):hover::before {
        background: var(--accent-400);
    }

    .tech-stack__letter:nth-of-type(5n)::before,
    .tech-stack__letter:nth-of-type(5n):hover::before {
        background: var(--accent-500);
    }

    .tech-stack__letter:nth-of-type(6n)::before,
    .tech-stack__letter:nth-of-type(6n):hover::before {
        background: var(--accent-600);
    }

    .tech-stack__letter:nth-of-type(7n)::before,
    .tech-stack__letter:nth-of-type(7n):hover::before {
        background: var(--accent-700);
    }

    .tech-stack__letter:nth-of-type(8n)::before,
    .tech-stack__letter:nth-of-type(8n):hover::before {
        background: var(--accent-800);
    }

    .tech-stack__letter:nth-of-type(9n)::before,
    .tech-stack__letter:nth-of-type(9n):hover::before {
        background: var(--accent-900);
    }

    .tech-stack__text {
        text-align: center;
    }

    .social {
        display: block;
    }

    .social-links {
        font-weight: 500;
        list-style: none;
    }

    .swirly-arrow:before {
        content: "";
        position: absolute;
        right: -6rem;
        top: 100%;
        width: 5rem;
        height: 5rem;
        background: url('../icons/swirly-arrow.svg') no-repeat center / contain;
        transform: translateY(-50%);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .history__image {
        max-width: 22rem;
    }

    .history__content,
    .current__content {
        grid-row-gap: var(--space-l);
        display: grid;
        gap: var(--space-l, var(--space-l-xl));
    }

    @media screen and (min-width: 45em) {
        .history__content {
            align-items: start;
            grid-template-columns: 2fr 1fr;
        }
    }

    @media screen and (min-width: 45em) {
        .current__content {
            align-items: start;
            grid-template-columns: 4fr 5fr;
        }
    }

    .experience-table {
        background-color: var(--color-primary-light);
        color: var(--color-primary-dark);
    }

    @media screen and (min-width: 45em) {
        .experience-table {
            padding: var(--space-m) var(--space-l);
        }
    }

    .experience-table-wrapper {
        padding: var(--space-xs);
    }

    @media screen and (min-width: 45em) {
        .experience-table-wrapper {
            padding: var(--space-xl);
        }
    }

    .experience__job {
        display: block;
        position: relative;
        padding: var(--space-s) var(--space-s) var(--space-s) 40px;
        cursor: pointer;
        color: inherit;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .experience__job:not(:last-of-type) {
        border-bottom: 0.188rem solid black;
    }

    .experience__job::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 20px;
        height: 20px;
        background: url('../icons/arrow-right.svg') no-repeat center / contain;
        transform: translateY(-50%);
        opacity: 0;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .experience__job:hover {
        color: var(--color-neutral-700);
    }

    .experience__job:hover::before {
        opacity: 1;
        transform: translateY(-50%) translateX(-5px);
    }

    .experience__job:hover .experience__job-list {
        transform: translateX(10px);
    }

    .experience__job .experience__job-list {
        display: grid;
        gap: var(--space-3xs-2xs);
        grid-template-columns: 1fr;
        transition: transform 0.2s ease;
    }

    .experience__job:hover .experience__job-list {
        transform: translateX(10px);
    }

    .experience__job :is(.experience__role-title, .experience__date) {
        opacity: 0.8;
    }

    .experience__job .experience__date {
        opacity: 0.6;
    }

    @media screen and (min-width: 45em) {
        .experience__job .experience__job-list {
            grid-template-columns: 1.4fr 1fr 1fr;
            grid-template-rows: 1fr;
            align-items: center;
            justify-content: space-between;
            padding: var(--space-2xs) 0;
        }
    }

    .experience__role-title {
        opacity: 0.8;
    }

    .experience__date {
        opacity: 0.6;
    }

    @media screen and (min-width: 45em) {
        .experience__date {
            text-align: end;
        }
    }

    @media screen and (min-width: 45em) {
        .current__image {
            order: 0;
        }

        .current__text {
            order: 1;
        }
    }

    .social-links img,
    .site-footer__home img,
    .swirly-arrow:before {
        filter: invert(var(--icon-filter-invert));
    }

    .site-footer {
        background-color: var(--color-footer-bg);
        padding: var(--space-3xs) var(--space-2xs-xs);
        position: sticky;
        border-top: 0.188rem solid var(--color-image-border);
        bottom: 0;
        list-style: none;
    }

    @media screen and (min-width: 45em) {
        .site-footer {
            width: 100%;
            padding: var(--space-3xs) 0;
        }
    }

    .site-footer__inner {
        align-items: center;
        display: flex;
        gap: var(--space-s);
        justify-content: space-between;

    }

    @media screen and (min-width: 45em) {
        .site-footer__inner {
            justify-content: space-between;
            padding: 0 var(--space-xl);
        }
    }

    .site-footer__item,
    .theme-switch {
        position: relative;
        overflow: visible;
        background: inherit;
        box-shadow: none;
        display: flex;
        align-items: center;
        transition-property: transform;
        transition-timing-function: cubic-bezier(.4, 0, .2, 1);
        transition-duration: 0.15s;
    }

    @media screen and (min-width: 30em) {

        .site-footer__item,
        .theme-switch {
            padding: var(--space-2xs);
        }
    }

    @media (pointer: coarse) {

        .site-footer__item:active,
        .theme-switch:active {
            transform: translateY(-2px) scale(1.1);
            box-shadow: 0 0 var(--color-neutral-0), 0 0 var(--color-neutral-0), inset 0 0 0 0.125rem var(--color-fg), 0.125rem 0.125rem 0 var(--color-fg);
            border-radius: 50%;
            background: var(--color-bg);
        }
    }

    @media (hover: hover) and (pointer: fine) {

        .site-footer__item:hover,
        .theme-switch:hover {
            transform: translateY(-0.125rem) scale(1.1);
            box-shadow: 0 0 var(--color-neutral-0), 0 0 var(--color-neutral-0), inset 0 0 0 0.125rem var(--color-fg), 0.25rem 0.25rem 0 0 var(--color-fg);
            border-radius: 50%;
            background: var(--color-icon-hover);
        }
    }

    .theme-switch {
        width: 2.875rem;
        height: 2.875rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .theme-switch__input,
    .theme-switch__label {
        cursor: pointer;
        position: absolute;
    }

    .theme-switch__input {
        width: 1px;
        height: 1px;
        opacity: 0;
        position: absolute;
        pointer-events: none;
    }

    .theme-switch__input:focus-within {
        outline-offset: var(--space-xs-s);
        opacity: 1;
    }

    .theme-switch__label {
        width: 30px;
        height: 30px;
        text-align: center;
        background-color: var(--color-fg);
        mask: var(--theme-switcher-symbol-active);
        mask-repeat: space round, no-repeat;
        display: inline-block;
        color: transparent;
    }

    .site-footer__item::before,
    .site-footer__item::after,
    .theme-switch::before,
    .theme-switch::after {
        --scale: 0;
        --arrow-size: 10px;
        --tooltip-color: var(--color-bg);

        position: absolute;
        top: -.25rem;
        left: 50%;
        transform: translateX(-50%) translateY(var(--translate-y, 0)) scale(var(--scale));
        transition: 150ms transform;
        transform-origin: bottom center;
        z-index: 1;
        overflow: visible;
    }

    .site-footer__item::before,
    .theme-switch::before {
        --translate-y: calc(-100% - var(--arrow-size));
        content: attr(data-tooltip);
        padding: var(--space-2xs);
        border-radius: 0.75rem;
        text-align: center;
        width: max-content;
        white-space: nowrap;
        color: var(--color-fg);
        background: var(--color-bg);
        font-size: var(--fs-300);
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: var(--space-xl);
        box-shadow:
                0 0 0 1px var(--color-image-border);
    }

    .site-footer__item::after,
    .theme-switch::after {
        --translate-y: calc(-1 * var(--arrow-size));
        --arrow-border-color: rgba(255, 255, 255, 0.2);
        /* Soft border color */
        content: '';

        border: var(--arrow-size) solid transparent;
        border-top-color: var(--color-bg);
        filter:
                drop-shadow(1px 1px 0 var(--color-image-border)) drop-shadow(-1px 1px 0 var(--color-image-border)) drop-shadow(0 -0.125rem 0 var(--color-bg))
    }

    .site-footer__item:hover::before,
    .site-footer__item:hover::after,
    .theme-switch:hover::before,
    .theme-switch:hover::after {
        --scale: 1;
    }

    .theme-switch:active::before,
    .theme-switch:active::after,
    .theme-switch:focus::before,
    .theme-switch:focus::after {
        --scale: 0;
        transition: transform 0.15s ease;
    }

    @media (pointer: coarse) {

        .theme-switch:focus-within::before,
        .theme-switch:focus-within::after {
            --scale: 0;
        }
    }
    @media (hover: none) {
        .site-footer__item::before,
        .site-footer__item::after,
        .theme-switch::before,
        .theme-switch::after {
            display: none;
        }
    }
}

@layer utilities {
    .inline-flex {
        display: inline-flex;
    }

    .inline-block {
        display: inline-block;
    }

    .relative {
        position: relative;
    }

    .aspect-ratio-profile {
        aspect-ratio: 2 / 3;
    }

    .aspect-ratio-landscape {
        aspect-ratio: 16/9;
    }

    .fg-dark {
        color: var(--color-primary-dark);
    }

    .bg-peach {
        background-color: var(--accent-700);
    }

    .bg-blue {
        background-color: var(--accent-200);
    }

    .bg-pink {
        background-color: var(--accent-100);
    }

    .bg-green {
        background-color: var(--accent-300);
    }

    .bg-yellow {
        background-color: var(--accent-550);
    }

    .bg-primary {
        background-color: var(--color-bg);
    }

    .bg-neutral-alt {
        background-color: var(--color-bg);
    }

    .border-round {
        border-radius: 999rem;
    }

    .bg-color-animation {
        animation: color-change 10s infinite;
    }

    .border-radius-1 {
        border-radius: 1.25rem;
    }

    .radius-2 {
        border-radius: 3rem;
    }

    .radius-5 {
        border-radius: 5rem;
    }

    .border-frame {
        border: 0.125rem solid black;
    }

    .border-double {
        outline: 0.188rem solid black;
        outline-offset: -40px;
        box-shadow: 0 0 0 0.188rem black;
        border: 40px solid transparent;
    }

    .border-thick {
        box-shadow: 0 0 0 0.188rem black;
        border: 20px solid transparent;
    }

    .border-white {
        border-color: var(--color-neutral-1000);
    }

    .border-blue {
        border-color: var(--accent-200);
    }

    .border-block-1 {
        border-block: 0.188rem solid black;
    }

    .border-1 {
        border: 0.188rem solid black;
    }

    .border-2 {
        border: 1px solid black;
    }

    .box-shadow-1 {
        box-shadow: var(--color-box-shadow) 0.25rem 0.25rem 0 0;
    }

    .box-shadow-2 {
        box-shadow: var(--color-box-shadow) 0.375rem 0.375rem 0 0;
    }

    .box-shadow-3 {
        box-shadow: var(--color-box-shadow) 0.75rem 0.75rem 0 0;
    }

    .card {
        padding: var(--space-xs)
    }

    .container {
        margin-inline: auto;
        width: min(74rem, 100% - var(--space-l));
    }

    .container-inner {
        position: relative;
    }

    .container-inner::before {
        border-radius: 50%;
        content: '';
        position: absolute;
        inset: 0;
        border: 0.188rem solid black;
    }

    .full-bleed {
        width: 100vw;
        position: relative;
        margin-left: -50vw;
        left: 50%;
    }

    .flex {
        display: flex;
    }

    .flex-group {
        column-gap: var(--space-m);
        display: flex;
        width: fit-content;
    }

    @media screen and (min-width: 45em) {
        .flex-group {
            column-gap: var(--space-xl);
        }
    }

    .flow> :where(:not(:first-child)) {
        margin-top: var(--space-s);
    }

    .section {
        padding-block: var(--space-2xl);
    }

    .section:first-of-type{
        padding-block: var(--space-l);
    }

    @media screen and (min-width: 45em) {
        .section {
            padding-block: var(--space-2xl);
        }
    }

    .caption-inner {
        color: var(--color-primary-dark);
        background-color: inherit;
        padding-top: var(--space-xs);
        font-size: var(--fs-400);
        font-weight: 300;
        white-space: nowrap;
        text-align: center;
    }

    @media screen and (min-width: 45em) {
        .caption-inner {
            font-size: var(--fs-300);
        }
    }

    .even-columns {
        display: grid;
        gap: var(--space-l);
    }

    @media screen and (min-width: 45em) {
        .even-columns {
            align-items: center;
            grid-auto-flow: column;
            gap: var(--space-3xl);
        }

         .even-columns {
            align-items: center;
            grid-template-columns: 1fr 1.5fr;
            grid-auto-flow: dense;
        }
    }

    .bg-polka-dots {
        background-image:
                radial-gradient(rgb(0, 0, 0) 10%, transparent 10%),
                radial-gradient(rgb(0, 0, 0) 10%, transparent 10%);
        background-position: 0 0, 1rem 1rem;
        background-size: 2rem 2rem;
        background-color: var(--accent-700);
    }

    .bg-grid-yellow {
        border: 0.188rem solid var(--accent-500);
        background-image: linear-gradient(var(--accent-500) 0.188rem, transparent 0.188rem), linear-gradient(90deg, var(--accent-500) 0.188rem, transparent 0.188rem);
        background-size: 1.4em 1.4em;
    }

    .heading-1 {
        font-size: var(--fs-900);
        font-weight: 700;
        letter-spacing: 0.25rem;
        line-height: 1.4;
    }

    .heading-2 {
        font-size: var(--fs-700);
        font-weight: 500;
    }

    .heading-1,
    .heading-2 {
        text-transform: none;
    }

    .heading-3 {
        font-size: var(--fs-500);
        font-weight: 600;
        letter-spacing: 1px;
        line-height: 1.2;
        text-transform: none;
    }

    .heading-4 {
        font-size: var(--fs-400);
        letter-spacing: 0;
        line-height: 1.2;
        text-transform: none;
    }

    .heading-5 {
        font-size: var(--fs-500);
        font-weight: 300;
        line-height: 1.4;
    }

    .image-wrapper {
        position: relative;
    }

    .image-wrapper img {
        bottom: 0;
        height: 100%;
        left: 0;
        margin: 0;
        max-width: none;
        padding: 0;
        right: 0;
        top: 0;
        width: 100%;
        object-fit: cover;
    }

    .padding-0 {
        padding: var(--space-xs);
    }

    .padding-x-1 {
        padding: 0 0.6rem
    }

    .margin-block-end-xl {
        margin-block-end: clamp(3rem, 2.72rem + 1.33vw, 3.75rem);
    }

    .text-decoration-squiggle {
        text-decoration: none;
        position: relative;
        overflow: hidden;
    }

    .text-decoration-squiggle:where(:hover, *):after {
        position: absolute;
        inset: 0;
        white-space: nowrap;
        content: attr(data-text) attr(data-text);
        color: transparent;
        text-decoration: wavy underline var(--accent-700);
        animation: line-y-transition 4s linear infinite paused;
        padding-bottom: var(--space-s);
        transform: translateZ(0);

    }

    .text-decoration-squiggle:hover:after {
        animation-play-state: running;
    }

    .text-outline-1{
        color: white;
        -webkit-text-stroke-width: .125rem;
        -webkit-text-stroke-color: black;
    }


    .visually-hidden {
        clip: rect(0 0 0 0);
        clip-path: inset(100%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }
}


@layer animations {
    @keyframes line-y-transition {
        to {
            margin-left: -56%
        }
    }
    @keyframes scroll {
        to {
            transform: translateX(calc(-100% - var(--gap)));
        }
    }
}