:root {
  color-scheme: light dark;
  --background: #fdfdfc;
  --cursor: #00bfff;
  --text: #1c1c1c;
  --muted: #4c4c4c;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font: 1rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-kerning: normal;
}

main {
  width: min(100% - 3rem, 28rem);
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6rem) 0 3rem;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.35;
}

h2 {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portrait {
  width: 5rem;
  height: 5rem;
  flex: 0 0 5rem;
  border-radius: 50%;
  object-fit: cover;
}

.identity-copy {
  min-width: 0;
}

p {
  margin: 1rem 0 0;
}

.role {
  margin-top: 0.15rem;
  color: var(--muted);
}

.role::after {
  display: inline-block;
  width: 0.125em;
  height: 1.05em;
  margin-left: 0.25em;
  border-radius: 1em;
  vertical-align: -0.15em;
  background: var(--cursor);
  content: "";
  animation: cursor-blink 1s linear infinite;
}

@keyframes cursor-blink {
  0%,
  20%,
  100% {
    opacity: 0;
  }

  30%,
  80% {
    opacity: 1;
  }
}

section {
  margin-top: 1.25rem;
}

.contact-list {
  display: grid;
  gap: 0.35rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.fingerprint {
  display: inline-block;
  color: var(--muted);
  font-size: 0.875rem;
  overflow-wrap: anywhere;

  position: relative;
  padding-left: 1.5em;
  user-select: all;
}

.fingerprint::before {
  content: ">";
  position: absolute;
  left: 0;
  user-select: none;
}

.privacy-note {
  color: var(--muted);
  font-size: 0.875rem;
}

a:link,
a:visited {
  color: inherit;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.error-page main {
  padding-top: clamp(4rem, 24vh, 10rem);
}

.error-page a {
  display: inline-block;
  margin-top: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #1c1c1c;
    --text: #ececec;
    --muted: #bcbcbc;
  }
}

@media (prefers-reduced-motion: reduce) {
  .role::after {
    display: none;
  }
}

@media (max-height: 32rem) {
  main,
  .error-page main {
    padding-top: 3rem;
  }
}
