@font-face { font-family: Fredoka; src: url('./assets/fredoka-bold.ttf'); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url('./assets/nunito-sans.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: Nunito; src: url('./assets/nunito-sans-bold.ttf'); font-weight: 700; font-display: swap; }
* { box-sizing: border-box; }
body { margin: 0; background: #c8dfd1; color: #294543; font: 400 16px/1.6 Nunito, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #5c5cde; outline-offset: 5px; }
[hidden] { display: none !important; }
.post-brand { max-width: 1080px; margin: 0 auto; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }
.post-brand a { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 700 22px Fredoka, sans-serif; }
.post-m { display: inline-block; width: 37px; height: 27px; background: #5c5cde; mask: url('../logom.png') center / contain no-repeat; -webkit-mask: url('../logom.png') center / contain no-repeat; }
main { max-width: 920px; padding: 0 30px; margin: 0 auto; }
.delivery-note { text-align: center; margin: 18px 0 25px; font-size: 15px; }
.received-card { position: relative; background: #fffdf2; padding: 24px; border-radius: 5px; box-shadow: 0 14px 40px #29454321; }
.received-card::before, .received-card::after { content: ''; position: absolute; left: 0; right: 0; height: 7px; background: repeating-linear-gradient(135deg, #5c5cde 0 15px, #fffdf2 15px 30px, #c7836c 30px 45px, #fffdf2 45px 60px); }
.received-card::before { top: 0; border-radius: 5px 5px 0 0; }
.received-card::after { bottom: 0; border-radius: 0 0 5px 5px; }
.scene-picture { width: 100%; height: auto; }
.received-body { padding: 23px 8px 8px; position: relative; }
h1 { font: 700 clamp(27px, 4.2vw, 42px)/1.12 Fredoka, sans-serif; color: #5c5cde; letter-spacing: -.8px; margin: 0 90px 12px 0; }
.scene-caption { margin: 0 90px 25px 0; font-size: 14px; color: #536b60; }
.post-stamp { position: absolute; top: 25px; right: 8px; width: 68px; height: 85px; border: 3px dotted #fffdf2; outline: 1px solid #e7e6fb; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #e7e6fb; }
.post-stamp > span:last-child { font-size: 10px; font-weight: 700; color: #5c5cde; }
.post-stamp .post-m { width: 33px; height: 24px; }
.card-to { margin: 0 0 10px; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.card-message { margin: 0 0 25px; font-size: 21px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.card-from { margin: 0; font-size: 14px; font-weight: 700; color: #5c5cde; overflow-wrap: anywhere; }
.recipient-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.recipient-actions a, .recipient-actions button { border: 1px solid #96b9a4; background: transparent; padding: 10px 17px; border-radius: 22px; text-decoration: none; font-size: 13px; color: #294543; }
.recipient-actions a:hover, .recipient-actions button:hover { background: #e1eddd; }
.recipient-status { font-size: 13px; text-align: center; min-height: 20px; margin: 14px 0; }
.island-invitation { display: flex; gap: 36px; align-items: center; padding: 35px 0; margin: 30px 0 0; border-top: 1px solid #9ebeab; }
.island-invitation h2 { font: 700 27px/1.18 Fredoka, sans-serif; margin: 0 0 12px; max-width: 440px; }
.island-invitation p { font-size: 14px; margin: 0; max-width: 500px; }
.explore-island { flex-shrink: 0; padding: 14px 20px; border-radius: 26px; background: #5c5cde; color: white; font-weight: 700; font-size: 14px; text-decoration: none; }
.explore-island span { margin-left: 10px; }
footer { max-width: 920px; margin: 0 auto; padding: 20px 30px 35px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 12px; }
@media (max-width: 640px) {
  .post-brand { padding: 22px 20px; }
  main { padding: 0 15px; }
  .delivery-note { font-size: 13px; margin: 5px 0 20px; }
  .received-card { padding: 14px; }
  .received-body { padding: 23px 3px 8px; }
  h1 { margin-right: 70px; font-size: 28px; }
  .scene-caption { margin-right: 70px; font-size: 12px; }
  .post-stamp { width: 57px; height: 72px; right: 0; gap: 8px; }
  .post-stamp > span:last-child { font-size: 8px; }
  .card-message { font-size: 18px; }
  .island-invitation { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 7px; }
  footer { padding: 10px 22px 25px; }
}
