:root {
  --ink: #1f2a39;
  --bg: #ececec;
  --frame: #3f434a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12px;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.label-content {
  width: min(760px, calc(100vw - 24px));
  aspect-ratio: 1 / 1;
  border: 2px solid var(--frame);
  padding: 22px 26px 20px;
  overflow: hidden;
}

.top-note {
  margin: 0;
  font-size: 17px;
  line-height: 1;
  font-style: italic;
  font-weight: 400;
}

.headline {
  position: relative;
  margin-top: 84px;
}

.product {
  margin: 0;
  text-align: center;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 700;
}

.weight {
  margin: 0;
  position: absolute;
  right: 60px;
  top: 18px;
  font-size: 19px;
  line-height: 1;
  font-style: italic;
  font-weight: 400;
}

.subtitle {
  margin: 52px 0 90px;
  text-align: center;
  font-size: 16px;
  line-height: 1.05;
  font-style: italic;
  font-weight: 400;
}

.details {
  margin: 0 18px 74px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.details h2 {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.12;
  font-weight: 700;
}

.details p {
  margin: 0;
  white-space: pre-line;
  font-size: 16px;
  line-height: 1.2;
  font-style: italic;
  font-weight: 400;
}

.bottom-tagline {
  margin: 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 700;
}

@media (max-width: 900px) {
  .label-content {
    padding: 20px;
  }

  .top-note {
    font-size: 17px;
  }

  .headline {
    margin-top: 68px;
  }

  .product {
    font-size: 20px;
  }

  .weight {
    right: 20px;
    top: 16px;
    font-size: 17px;
  }

  .subtitle {
    margin: 40px 0 54px;
    font-size: 15px;
  }

  .details {
    margin: 0 8px 48px;
    gap: 26px;
  }

  .details h2 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .details p {
    font-size: 15px;
  }

  .bottom-tagline {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  body {
    padding: 10px;
  }

  .label-content {
    width: calc(100vw - 20px);
    padding: 12px;
  }

  .top-note {
    font-size: 14px;
  }

  .headline {
    margin-top: 36px;
  }

  .product {
    font-size: 18px;
  }

  .weight {
    position: static;
    margin-top: 10px;
    text-align: center;
    font-size: 16px;
  }

  .subtitle {
    margin: 30px 0 38px;
    font-size: 14px;
  }

  .details {
    margin: 0 0 36px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .details h2 {
    font-size: 15px;
  }

  .details p {
    font-size: 14px;
  }

  .bottom-tagline {
    font-size: 14px;
  }
}
