/* Ostayar — coming-soon page.
   Concept: a shopfront with its sign up and the roller shutter rising for opening day. */

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --facade: #c5ccc8;
  --sign: #0e4d3a;
  --sign-text: #ffffff;
  --brass: #c9a227;
  --slat: #b4bcc0;
  --slat-groove: #8c969b;
  --slat-shade: #a2abaf;
  --bar: #66727a;
  --interior: #eef2ef;
  --interior-text: #0e4d3a;
  --muted: #45524c;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
  background: var(--facade);
}

.shop {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 16px 1.5rem;
}

.sign,
.front {
  width: min(100%, 34rem);
}

/* Shop sign: green board with a brass trim line. */
.sign {
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: center;
  background: var(--sign);
  color: var(--sign-text);
  border-radius: 4px 4px 0 0;
}

.sign::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--brass);
  border-radius: 2px;
  pointer-events: none;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 13vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.trade {
  margin: 0.4rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brass);
}

/* Shop opening: interior behind, shutter in front. */
.front {
  position: relative;
  height: clamp(17rem, 52vh, 22rem);
  overflow: hidden;
  background: var(--interior);
  border: 12px solid var(--sign);
  border-top-width: 0;
}

.inside {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.5rem 1.5rem 1.75rem;
  text-align: center;
}

h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--interior-text);
}

.inside p {
  margin: 0 auto;
  max-width: 40ch;
}

.shutter {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 42%;
  background: repeating-linear-gradient(
    to bottom,
    var(--slat) 0 13px,
    var(--slat-shade) 13px 15px,
    var(--slat-groove) 15px 17px
  );
  border-bottom: 10px solid var(--bar);
  animation: shutter-up 1.6s cubic-bezier(0.45, 0, 0.2, 1) 300ms both;
}

/* Handle on the bottom bar. */
.shutter::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 56px;
  height: 6px;
  margin-left: -28px;
  border-radius: 0 0 4px 4px;
  background: #3f484e;
  transform: translateY(10px);
}

@keyframes shutter-up {
  from {
    height: 100%;
  }
  to {
    height: 42%;
  }
}

.foot {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .shutter {
    animation: none;
  }
}
