@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@500;700;800&display=swap");

:root {
  color-scheme: light;
  font-family: "Tajawal", Tahoma, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #f8eedc;
  color: #593c32;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 14% 16%, rgb(255 255 255 / 58%), transparent 32rem),
    #f8eedc;
}

.page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.note {
  position: relative;
  width: min(100%, 680px);
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(32px, 8vw, 72px);
  border: 1px solid rgb(138 79 61 / 13%);
  border-radius: 5px 5px 18px 5px;
  background: #fff1d6;
  box-shadow: 0 22px 55px rgb(91 62 46 / 12%), 0 3px 8px rgb(91 62 46 / 5%);
  animation: arrive 650ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.note::after {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 0;
  height: 0;
  border-block-start: 42px solid #f2dfbd;
  border-inline-end: 42px solid transparent;
  content: "";
  filter: drop-shadow(2px 2px 2px rgb(91 62 46 / 8%));
}

.note__rule {
  position: absolute;
  inset-inline: clamp(32px, 8vw, 72px);
  inset-block-end: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(138 79 61 / 17%), transparent);
}

h1 {
  max-width: 100%;
  margin: 0;
  color: #593c32;
  font-size: clamp(2rem, 6.3vw, 3.6rem);
  font-weight: 800;
  line-height: 1.65;
  text-align: center;
  text-wrap: balance;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 18px;
  }

  .note {
    min-height: 220px;
  }
}
