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

:root {
  color-scheme: dark;
  --ground: #152820;
  --ink: #f5f3e7;
  --muted: #c8d2c4;
  --accent: #edce82;
  --rule: #57705c;
  font-family: Vazirmatn, Tahoma, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--ground);
  color: var(--ink);
}

main {
  width: min(100% - 3rem, 60rem);
  padding-block: clamp(2rem, 7vw, 5rem);
}

.logo {
  display: block;
  height: auto;
  width: clamp(6rem, 11vw, 8rem);
  margin-block-end: clamp(1rem, 3vw, 2rem);
}

.announcement {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  border-block: 1px solid var(--rule);
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

h1, p { margin: 0; }

h1 {
  font-size: clamp(2.35rem, 5vw, 4.15rem);
  line-height: 1.4;
  font-weight: 750;
}

.description {
  max-width: 34ch;
  margin-block-start: 0.55rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.95;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  margin-block-start: clamp(1.3rem, 3vw, 2.4rem);
  color: var(--accent);
  font: 500 clamp(1.2rem, 2vw, 1.6rem)/1.3 Georgia, serif;
}

.status::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.illustration {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 1.4;
  justify-self: center;
  direction: ltr;
}

.voucher {
  position: absolute;
  width: 74%;
  aspect-ratio: 1.63;
  border-radius: 0.9rem;
  box-shadow: 0 12px 24px #08170f55;
}

.voucher-back {
  left: 6%;
  top: 12%;
  transform: rotate(-16deg);
  background: repeating-linear-gradient(94deg, #567463 0 2px, #64826d 2px 5px);
  border: 1px solid #8ca18d;
}

.voucher-front {
  display: grid;
  place-items: center;
  left: 15%;
  top: 31%;
  transform: rotate(8deg);
  overflow: hidden;
  border: 1px solid #f3dda5;
  background: linear-gradient(115deg, #b69957, #e9d3a0 38%, #c4a76b);
}

.voucher-front::before {
  content: "";
  position: absolute;
  width: 95%;
  aspect-ratio: 1;
  left: 37%;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse, transparent 0 5px, #736132 5px 6px);
  transform: skew(-15deg);
}

.voucher-front i {
  position: absolute;
  left: 10%;
  bottom: 22%;
  width: 19%;
  height: 7%;
  border-block: 2px solid #605a37;
}

@media (max-width: 640px) {
  .announcement {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding-block: 1.75rem;
  }

  .illustration {
    width: min(78%, 15rem);
  }
}
