@import url("https://fonts.googleapis.com/css2?family=PT+Sans+Narrow:wght@400;700&family=Russo+One&display=swap");

:root {
  color-scheme: light;
  --ink: #171614;
  --paper: #e8cda5;
  --paper-light: #f1dbb9;
  --purple: #67234f;
  --pink: #b72d55;
  --orange: #d95b22;
  --yellow: #e49a14;
  --display: "Russo One", Impact, "Arial Black", sans-serif;
  --body: "PT Sans Narrow", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: clamp(5px, 1.2vw, 15px);
  color: var(--ink);
  background: #171511;
  font-family: var(--body);
}

a { color: inherit; }

.poster {
  position: relative;
  width: min(1180px, 100%);
  min-height: calc(100vh - 10px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(239, 210, 168, .11), rgba(118, 73, 38, .07)),
    url("paper-texture.png");
  background-repeat: repeat;
  background-size: auto, 720px 720px;
  box-shadow:
    inset 0 0 0 2px rgba(63, 42, 25, .42),
    0 2px 0 rgba(0, 0, 0, .28);
}

.poster::before,
.poster::after {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
}

.poster::before {
  border-radius: inherit;
  background:
    radial-gradient(circle at 2px 17px, rgba(79, 48, 27, .34) 0 1px, transparent 2px) left top / 12px 39px repeat-y,
    radial-gradient(circle at calc(100% - 2px) 9px, rgba(79, 48, 27, .31) 0 1.5px, transparent 2.5px) right top / 13px 43px repeat-y,
    radial-gradient(circle at 24px 2px, rgba(79, 48, 27, .32) 0 1px, transparent 2px) left top / 53px 12px repeat-x,
    radial-gradient(circle at 11px calc(100% - 2px), rgba(79, 48, 27, .3) 0 1.5px, transparent 2.5px) left bottom / 47px 13px repeat-x;
}

.poster::after {
  background:
    linear-gradient(103deg, transparent 0 46%, rgba(91, 57, 33, .22) 47% 49%, transparent 50%) left top / 18px 58px repeat-y,
    linear-gradient(77deg, transparent 0 48%, rgba(91, 57, 33, .2) 49% 51%, transparent 52%) right 8px / 17px 67px repeat-y,
    linear-gradient(12deg, transparent 0 46%, rgba(91, 57, 33, .2) 47% 49%, transparent 50%) left top / 64px 14px repeat-x,
    linear-gradient(-9deg, transparent 0 47%, rgba(91, 57, 33, .2) 48% 50%, transparent 51%) 9px bottom / 71px 13px repeat-x;
}

.home-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.home-page .welcome {
  min-height: 100vh;
  align-content: start;
  padding-top: clamp(47px, 4.6vw, 58px);
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.6vw, 31px) clamp(24px, 6vw, 70px) 0;
}

.vhs-logo {
  display: block;
  width: clamp(92px, 11vw, 124px);
  height: auto;
  mix-blend-mode: multiply;
  filter: contrast(1.18) sepia(.1);
}

.back-link {
  padding: 8px 12px 7px;
  border: 2px solid var(--ink);
  background: rgba(241, 219, 185, .62);
  font-family: var(--display);
  font-size: clamp(12px, 1.6vw, 16px);
  letter-spacing: .03em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--ink);
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--paper-light);
  background: var(--ink);
  outline: none;
}

.welcome {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  min-height: calc(100vh - 155px);
  align-content: center;
  padding: clamp(48px, 8vw, 92px) 22px clamp(66px, 9vw, 108px);
  text-align: center;
}

.kicker {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(14px, 1.9vw, 21px);
  letter-spacing: .035em;
  text-transform: uppercase;
}

.kicker::before {
  width: 92px;
  height: 8px;
  background: linear-gradient(90deg, var(--purple) 0 25%, var(--pink) 25% 50%, var(--orange) 50% 75%, var(--yellow) 75%);
  box-shadow: 3px 3px 0 rgba(67, 40, 24, .18);
  content: "";
}

.home-title {
  margin: 17px 0 0;
  font-family: var(--display);
  font-size: clamp(48px, 7.4vw, 88px);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.055em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(83, 49, 27, .2);
  transform: scaleX(.94);
}

.home-title span {
  display: block;
  margin-top: 11px;
  font-size: .43em;
  letter-spacing: .025em;
}

.tagline {
  width: max-content;
  max-width: 100%;
  margin: 19px 0 0;
  padding: 9px 18px 7px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  font-size: clamp(19px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.rainbow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(430px, 82vw);
  height: 13px;
  margin-top: 16px;
  box-shadow: 3px 3px 0 rgba(67, 40, 24, .16);
}

.rainbow span:nth-child(1) { background: var(--purple); }
.rainbow span:nth-child(2) { background: var(--pink); }
.rainbow span:nth-child(3) { background: var(--orange); }
.rainbow span:nth-child(4) { background: var(--yellow); }

.portal-links,
.catalog-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(11px, 2vw, 20px);
}

.portal-links { margin-top: 15px; }

.portal-links a {
  position: relative;
  padding: 8px 4px 6px;
  font-family: var(--display);
  font-size: clamp(23px, 3.5vw, 38px);
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
}

.portal-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .16s ease;
  content: "";
}

