/* Figtree (SIL OFL 1.1, see /fonts/OFL.txt), self-hosted variable font */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #121110;
  --ink: #f3f1ec;
  --muted: #9a958c;
  --font-sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.5;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

main {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 2rem 1.5rem 1.75rem;
}

.domain {
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--muted);
}

.tagline {
  margin-top: 4rem;
  max-width: 36rem;
  font-size: 1.5rem;
  line-height: 1.5;
}

.name-wrap {
  container-type: inline-size;
  margin-top: auto;
  width: 100%;
  padding-top: 4rem;
}

.name {
  font-size: clamp(3.25rem, min(19.2cqi, 15dvh), 11.5rem);
  line-height: 0.88;
  font-weight: 500;
  letter-spacing: -0.042em;
}

.name span {
  display: block;
}

.email {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.email:hover,
.email:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 40rem) {
  main {
    padding: 3rem 3rem 2.5rem;
  }

  .tagline {
    margin-top: 6rem;
    font-size: 1.875rem;
  }

  .name-wrap {
    position: relative;
  }

  .email {
    position: absolute;
    right: 0;
    bottom: 0;
    margin-top: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.enter {
  animation: rise 0.5s var(--ease-out) both;
}

.enter-late {
  animation-delay: 90ms;
}

.enter-name {
  animation-delay: 180ms;
}

@media (prefers-reduced-motion: reduce) {
  .enter {
    animation: none;
  }
}
