:root { --brown:#68483d; --brown-deep:#4e342c; --cream:#f2e7dc; --paper:#fffdfa; --gold:#c9a776; --muted:#806a60; --line:#e3d3c5; --ink:#312522; --night:#171717; --night-card:#222; --shadow:0 18px 45px rgba(92,59,47,.12); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ink); background:var(--cream); }
* { box-sizing:border-box; } body { margin:0; min-height:100vh; background:radial-gradient(circle at 90% 4%,#fbf1e8 0,transparent 28rem),var(--cream); } button,input,textarea { font:inherit; } button { cursor:pointer; } button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible { outline:3px solid var(--gold); outline-offset:3px; }.skip-link { position:fixed; top:-5rem; left:1rem; z-index:50; padding:.7rem 1rem; color:white; background:var(--brown); border-radius:.4rem; }.skip-link:focus { top:1rem; }
.site-header { height:76px; display:flex; align-items:center; justify-content:space-between; padding:0 max(28px,calc((100% - 1124px)/2)); background:#f2e7dc; border-bottom:1px solid rgba(104,72,61,.08); }.brand { display:flex; align-items:center; gap:.58rem; text-decoration:none; height:38px; }.brand-mark { width:25px; height:30px; object-fit:contain; }.brand-wordmark { width:119px; height:auto; }.owner-label { color:var(--muted); font-size:.8rem; font-weight:700; }
.shell { max-width:1124px; margin:auto; padding:64px 28px 76px; }.hero { display:flex; align-items:end; justify-content:space-between; gap:2rem; padding-bottom:42px; }.eyebrow,.memory-overline { margin:0 0 .65rem; color:var(--gold); font-size:.67rem; font-weight:800; letter-spacing:.16em; }.hero h1,h2,h3,.memory-content h1 { margin:0; color:var(--brown); font-family:Georgia,"Times New Roman",serif; letter-spacing:-.04em; }.hero h1 { max-width:690px; font-size:clamp(2.6rem,5.2vw,4.45rem); line-height:1.01; }.hero p:not(.eyebrow) { max-width:560px; margin:1.25rem 0 0; color:var(--muted); line-height:1.6; font-size:1.04rem; }.primary-button,.danger-button { border:0; border-radius:999px; padding:.86rem 1.22rem; color:white; background:var(--brown); font-weight:800; box-shadow:0 7px 16px rgba(104,72,61,.18); white-space:nowrap; transition:.15s ease; }.primary-button:hover { background:var(--brown-deep); transform:translateY(-1px); }.primary-button span { font-size:1.2rem; margin-right:.25rem; }.danger-button { background:#a94b4e; box-shadow:none; }.danger-button:hover { background:#8e393e; }
.how-it-works { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; padding:17px; margin-bottom:70px; background:rgba(255,255,255,.52); border:1px solid rgba(255,255,255,.75); border-radius:16px; }.how-it-works div { display:flex; align-items:center; gap:.7rem; padding:.35rem .6rem; }.how-it-works span { display:grid; width:30px; height:30px; place-items:center; flex:none; border-radius:50%; background:#e8d7c5; color:var(--brown); font-size:.78rem; font-weight:800; }.how-it-works p { margin:0; color:var(--muted); font-size:.82rem; }.how-it-works strong { color:var(--brown); }.section-heading { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:24px; }.section-heading h2 { font-size:clamp(1.7rem,3vw,2.25rem); }.private-note { margin:0 0 .25rem; color:var(--muted); font-size:.78rem; }.private-note span { color:var(--gold); font-size:1.1rem; }.collection-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:17px; }.collection-card { overflow:hidden; border:1px solid rgba(104,72,61,.08); border-radius:17px; background:var(--paper); box-shadow:0 5px 20px rgba(104,72,61,.05); }.collection-cover { display:grid; height:170px; place-items:center; overflow:hidden; color:var(--gold); background:linear-gradient(145deg,#e7d5c5,#f3eae1); font-size:2rem; }.collection-cover img { width:100%; height:100%; object-fit:cover; }.collection-card-body { padding:18px; }.collection-card small { color:var(--muted); font-size:.7rem; }.collection-card h3 { margin:.35rem 0; font-size:1.35rem; line-height:1.1; }.collection-card p { margin:.45rem 0 1rem; color:var(--muted); font-size:.79rem; }.collection-actions { display:flex; align-items:center; gap:.65rem; }.collection-actions button { border:0; background:transparent; color:var(--brown); padding:.2rem 0; font-size:.77rem; font-weight:800; }.collection-actions .preview-button { padding:.45rem .7rem; border-radius:999px; color:white; background:var(--brown); }.collection-actions .delete-link { margin-left:auto; color:#a75756; }.empty-state { grid-column:1/-1; padding:58px 20px; text-align:center; background:rgba(255,255,255,.53); border:1px dashed #d6c0ac; border-radius:17px; }.empty-mark { display:block; color:var(--gold); font-size:2rem; }.empty-state h3 { margin:.5rem 0; font-size:1.7rem; }.empty-state p { max-width:400px; margin:0 auto 1.3rem; color:var(--muted); line-height:1.55; }
.dialog { width:calc(100% - 32px); max-width:650px; padding:0; color:var(--ink); border:0; border-radius:18px; background:var(--paper); box-shadow:0 22px 65px rgba(55,33,27,.28); }.dialog::backdrop { background:rgba(36,25,21,.5); backdrop-filter:blur(2px); }.dialog form { padding:29px; }.dialog-header { display:flex; justify-content:space-between; gap:1rem; padding-bottom:18px; margin-bottom:20px; border-bottom:1px solid var(--line); }.dialog h2 { margin:0; font-family:Georgia,"Times New Roman",serif; color:var(--brown); font-size:1.8rem; letter-spacing:-.03em; }.icon-button { width:32px; height:32px; border:0; border-radius:50%; color:var(--muted); background:#f0e7df; font-size:1.5rem; line-height:1; }.dialog label:not(.upload-zone) { display:grid; gap:.45rem; margin-bottom:16px; color:var(--brown); font-size:.82rem; font-weight:800; }.dialog input:not([type=file]),.dialog textarea { width:100%; border:1px solid #decbbc; border-radius:9px; padding:.7rem .75rem; color:var(--ink); background:white; outline-color:var(--brown); font-weight:400; }.dialog textarea { resize:vertical; }.optional { color:var(--muted); font-weight:400; }.field-error { min-height:.7rem; color:#b04445; font-size:.72rem; font-weight:500; }.upload-heading { display:flex; justify-content:space-between; align-items:baseline; margin:23px 0 9px; color:var(--brown); font-size:.82rem; font-weight:800; }.upload-heading small,.storage-note { color:var(--muted); font-size:.7rem; font-weight:400; }.upload-zone { display:grid; min-height:112px; place-items:center; align-content:center; gap:.18rem; border:1px dashed #cdb299; border-radius:12px; color:var(--brown); background:#fcf6f0; text-align:center; cursor:pointer; }.upload-zone:hover { background:#f8ede4; }.upload-zone input { width:1px; height:1px; overflow:hidden; opacity:0; }.upload-zone strong { font-size:.84rem; }.upload-zone small { color:var(--muted); font-size:.72rem; }.upload-icon { color:var(--gold); font-size:1.45rem; line-height:1; }.photo-preview { display:grid; grid-template-columns:repeat(4,1fr); gap:9px; margin-top:13px; }.photo-item { position:relative; aspect-ratio:1; overflow:hidden; border-radius:8px; background:#eee; }.photo-item img { width:100%; height:100%; object-fit:cover; }.remove-photo { position:absolute; top:4px; right:4px; display:grid; width:22px; height:22px; place-items:center; padding:0; color:white; border:0; border-radius:50%; background:rgba(30,20,18,.78); font-size:1.15rem; line-height:1; }.storage-note { margin:12px 0 0; line-height:1.4; }.dialog-actions { display:flex; align-items:center; justify-content:flex-end; gap:.85rem; margin-top:25px; }.text-button { border:0; padding:.6rem .3rem; color:var(--muted); background:transparent; font-weight:800; }.text-button:hover { color:var(--brown); }.dialog-small { max-width:430px; }.confirm-content { padding:34px; text-align:center; }.confirm-icon { display:grid; width:43px; height:43px; place-items:center; margin:0 auto .8rem; color:var(--brown); border-radius:50%; background:#eaddd3; font-size:1.2rem; }.confirm-content h2 { font-size:1.62rem; }.confirm-content p { color:var(--muted); line-height:1.5; font-size:.9rem; }.confirm-content .dialog-actions { justify-content:center; }
.voice-recorder { margin:22px 0; padding:15px; border:1px solid #e3d2c1; border-radius:12px; background:#fcf6f0; }.voice-recorder > div:first-child { display:flex; justify-content:space-between; gap:1rem; color:var(--brown); font-size:.82rem; font-weight:800; }.voice-recorder small { color:var(--muted); font-size:.7rem; font-weight:400; }.voice-recorder p { margin:.65rem 0; color:var(--muted); font-size:.78rem; }.recording-actions { display:flex; align-items:center; gap:.8rem; }.record-button { border:0; border-radius:999px; padding:.65rem .85rem; color:white; background:var(--brown); font-size:.78rem; font-weight:800; }.record-button.recording { background:#aa4d4d; }.voice-recorder audio { width:100%; margin-top:10px; height:34px; }.memory-date { display:block; margin-top:.6rem; color:#c9bdb4; font-size:.75rem; }.voice-card { display:flex; align-items:center; gap:1rem; margin-top:14px; padding:14px; border-radius:11px; background:var(--night-card); }.voice-card div { min-width:0; }.voice-card strong { font-size:.84rem; }.voice-card p { margin:.22rem 0 0; color:#bdb4ad; font-size:.73rem; }.voice-card audio { width:150px; height:32px; margin-left:auto; }
.first-scan-view { min-height:100vh; background:radial-gradient(circle at 90% 10%,#fff8f0 0,transparent 24rem),var(--cream); }.first-scan-header { height:76px; display:flex; align-items:center; max-width:980px; margin:auto; padding:0 28px; }.first-scan-content { max-width:690px; margin:0 auto; padding:88px 28px 70px; text-align:center; }.first-scan-mark { display:grid; width:54px; height:54px; place-items:center; margin:0 auto 20px; border-radius:50%; color:var(--brown); background:#e7d3c0; font-size:1.7rem; }.first-scan-content h1 { margin:0; color:var(--brown); font-family:Georgia,"Times New Roman",serif; font-size:clamp(2.45rem,7vw,4.3rem); line-height:1.03; letter-spacing:-.045em; }.first-scan-content > p:not(.eyebrow):not(.first-scan-note) { max-width:540px; margin:1.4rem auto 1.8rem; color:var(--muted); line-height:1.65; }.first-scan-note { margin:1.1rem 0 0; color:var(--muted); font-family:Georgia,serif; font-size:.87rem; font-style:italic; }
.memory-view { min-height:100vh; color:#f7f1eb; background:var(--night); }.memory-header { display:flex; align-items:center; justify-content:space-between; max-width:700px; margin:auto; padding:11px 16px; }.memory-brand { display:flex; align-items:center; gap:.4rem; color:#d8cbc0; text-decoration:none; text-transform:uppercase; font-size:.58rem; font-weight:800; letter-spacing:.06em; }.memory-brand img { width:15px; height:19px; object-fit:contain; }.heart-button { width:36px; height:36px; padding:0; color:#ede3da; border:0; background:transparent; font-size:1.7rem; }.heart-button.active { color:#d47a7b; }.memory-content { width:min(100%,540px); margin:auto; padding:4px 8px 34px; }.memory-overline { margin-top:4px; margin-bottom:.25rem; color:#bab1ab; font-size:.56rem; letter-spacing:.1em; }.memory-content h1 { color:#fffaf5; font-family:Inter,ui-sans-serif,sans-serif; font-size:clamp(2rem,8vw,2.5rem); line-height:1.08; letter-spacing:-.055em; }.memory-gallery { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:18px; }.memory-photo { margin:0; min-height:200px; overflow:hidden; border-radius:13px; background:#2c2c2c; }.memory-photo.feature-photo { grid-column:1/-1; height:285px; }.memory-photo img { width:100%; height:100%; object-fit:cover; display:block; }.dedication-card { display:flex; align-items:center; gap:.8rem; margin-top:14px; padding:14px; border-radius:11px; background:var(--night-card); }.message-icon { display:grid; width:32px; height:32px; place-items:center; flex:none; color:#e3b4b2; border-radius:50%; background:#403330; }.dedication-card strong { font-size:.87rem; }.dedication-card p { margin:.2rem 0 0; color:#bdb4ad; font-size:.78rem; line-height:1.4; }.memory-quote { margin:24px auto 11px; color:#aaa19c; text-align:center; font-family:Georgia,serif; font-size:.85rem; font-style:italic; }.back-button { display:block; margin:auto; padding:.4rem; color:#c9bdb4; border:0; background:transparent; font-size:.72rem; text-decoration:underline; }.memory-missing { grid-column:1/-1; padding:35px 16px; color:#bdb4ad; border:1px dashed #514945; border-radius:12px; text-align:center; }.toast { position:fixed; bottom:25px; left:50%; z-index:30; margin:0; padding:.75rem 1rem; color:white; border-radius:99px; background:var(--brown-deep); box-shadow:0 9px 20px rgba(0,0,0,.17); font-size:.86rem; pointer-events:none; opacity:0; transform:translate(-50%,5rem); transition:.2s ease; }.toast.visible { opacity:1; transform:translate(-50%,0); }
@media (max-width:720px) { .site-header { padding:0 19px; }.brand { gap:.45rem; }.brand-mark { width:22px; height:27px; }.brand-wordmark { width:102px; }.shell { padding:37px 19px 55px; }.hero { display:block; padding-bottom:30px; }.hero h1 { font-size:clamp(2.55rem,12vw,3.5rem); }.hero p:not(.eyebrow) { font-size:.96rem; }.hero .primary-button { width:100%; margin-top:1.5rem; }.how-it-works { grid-template-columns:1fr; gap:3px; margin-bottom:47px; padding:12px; }.how-it-works div { padding:.25rem .3rem; }.section-heading { align-items:start; }.section-heading h2 { font-size:1.8rem; }.private-note { display:none; }.collection-grid { grid-template-columns:1fr; }.collection-card { display:grid; grid-template-columns:112px 1fr; }.collection-cover { height:100%; min-height:150px; }.collection-card-body { padding:15px; }.dialog form { padding:22px; }.upload-heading { align-items:start; flex-direction:column; gap:.25rem; }.first-scan-header { padding:0 19px; }.first-scan-content { padding:62px 20px 55px; }.first-scan-content h1 { font-size:clamp(2.45rem,12vw,3.4rem); }.first-scan-content .primary-button { width:100%; }.memory-header { padding:10px 8px; }.memory-content { padding-left:7px; padding-right:7px; }.memory-photo { min-height:170px; }.memory-photo.feature-photo { height:282px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition-duration:.01ms!important; scroll-behavior:auto!important; } }
.charm-count { margin:.35rem 0 0; color:var(--muted); font-size:.76rem; }.activation-intro { margin:-.2rem 0 1.25rem; color:var(--muted); font-size:.86rem; line-height:1.5; }
.nfc-url-content { padding:29px; }.collection-actions { flex-wrap:wrap; }
.auth-consent { display:flex!important; align-items:flex-start; gap:.55rem; color:var(--muted)!important; font-size:.73rem!important; font-weight:400!important; line-height:1.4; }.auth-consent[hidden] { display:none!important; }.auth-consent input { width:auto!important; margin:.15rem 0 0; accent-color:var(--brown); }
.media-storage-consent { margin:13px 0 0; padding:11px; border:1px solid #e3d2c1; border-radius:10px; background:#fcf6f0; }
body .auth-submit::after { content:"→"; margin-left:.7rem; font-size:1.2rem; transition:transform .18s ease; }body .auth-submit:hover::after { transform:translateX(3px); }
body .auth-view { position:relative; min-height:100vh; overflow:hidden; background:linear-gradient(132deg,#eee1d4 0%,#f7efe7 48%,#e9d4c0 100%); }body .auth-view::before,body .auth-view::after { position:absolute; z-index:0; width:34rem; height:34rem; border-radius:50%; content:""; pointer-events:none; }body .auth-view::before { top:-17rem; left:-13rem; background:radial-gradient(circle,#d6b898 0%,rgba(214,184,152,0) 69%); }body .auth-view::after { right:-15rem; bottom:-19rem; background:radial-gradient(circle,#c69d70 0%,rgba(198,157,112,0) 70%); }.auth-header { position:relative; z-index:1; background:rgba(242,231,220,.54); backdrop-filter:blur(10px); }.auth-header-note { margin:0; color:var(--brown); font-family:Georgia,"Times New Roman",serif; font-size:.88rem; font-style:italic; }.auth-shell { position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,1.08fr) minmax(370px,.92fr); width:min(1120px,100%); min-height:calc(100vh - 76px); margin:auto; gap:clamp(3rem,9vw,9rem); padding:clamp(3rem,7vw,6.5rem) 28px; place-items:center; }.auth-story { max-width:510px; padding:1rem 0; }.auth-emblem { position:relative; display:grid; width:90px; height:90px; place-items:center; margin-bottom:2rem; }.auth-emblem::before { position:absolute; inset:9px; border:1px solid rgba(104,72,61,.26); border-radius:50%; content:""; }.auth-emblem-ring { position:absolute; inset:0; border:1px solid rgba(201,167,118,.8); border-radius:50%; transform:rotate(-22deg); }.auth-emblem img { position:relative; z-index:1; width:36px; height:47px; object-fit:contain; }.auth-story .eyebrow { margin-bottom:.9rem; color:var(--brown); }.auth-story h1 { margin:0; color:var(--brown-deep); font-family:Georgia,"Times New Roman",serif; font-size:clamp(3.2rem,6.1vw,5.25rem); font-weight:400; line-height:.96; letter-spacing:-.06em; }.auth-story > p:not(.eyebrow) { max-width:460px; margin:1.45rem 0 0; color:#765f55; font-size:1.03rem; line-height:1.72; }.auth-story-detail { display:flex; align-items:flex-start; gap:.8rem; max-width:390px; margin-top:2.1rem; padding-top:1.15rem; border-top:1px solid rgba(104,72,61,.2); }.auth-story-detail span { color:var(--gold); font-size:1rem; }.auth-story-detail p { margin:0; color:var(--brown); font-size:.82rem; font-weight:700; line-height:1.45; }body .auth-card { position:relative; width:min(100%,440px); overflow:hidden; padding:clamp(2rem,5vw,3rem); border:1px solid rgba(255,255,255,.72); border-radius:25px; background:rgba(255,253,250,.9); box-shadow:0 28px 70px rgba(82,53,42,.19); }.auth-card-glow { position:absolute; top:-115px; right:-105px; width:230px; height:230px; border-radius:50%; background:radial-gradient(circle,rgba(201,167,118,.32),rgba(201,167,118,0) 70%); pointer-events:none; }.auth-card > :not(.auth-card-glow) { position:relative; z-index:1; }.auth-card .eyebrow { margin-bottom:.85rem; color:var(--gold); }.auth-card h2 { margin:0; color:var(--brown-deep); font-family:Georgia,"Times New Roman",serif; font-size:clamp(2rem,4vw,2.65rem); font-weight:400; line-height:1.03; letter-spacing:-.05em; }.auth-card > p:not(.eyebrow):not(.auth-note) { margin:1rem 0 1.8rem; color:var(--muted); line-height:1.55; }.auth-tabs { margin-bottom:1.55rem; padding:5px; border:1px solid #e7d5c4; border-radius:999px; background:#f3e8de; }.auth-tabs button { min-height:40px; border-radius:999px; }.auth-tabs button.active { color:white; background:var(--brown); box-shadow:0 4px 10px rgba(104,72,61,.2); }.auth-card form { gap:17px; }.auth-card label { gap:.55rem; color:var(--brown-deep); font-size:.76rem; letter-spacing:.01em; }.auth-card input { min-height:48px; border:1px solid #dfcabb; border-radius:11px; padding:.78rem .88rem; background:rgba(255,255,255,.9); transition:border-color .18s ease,box-shadow .18s ease; }.auth-card input:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(201,167,118,.2); }.auth-submit { display:flex; align-items:center; justify-content:center; gap:.7rem; min-height:51px; margin-top:5px; background:var(--brown-deep); }.auth-submit span { margin:0; font-size:1.2rem; transition:transform .18s ease; }.auth-submit:hover span { transform:translateX(3px); }.auth-note { padding-top:1.05rem; border-top:1px solid #eadace; }.auth-note span { margin-right:.25rem; color:var(--gold); }.account-actions { gap:1rem; }.logout-button { color:var(--brown); }.logout-button:hover { color:var(--brown-deep); }@media (max-width:820px) { .auth-header-note { display:none; }.auth-shell { grid-template-columns:1fr; gap:2rem; min-height:auto; padding:3rem 20px 4rem; }.auth-story { max-width:540px; padding:0; text-align:center; }.auth-emblem { margin:0 auto 1.25rem; transform:scale(.83); }.auth-story h1 { font-size:clamp(2.8rem,12vw,4.2rem); }.auth-story > p:not(.eyebrow) { margin-right:auto; margin-left:auto; font-size:.95rem; }.auth-story-detail { display:none; }body .auth-card { width:min(100%,480px); }.auth-card .eyebrow,.auth-card h2,.auth-card > p:not(.eyebrow):not(.auth-note) { text-align:center; } }@media (max-width:460px) { .auth-shell { padding:2.5rem 16px 3rem; }.auth-story h1 { font-size:clamp(2.65rem,13vw,3.35rem); }.auth-story > p:not(.eyebrow) { font-size:.9rem; }.auth-card { padding:28px 21px!important; border-radius:20px!important; }.auth-tabs button { font-size:.72rem; } }
.auth-view { min-height:100vh; background:radial-gradient(circle at 90% 4%,#fbf1e8 0,transparent 28rem),var(--cream); }.auth-shell { display:grid; min-height:calc(100vh - 76px); place-items:center; padding:48px 20px; }.auth-card { width:min(100%,480px); padding:38px; border:1px solid rgba(104,72,61,.1); border-radius:20px; background:rgba(255,253,250,.9); box-shadow:var(--shadow); }.auth-card h1 { margin:0; color:var(--brown); font-family:Georgia,"Times New Roman",serif; font-size:clamp(2.1rem,7vw,3.2rem); line-height:1.02; letter-spacing:-.045em; }.auth-card > p:not(.eyebrow):not(.auth-note) { margin:1rem 0 1.5rem; color:var(--muted); line-height:1.55; }.auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin-bottom:22px; padding:4px; border-radius:11px; background:#eee2d7; }.auth-tabs button { min-height:39px; border:0; border-radius:8px; color:var(--muted); background:transparent; font-size:.79rem; font-weight:800; }.auth-tabs button.active { color:var(--brown); background:var(--paper); box-shadow:0 2px 7px rgba(104,72,61,.09); }.auth-card form { display:grid; gap:15px; }.auth-card label { display:grid; gap:.45rem; color:var(--brown); font-size:.82rem; font-weight:800; }.auth-card input { width:100%; border:1px solid #decbbc; border-radius:9px; padding:.72rem .75rem; color:var(--ink); background:white; outline-color:var(--brown); font-weight:400; }.auth-submit { width:100%; margin-top:4px; }.auth-note { margin:18px 0 0; color:var(--muted); font-size:.74rem; line-height:1.45; text-align:center; }.account-actions { display:flex; align-items:center; gap:.85rem; }.logout-button { border:0; padding:.4rem 0; color:var(--muted); background:transparent; font-size:.76rem; font-weight:800; text-decoration:underline; }.logout-button:hover { color:var(--brown); }@media (max-width:720px) { .auth-shell { align-items:start; padding-top:42px; }.auth-card { padding:27px 22px; }.account-actions { gap:.55rem; }.account-actions .owner-label { max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } }
