:root {
  --bg: #090909;
  --panel: rgba(18, 18, 18, 0.86);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f3ec;
  --soft: rgba(244, 243, 236, 0.68);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 70% 30%, rgba(120, 100, 82, 0.28), transparent 24%),
    radial-gradient(circle at 20% 70%, rgba(100, 100, 100, 0.15), transparent 20%),
    #070707;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../img/bg-removed-typewriter-2.png") right -6vw center / min(76vw, 1100px) auto no-repeat;
  opacity: 0.045;
  mix-blend-mode: screen;
  pointer-events: none;
}

main {
  width: min(1440px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
}

.topline,
.tag,
.footer,
.address {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--soft);
}

.lang-switch a {
  color: inherit;
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--text);
}

.shop-nav {
  display: flex;
  justify-content: flex-start;
  padding-top: 1rem;
}

.hero {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 1.4rem;
  align-items: start;
  padding-top: 1.5rem;
}

.shop-page .hero,
.shop-page .products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-page .hero {
  align-items: stretch;
  gap: 1rem;
}

.shop-page .products {
  align-items: stretch;
  margin-top: 1rem;
}

.panel,
.carrier,
.note {
  background: var(--panel);
  border: 1px solid var(--line);
}

.panel,
.carrier {
  padding: 1.5rem;
}

.panel {
  display: flex;
  flex-direction: column;
}

.panel > .credit {
  margin-top: auto;
}

.shop-page .hero .panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.shop-page .carrier {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.shop-page .carrier:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(26, 26, 26, 0.92);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.28);
}

.intro {
  position: sticky;
  top: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.34rem 0.66rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--soft);
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1 {
  margin-top: 1rem;
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 300;
}

.shop-page h1 {
  font-size: clamp(3rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  line-height: 1;
  font-weight: 300;
}

.shop-page h2 {
  margin-top: 1rem;
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
}

h3 {
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}

.yiddish-inline {
  direction: rtl;
  unicode-bidi: isolate;
}

.panel p,
.section-copy,
.carrier p,
.note span {
  margin-top: 1rem;
  color: var(--soft);
  line-height: 1.7;
  font-size: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.button,
button.button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  padding: 0.84rem 1rem;
  font: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.stage {
  padding: 1rem;
  background: #040404;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.stage iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #040404;
  border: 0;
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.note {
  padding: 1rem;
}

.note strong,
.carrier strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}

.section-head {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 1rem;
  align-items: end;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.why-list {
  display: grid;
  gap: 0.8rem;
}

.why-list article {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.why-list strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.project-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.project-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.price,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price {
  color: var(--text);
}

.status {
  color: var(--soft);
}

.product-actions {
  margin-top: 1rem;
}

.checkout-button,
.download-button {
  width: 100%;
  justify-content: center;
}

.carrier-media {
  display: grid;
  place-items: center;
  min-height: 18rem;
  margin-bottom: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.carrier-media img,
.carrier-media iframe {
  display: block;
  max-width: 100%;
  max-height: 24rem;
  border: 0;
}

.carrier-media.gallery {
  gap: 0.75rem;
  padding: 0.75rem;
  min-height: auto;
  height: auto;
  align-content: center;
}

.carrier-media.gallery img {
  width: 100%;
  max-height: 11rem;
  object-fit:fill;
  background: rgba(255, 255, 255, 0.02);
}

.carrier-media.animated iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: none;
}

.shop-page .carrier {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.shop-page .carrier-media {
  min-height: 18rem;
  height: 18rem;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 0;
}

.shop-page .carrier-media.product-shot {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-page .carrier-media.product-frame {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-page .carrier-media.product-frame img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.shop-page .carrier-media img,
.shop-page .carrier-media iframe {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
}

.shop-page .carrier-media.product-shot img {
  display: block;
  object-fit: contain;
}

.shop-page .carrier-media.animated iframe {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}

.shop-page .carrier-media.animated {
  height: auto;
  min-height: auto;
  aspect-ratio: 16 / 9;
}

.shop-page .carrier-media.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
}

.shop-page .carrier-media.gallery.clothing-gallery {
  aspect-ratio: 1 / 1.08;
  align-content: stretch;
}

.shop-page .carrier-media.gallery img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border: 0;
}

.shop-page .carrier p {
  margin-top: auto;
  padding-top: 1rem;
}

.shop-page .free-item:hover {
  border-color: rgba(214, 239, 221, 0.24);
}

.market {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  margin-top: 2rem;
}

.public-logic {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  margin-top: -0.2rem;
}

.logic-intro,
.logic-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
}

.logic-intro {
  padding: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

.logic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.logic-grid article {
  padding: 1rem;
}

.logic-grid strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}

.logic-grid span {
  color: var(--soft);
  line-height: 1.6;
  font-size: 0.96rem;
}

.market-stage {
  position: relative;
  min-height: 26rem;
  background: #040404;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.market-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.32)),
    url("../img/wilhelmplatz-koeln-markt.jpg") center center / cover no-repeat;
  opacity: 0.3;
  filter: grayscale(3) contrast(1) brightness(2.2);
  pointer-events: none;
}

.market-stage::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 2;
}

.floating {
  position: absolute;
  color: rgba(244, 243, 236, 0.72);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
}

.floating.one {
  top: 2rem;
  left: 2rem;
}

.floating.two {
  top: 2rem;
  right: 2rem;
}

.floating.three {
  bottom: 2rem;
  left: 2rem;
}

.floating.four {
  bottom: 2rem;
  right: 2rem;
}

.market-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4rem;
  z-index: 2;
}

.market-center img {
  width: min(100%, 28rem);
}

.address {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: rgba(244, 243, 236, 0.52);
}

.credit {
  margin-top: 1rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(244, 243, 236, 0.48);
}

.credit a {
  color: rgba(244, 243, 236, 0.72);
}

.footer {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(244, 243, 236, 0.44);
}

.footer a {
  color: rgba(244, 243, 236, 0.72);
}

@media (max-width: 1020px) {
  .hero,
  .notes,
  .section-head,
  .why,
  .project-links,
  .products,
  .public-logic,
  .logic-grid,
  .market {
    grid-template-columns: 1fr;
  }

  .intro {
    position: static;
  }
}

@media (max-width: 900px) {
  .shop-page .hero,
  .shop-page .products {
    grid-template-columns: 1fr;
  }

  .shop-page .hero .panel {
    height: auto;
  }

  .shop-page .carrier-media,
  .shop-page .carrier-media.animated {
    height: auto;
    min-height: 15rem;
  }

  .shop-page .carrier-media.product-frame {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  main {
    width: min(100vw - 1rem, 1440px);
  }

  .topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-nav,
  .actions,
  .product-actions {
    width: 100%;
  }

  .actions {
    flex-direction: column;
  }

  .actions .button,
  .product-actions .button {
    width: 100%;
    text-align: center;
  }

  .product-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .price,
  .status {
    width: 100%;
    justify-content: center;
  }

  .shop-page .carrier,
  .panel {
    padding: 1rem;
  }

  .shop-page .carrier-media,
  .shop-page .carrier-media.animated {
    min-height: 13rem;
  }
}
