@import url("https://fonts.googleapis.com/css2?family=Archivo+Narrow:wght@400;600;700;800&family=Playfair+Display:wght@700;800&display=swap");

:root {
  --paper: #e7e7e7;
  --ink: #202736;
  --red: #e11d2a;
  --border: #3b3b3b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #c8c8c8;
  color: var(--ink);
  font-family: "Archivo Narrow", Arial, sans-serif;
}

.canvas {
  position: relative;
  width: 768px;
  height: 768px;
  background: var(--paper);
  overflow: hidden;
}

p,
h1,
h2 {
  margin: 0;
}

.product-copy {
  position: absolute;
  top: 54px;
  left: 36px;
  width: 210px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

.spacer {
  height: 12px;
}

.brand {
  position: absolute;
  top: 30px;
  left: 198px;
  width: 372px;
  text-align: center;
  z-index: 4;
}

.brand h1 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 54px;
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.8px;
  white-space: nowrap;
}

.nestle {
  color: #20283a;
}

.kitkat {
  color: #20283a;
}

.k-red {
  color: #cb1f2e;
}

.slogan {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 20px 7px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: "Brush Script MT", "Lucida Handwriting", cursive;
  font-size: 18px;
  line-height: 0.95;
  font-weight: 700;
}

.good-life {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 700;
}

.badge {
  position: absolute;
  top: 40px;
  right: 34px;
  width: 166px;
  padding: 10px 10px;
  background: var(--red);
  color: #fff;
  text-align: center;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  transform: rotate(12deg);
  clip-path: polygon(15% 0, 92% 12%, 100% 30%, 87% 100%, 10% 86%, 2% 58%);
  z-index: 3;
}

.panel {
  border: 3px solid var(--border);
}

.flavour {
  position: absolute;
  top: 214px;
  left: 16px;
  width: 344px;
  padding: 8px 10px 10px;
  text-align: center;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
}

.tear-here {
  position: absolute;
  top: 276px;
  left: 16px;
  width: 130px;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 700;
}

.ingredients {
  position: absolute;
  top: 346px;
  left: 16px;
  width: 344px;
  padding: 10px;
}

.title-en,
.title-fr {
  font-size: 19px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.title-fr {
  margin-top: 10px;
}

.body-en {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.body-fr {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.16;
  font-style: italic;
  font-weight: 700;
}

.contact {
  position: absolute;
  left: 16px;
  top: 610px;
  width: 214px;
  font-size: 11px;
  line-height: 1.12;
  font-weight: 700;
}

.contact-heading {
  font-size: 13px;
  line-height: 1.05;
  font-weight: 800;
}

.help-line {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
}

.nutrition {
  position: absolute;
  top: 214px;
  right: 16px;
  width: 340px;
  height: 314px;
  padding: 8px 8px 6px;
}

.nutrition h2 {
  font-family: "Archivo Narrow", Arial, sans-serif;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 8px;
}

.serving {
  font-size: 12px;
  line-height: 1.1;
  margin-bottom: 4px;
}

.row {
  font-family: Georgia, "Times New Roman", serif;
  display: grid;
  grid-template-columns: 1fr 56px;
  column-gap: 8px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.1;
}

.row-strong {
  font-size: 15px;
  font-weight: 700;
}

.row span:last-child {
  width: 56px;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.barcode {
  position: absolute;
  right: 18px;
  bottom: 116px;
  text-align: right;
  font-size: 8px;
  line-height: 1.1;
  font-weight: 700;
}

.legal {
  position: absolute;
  right: 18px;
  bottom: 18px;
  text-align: right;
  font-size: 8px;
  line-height: 1.1;
  font-weight: 700;
}

@media (max-width: 820px) {
  body {
    place-items: start;
    overflow-x: auto;
  }
}
