.right {
    float: right;
}

body {
    font-family: sans-serif;
    line-height: 1.25;
}

main {
    max-width: 700px;
    margin: 1rem auto;
}

nav {    
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: calc(var(--nav-width) + var(--gap) * 2);
    margin-inline-start: auto;
    margin-inline-end: auto;
}

nav ul {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-left: 0.5rem;
    margin: 0.25rem 0rem;
}


nav ul.secondary {
    padding: 0 0.75rem;
    font-size: small;
}

nav ul li {
    display: inline-block;
    list-style: none;
}

nav a {
    text-decoration: none;
    font-weight: bold;
    line-height: 1.5;
}

nav form {
    margin: 0;
}

nav .link-btn { 
    background: none;
    border: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    width: 100%;
    color: var(--primary);
    font-weight: bold;
    border-radius: 0;
}

img {
    object-fit: contain;
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
}

img.avatar {
    height: 2.5rem;
    width: 2.5rem;
    object-fit: cover;
}

a.author {
    text-decoration: none;
    color: var(--primary);
}

.profile {
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 4rem 1fr;
    grid-gap: 1rem;
    margin: 1rem 0;
}

.profile img.avatar {
    width: 4rem;
    height: 4rem;
}

.profile .author {
    font-size: larger;
}


.profile blockquote {
    margin: 0.5rem 0;
    color: var(--secondary);
}

article {
    background-color: var(--entry);
    color: var(--secondary);
    border-radius: 0.25rem;
    border: thin solid grey;
    margin: 0.5rem;
    padding: 0.5rem;
}

article.post-entry {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: 2.5rem auto;
}

article .twt-msg {
    padding: 0.5rem 0;
}

article .twt-msg a {
    text-decoration: underline;
}

article .twt-msg > blockquote {
    margin: 0;
    border-left: thick solid grey;
    padding: 0.25rem 0.5rem;
    display: inline-block;
    font-style: italic;
}

article .twt-msg img {
    margin: 0.25rem -0.25rem;
    border: thin solid grey;
}

article .twt-msg > img:first-child {
    margin-top: 0;
}

article .twt-msg > img:last-child {
    margin-bottom: 0;
}

article small a.right {
    padding-right: 0.25rem;
    font-weight: normal;    
}

nav.pagnation {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

footer {
    border-top: thin solid grey;
    margin-top: 1rem;
    text-align: center;
}