*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ol, ul {
  list-style: none;
}

h1 {
  font-size: 2.5rem;
}

h1, h2 {
  text-wrap: balance;
  margin: 0 0 1rem;
  line-height: 1.3;
}

p,li {
  line-height: 1.5;
  margin: 0 0 1rem;
}


a {
  text-decoration: none;
  color: inherit;
}


.homepage {
  display: grid;
  align-items: stretch;
  height: 100vh;
  grid-template-columns: 3fr 5fr;

  .text-area {
    
    min-height: 100vh;
    padding: 60px 80px 60px 60px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .grid-of-candles {
    min-height: 100vh;
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .homepage {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;

    .text-area {
      grid-area: 1 / 1;
      min-height: unset;
      padding: 50px;
      margin: 60px;
      background-color: white;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
      z-index: 1;
      align-self: center;
      justify-self: center;
      border-radius: 1rem;
    }

    .grid-of-candles {
      grid-area: 1 / 1;
      min-height: 100vh;
    }
  }

  .grid-track {
    gap: 0;
    padding: 0;
  }
}

.grid-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px;
}

@media (min-width: 1280px) {
  .grid-track {
    grid-template-columns: repeat(3, 1fr);
  }
}

.candle-item {
  aspect-ratio: 1;
  overflow: hidden;
  transition: background-color 0.4s ease;
  border-radius: 1rem;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
  }
}


.balanced-text {
  text-wrap: balance;
}