@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

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

:root {
    --green: hsl(75, 94%, 57%);
    --white: hsl(0, 0%, 100%);
    --grey700: hsl(0, 0%, 20%);
    --grey800: hsl(0, 0%, 12%);
    --grey900: hsl(0, 0%, 8%);
}

html {
    font-size: 16px;
}

body {
    background-color: var(--grey900);
    color: var(--white);
    font-family: "Inter", sans-serif;
    display: grid;
    grid-template-rows: 1fr auto;
    /* 1fr = average space, auto = footer */
    justify-items: center;
    align-items: center;
    min-height: 100vh;
}

main {
    background-color: var(--grey800);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    margin: 40px auto;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

img {
    border-radius: 50%;
    margin-bottom: 1.2rem;
    width: 120px;
    height: 120px;
    object-fit: cover;
}

h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

h2 {
    color: var(--green);
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

p {
    font-size: 14px;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
}

.buttons a {
    display: block;
    padding: 0.75rem;
    border-radius: 10px;
    background-color: var(--grey700);
    color: var(--white);
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.buttons a:hover {
    background-color: var(--grey900);
}

.buttons a:active,
.buttons a:focus {
    background-color: var(--green);
    color: var(--grey900);
}

footer {
    text-align: center;
    padding: 0.5rem;
}

.attribution {
    font-size: 0.8rem;
}

.attribution a {
    color: var(--green);
    text-decoration: none;
}