/* proSana – single page layout */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: #fff;
}

body {
  margin: 0;
  background: #fff;
  color: #222;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;

  /* page margins: left 10%, top 10%, right 20%, bottom 10% */
  padding-top:    10vh;
  padding-right:  10vw;
  padding-bottom: 20vh;
  padding-left:   10vw;
  min-height: 100vh;
}

/* centered column inside the margins */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* 1) logo – centered, scales with width and height */
.logo { width: 100%; text-align: center; }
.logo img {
  display: block;
  margin: 0 auto;
  width: min(100%, 24rem);
  max-height: 18vh;
  object-fit: contain;
}

/* 2) catalog cover – 5% below the logo, perspective view + soft shadow */
.catalog {
  margin-top: 2vh;
  width: 100%;
  display: flex;
  justify-content: center;
  perspective: 1500px;
}
.catalog__link {
  display: block;
  max-width: 100%;
  transform: rotateX(32deg) rotateY(-22deg) rotateZ(30deg);
  transform-origin: center;
  box-shadow: 10px 12px 50px rgba(0, 0, 0, 0.40);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.catalog__link:hover,
.catalog__link:focus-visible {
  transform: rotateX(18deg) rotateY(-10deg) rotateZ(4deg);
  box-shadow: 8px 10px 18px rgba(0, 0, 0, 0.22);
}
.catalog__link img {
  display: block;
  max-width: 100%;
  max-height: 45vh;
  width: auto;
  height: auto;
}

/* 3) text – 5% below the cover */
.text {
  margin-top: 5vh;
  width: 100%;
  max-width: 100%;
  text-align: center;
  color: #666;
  /* Optima (macOS/iOS); fallbacks with a similar humanist look */
  font-family: Optima, "Optima nova", Candara, "Segoe UI", "Gill Sans", sans-serif;
  /* scales with canvas width and height */
  font-size: clamp(1rem, 0.5vw + 1.2vh, 3rem);
  line-height: 1.5;
}
.text a { color: inherit; text-decoration: none; }
.text a:hover,
.text a:focus-visible { color: #312783; }
.text p { margin: 0 0 1em; }

/* small screens: use the width better */
@media (max-width: 600px) {
  body { padding-left: 6vw; padding-right: 10vw; }
}

/* TEMPORARY layout grid – remove class="debug" from <body> to switch off */
.debug body, body.debug { outline: 1px dashed #999; outline-offset: -1px; }
.debug .page    { outline: 1px solid red;    }
.debug .logo    { outline: 1px solid blue;   }
.debug .catalog { outline: 1px solid green;  }
.debug .text    { outline: 1px solid orange; }
.debug .catalog__link { outline: 1px solid magenta; }
