/* Reset and Base Styles */
/*css reset */
/* Box sizing rules */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  font-size: 62.5%;
  /*1em is now 10px */
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

:root {
  --grey-700: hsl(0, 0%, 20%);
  --grey-800: hsl(0, 0%, 12%);
  --grey-900: hsl(0, 0%, 8%);
  --white: #ffffff;
  --green: hsl(75, 94%, 57%);

  /* Typography */
  --font-semibold: 2.4rem;
  --lh-semibold: 1.5;
  --ls-semibold: 0;

  --font-bold: 1.6rem;
  --lh-bold: 1.5;
  --ls-bold: 0;

  --font-regular: 1.4rem;
  --lh-regular: 1.4;
  --ls-regular: 0;

  .inter-regular {
    font-family: "Inter", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
  }

  .inter-semibold {
    font-family: "Inter", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
  }

  .inter-bold {
    font-family: "Inter", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
  }
}


body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--grey-900);
    font-size: 0.875rem;
    gap: 2rem;
  }
  
  .card-container {
    background-color: var(--grey-800);
    width: 327px; /* Mobile default */
    padding: 24px; /* Mobile padding */
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Tablet styles */
@media screen and (min-width: 768px) {
    .card-container {
        width: 456px;
        padding: 40px;
    }
}

/* Desktop styles */
@media screen and (min-width: 1024px) {
    .card-container {
        width: 384px;
        padding: 40px;
    }
}

/* Center the card */
.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--grey-800);
    text-align: center;
    width: 100%;
}
  
  .avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin-bottom: 24px;
  }
  
  .title {
    color: var(--white);
    font-size: var(--font-semibold);
    margin-bottom: 8px;
    line-height: var(--lh-semibold);
  }

  #card-subtitle {
    color: var(--white);
    font-size: var(--font-bold);
    margin-bottom: 24px;
    color: var(--green);
  }

  .quote {
    color: var(--white);
    font-size: var(--font-regular);
    margin-bottom: 24px;
  }
  
  .buttons {
    width: 100%;
  }

  .buttons button {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: var(--grey-700);
    color: var(--white);
    font-size: var(--font-regular);
    line-height: var(--lh-regular);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .buttons button:hover {
    background-color: var(--green);
    color: var(--grey-900);
  }
  .attribution {
    color: var(--grey-700);
    font-size: var(--font-regular);
    line-height: var(--lh-regular);
  }