@font-face {
  font-family: Manrope;
  src: url("./assets/manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Manrope, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: clamp(16px, .833333333vw, 20px);
  --gold: #ddb36b;
  --title: #e1bf80;
  --gutter: 5.20833333vw;
}
* { box-sizing: border-box; }
body, h1, p { margin: 0; }
body { background: #100e0d; color: white; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #f4d6a3; outline-offset: 3px; }

.screen {
  --sound-inset: calc(20px * var(--sound-scale, 1));
  --sound-size: calc(40px * var(--sound-scale, 1));
  --sound-hit-size: calc(44px * var(--sound-scale, 1));
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
}
.scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.scene img, .scene video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.scene__film { visibility: hidden; }
.scene.is-playing .scene__film { visibility: visible; }

.masthead {
  display: flex; align-items: flex-start; gap: 1.1875rem;
  padding: 1.875rem 4.89583333vw 0 var(--gutter);
}
.brand { display: flex; flex: none; align-items: flex-start; gap: .6875rem; }
.brand__name {
  width: 9.3125rem; font-weight: 800; font-size: 3.1278625rem; line-height: 3.909828125rem;
  letter-spacing: -.04em; color: #ecc786;
}
.brand__category {
  width: 4.625rem; margin-top: 1.17375rem;
  font-size: .9375rem; line-height: 1.0625rem; font-weight: 500;
}
.shop-nav {
  display: flex; flex: 1; align-items: center; justify-content: space-between;
  padding-top: .6875rem; color: var(--gold);
}
.outlined {
  display: inline-flex; align-items: center; flex-shrink: 0; height: 3.25rem;
  padding: .75rem 1.25rem .875rem; border: 1px solid #fff; border-radius: .25rem;
  background: transparent; color: var(--gold); font-size: 1.1875rem; line-height: 1.5rem; font-weight: 700;
}
.icon {
  display: block; flex: none; width: 1.5rem; height: 1.5rem; background: currentColor;
  mask: var(--icon) center / contain no-repeat;
}
.icon--menu { --icon: url("./assets/menu.svg"); width: 1.375rem; height: 1.375rem; }
.icon--bag { --icon: url("./assets/bag.svg"); }
.icon--arrow { --icon: url("./assets/arrow.svg"); color: var(--title); transition: color 180ms ease, transform 180ms ease-out; }
.catalog-entry { gap: .625rem; width: 9.4375rem; }
.shop-links, .service-links, .bag { display: flex; align-items: center; }
.shop-links { gap: 1.5rem; font-size: 1.125rem; font-weight: 500; line-height: 1.4375rem; }
.service-links { gap: 1.875rem; }
.service-links a:first-child { min-width: 5.1875rem; }
.service-links a:last-child { min-width: 5.125rem; }
.bag-label { min-width: 4.5625rem; }
.bag { gap: .5625rem; padding: .625rem .25rem; }
.brand__name, .shop-nav a, .shop-menu a, .outlined { transition: color 180ms ease; }
.menu-toggle, .shop-menu { display: none; }

.shop-menu {
  position: fixed;
  z-index: 3;
  inset: 0;
  overflow: auto;
  padding: calc(84px + env(safe-area-inset-top)) var(--gutter) 24px;
  color: var(--gold);
  background: #100e0d;
}

.shop-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-block-end: 1px solid #544533;
  font-size: 18px;
  line-height: 1.3;
}

.sound-toggle {
  position: absolute;
  z-index: 2;
  inset-inline-end: var(--sound-inset);
  inset-block-end: var(--sound-inset);
  display: grid;
  place-items: end;
  inline-size: var(--sound-hit-size);
  block-size: var(--sound-hit-size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #000;
}

.sound-toggle__face {
  display: grid;
  place-items: center;
  inline-size: var(--sound-size);
  block-size: var(--sound-size);
  border-radius: inherit;
  background: #fff;
  transition: transform 300ms ease;
}

.sound-toggle[aria-pressed="true"] { color: #fff; }

.sound-toggle[aria-pressed="true"] .sound-toggle__face {
  background: #000;
  box-shadow: inset 0 0 0 calc(1px * var(--sound-scale, 1)) rgb(255 255 255 / 75%);
}

.sound-toggle svg {
  inline-size: 40%;
  block-size: auto;
}

.sound-toggle__waves,
.sound-toggle__mute {
  transition: opacity 300ms ease;
}

.sound-toggle__waves,
.sound-toggle[aria-pressed="true"] .sound-toggle__mute { opacity: 0; }
.sound-toggle[aria-pressed="true"] .sound-toggle__waves { opacity: 1; }

@media (hover: hover) {
  .sound-toggle:not([aria-pressed="true"]):hover .sound-toggle__face { background: #eee; }
}

@media (prefers-reduced-motion: no-preference) {
  .sound-toggle:not([hidden]) { animation: sound-appear 240ms ease-out both; }
  .sound-toggle:active .sound-toggle__face { transform: scale(.7); }
  @keyframes sound-appear { from { opacity: 0; } to { opacity: 1; } }
}

.message { margin-top: auto; padding: 3rem var(--gutter) max(2rem, 9.259259vh); }
.message__body { width: 39.0625rem; max-width: 100%; }
h1 {
  min-height: 8.175rem; font-size: 52px; line-height: 1.2;
  font-weight: 600; letter-spacing: -.02em; color: var(--title);
}
.description { width: min(100%, 38.125rem); margin-top: 1.25rem; min-height: 1.95rem; font-size: clamp(16px, 1.3125rem, 20px); line-height: 1.3; }
.catalog-cta { display: flex; justify-content: space-between; width: 18.75rem; max-width: 100%; margin-top: 2.375rem; }

@media (hover: hover) {
  .brand:hover .brand__name, .shop-nav a:hover, .shop-menu a:hover, .outlined:hover, .catalog-cta:hover .icon--arrow { color: white; }
  .catalog-cta:hover .icon--arrow { transform: translateX(4px); }
}

@media (min-width: 2160px) {
  h1 { font-size: 64px; }
}

@media (width >= 1000px) {
  .scene::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 154px;
    background: linear-gradient(#100e0de8, #100e0dbf 94px, transparent);
  }
}

@media (width < 1000px) {
  :root { font-size: 16px; --gutter: max(18px, env(safe-area-inset-left)); }
  .screen { display: grid; grid-template-rows: auto minmax(120px, 1fr) auto; }
  .scene { position: relative; inset: auto; grid-area: 2 / 1; }
  .masthead {
    grid-area: 1 / 1; align-items: center; justify-content: space-between; gap: 12px;
    padding: max(12px, env(safe-area-inset-top)) var(--gutter) 12px;
  }
  .brand { align-items: center; gap: 7px; }
  .brand__name { width: auto; font-size: 32px; line-height: 38px; }
  .brand__category { width: auto; margin: 0; font-size: 15px; line-height: 1.1; }
  .shop-nav { display: none; }
  .menu-toggle {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    flex: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gold);
  }
  .menu-toggle span {
    display: block; width: 24px; height: 2px; background: currentColor;
  }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu-open .masthead { position: relative; z-index: 4; }
  body:has(.screen.menu-open) { overflow: hidden; }
  .shop-menu:not([hidden]) { display: block; }
  .message { grid-area: 3 / 1; margin: 0; padding: 20px var(--gutter) max(20px, env(safe-area-inset-bottom)); }
  .message__body { width: auto; }
  h1 { min-height: 0; font-size: 36px; line-height: 1.04; }
  .description { margin-top: 12px; min-height: 0; font-size: 16px; line-height: 22px; }
  .catalog-cta { width: 260px; height: 52px; margin-top: 18px; padding: 0 20px; font-size: 16px; line-height: 22px; }
}
@media (max-width: 360px) {
  :root { --gutter: max(14px, env(safe-area-inset-left)); }
  .masthead, .brand { gap: 5px; }
  .brand__name { font-size: 28px; }
}
@media (560px <= width < 1000px) {
  h1 { font-size: 44px; }
}
@media (width < 1000px) and (aspect-ratio < 1/1) {
  .sound-toggle {
    position: relative;
    inset: auto;
    grid-area: 2 / 1;
    align-self: end;
    justify-self: end;
    margin-inline-end: var(--sound-inset);
    margin-block-end: var(--sound-inset);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .menu-toggle span { transition: transform 180ms ease; }
}
@media (width < 1000px) and (min-aspect-ratio: 1/1) {
  .screen { display: flex; }
  .scene { position: absolute; inset: 0; }
  .masthead { background: #100e0d; }
  .message { width: max-content; max-width: 70%; margin-top: auto; background: #100e0d; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-cta .icon--arrow { transition: color 180ms ease; }
  .catalog-cta:hover .icon--arrow { transform: none; }
}
