@font-face {
  font-family: "Nitro Arabic";
  src: url("noto-arabic.woff") format("woff");
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Nitro Arabic", system-ui, sans-serif;
  background: #0c1420;
  color: #f5faf7;
}
:root[lang="en"] { font-family: system-ui, sans-serif; }
:root[lang="ps"] .en, :root[lang="en"] .ps { display: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
header, main { width: min(100% - 2rem, 70rem); margin-inline: auto; }
header { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; padding-block: 1rem; border-bottom: 1px solid #365160; }
header button { margin-inline-start: auto; }
header a, header button {
  color: #d7f693; background: transparent; border: 1px solid #496b64;
  border-radius: .5rem; padding: .35rem .7rem; text-decoration: none;
  font: inherit; cursor: pointer;
}
:focus-visible { outline: 3px solid #d7f693; outline-offset: 3px; }
main { padding-block: clamp(1.2rem, 4vw, 3rem); }
h1 { margin: 0 0 1rem; font-size: clamp(1.65rem, 4vw, 2.75rem); line-height: 1.3; text-align: start; }
.flavors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.25rem), 1fr)); gap: .8rem; }
.tile, figure, .product .ingredients {
  margin: 0; border: 1px solid #375469; border-radius: .75rem;
  background: radial-gradient(ellipse at 50% 31%, color-mix(in srgb, var(--can) 24%, #142735), #142334 68%);
}
.tile {
  color: inherit; text-decoration: none; display: grid; place-items: center;
  grid-template-rows: 10rem auto auto; gap: .3rem; padding: .85rem .6rem;
  text-align: center; line-height: 1.45;
}
.tile:hover { border-color: var(--can); background-color: #1b3444; }
.tile img, .product img { width: 100%; max-height: 100%; object-fit: contain; }
.tile img { height: 100%; filter: drop-shadow(0 .35rem .4rem #0008); }
.tile strong { font-size: .99rem; }
.tile > span, figcaption { color: #d0dfe1; }
.product { display: grid; grid-template-columns: minmax(14rem, 3fr) minmax(0, 3fr); gap: 1rem; align-items: start; }
.product-views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.product figure { padding: clamp(.35rem, 1.2vw, .9rem); text-align: center; }
.product figure img { display: block; height: clamp(8rem, 24vw, 20rem); }
.product .ingredients {
  padding: clamp(.95rem, 4vw, 2.4rem);
  line-height: 1.7;
  background: #142334;
}
.product .ingredients h2 { margin: 0 0 .55rem; font-size: clamp(1.15rem, 2.4vw, 1.65rem); }
.product .ingredients p { margin: 0 0 .95rem; }
.product .ingredients small { color: #d0dfe1; }
figcaption { margin-block-start: .65rem; line-height: 1.6; }
@media (max-width: 40rem) {
  .product { grid-template-columns: 1fr; }
  .flavors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { grid-template-rows: 7.75rem auto auto; }
}
