:root {
  color-scheme: light;
  --wine: #3a171e;
  --wine-soft: #672a35;
  --paper: #f4f1ea;
  --surface: #fffdf8;
  --ink: #29221e;
  --muted: #716862;
  --line: #ded8cc;
  --gold: #b69561;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--wine);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.product-header {
  padding: 24px max(24px, calc((100% - 760px) / 2)) 52px;
  background: var(--wine);
  color: var(--surface);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-bar > img {
  width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.language-switch span {
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, 0.35);
}

.language-switch button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.55;
}

.language-switch button[aria-pressed="true"] {
  opacity: 1;
}

.language-switch button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.product-title {
  margin-top: 50px;
  text-align: center;
}

.product-title p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-title h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.product-title > strong {
  display: block;
  margin-top: 7px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.16em;
}

main {
  width: min(760px, calc(100% - 40px));
  margin: 38px auto 70px;
}

.label-section {
  margin-bottom: 20px;
  padding: clamp(28px, 6vw, 52px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--wine);
}

.section-heading > span {
  color: var(--wine-soft);
  font-family: var(--serif);
  font-size: 0.85rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.ingredient-details {
  margin: 28px 0;
}

.ingredient-details div {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) 1fr;
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.ingredient-details dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ingredient-details dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.allergen {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  background: #f0e9e3;
  color: var(--wine);
}

.allergen svg,
.local-rules svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.allergen span,
.allergen strong {
  display: block;
}

.allergen span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.allergen strong {
  font-family: var(--serif);
  font-size: 1.1rem;
}

.table-caption {
  margin: 25px 0 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 500;
  text-align: left;
}

td {
  font-family: var(--serif);
  font-size: 1.05rem;
  text-align: right;
  white-space: nowrap;
}

.energy-row th,
.energy-row td {
  color: var(--wine);
  font-weight: 700;
}

.subrow th {
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.packaging-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 30px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.recycling-mark {
  position: relative;
  width: 88px;
  text-align: center;
}

.recycling-mark svg {
  display: block;
  width: 78px;
  height: 70px;
  margin: 0 auto;
  fill: none;
  stroke: var(--wine);
  stroke-linecap: square;
  stroke-linejoin: round;
  stroke-width: 7;
}

.recycling-mark > strong {
  position: absolute;
  top: 29px;
  left: 0;
  width: 100%;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 0.95rem;
}

.recycling-mark > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.packaging-item h3 {
  margin: 0 0 2px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.packaging-item p,
.packaging-item strong {
  display: block;
  margin: 0;
}

.packaging-item p {
  color: var(--muted);
}

.packaging-item strong {
  margin-top: 4px;
  font-size: 0.82rem;
}

.local-rules {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  color: var(--wine-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.local-rules svg {
  width: 21px;
  height: 21px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px max(24px, calc((100% - 760px) / 2));
  background: var(--wine);
  color: rgba(255, 255, 255, 0.6);
}

footer img {
  width: 130px;
  filter: brightness(0) invert(1);
}

footer p {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

@media (max-width: 560px) {
  .product-header {
    padding: 20px 20px 40px;
  }

  .header-bar > img {
    width: 126px;
  }

  .product-title {
    margin-top: 42px;
  }

  main {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .label-section {
    margin-bottom: 12px;
    padding: 26px 20px;
  }

  .section-heading {
    gap: 12px;
  }

  .ingredient-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  th,
  td {
    padding-block: 12px;
  }

  th {
    font-size: 0.9rem;
  }

  .subrow th {
    padding-left: 12px;
    font-size: 0.78rem;
  }

  td {
    font-size: 0.95rem;
  }

  .packaging-item {
    grid-template-columns: 82px 1fr;
    gap: 18px;
  }

  footer {
    padding: 28px 20px;
  }
}

@media print {
  .product-header,
  footer {
    print-color-adjust: exact;
  }

  main {
    margin-block: 20px;
  }
}
