/* Fixosta — coming-soon page.
   Concept: a repair-shop job tag hanging on a pegboard, stamped "in progress". */

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

:root {
  --pegboard: #9a7752;
  --peg-hole: #5c4329;
  --tag: #e8ddbe;
  --tag-edge: #cdbf98;
  --ink: #1d3557;
  --steel: #5b6670;
  --stamp: #b42318;
  --string: #3a2c1d;
}

*,
*::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(--ink);
  background-color: var(--pegboard);
  background-image: radial-gradient(circle, var(--peg-hole) 0 3px, transparent 3.6px);
  background-size: 30px 30px;
  background-position: center top;
}

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

/* Peg hook and string: the tag hangs from it. */
.hook {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--steel);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

.hook::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 2px;
  height: 46px;
  margin-left: -1px;
  background: var(--string);
}

.tag {
  position: relative;
  width: min(100%, 25rem);
  margin-top: 42px;
  /* Bottom padding leaves room for the stamp under the note. */
  padding: 3.25rem 2rem 6rem;
  background: var(--tag);
  border: 1px solid var(--tag-edge);
  /* Shipping-tag silhouette: clipped top corners. */
  clip-path: polygon(22% 0, 78% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
  transform: rotate(-1.5deg);
  transform-origin: 50% 0;
}

.eyelet {
  position: absolute;
  top: 1.1rem;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: var(--pegboard);
  box-shadow: 0 0 0 4px var(--tag-edge);
}

.tag-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

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

.trade {
  margin: 0.5rem 0 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--steel);
}

/* The tag's form fields: label on the start side, handwritten-style value on a dashed line. */
.job {
  margin: 0 0 1.5rem;
}

.job div {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--steel);
}

.job dt {
  flex: 0 0 3.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--steel);
}

.job dd {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
}

.note {
  margin: 0;
  max-width: 30ch;
  font-size: 0.9375rem;
  color: var(--ink);
}

.stamp {
  position: absolute;
  bottom: 1.5rem;
  left: 1.25rem;
  margin: 0;
  padding: 0.3rem 0.85rem 0.4rem;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--stamp);
  border: 3px solid var(--stamp);
  border-radius: 6px;
  outline: 1px solid var(--stamp);
  outline-offset: 3px;
  opacity: 0.82;
  mix-blend-mode: multiply;
  transform: rotate(-14deg);
  animation: stamp 420ms cubic-bezier(0.2, 0.9, 0.3, 1.2) 500ms both;
}

@keyframes stamp {
  from {
    opacity: 0;
    transform: rotate(-14deg) scale(1.8);
  }
  to {
    opacity: 0.82;
    transform: rotate(-14deg) scale(1);
  }
}

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

@media (max-width: 380px) {
  .tag {
    padding-inline: 1.25rem;
  }
}

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