@font-face { font-family: "Adam & Mary"; src: url("../assets/fonts/adam-mary.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Cinzel Decorative"; src: url("../assets/fonts/cinzel-decorative.ttf") format("truetype"); font-display: swap; }
:root { --gold: #8e701b; --wine: #742138; --paper: #f7f4ec; --muted: #756b58; --paper-texture: url("../assets/images/paper-background.webp"); --card-shadow: 0 3px 9px rgba(66,43,24,.12); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper) var(--paper-texture) center top / 480px auto repeat; color: var(--gold); font-family: Arial, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--wine); outline-offset: 4px; }
.share-moment { max-width: 480px; margin: 0 auto; background: var(--paper) var(--paper-texture) center top / 100% auto repeat-y; min-height: 100svh; padding-bottom: 24px; }
.script { font-family: "Adam & Mary", cursive; font-weight: 400; }
.decorative { font-family: "Cinzel Decorative", Georgia, serif; font-weight: 400; }
.welcome { position: relative; width: 100%; aspect-ratio: 9 / 16; container-type: inline-size; isolation: isolate; }
#welcome-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(66,43,24,.16)); }
.welcome-copy { position: absolute; top: 25%; left: 8%; width: 84%; text-align: center; }
.welcome-eyebrow { font-size: 5cqw; margin: 0; line-height: 1.1; }
.welcome h1 { font-size: 10.36cqw; line-height: 1.15; min-height: 17.02cqw; display: grid; place-items: center; margin: 0; white-space: nowrap; }
.welcome-copy .script, .welcome h2 { text-shadow: 0 1px 2px rgba(66,43,24,.16); }
.welcome-date { font-size: 3.3cqw; margin: 3.5cqw 0 0; }
.welcome h2 { font-size: 8cqw; margin: 5cqw 0 0; white-space: nowrap; }
.welcome-actions { position: absolute; top: 53%; left: 27%; width: 46%; display: grid; gap: 3.8cqw; }
.gold-button { color: var(--gold); background: #fff; border: 2px solid transparent; border-radius: 999px; background: linear-gradient(#fff,#fff) padding-box,linear-gradient(115deg,#927331,#ffe4ce,#967328) border-box; min-height: 48px; padding: 12px 18px; box-shadow: var(--card-shadow); text-align: center; }
.welcome-actions .gold-button { width: 100%; min-height: max(44px,11.5cqw); padding: 2cqw 1cqw; font-size: 3.35cqw; white-space: nowrap; }
.preview-notice { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; padding: 0 25px; margin: 0 0 12px; }
.back-link { color: var(--muted); display: block; text-align: center; font-size: 13px; padding: 8px; margin: 0 auto; width: fit-content; }
.photo-workspace { margin: 24px 16px 0; border-top: 1px solid #daca9e; padding-top: 18px; scroll-margin-top: 12px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.workspace-heading h2 { font-size: 21px; margin: 0; }
.text-button { border: 0; background: transparent; color: var(--wine); padding: 11px 3px; min-height: 44px; font-size: 13px; }
.hint { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 8px 0 12px; }
.photo-stage { width: 100%; aspect-ratio: 9 / 16; position: relative; background: var(--paper) var(--paper-texture) center top / 100% auto repeat-y; overflow: hidden; border-radius: 12px; box-shadow: var(--card-shadow); }
#photo-canvas { width: 100%; height: 100%; display: block; }
#camera-video, #camera-beauty { position: absolute; left: 5.5%; top: 6.25%; width: 89%; height: 85.4%; object-fit: cover; border-radius: 50% / 31%; background: #262322; }
#camera-video.mirrored, #camera-beauty.mirrored { transform: scaleX(-1); }
#camera-video.bright, #camera-beauty.bright { filter: brightness(1.07) contrast(.96) saturate(1.03); }
#camera-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.filter-controls { display: flex; justify-content: center; gap: 9px; margin: 12px 0; }
.filter-button, .secondary-button, .primary-button { min-height: 44px; border: 1px solid #d7cbb4; border-radius: 8px; background: #fff; color: var(--muted); padding: 10px 14px; font-size: 13px; }
.filter-button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: #faf4e8; }
.beauty-controls { margin: 12px 0; padding: 12px 0; border-block: 1px solid #dfd3bd; }
.beauty-toggle { display: flex; align-items: center; gap: 9px; min-height: 44px; color: var(--wine); font-size: 14px; }
.beauty-toggle input { width: 20px; height: 20px; accent-color: var(--wine); }
.beauty-level { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.beauty-controls .hint { margin: 0; }
.primary-button { color: #fff; background: var(--wine); border-color: var(--wine); }
.camera-controls, .photo-navigation { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.photo-adjustments { display: grid; gap: 5px; }
.photo-adjustments label { display: grid; gap: 1px; font-size: 12px; color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--gold); min-height: 44px; margin: 0; }
.photo-navigation p { margin: 0; color: var(--muted); font-size: 13px; }
.download-controls { display: grid; gap: 10px; margin-top: 12px; }
#download-photo { text-decoration: none; }
#download-photo[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.status { color: var(--wine); font-size: 13px; line-height: 1.6; min-height: 1.6em; overflow-wrap: anywhere; }
.page-status { padding: 0 24px; text-align: center; margin: 12px 0 0; }
@media (max-width: 350px) { .welcome-actions { left: 24%; width: 52%; } .welcome-actions .gold-button { font-size: 3.8cqw; } .workspace-heading h2 { font-size: 18px; } }
