

.contact-note {

--contact-coin: var(--contact-coin-size, 150px);

--nick: calc(var(--contact-coin) / 0.82);

--flap-rot: -13deg;

--back-base: #dbe9d5;
  --back-shade: 84 112 72;
  --back-deep: 50 70 42;

--contact-rule: rgb(var(--back-shade) / 0.36);

position: relative;

width: var(--note-w);
  margin-left: calc(-1 * var(--note-bleed));

font-family: "Homemade Apple", cursive;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--note-ink);

transform-origin: 0 0;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.contact-note {
  --nick-folded: calc(var(--nick) * var(--contact-fold-k, 1));
  --fold-up: calc(var(--nick-folded) * 1.3002);
  --fold-left: calc(var(--nick-folded) * 0.8124);
  --fold-tx: calc(var(--nick-folded) * 0.13158);
  --fold-ty: calc(var(--nick-folded) * 0.08221);
}

@property --contact-fold-turn {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
.contact-note > * {
  --contact-fold-turn: initial;
}
.contact-note::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;

background: rgba(var(--shadow-rgb), var(--contact-fold-shade, 0.17));
  opacity: var(--contact-fold-turn, 0);
  will-change: opacity;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--fold-up)),
    calc(100% - var(--fold-left)) 100%,
    0 100%
  );
}

@media (min-width: 761px) and (max-width: 960px) {
  .contact-note {
    width: calc(100% + 2 * var(--note-bleed));
  }

}

@media (max-width: 760px) {

.contact-note {

--note-bleed: 22px;
    --contact-fs: clamp(0.88rem, 6.2vw, 1.26rem);

--contact-head: clamp(19px, 6.15vw, 34px);
    width: calc(100% + 2 * var(--note-bleed));
    font-size: var(--contact-fs);
    line-height: 1.4;
  }

}

:root.theme-dark .contact-note {
  --contact-fold-shade: 0.1;
  --back-base: #2f3a2c;
  --back-shade: 12 18 10;
  --back-deep: 0 0 0;
  --contact-rule: rgba(214, 226, 204, 0.2);
}

