:root {
    --clr-bg: #fafafa;
    --clr-text: #333;
    --clr-border: #aaa;
    --clr-link: #6855c3;
    --clr-highlight: #6855c3;
}
* {
    box-sizing: border-box;
}
.flex {
    flex: 1;
}

html {
    background-color: var(--clr-bg);
    font-family: sans-serif;
    color: var(--clr-text);
}

body {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 8px;
}

header {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}
header h1 a {
    /* color: var(--clr-text); */
    font-size: 1.8rem;
    color: var(--clr-highlight);
    text-decoration: none;
}
header h1 a img {
    width: 40px;
    vertical-align: text-bottom;
    margin-right: 16px;
}

header nav {
    display: flex;
    gap: 16px;
}
header nav a {
    color: var(--clr-text);
    /* padding: 4px 8px; */
}
header nav a:hover {
    color: var(--clr-highlight);
}

section {
    padding: 16px;
    background-color: #fff;
    /* border: solid 2px #eee; */
    border-radius: 8px;
    margin-bottom: 32px;
}
section h2:first-child {
    margin-top: 0;
}
section p:last-child {
    margin-bottom: 0;
}
section#search {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    min-height: 70vh;
}

footer {
    margin-top: 64px;
    margin-bottom: 64px;
    opacity: 0.6;
}

a {
    color: var(--clr-text);
}
a:hover, a:focus {
    color: var(--clr-link);
}

form input {
    font-size: 1rem;
}
form button {
    font-size: 1rem;
}

#search form {
    display: flex;
}
#search form input {
    width: 20em;
    padding: 8px;
    border: solid 1px var(--clr-border);
    border-radius: 8px 0 0 8px;
}
#search form button {
    padding: 8px 16px;
    border: solid 1px var(--clr-border);
    border-left: 0;
    border-radius: 0 8px 8px 0;
    color: var(--clr-text);
    cursor: pointer;
}

.identity {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    /* justify-content: stretch; */
    margin-bottom: 4px;
}
.identity .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    /* height: 100%; */
    /* height: 38px; */
    /* margin-top: 3px; */
    /* margin: 12px 0 0; */
    /* background-color: #479438;
    background-color: #62a854; */
    border-radius: 8px;
    color: var(--clr-bg);
    color: var(--clr-border);
}
.identity .status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    /* height: 100%; */
    /* height: 38px; */
    /* margin-top: 3px; */
    margin: 8px 0 0;
    /* background-color: #479438;
    background-color: #62a854; */
    border-radius: 8px;
    color: var(--clr-bg);
    color: var(--clr-border);
}
.identity details[open=""] {
    background-color: var(--clr-bg);
    padding: 4px 8px;
    margin-bottom: 8px;
}
.identity details summary {
    cursor: pointer;
}
.identity details summary:hover {
    color: var(--clr-highlight);
}
.identity .information {
    width: 100%;
}
.identity .information > span {
    /* font-weight: bold; */
}
.identity .information > span > span {
    font-weight: normal;
    user-select: none;
    margin-left: 12px;
}

.verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    /* padding: 2px 4px; */
    border-radius: 100%;
    color: var(--clr-bg);
    color: hsl(110, 45%, 40%);
}
.verifying {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    /* padding: 2px 4px;
    border-radius: 100%; */
    color: var(--clr-bg);
    color: hsl(231, 60%, 60%);
}
.verifying svg {
    animation: 1s linear 0s infinite rot360;
}
@keyframes rot360 {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
.not-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    /* padding: 2px 4px; */
    /* border-radius: 100%; */
    color: var(--clr-bg);
    color: hsl(10, 80%, 50%);
}

.profile {
    display: flex;
    gap: 16px;
}
.profile .introduction {
    flex: 1;
    text-align: center;
}
.profile .identities {
    flex: 1;
    font-size: 0.9rem;
}
.profile .identity a {
    color: var(--clr-link);
    font-weight: bold;
}
.profile .identity.identity--failed a {
    color: var(--clr-border);
    /* font-weight: normal; */
}
.profile .identity.identity--other a {
    color: var(--clr-text);
    font-weight: normal;
}
.profile .identity .information {
    flex: 1;
}
.profile .identity .information span {
    color: #666;
}
.profile .identity.identity--failed .information span {
    color: var(--clr-border);
}
.avatar {
    width: 128px;
    height: 128px;
    border-radius: 8px;
}

@media screen and (max-width: 40rem) {
    .profile {
        flex-direction: column;
        gap: 32px;
    }
}