* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  background: #eed8d8;
}

body {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  background: #eed8d8 url("./assets/sand.svg") 0 0 / 260px 260px;
  color: #1d009f;
  font-family: "La Belle Aurore", cursive;
}

/* Statues — 608×1734, bleeding off both edges (design frame 1600 wide). */
.statue {
  position: absolute;
  top: -321px;
  width: 608px;
  height: 1734px;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.statue--left  { left: -324px; }
.statue--right { right: -256px; }

main {
  position: relative;
  z-index: 1;
  width: min(600px, 100% - 32px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.bar {
  flex: none;
}

.bar--top {
  height: 124px;
  background: #0026ff;
}

/* Fills whatever height the viewport has left below the letter. */
.bar--bottom {
  flex: 1 0 auto;
  min-height: 160px;
  background: #16278d;
}

.piece {
  padding: 79px 0 88px;
}

/* Date — outlined glyphs as a mask over blue + texture at 50%. */
.date {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 73.4395;
  overflow: hidden;
  background: #0026ff;
  -webkit-mask: url("./assets/date.svg") no-repeat 0 0 / 100% 100%;
          mask: url("./assets/date.svg") no-repeat 0 0 / 100% 100%;
}

.date img {
  position: absolute;
  left: 0;
  top: -247.3%;
  width: 99.35%;
  height: 540.8%;
  opacity: 0.5;
}

.letter {
  margin-top: 48px;
  font-size: 16px;
  line-height: 24px;
  word-break: break-word;
}

.letter p + p {
  margin-top: 24px;
}

/* Statues crowd the column below the design width — let them recede. */
@media (max-width: 1400px) {
  .statue--left  { left: -420px; }
  .statue--right { right: -360px; }
}

@media (max-width: 1100px) {
  .statue { opacity: 0.35; }
}

@media (max-width: 700px) {
  .statue { display: none; }
  .bar--top { height: 80px; }
  .bar--bottom { min-height: 120px; }
  .piece { padding: 56px 0 64px; }
  .letter { font-size: 17px; line-height: 26px; }
  .letter p + p { margin-top: 26px; }
}
