:root {
    --gray: hsl(240, 2%, 57%);
    --gray2: hsl(240, 3%, 69%);
    --gray3: hsl(240, 5%, 79%);
    --gray4: hsl(240, 6%, 83%);
    --gray5: hsl(240, 11%, 91%);
    --gray6: hsl(240, 24%, 96%);

    --red: hsl(3, 100%, 59%);
    --orange: hsl(12, 100%, 50%);
    --yellow: hsl(48, 100%, 50%);
    --green: hsl(135, 59%, 49%);
    --mint: hsl(177, 100%, 39%);
    --teal: hsl(189, 61%, 48%);
    --cyan: hsl(199, 78%, 55%);
    --blue: hsl(211, 100%, 50%);
    --indigo: hsl(241, 61%, 59%);
    --purple: hsl(280, 68%, 60%);
    --pink: hsl(349, 100%, 59%);
    --brown: hsl(34, 27%, 50%);
}

* {
    box-sizing: border-box;
    font-family: sans-serif;
    padding: 0;
    margin: 0;
}

* :before,
:after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    min-height: 100vh;
    margin: auto;
}

#nav-container {
    position: sticky;
    top: 0;
    background-color: hsla(240, 11%, 91%, 0.4);
    margin-bottom: 45px;
    -webkit-backdrop-filter: saturate(180%) blur(35px);
    backdrop-filter: saturate(180%) blur(35px);
    /* border-bottom: 1px solid hsla(240, 2%, 57%, 0.8); */
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    box-shadow: 0 0 5px hsla(240, 2%, 57%, 0.8);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: center;
    max-width: 1440px;
    padding: 10px;
    margin: auto;
}

nav > * {
    flex: 1;
}

nav > p {
    font-size: 1.5rem;
    font-weight: 200;
    text-align: center;
}

#search-container {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#search-bar {
    font-size: 0.9rem;
    padding: 0.2em;
    border: none;
    border-radius: 2px;
}

#search-button {
    background-color: var(--blue);
    color: white;
    font-size: 0.75rem;
    border: none;
    padding: 0.25em 0.75em;
    border-radius: 2px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

#page-header {
    max-width: 100ch;
    margin: auto;
    margin-bottom: 80px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 16px;
}

h1 + p {
    font-size: 1.75rem;
    font-weight: 200;
    text-align: center;
}

code {
    font-family: monospace;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#showcase {
    margin: auto;
}

article {
    display: flex;
    /* position: relative; */
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    /* max-height: 200px; */
    background-color: var(--gray6);
    padding: 16px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 2px hsla(240, 2%, 57%, 1);
}

.container {
    display: flex;
    gap: 20px;
}

figure {
    width: 200px;
}

figcaption {
    text-align: center;
}

figure > img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 2px hsla(240, 2%, 57%, 1);
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

figure > img:hover {
    transform: translate(2px, -2px);
}

.post-link {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-link header {
    font-size: 1.5rem;
    font-weight: 400;
}

.post-link > p {
    font-size: 1.1rem;
    line-height: 1.5em;
    font-weight: 200;
}

.date {
    margin-top: auto;
}

article footer {
    /* position: absolute; */
    /* left: 0; */
    /* right: 0; */
    /* bottom: -1rem; */
    display: flex;
    align-items: center;
    gap: 1rem;
}

footer > a:hover {
    text-decoration: none;
}

.tag {
    align-self: center;
    background-color: white;
    font-size: 0.9rem;
    padding: 0.75em;
    border-radius: 10px;
    font-family: monospace;
    transition: background-color 0.5s, color 0.5s, transform 0.3s;
    box-shadow: 0 0 2px hsla(240, 2%, 57%, 1);
}

.tag:hover {
    /* background-color: var(--blue); */
    /* color: white; */
    transform: translate(2px, -2px);
}

.link-container {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

#github-link,
#fem-link {
    height: 40px;
    width: 40px;
    box-shadow: 0 0 2px hsla(240, 2%, 57%, 1);
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

#github-link:hover,
#fem-link:hover {
    transform: translate(2px, -2px);
}

#github-link > img,
#fem-link > img {
    width: 100%;
    height: 100%;
}

@supports (min-height: 100svh) {
    body {
        min-height: 100svh;
    }
}
