/*
  Available files in ../assets/fonts/:
  - Aujournuit-Densed.woff2
  - Aujournuit-Densed.woff
*/
@font-face {
  font-family: "Aujournuit Densed";
  src:
    url("../assets/fonts/Aujournuit-Densed.woff2") format("woff2"),
    url("../assets/fonts/Aujournuit-Densed.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
}

@font-face {
  font-family: "Aujournuit Densed Fallback";
  src: local("Times New Roman");
  size-adjust: 92%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --font-serif: "Aujournuit Densed", "Aujournuit Densed Fallback", serif;
  --frame: #fff;
  --note: #fff6bd;
  --ink: #111111;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-serif);
  background: var(--frame);
  color: var(--ink);
}

.frame {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px;
}

.stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.note {
  width: min(560px, 92vw);
  aspect-ratio: 56 / 39;
  background: var(--note);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
  transform: rotate(-3deg);
  padding: clamp(28px, 4vw, 46px) clamp(22px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.note p {
  margin: 0;
  font-size: clamp(1.35rem, 2.35vw, 2.24rem);
  line-height: 0.95;
  letter-spacing: 0;
  white-space: nowrap;
}

.note p + p {
  margin-top: clamp(4px, 0.55vw, 8px);
}

@media (max-width: 980px) {
  .note p {
    font-size: 1.78rem;
    line-height: 0.97;
  }
}

@media (max-width: 720px) {
  .frame {
    padding: 18px;
  }

  .note {
    transform: rotate(-2deg);
    padding: 22px 18px;
  }

  .note p {
    font-size: 1.22rem;
    line-height: 1;
  }
}

@media (max-width: 420px) {
  .note p {
    font-size: 1.04rem;
  }
}
