@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 103.2%;
  ascent-override: 97.4%;
  descent-override: 28.6%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Geist Mono Fallback";
  src: local("Courier New"), local("CourierNewPSMT");
  size-adjust: 100%;
  ascent-override: 100.5%;
  descent-override: 29.5%;
  line-gap-override: 0%;
}

@layer base {
    html[data-ds] {
        color-scheme: light;
        background-color: var(--ds-color-background);
    }

    html[data-ds]:has(> body[data-theme="dark"]) {
        color-scheme: dark;
    }

    html[data-ds] > body {
        min-height: 100vh;
        min-height: 100dvh;
        background-color: var(--ds-color-background);
        color: var(--ds-color-text);
        font-family: var(--ds-text-body-family);
        font-size: var(--ds-text-body-size);
        font-weight: var(--ds-text-body-weight);
        line-height: var(--ds-text-body-line-height);
        letter-spacing: var(--ds-text-body-tracking);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        transition: background-color var(--ds-duration-theme) var(--ds-easing-standard), color var(--ds-duration-theme) var(--ds-easing-standard);
    }

    :where(html[data-ds]) h1 {
        font-family: var(--ds-text-h1-family);
        font-size: var(--ds-text-h1-size);
        font-weight: var(--ds-text-h1-weight);
        line-height: var(--ds-text-h1-line-height);
        letter-spacing: var(--ds-text-h1-tracking);
    }

    :where(html[data-ds]) h2 {
        font-family: var(--ds-text-h2-family);
        font-size: var(--ds-text-h2-size);
        font-weight: var(--ds-text-h2-weight);
        line-height: var(--ds-text-h2-line-height);
        letter-spacing: var(--ds-text-h2-tracking);
    }

    :where(html[data-ds]) :is(h3, h4, h5, h6) {
        font-family: var(--ds-text-h3-family);
        font-size: var(--ds-text-h3-size);
        font-weight: var(--ds-text-h3-weight);
        line-height: var(--ds-text-h3-line-height);
        letter-spacing: var(--ds-text-h3-tracking);
    }

    :where(html[data-ds]) :is(code, kbd, samp, time, data) {
        font-family: var(--ds-text-data-family);
        font-variant-numeric: var(--ds-text-data-numeric);
    }

    :where(html[data-ds]) a {
        color: inherit;
        text-decoration-line: underline;
        text-decoration-thickness: var(--ds-border-width-1);
        text-underline-offset: 0.2em;
    }

    :where(html[data-ds]) :focus-visible {
        outline: var(--ds-focus-width) solid var(--ds-color-focus);
        outline-offset: var(--ds-focus-offset);
        box-shadow: 0 0 0 var(--ds-focus-offset) var(--ds-color-background);
    }

    :where(html[data-ds]) ::selection {
        background-color: var(--ds-color-text);
        color: var(--ds-color-background);
    }

    :where(html[data-ds]) .photo img {
        filter: grayscale(1);
        transition: filter var(--ds-duration-slow) var(--ds-easing-standard), scale var(--ds-duration-slow) var(--ds-easing-standard);
    }

    html[data-ds-reveal] > body {
        transition: none;
    }

    html[data-ds-reveal]::view-transition-old(root),
    html[data-ds-reveal]::view-transition-new(root) {
        animation: none;
        mix-blend-mode: normal;
    }

    @media (prefers-reduced-motion: reduce) {
        :root,
        body {
            --ds-motion-press-scale: 1;
            --ds-motion-photo-zoom: 1;
            --ds-motion-arrow-shift: 0px;
            --ds-motion-rule-start: 1;
            --ds-motion-stagger: 0ms;
            --ds-duration-medium: 150ms;
            --ds-duration-slow: 150ms;
            --ds-duration-theme: 150ms;
            --ds-duration-enter: 150ms;
        }

        :where(html[data-ds]) {
            scroll-behavior: auto;
        }

        :where(html[data-ds]) *,
        :where(html[data-ds]) *::before,
        :where(html[data-ds]) *::after {
            animation-duration: 150ms !important;
            animation-iteration-count: 1 !important;
        }

        ::view-transition-group(*),
        ::view-transition-old(*),
        ::view-transition-new(*) {
            animation-duration: 150ms !important;
        }
    }
}
