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

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #8e8e8e;
  --link: #111111;
  --link-line: #a8a8a8;
  --link-hover: #666666;
  --link-hover-line: #666666;
  --selection: #eeeeee;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 460;
  line-height: 22px;
  letter-spacing: -0.00563rem;
}

::selection {
  background: var(--selection);
}

.profile {
  width: min(468px, calc(100vw - 48px));
  margin-inline: auto;
  padding: clamp(112px, 14vh, 168px) 0 56px;
}

.identity h1,
.identity p,
.bio p,
.footer {
  margin: 0;
}

.identity h1 {
  font: inherit;
}

.meta {
  color: var(--muted);
}

.rule {
  width: 12px;
  height: 1px;
  margin: 32px 0 30px;
  background: var(--muted);
}

.bio p {
  text-wrap: pretty;
}

.bio p + p {
  margin-top: 18px;
}

a {
  color: var(--link);
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover-line);
}

a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.footer {
  margin-top: 54px;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0;
  word-spacing: 0;
}

.time-separator {
  animation: blink 2s ease-in-out infinite;
}

.reveal {
  animation: enter 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%,
  40%,
  100% {
    opacity: 1;
  }

  50%,
  90% {
    opacity: 0.35;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #111111;
    --ink: #eeeeec;
    --muted: #929292;
    --link: #eeeeec;
    --link-line: #686868;
    --link-hover: #b8b8b6;
    --link-hover-line: #8a8a88;
    --selection: #343434;
  }
}

@media (max-width: 760px) {
  .profile {
    width: auto;
    margin-inline: 0;
    padding: 72px 24px 40px;
  }

  .rule {
    margin-top: 32px;
  }

  .bio p + p {
    margin-top: 22px;
  }
}

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

  .time-separator {
    animation: none;
  }

  a {
    transition: none;
  }
}