.portal-links a:hover::after,
.portal-links a:focus-visible::after { transform: scaleX(1); }
.portal-links a:focus-visible { outline: none; }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: inset 0 0 0 2px rgba(23, 22, 20, .2);
}

.home-contact {
  display: block;
  width: min(390px, 74vw);
  margin-top: clamp(22px, 3vw, 34px);
  transform: rotate(-1deg);
  transition: transform .2s ease;
  text-decoration: none;
}

.home-contact:hover,
.home-contact:focus-visible { transform: rotate(-.25deg) translateY(-4px); }
.home-contact:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }

.home-contact img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 14px rgba(46, 29, 20, .28));
}

.contact-hint {
  display: inline-block;
  margin-top: 3px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.catalog-nav {
  position: relative;
  z-index: 2;
  margin: 18px clamp(24px, 6vw, 70px) 0;
  padding: 9px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.catalog-nav a {
  font-family: var(--display);
  font-size: clamp(15px, 2vw, 20px);
  letter-spacing: .025em;
  text-decoration: none;
}

.catalog-nav a[aria-current="page"] { color: var(--pink); }

.catalog-hero {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 3.5vw, 42px) 24px clamp(30px, 4vw, 46px);
  text-align: center;
}

.catalog-hero .eyebrow {
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.catalog-title {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(62px, 12vw, 145px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(83, 49, 27, .2);
}

.catalog-subtitle {
  margin: 11px 0 0;
  font-size: clamp(23px, 3.5vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
}

.catalog-section {
  position: relative;
  z-index: 2;
  padding: 0 clamp(24px, 6vw, 70px) clamp(54px, 7vw, 82px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 15px;
  border-bottom: 4px solid var(--ink);
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 5.5vw, 66px);
  font-weight: 400;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.section-head p {
  max-width: 410px;
  margin: 0 0 5px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.25;
}

.product-list {
  display: grid;
  gap: clamp(22px, 3vw, 32px);
  margin-top: 24px;
}

.product {
  display: grid;
  grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 3vw, 34px);
  padding: clamp(15px, 2.2vw, 23px);
  border: 3px solid var(--ink);
  background: rgba(241, 219, 185, .72);
  box-shadow: 8px 8px 0 rgba(23, 22, 20, .9);
}

.product:nth-child(even) { transform: rotate(.2deg); }
.product:nth-child(odd) { transform: rotate(-.15deg); }

.product-photo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 265px;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, .05) 45% 55%, transparent 55%), #211f1b;
  color: var(--paper-light);
  font-family: var(--display);
  font-size: clamp(18px, 2.5vw, 28px);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.product-photo::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  height: 12px;
  background: linear-gradient(90deg, var(--purple) 0 25%, var(--pink) 25% 50%, var(--orange) 50% 75%, var(--yellow) 75%);
  content: "";
}

.product-photo.has-image {
  min-height: 0;
  height: auto;
  width: min(100%, 360px);
  justify-self: center;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.product-photo.has-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.product-photo.has-image::after { display: none; }

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

.product-number {
  margin: 0 0 12px;
  padding: 5px 10px 4px;
  background: var(--ink);
  color: var(--paper-light);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.product h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.description {
  max-width: 610px;
  margin: 20px 0;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.35;
}

.product-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  width: 100%;
  margin: auto 0 0;
  padding-top: 15px;
  border-top: 2px solid var(--ink);
  font-size: clamp(16px, 2vw, 20px);
}

.product-meta dt { font-weight: 700; }
.product-meta dd { margin: 0; }

.stock {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-family: var(--display);
  font-size: 13px;
  text-transform: uppercase;
}

.stock::before { width: 11px; height: 11px; border-radius: 50%; background: var(--orange); content: ""; }

.catalog-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 clamp(24px, 6vw, 70px);
  padding: 20px 0 clamp(38px, 5vw, 58px);
  border-top: 3px solid var(--ink);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
}

.telegram-link {
  padding: 9px 14px 8px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper-light);
  font-family: var(--display);
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.telegram-link:hover,
.telegram-link:focus-visible { background: var(--pink); outline: none; }

@media (max-width: 760px) {
  body { padding: 4px; }
  .site-header { padding: 18px 20px 0; }
  .vhs-logo { width: 90px; }
  .welcome { min-height: calc(100vh - 110px); padding: 54px 18px 72px; }
  .home-page .welcome { min-height: 100vh; padding-top: 112px; }
  .home-title { font-size: clamp(47px, 14.8vw, 70px); }
  .tagline { padding-inline: 9px; font-size: clamp(17px, 5.5vw, 23px); }
  .portal-links { gap: 8px 12px; margin-top: 13px; }
  .portal-links a { font-size: 24px; }
  .dot { width: 8px; height: 8px; }
  .home-contact { width: min(360px, 88vw); }
  .catalog-nav { margin: 18px 20px 0; gap: 9px 12px; }
  .catalog-hero { padding: 30px 20px 34px; }
  .catalog-section { padding: 0 20px 58px; }
  .section-head { display: block; }
  .section-head p { margin-top: 13px; }
  .product { grid-template-columns: 1fr; gap: 22px; box-shadow: 5px 5px 0 var(--ink); }
  .product-photo { min-height: 220px; }
  .product-photo.has-image { height: auto; }
  .catalog-footer { align-items: flex-start; flex-direction: column; margin-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portal-links a::after,
  .home-contact { transition: none; }
}
