* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-darker: #182028;
    --bg-main: #1F2830;
    --title: #F0EAE0;
    --body-text: #9AB0BE;
    --teal: #3D7A6E;
    --amber: #D4874A;
}

::selection {
    background-color: var(--amber);
    color: var(--title);
}

header {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--teal);
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}

@media screen and (max-width: 576px) {
   header {
    flex-direction: column;
    flex-direction: column-reverse;
   }   
   .intro-container,
   .content-container,
   .writing-section {
    width: 100%;
   }
}

nav {
    padding: 1.2rem;
    
}

nav ul {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    list-style: none;
    flex-wrap: wrap;
}

nav > ul > li > a {
    text-decoration: none;
    color: var(--title);
}

h1 {
    color: var(--title);
    padding-left: 1.5rem;
    font-family: "Supermercado One";
    font-size: clamp(1.5rem, 4vw, 3rem);
}

.pennyp {
    color: var(--amber);
    transition: all 0.2s ease-in;
}

.pennyp:hover {
    background-color: var(--amber);
    color: var(--title);
}

body {
    background-color: var(--bg-main);
    font-family: "Bricolage Grotesque";
}

hr {
    color: var(--teal);
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 80%;
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
}

.intro-container {
    line-height: 1.8rem;
}

.intro-container,
.content-container,
.writing-section {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
}

p {
    color: var(--body-text);
}

.intro {
    margin-top: 50px;
    margin-bottom: 50px;
}

.intro-container > p > .bold {
    font-weight: 700;
    color: var(--title);
}

.content-card {
    padding: 1.2rem 1.5rem;
    border: 1px solid var(--teal);
    background-color: var(--bg-darker);
    border-radius: 10px;
    line-height: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 350px;
}

@media screen and (max-width: 512px) {
    .content-container {
        flex-wrap: wrap;
    }
}

.content-card > a {
    text-decoration: none;
    color: var(--amber);
    display: block;
    transition: all 0.2s ease-in;
}

.content-card > a:hover {
    background: var(--amber);
    color: var(--title);
}

.content-container {
    display: flex;
    flex-direction: row; 
    gap: 30px;
    margin-top: 5rem;
}

.card-body {
    flex-grow: 1;
}

h2 {
    text-align: center;
    color: var(--title);
    font-family: "Supermercado One";
    margin-bottom: 2rem;
    font-size: clamp(1.5rem, 4vw, 3rem);
}

.works-container img {
    object-fit: cover;
    width: 350px;
    border-radius: 10px;
}

.works-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.works-container a {
    transition: all 0.3s;
}

.works-container a:hover {
  transform: scale(1.1);
}

h3 {
    color: var(--title);
    margin-bottom: 1.5rem;
}

article {
    background-color: var(--bg-darker);
    margin-bottom: 2rem;
    line-height: 1.5rem;
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

article a {
    text-decoration: none;
    margin: 1rem;
    display: inline-block;
    color: var(--amber);
    align-self: flex-end;
    transition: all 0.2s;
}

article a:hover {
    background-color: var(--amber);
    color: var(--title);
}