/* Regular */
@font-face {
  font-family: 'MyFont';
  src: url('/assets/fonts/Figtree-VariableFont_wght.ttf') format('ttf');
  font-weight: normal;
  font-style: normal;
}

/* Medium */
@font-face {
    font-family: 'MyFont';
    src: url('/assets/fonts/static/Figtree-Medium.ttf') format('ttf');
    font-weight: 500;
    font-style: normal;
}

/* Extra Bold */
@font-face {
    font-family: 'MyFont';
    src: url('/assets/fonts/static/Figtree-ExtraBold.ttf') format('ttf');
    font-weight: 800;
}

/* Italic */
@font-face {
    font-family: 'MyFont';
    src: url(/assets/fonts/Figtree-Italic-VariableFont_wght.ttf) format('ttf');
    font-weight: 400;
    font-style: italic;
}

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

body {
    background-color: hsl(47, 88%, 63%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;

    padding: 0 clamp(1rem, 5vw, 2rem);
}

.card-container {
    width: 100%;
    max-width: 384px;
    /* max-height: 522px; */
    /* height: 100%; */
    
    background-color: hsl(0, 0%, 100%);
    border-radius: 15px;
    border: 1px solid hsl(0, 0%, 7%);
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 2);

    margin: 0 auto;
    padding: 0.5rem;
}

.card-image {
    text-align: center;
    
    margin: 20px 0;
}

.card-image img {
    width: 90%;
    max-height: 200px;
    height: auto;

    object-fit: cover;

    border-radius: 15px 15px 0 0;
}

.content {
    margin: 0 1.5rem;
}

.content header {
    font-family: 'MyFont', sans-serif;
    font-weight: normal;
}

.learning {
    display: inline-block;
    padding: 0.2em 0.8em;

    border-radius: 4px;
    
    color: hsl(0, 0%, 7%);
    background-color: hsl(47, 88%, 63%);
}

.learning p {
    font-family: 'MyFont', sans-serif;
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 800;
    line-height: 1.6;
    margin: 0;
}

.date {
    font-size: 0.875rem;
    font-weight: 400;

    margin: 15px 0;
}

header h2 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);

    margin-bottom: 13px;
    color: hsl(0, 0%, 7%);
    font-weight: 800;
}

header h2:hover {
    color: hsl(47, 88%, 63%);
    cursor: pointer;
}

.text {
    color: hsl(0, 0%, 42%);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 400;
    margin-bottom: 1.25rem;
}

.avatar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 1rem 0;
}

.avatar img {
    width: auto;
    max-width: 32px;
    min-height: 32px;
    height: auto;
}

.avatar p {
    font-size: 0.875rem;
    font-weight: 800;
}
