@import url("https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap");

* {
  margin: 0;
  padding: 0;
  font-family: "Karla", sans-serif;
}

body {
  background-color: #e5eef5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  min-height: 100vh;
}

.container {
  display: grid;
  width: 615px;
  grid-template-columns: repeat(2, 2fr);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.14);
}

.community-section,
.price-section,
.why-us-section {
  padding: 2.5rem;
}

.community-section {
  grid-column: span 2;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.community-section h1 {
  color: hsl(179, 62%, 43%);
  font-size: 1.5rem;
}

.community-section .community-byline {
  color: hsl(71, 73%, 54%);
  font-weight: bold;
  padding: 0.7rem 0;
  font-size: 1.1rem;
}

.community-section .community-description {
  color: hsl(218, 22%, 67%);
  font-size: 1rem;
}

.price-section {
  background-color: hsl(179, 62%, 43%);
  color: hsl(204, 43%, 93%);
}

.price-section h2 {
  padding-bottom: 1rem;
  font-size: 1.1rem;
}

.price-section p {
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.price-section p span {
  font-size: 2rem;
  font-weight: bold;
}

.price-section button {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  max-width: 220px;
  width: 90%;
  padding: 0.7rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 5px;
  background-color: hsl(71, 73%, 54%);
  color: hsl(204, 43%, 93%);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.price-section button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.14), 0 12px 32px rgba(0, 0, 0, 0.18);
}

.why-us-section {
  background-color: #4abebd;
  color: hsl(204, 43%, 93%);
}

.why-us-section h3 {
  padding-bottom: 1rem;
  font-size: 1.1rem;
}

.why-us-section ul {
  list-style: none;
  padding: 0.1rem 0;
}

.why-us-section ul li {
  font-size: 0.9rem;
  padding: 0.1rem 0;
}

@media (max-width: 660px) {
  .container {
    width: 400px;
    grid-template-columns: 1fr;
    margin: 2rem 0;
  }
  .community-section {
    grid-column: span 1;
  }
}

@media (max-width: 460px) {
  .container {
    width: 80%;
  }
}

.attribution{
    text-align: center;
}

.attribution {
  padding: 2rem;
  font-size: 1rem;
  text-align: center;
  color: #6b7280;
}

.attribution a {
  color: #475569;
  text-decoration: none;
  border-bottom: 1px solid rgba(71, 85, 105, 0.4);
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.attribution a:hover {
  color: #1e293b;
  border-bottom-color: rgba(30, 41, 59, 0.8);
}

.attribution a:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
