/* CSS Reset: https://piccalil.li/blog/a-more-modern-css-reset/ */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin: 0;
}

:root {
  --green: hsl(75, 94%, 57%);
  --white: hsl(0, 0%, 100%);
  --grey: hsl(0, 0%, 20%);
  --dark-grey: hsl(0, 0%, 12%);
  --off-black: hsl(0, 0%, 8%);
}

@font-face {
  font-family: 'Inter';
  src: url(assets/fonts/Inter-VariableFont_slnt\,wght.ttf);
}

.inter-400 {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "slnt" 0;
}

.inter-600 {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "slnt" 0;
}

.inter-700 {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "slnt" 0;
}

body {
  background-color: var(--off-black);
  color: var(--white);
}

main {
  min-height: 100svh;

  /* center card */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
}

.card {
  width: 327px;
  padding: 1.5rem;
  background-color: var(--dark-grey);
  border-radius: 0.5rem;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 24px spacing */
.space-big {
  content: "";
  margin: 0.75rem 0;
}

/* 12px spacing */
.space-small {
  content: "";
  margin: 0.375rem 0;
}

img {
  border-radius: 100%;
  width: 90px;
}

h1 {
  font-size: 1.5rem;
}

p {
  /* Font size (paragraph): 14px */
  font-size: 0.875rem;
}

.socials {
  display: grid;
  row-gap: 1rem;
  width: 100%;
}

.socials-button {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--white);
  background-color: var(--grey);
  width: 100%;
  height: 45px;
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition-duration: 0.1s;
}

.socials-button:hover {
  background-color: var(--green);
  color: var(--off-black);
  cursor: pointer;
}

.location {
  color: var(--green);
}

footer {
  margin: 0.5rem;
}

.attribution {
  font-size: 0.7rem;
  text-align: center;
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

@media screen and (min-width: 1224px) {
  .card {
    width: 384px;
    padding: 2.5rem;
  }
}