/********* google fonts *********/
@import url("https://fonts.googleapis.com/css2?family=Antic+Slab&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,400&family=Voltaire&display=swap");
/********* vendor reset styles *********/
/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
li,
figure,
figcaption,
blockquote,
dl,
dd {
    margin: 0;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
}

/* Make images easier to work with */
img {
    max-width: 100%;
    display: block;
}

/* Natural flow and rhythm in articles by default */
article > * + * {
    margin-top: 1em;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/********* page styles *********/
:root {
    --primary: hsl(230deg 63% 19%);
    --secondary: hsl(2deg 85% 66%);
    --tertiary: hsl(214deg 24% 17%);
    --color-light: hsl(0deg 0% 95%);
    --color-header-border: hsl(240deg 2% 75%);
    --color-footer-link: hsl(214deg 24% 60%);
    --color-footer-divider: hsl(214deg 24% 30%);
    --color-text-selection-bg: hsl(2deg 60% 60%);
    --transition: 0.3s ease-in-out;
}

*:focus {
    outline: 1px dotted;
}

::selection {
    color: var(--color-light);
    background-color: hsl(2deg 60% 60%);
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}
body {
    font: normal normal 2rem/1.8 "Antic Slab", serif;
    background-color: var(--color-light);
    color: #333;
}
h1,
h2,
h3,
h4 {
    font-family: "Voltaire", sans-serif;
    font-weight: 400;
}
h1 {
    font-size: 4rem;
    color: hsl(210deg 100% 80%);
}
h2 {
    font-size: 3rem;
    line-height: 1.4;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-header-border);
    color: var(--secondary);
}
em {
    font-family: "Cormorant Garamond", serif;
}
header {
    padding: 10rem 10vw;
    color: var(--color-light);
    background-color: var(--primary);
    position: relative;
    overflow: hidden;
    padding-right: 50vw;
}
.header-hero-img {
    position: absolute;
    bottom: -1rem;
    height: 300px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.8));
    right: 10vw;
}
.page-content {
    width: 80vw;
    margin: 4rem auto 8rem;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    grid-gap: 8rem;
}
.side-nav-bar {
    margin: 4rem 0;
}
.side-nav-bar nav {
    position: sticky;
    top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.side-nav-bar a {
    font-family: "Voltaire", sans-serif;
    display: inline-block;
    color: #777;
    text-decoration: none;
    transition: var(--transition);
    padding: 1rem 4rem 1rem 0;
    border-right: 0.3rem solid #bdbdbd;
    font-size: 1.8rem;
}
.side-nav-bar a:hover,
.side-nav-bar a:focus,
.side-nav-bar a:active,
.side-nav-bar a.is-active {
    color: #1b1b1b;
    border-right-color: currentColor;
    font-weight: bold;
}
article {
    margin: 4rem 0;
}
dt {
    font-weight: 700;
    color: #000;
    margin: 3rem 0 1rem;
}

.formatted-list li {
    list-style: inherit;
    margin: 1.5rem 0;
    line-height: 1.4;
}

footer {
    background-color: var(--tertiary);
    padding: 4rem 10vw;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--color-light);
    display: flex;
    align-items: center;
}
footer h5 {
    font-size: inherit;
    margin: 0;
}
footer ul {
    display: flex;
    margin: 0.5rem 0 0.5rem auto;
    padding: 0;
    text-align: center;
    justify-content: center;
    align-items: center;
}
footer li {
    list-style: none;
}
footer li:not(:last-child)::after {
    content: "|";
}
footer em,
footer li:not(:last-child)::after {
    color: var(--color-footer-divider);
    margin: 0 1rem;
    display: inline-block;
}
footer a {
    color: var(--color-footer-link);
    text-decoration: none;
    transition: var(--transition);
}
footer a:hover,
footer a:active,
footer a:focus {
    color: var(--color-light);
    text-decoration: underline;
}

/* users */
.user-profile {
    display: flex;
    align-items: flex-start;
    margin: 3rem 0;
}
.user-profile img {
    max-width: 20rem;
    display: inline;
    margin-right: 3rem;
}
.user-details ul {
    display: flex;
    list-style: none;
    margin: 1rem 0 2rem;
    padding: 0;
}
.user-details h4 {
    margin-top: 2rem;
}
.user-details ol {
    margin: 0.5rem 0;
}
.user-details ul > li {
    margin: 0 2.5rem 0 0;
    font-weight: bold;
    line-height: 1.4;
}
.user-details ul > li::before {
    content: attr(data-label);
    display: block;
    color: #666;
    font-size: 1.8rem;
}
