:root {
  --fs-base: 1rem;     /* 16px */
  --fs-lg: 1.25rem;    /* 20px */
  --fs-xl: 1.5rem;     /* 24px */
  --fs-xxl: 3rem;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter-VariableFont_slnt\,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
}

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

html {
    font-size: 100%
}

body {
    font-family: 'Inter', sans-serif;
    height: 100dvh;
    background-color: hsl(0, 0%, 8%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

section.card {
    background-color: hsl(0, 0%, 12%);
    display: flex;
    gap: 1em;
    flex-direction: column;
    align-items: center;
    padding: var(--fs-xl);
    border-radius: 1em;
    width: 90%;
    max-width: 375px;
}

section img {
    border-radius: 50%;
    width: 5em;
    max-width: 100%;
    height: auto;
    margin-bottom: 1em;
}

section h1.card-name {
    font-size: 1.5em;    
    font-weight: 600;
    line-height: 1;
}

section p.card-city {
    color: hsl(75, 94%, 57%);
    margin-bottom: 0.8em;
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1;
}

section p.card-bio {
    text-align: center;
    font-size: 0.9em;
    margin-bottom: 0.8em;
}

section button {
    width: 100%;
    padding: 1.2em 0;
    border-radius: 0.8em;
    border: none;
    background-color: hsl(0, 0%, 20%);
    color: hsl(0, 0%, 100%);
    font-size: 0.8em;
    font-weight: 700;
}

section button:hover {
    background-color: hsl(75, 94%, 57%);
    color: hsl(0, 0%, 12%);
}

.attribution {
    position: absolute;
    bottom: 1em;
}

@media screen and (min-width: 400px) {
    section button {
        font-size: 1em;
    }
}