/* Final refinements: real photographs, a personal voice player and readable mobile copy. */
.presence-layout { grid-template-columns: .92fr 1.08fr; gap: 64px; }
.presence-copy>p { font-size: 16px; }
.presence-copy .presence-emphasis { margin-top: 25px; }
.voice-note { width: 100%; max-width: 590px; margin: 0; padding: 34px; border-radius: 23px; background: radial-gradient(ellipse at 15% 0%, #f3bba513, transparent 65%), #35232e; border: 1px solid #bc8a824a; box-shadow: 0 22px 50px #110b121a; scroll-margin-top: 28px; }
.voice-heading { align-items: center; gap: 18px; }
.voice-heading>div { min-width: 0; }
.voice-stamp { flex: 0 0 58px; width: 58px; height: 58px; display: flex; justify-content: center; align-items: center; border: 1px solid #d9a79180; border-radius: 50%; color: var(--peach); font-family: var(--serif); font-size: 29px; line-height: 1; }
.voice-stamp span { font-size: 14px; margin: 6px 0 0 3px; }
.voice-sender { display: block; font-size: 8px; letter-spacing: 1.7px; color: #d8b9c5; margin-bottom: 10px; }
.voice-heading h3 { font-size: 31px; letter-spacing: -.7px; line-height: 1.2; }
.voice-heading p { margin-top: 8px; font-size: 12px; line-height: 1.7; color: #d6bdc9; }
.voice-controls { display: flex; align-items: center; gap: 20px; margin-top: 31px; }
.voice-play { flex: 0 0 60px; width: 60px; height: 60px; border: 0; border-radius: 50%; background: var(--peach); color: var(--ink); display: flex; align-items: center; justify-content: center; transition: background .2s, box-shadow .3s; }
.voice-play:hover { background: var(--peach-light); box-shadow: 0 0 0 6px #f3bba514; }
.voice-play .icon { width: 25px; height: 25px; stroke-width: 2; }
.voice-timeline { flex: 1; min-width: 0; }
.voice-waveform { position: relative; height: 59px; border-radius: 5px; }
.voice-waveform svg { width: 100%; height: 100%; display: block; pointer-events: none; }
#voice-wave-base { fill: #a4808f; opacity: .66; }
#voice-wave-active { fill: var(--peach-light); }
.voice-wave-fill { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); pointer-events: none; }
.voice-waveform input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; touch-action: pan-y; }
.voice-waveform:focus-within { outline: 2px solid var(--peach); outline-offset: 6px; }
.voice-times { display: flex; justify-content: space-between; font-size: 11px; font-variant-numeric: tabular-nums; color: #d3b8c5; margin-top: 6px; }
.voice-note .voice-caption { padding-top: 19px; border-top: 1px solid #dcb1a52b; margin-top: 22px; color: #d8bdc9; font-size: 12px; line-height: 1.7; }
.voice-note.is-playing { border-color: #e6b09a8c; }
.voice-note.is-loading .voice-play { opacity: .7; }
.voice-continue { display: inline-flex; align-items: center; gap: 17px; color: var(--peach-light); font-size: 12px; margin-top: 8px; min-height: 44px; text-underline-offset: 5px; }
.voice-enhanced audio { display: none; }
.voice-note .audio-error a { text-underline-offset: 4px; }
.hug-block.hug-inline { min-height: 0; display: flex; flex-direction: row; gap: 20px; justify-content: center; text-align: left; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.hug-inline .hug-button { flex: 0 0 91px; width: 91px; height: 91px; }
.hug-inline .hug-heart { width: 38px; height: 38px; }
.hug-inline .hug-title { margin-top: 0; font-size: 14px; line-height: 1.6; }
.hug-inline .hug-caption { font-size: 12px; }
.presence .section-transition { margin-top: 30px; }
/* Complete photo compositions, with a quiet blurred echo behind the landscape shots. */
.memory-image { display: block; width: 100%; height: 400px; aspect-ratio: 4/5; padding: 0; border: 0; border-radius: 5px; background: #dacdbf; flex-shrink: 0; cursor: zoom-in; }
.memory-image .memory-photo { position: relative; z-index: 1; object-fit: contain; width: 100%; height: 100%; transform: none; }
.memory-image .memory-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(19px); opacity: .35; transform: scale(1.14); }
.memory-card:hover .memory-image .memory-photo { transform: none; }
.memory-card:hover .memory-image .memory-backdrop { transform: scale(1.14); }
.memory-index { z-index: 2; background: #21151fa8; }
.photo-enlarge { position: absolute; bottom: 13px; right: 12px; z-index: 3; border: 1px solid #ffefe34d; background: #21151fbb; color: #fff6ec; padding: 7px 12px; border-radius: 30px; font-size: 10px; font-weight: 400; line-height: 1.5; backdrop-filter: blur(6px); }
.memory-image:focus-visible { outline-offset: -4px; outline-color: var(--peach-light); }
.memory-date { min-height: 29px; line-height: 1.7; }
.memory-card h3 { font-size: 31px; line-height: 1.15; }
.memory-description { font-size: 14px; max-width: none; }
.memory-aside { font-size: 15px; }
.memory-toolbar .memory-controls>span { letter-spacing: .6px; min-width: 56px; text-align: center; }
.note-card>p { font-size: 15px; }
.letter-sheet p { font-size: 16px; }
.photo-dialog { position: fixed; inset: 0; width: min(1040px, calc(100% - 40px)); height: min(94vh, 1050px); height: min(94dvh, 1050px); max-width: none; max-height: none; margin: auto; padding: 0; overflow: hidden; border: 1px solid #a578754d; border-radius: 17px; background: #241921; color: var(--cream); box-shadow: 0 30px 110px #0008; }
.photo-dialog[open] { display: flex; flex-direction: column; }
.photo-dialog::backdrop { background: #0e090de8; backdrop-filter: blur(9px); }
.photo-dialog-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 26px 20px; flex-shrink: 0; }
.photo-dialog-bar .eyebrow { font-size: 8px; letter-spacing: 1.3px; color: #c5a5b3; }
.photo-dialog-bar h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.8px; margin-top: 7px; }
.photo-dialog-stage { position: relative; flex: 1; min-height: 120px; margin: 0 24px; overflow: hidden; touch-action: pan-y pinch-zoom; }
.photo-dialog-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.photo-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 26px 20px; flex-shrink: 0; }
.photo-dialog-footer>p { font: italic 17px/1.5 var(--serif); color: var(--peach); }
.photo-dialog-controls { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.photo-dialog-controls>span { color: #d8becb; font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.voice-mini { position: fixed; bottom: max(14px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(420px, calc(100% - 28px)); display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: #32222ff5; border: 1px solid #be8b7e8c; box-shadow: 0 9px 45px #160b1770; border-radius: 17px; z-index: 120; backdrop-filter: blur(14px); }
.voice-mini-play,.voice-mini-close { border: 0; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.voice-mini-play { background: var(--peach); color: var(--ink); }
.voice-mini-play .icon { width: 20px; height: 20px; stroke-width: 2; }
.voice-mini-close { background: transparent; color: #d3b8c5; }
.voice-mini-close .icon { width: 18px; height: 18px; }
.voice-mini-info { min-height: 44px; flex: 1; display: flex; flex-direction: column; justify-content: center; text-decoration: none; gap: 3px; }
.voice-mini-info>span:first-child { color: var(--peach-light); font-size: 13px; }
.voice-mini-info>span:last-child { font-size: 10px; color: #c7afbc; font-variant-numeric: tabular-nums; }
body.modal-open .voice-mini { visibility: hidden; }
.site-footer .footer-link { margin-top: 8px; }
@media (max-width: 1100px) and (min-width: 761px) {
  .presence-layout { gap: 30px; grid-template-columns: .85fr 1.15fr; }
  .voice-note { padding: 25px; }
  .voice-stamp { display: none; }
  .voice-heading h3 { font-size: 29px; }
  .voice-controls { gap: 14px; }
  .voice-play { width: 52px; height: 52px; flex-basis: 52px; }
}
@media (max-width: 760px) {
  .hero-art-mobile { height: 315px; }
  .hero-art { height: 308px; }
  .polaroid-front { width: 150px; left: 10px; top: 34px; --rotation: -8deg; }
  .polaroid-back { width: 155px; right: 1px; top: 62px; --rotation: 8deg; }
  .birthday-seal { top: 13px; right: 0; width: 77px; height: 77px; }
  .sketch-arrow { left: 32px; bottom: 3px; }
  .art-note { display: none; }
  .hero-signature { font-size: 9px; }
  .presence { padding-top: 58px; }
  .presence-layout { display: flex; gap: 30px; flex-direction: column; }
  .presence-copy>p { font-size: 15px; line-height: 1.9; margin-top: 18px; }
  .presence-copy .presence-emphasis { font-size: 21px; margin-top: 17px; }
  .voice-note { padding: 25px 23px; border-radius: 20px; max-width: none; }
  .voice-heading { gap: 12px; }
  .voice-stamp { display: flex; width: 43px; height: 43px; flex-basis: 43px; font-size: 24px; }
  .voice-stamp span { font-size: 11px; }
  .voice-sender { font-size: 7px; letter-spacing: 1.2px; margin-bottom: 8px; }
  .voice-heading h3 { font-size: 25px; line-height: 1.22; }
  .voice-heading p { font-size: 11px; }
  .voice-controls { gap: 16px; margin-top: 22px; }
  .voice-play { width: 54px; height: 54px; flex-basis: 54px; }
  .voice-waveform { height: 50px; }
  .voice-times { font-size: 10px; }
  .voice-note .voice-caption { font-size: 11px; margin-top: 20px; padding-top: 16px; }
  .voice-continue { font-size: 11px; }
  .hug-block.hug-inline { margin-top: 34px; padding-top: 25px; gap: 17px; }
  .hug-inline .hug-button { width: 78px; height: 78px; flex-basis: 78px; }
  .hug-inline .hug-heart { width: 33px; height: 33px; }
  .hug-inline .hug-title { font-size: 12px; }
  .hug-inline .hug-caption { font-size: 11px; line-height: 1.7; }
  .presence .section-transition { font-size: 16px; margin-top: 32px; }
  .memory-image { height: auto; aspect-ratio: 4/5; }
  .memory-description { font-size: 14px; line-height: 1.85; }
  .memory-date { font-size: 8px; letter-spacing: 1.2px; min-height: 28px; }
  .memory-card h3 { font-size: 30px; }
  .memory-aside { font-size: 15px; }
  .memory-controls { gap: 7px; }
  .memory-controls .round-button { width: 44px; height: 44px; }
  .memory-toolbar>p { font-size: 10px; }
  .note-card>p { font-size: 14px; line-height: 1.9; }
  .all-note p { font-size: 14px; }
  .letter-sheet p { font-size: 15px; line-height: 1.9; }
  .photo-dialog { width: calc(100% - 18px); height: calc(100vh - 26px); height: calc(100dvh - 26px); border-radius: 14px; }
  .photo-dialog-bar { padding: 18px 17px; gap: 10px; }
  .photo-dialog-bar .eyebrow { font-size: 7px; letter-spacing: .9px; display: block; }
  .photo-dialog-bar h2 { font-size: 25px; line-height: 1.2; margin-top: 8px; }
  .photo-dialog-bar .round-button { width: 44px; height: 44px; }
  .photo-dialog-stage { margin: 0 10px; }
  .photo-dialog-footer { flex-direction: column; padding: 15px 17px 18px; gap: 12px; }
  .photo-dialog-footer>p { text-align: center; font-size: 16px; }
  .photo-dialog-controls .round-button { width: 44px; height: 44px; }
}
@media (max-width: 360px) {
  .hero-art-mobile { height: 295px; }
  .voice-note { padding: 23px 19px; }
  .voice-stamp { display: none; }
  .voice-heading h3 { font-size: 26px; }
  .voice-controls { gap: 12px; }
  .voice-play { width: 48px; height: 48px; flex-basis: 48px; }
  .memory-card h3 { font-size: 27px; }
  .memory-toolbar>p { max-width: 90px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-delay: 0s !important; } .voice-play { transition: none; } }
@media print { .voice-note,.voice-mini,.photo-dialog,.photo-enlarge { display: none !important; } .memory-image { height: 230px; aspect-ratio: auto; } }
