/* Page frame: excluded from the conversation preview. */
html { color-scheme: light; background: #fff8e8; }
body { margin: 0; padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
/* Card styles. */
#sunshine-card {
  --sun-ink: #913124;
  --sun-paper: #fffaf0;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  color: var(--sun-ink);
  font-family: 'DM Sans', Arial, sans-serif;
  color-scheme: light;
}
#sunshine-card, #sunshine-card * { box-sizing: border-box; }
#sunshine-card [hidden] { display: none !important; }
#sunshine-card button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
#sunshine-card button:focus-visible { outline: 3px solid #174e66; outline-offset: 5px; }
#sunshine-card .sc-cover-view { width: min(100%, 400px); margin: 0 auto; text-align: center; }
#sunshine-card .sc-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  isolation: isolate;
  background: #ffe8a5;
  border-radius: 6px;
  box-shadow: 0 12px 32px -16px rgba(99, 44, 16, .27), 0 1px 3px rgba(99, 44, 16, .07);
}
#sunshine-card .sc-art { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; object-fit: cover; }
#sunshine-card .sc-lettering { position: absolute; top: 15%; left: 12%; right: 12%; text-align: center; }
#sunshine-card .sc-title {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 48px;
  font-size: 13cqw;
  line-height: 1.01;
  font-weight: 400;
  letter-spacing: -.025em;
}
#sunshine-card .sc-title span { display: block; }
#sunshine-card .sc-title em { display: block; margin-top: 4px; font-size: 1.54em; line-height: 1.03; font-weight: 400; }
#sunshine-card .sc-cover-signature {
  margin: 17px 0 0;
  margin-block-start: 4.5cqw;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: #7f2b20;
}
#sunshine-card .sc-open {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 17px;
  min-height: 52px;
  padding: 13px 28px;
  margin: 22px auto 0;
  border: 1px solid #913124;
  border-radius: 100px;
  color: #fffaf0;
  background: #913124;
  font: 500 16px/1.5 'DM Sans', Arial, sans-serif;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}
#sunshine-card .sc-open:hover { background: #78271c; border-color: #78271c; }
#sunshine-card .sc-open:active { transform: translateY(1px); }
#sunshine-card .sc-open span { font-size: 20px; font-weight: 400; line-height: 1; }
#sunshine-card .sc-letter { overflow: hidden; border-radius: 6px; background: var(--sun-paper); box-shadow: 0 12px 40px -18px rgba(99, 44, 16, .17); }
#sunshine-card .sc-letter-body { padding: clamp(24px, 5vw, 52px); }
#sunshine-card .sc-close { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 0 8px; border: 0; color: #913124; background: transparent; font: 400 14px/1.5 'DM Sans', Arial, sans-serif; cursor: pointer; }
#sunshine-card .sc-close span { font-size: 20px; line-height: 1; }
#sunshine-card .sc-letter h2 { margin: 19px 0 29px; color: var(--sun-ink); font: 400 clamp(32px, 5.5vw, 45px)/1.14 'DM Serif Display', Georgia, serif; letter-spacing: -.02em; text-wrap: balance; }
#sunshine-card .sc-message { font: 400 18px/1.8 Georgia, serif; color: #4d352b; overflow-wrap: break-word; }
#sunshine-card .sc-message p { margin: 0 0 25px; }
#sunshine-card .sc-message .sc-closing { margin-top: 30px; margin-bottom: 0; color: #913124; }
#sunshine-card .sc-signature { margin: 31px 0 0; color: #913124; font: 400 30px/1.35 'Kalam', cursive; }
#sunshine-card .sc-garden-footer { height: 140px; background-color: #ffe8a5; background-image: url('assets/sunny-garden.webp'); background-repeat: no-repeat; background-size: 100% auto; background-position: center bottom; }
#sunshine-card .sc-letter.sc-entering { animation: sunshine-open 450ms cubic-bezier(.22, 1, .36, 1) both; }
#sunshine-card .sc-noscript { font-size: 16px; line-height: 1.5; text-align: center; }
@keyframes sunshine-open { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 360px) {
  #sunshine-card .sc-cover-signature { font-size: 16px; }
  #sunshine-card .sc-letter-body { padding: 22px; }
  #sunshine-card .sc-garden-footer { height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  #sunshine-card .sc-letter.sc-entering { animation: none; }
  #sunshine-card .sc-open { transition: none; }
}
