:root{font-family:Inter,PingFang SC,Microsoft YaHei,Noto Sans CJK SC,sans-serif;color:#3b2931;background:#fff9fa;font-size:16px;line-height:1.65;--ink: #3b2931;--muted: #705e66;--berry: #923f60;--berry-hover: #77324d;--paper: #fffcfc;--blush: #fbe7ee;--line: #e8d9df;--heading: "STSong", "Songti SC", "SimSun", "Noto Serif CJK SC", Georgia, serif;--shadow: 0 5px 20px rgba(77, 45, 53, .055);font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}#app{min-height:100vh;display:flex;flex-direction:column}#main{flex:1}.skip-link{position:absolute;left:.5rem;top:.5rem;z-index:30;transform:translateY(-160%);color:#fff;background:var(--berry);padding:.55rem 1rem;border-radius:6px}.skip-link:focus-visible{transform:none;color:#fff}.pre{white-space:pre-wrap;overflow-wrap:anywhere}body:has(dialog[open]),body:has(.lightbox){overflow:hidden}img{display:block;max-width:100%}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a.button{cursor:pointer}a{color:var(--berry);text-underline-offset:.25em}a:hover{color:var(--berry-hover)}:focus-visible{outline:3px solid #86517d;outline-offset:4px}h1,h2,h3,h4,p,figure{margin:0}h1,h2,h3,h4{line-height:1.32}h1,h2,h3{text-wrap:pretty;overflow-wrap:anywhere}h1,h2{font-family:var(--heading);font-weight:650}h1{font-size:clamp(2.2rem,4.2vw,3.9rem);letter-spacing:-.045em}h2{font-size:clamp(1.65rem,2.7vw,2.45rem);letter-spacing:-.035em}h3{font-size:1.2rem}p,label,time,.status{overflow-wrap:anywhere}time,.eyebrow,.stat-card strong{font-variant-numeric:tabular-nums}button,.button{display:inline-flex;justify-content:center;align-items:center;gap:.5rem;min-height:44px;padding:.55rem 1.05rem;border:1px solid #d9c6ce;border-radius:7px;background:#fffcfd;color:var(--ink);font-weight:550;font-size:.9375rem;line-height:1.35;text-decoration:none;transition:background .16s,border-color .16s,box-shadow .16s,transform .16s}button:hover,.button:hover{background:#faecf1;border-color:#c99bb0;color:var(--ink)}button:active,.button:active{transform:translateY(1px)}button:disabled{cursor:default;opacity:.55}button.primary,.button.primary{color:#fff;border-color:var(--berry);background:var(--berry);box-shadow:0 3px 7px #71304d19}button.primary:hover,.button.primary:hover{color:#fff;border-color:var(--berry-hover);background:var(--berry-hover)}.quiet,.text-button{color:var(--muted);background:transparent;border-color:transparent;padding-inline:.7rem}.danger{color:#9b344a;border-color:#dfbdc4}.topbar{background:#fffafb;border-bottom:1px solid var(--line)}.topbar-inner,.shell,.footer{width:min(1184px,calc(100% - 6rem));margin-inline:auto}.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:1.4rem;min-height:77px}.brand{display:inline-flex;align-items:center;gap:.7rem;color:var(--ink);text-decoration:none;font-family:var(--heading);font-weight:700;font-size:1.22rem;line-height:1.25;min-width:0}.brand-mark{display:inline-grid;place-items:center;position:relative;isolation:isolate;flex:0 0 auto;width:34px;height:38px;border:2px solid #9b5572;border-radius:4px 7px 7px 4px;color:var(--berry);background:#f4d9e2;font-family:Georgia,serif;line-height:1;box-shadow:inset 4px 0 #fdf0f4,inset 5px 0 #bd8197}.brand-mark:empty:before{content:"♥";font-size:.95rem;padding-left:2px}.brand-mark:after{content:"";position:absolute;left:8px;bottom:-4px;width:5px;height:8px;background:#b97964;clip-path:polygon(0 0,100% 0,100% 100%,50% 76%,0 100%)}.nav{display:flex;align-items:center;gap:clamp(.15rem,1.2vw,1.25rem)}.nav a{display:inline-flex;align-items:center;min-height:44px;padding:.5rem .75rem;border-radius:6px;color:var(--muted);text-decoration:none;font-size:.9375rem;white-space:nowrap;font-weight:500}.nav a:hover,.nav .router-link-active,.nav [aria-current=page]{color:var(--berry);background:#f8e8ee}.shell{min-height:68vh;padding-block:clamp(1.5rem,3.3vw,3rem) clamp(3rem,6vw,6rem)}.shell>*+*,.reading>*+*{margin-block-start:2rem}.hero{isolation:isolate;position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:center;gap:2rem;padding:clamp(2rem,4.5vw,4.25rem);min-height:365px;border:1px solid #e7cfd9;border-radius:20px;background-color:#fae8ec;background-image:radial-gradient(ellipse at 13% 10%,#fffdf4b5,transparent 65%),radial-gradient(ellipse at 100% 90%,#f4cfdd80,transparent 65%),repeating-linear-gradient(0deg,transparent 0 21px,#a7667a0a 21px 22px),repeating-linear-gradient(90deg,transparent 0 21px,#a7667a0a 21px 22px)}.hero:before{content:"";position:absolute;left:14px;inset-block:12px;border-left:1px dashed #ae7a8c66;pointer-events:none}.hero-copy{position:relative;z-index:1;min-width:0}.eyebrow{color:var(--berry);font-size:.9rem;font-weight:600;letter-spacing:.08em}.hero-copy h1{margin-block:.5rem 1.05rem}.hero-copy>p:not(.eyebrow){max-width:40ch;color:#69535f;font-size:1.045rem;line-height:1.85}.cover-art{min-width:0;width:100%;max-width:405px;aspect-ratio:1.13;justify-self:center;background:url(/assets/postcards-DLCJ8Xx_.webp) center / contain no-repeat;filter:drop-shadow(3px 7px 6px rgba(102,64,72,.12))}.actions,.toolbar{display:flex;align-items:center;flex-wrap:wrap;column-gap:.65rem;row-gap:.6rem}.hero .actions{margin-top:1.7rem}.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-block:2.65rem 1.15rem}.section-head+*,.shell>.cards{margin-top:1.15rem}.section-head>a,.wish-row a{font-size:.94rem;font-weight:600}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.3rem}.memory-card,.panel,.stat-card,.surprise-card,.wish-row{overflow-wrap:anywhere}.memory-card{min-width:0;display:flex;flex-direction:column;overflow:hidden;color:inherit;text-decoration:none;border:1px solid var(--line);border-radius:12px;background:var(--paper);box-shadow:var(--shadow);transition:transform .18s,border-color .18s}.memory-card:hover{transform:translateY(-3px);border-color:#c8a9b7;color:inherit}.card-cover{aspect-ratio:16/10;min-height:0;overflow:hidden;background:#f5ebef;border-bottom:1px solid #eedee4}.card-cover img{width:100%;height:100%;object-fit:contain}.card-body{padding:1.3rem 1.4rem 1.5rem}.card-body time,.entry-heading time,.surprise-card time{display:block;font-size:.925rem;color:#7a515f;font-weight:550;letter-spacing:.045em}.card-body h3{margin:.35rem 0 .5rem;font-size:1.28rem}.card-body p{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:var(--muted);font-size:.975rem}.month-group{margin-top:2.5rem}.month-group>:is(h2,h3){margin-bottom:1rem}.panel,.stat-card,.surprise-card{background:var(--paper);border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);padding:clamp(1.25rem,3.1vw,2.4rem)}.panel>*+*,.surprise-card>*+*{margin-top:1rem}.empty,.empty-state{padding:2.75rem 1.5rem;text-align:center;color:var(--muted);border:1px dashed #d9b9c7;background:#fff8fa;border-radius:12px}.loading,.muted,small{color:var(--muted)}.error,.error-message,[role=alert]{color:#992f45}.notice,.feedback{border-left:3px solid #b46e89;padding:.7rem 1rem;background:#fbedf3;border-radius:5px}.reading{max-width:840px;margin-inline:auto}.entry-heading{border-bottom:1px solid var(--line);padding-bottom:1.5rem}.entry-heading h1{margin-top:.5rem}.entry-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.1rem;line-height:2}.album{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start}.photo{position:relative;display:block;margin:0;width:100%;padding:.4rem;min-width:0;border:1px solid var(--line);border-radius:6px;background:#fff;overflow:hidden}.photo img{width:100%;height:auto;object-fit:contain}.photo.wide,.album>.wide{grid-column:1 / -1}.caption{position:absolute;inset:auto .4rem .4rem;z-index:1;padding:2.1rem .95rem .75rem;color:#fff;text-align:left;white-space:pre-line;background:linear-gradient(transparent,#211820d9);transition:opacity .15s;line-height:1.5;opacity:0;max-height:65%;overflow:hidden;pointer-events:none}.photo:hover .caption,.photo:focus-visible .caption,.photo:focus-within .caption{opacity:1}.lightbox{position:fixed;z-index:10;inset:0;display:grid;align-items:center;justify-items:center;max-width:none;max-height:none;width:100%;height:100%;margin:0;border:none;background:#211b20ec;color:#fff;padding:clamp(.75rem,3vw,2rem)}.lightbox-inner{width:min(100%,1120px);max-height:100%;display:flex;flex-direction:column;align-items:center;gap:.7rem;overflow:auto}.lightbox img{object-fit:contain;width:auto;height:auto;max-width:100%;max-height:71vh}.lightbox p,.lightbox figcaption{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;max-width:75ch;max-height:19vh;overflow:auto;padding:.3rem .7rem}.lightbox button{border-color:#91818a;background:#42353d;color:#fff}.lightbox button:hover{background:#604850}.stats-grid,.wish-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.3rem}.stat-card{padding-block:clamp(2rem,4vw,3.4rem);position:relative;background:linear-gradient(135deg,#fcecf0,#fffaf9 80%)}.stat-card:nth-child(2n){background:linear-gradient(135deg,#f5eef7,#fffbfc 80%)}.stat-card strong{font-family:Georgia,var(--heading);font-size:clamp(3.5rem,7.4vw,6.9rem);line-height:1.15;font-weight:500;color:var(--berry)}.stat-card p{color:var(--muted)}.wish-row{border-bottom:1px solid var(--line);padding:1rem 0}.wish-row:last-child{border-bottom:0;padding-bottom:0}.wish-row p{color:var(--muted);margin:.3rem 0;white-space:pre-wrap}.stamp,.status{display:inline-flex;align-items:center;min-height:1.75rem;padding:.15rem .6rem;vertical-align:middle;border-radius:5px;color:#743852;background:#f7e6ec;font-size:.865rem;font-weight:600;line-height:1.3}.stamp{border:1px dashed #ac748d;transform:rotate(-3deg)}.surprise-card{max-width:610px;margin-inline:auto}.surprise-card:before{content:"";display:block;width:76px;height:18px;margin:-2.9rem auto 1.25rem;transform:rotate(-4deg);opacity:.85;background:repeating-linear-gradient(45deg,#dcadbb 0 5px,#edc9d3 5px 10px);clip-path:polygon(0 0,100% 4%,98% 28%,100% 45%,98% 64%,100% 85%,100% 100%,0 96%,2% 79%,0 55%,2% 30%)}.surprise-card img{width:100%;object-fit:contain;max-height:380px;background:#f8f0f3}.footer{margin-top:1rem;padding-block:1.15rem 2rem;border-top:1px solid var(--line);color:var(--muted);font-size:.875rem}.admin-shell{max-width:1100px}.admin-shell h1{font-size:clamp(2rem,3.8vw,3rem)}.admin-shell h2{font-size:clamp(1.45rem,2.5vw,1.9rem)}form{min-width:0}label,.field{display:grid;gap:.4rem;font-size:.95rem;color:#503e47;font-weight:550}input:not([type=checkbox]):not([type=radio]),select,textarea{display:block;width:100%;min-width:0;max-width:100%;min-height:44px;border:1px solid #c9b6bf;border-radius:6px;padding:.65rem .85rem;background:#fff;color:var(--ink);line-height:1.45}textarea{resize:vertical;min-height:5.4rem}input::placeholder,textarea::placeholder{color:#806c77;font-weight:400}input[type=radio],input[type=checkbox]{accent-color:var(--berry);width:18px;height:18px}label:has(>input[type=checkbox]),label:has(>input[type=radio]){display:inline-flex;align-items:center;gap:.5rem;min-height:44px}select{appearance:none;padding-right:2rem;background-image:linear-gradient(45deg,transparent 50%,#7d6670 51%),linear-gradient(135deg,#7d6670 50%,transparent 51%);background-size:5px 5px;background-position:calc(100% - 17px) 51%,calc(100% - 12px) 51%;background-repeat:no-repeat}input[type=file]::file-selector-button{cursor:pointer;border:none;background:#f4dfe8;color:#6f3b52;padding:.4rem .7rem;margin-right:.65rem;border-radius:4px;font:inherit}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.15rem}.form-grid .full,.form-grid .span-all{grid-column:1 / -1}.login-form{max-width:380px;margin-top:1.45rem;display:grid;gap:.9rem}.login-form button{justify-self:start}.toolbar{margin-bottom:1.2rem}.toolbar:has(>label){align-items:end}.toolbar label{flex:1 1 180px}.toolbar>input:not([type=checkbox]):not([type=radio]){flex:1 1 15rem;width:auto}.dropzone{border:1.5px dashed #c99eae;border-radius:10px;background:#fff5f8;padding:1.25rem}.photo-row{display:flex;align-items:center;flex-wrap:wrap;gap:.9rem;border-bottom:1px solid var(--line);padding:1rem 0}.photo-row>img,.photo-row .thumb img{width:98px;height:84px;border-radius:4px;background:#f7eff3;object-fit:contain}.photo-row>label{flex:1 1 200px}.photo-row>div:not(.actions){flex:1 1 12rem;min-width:0;overflow-wrap:anywhere}.photo-row .status{display:table;margin-top:.35rem}.photo-row>.actions{flex-basis:100%}.diary-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--line)}.diary-row:first-of-type{padding-top:0}.diary-row:last-of-type{padding-bottom:0;border-bottom:0}.diary-row h3{margin-block:.25rem .5rem}.diary-row h3 a{text-decoration:none;color:var(--ink)}.diary-row h3 a:hover{text-decoration:underline}.diary-row time{color:var(--muted);font-size:.92rem}.editor-fields{margin-inline:0;min-inline-size:0}.editor-fields>h2{margin-top:2rem}.preview-dialog{max-width:min(94vw,1000px);max-height:94dvh;padding:1rem;background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.preview-dialog::backdrop{background:#211b20c7}.preview-dialog img{max-height:75dvh;object-fit:contain;margin-top:.75rem}table{width:100%;border-collapse:collapse;font-size:.95rem}th,td{padding:.75rem;text-align:left;border-bottom:1px solid var(--line)}th{font-weight:600;color:var(--muted);background:#faf0f4}[hidden]{display:none!important}@media(max-width:980px){.topbar-inner,.shell,.footer{width:min(100% - 3rem,1184px)}.topbar-inner{flex-wrap:wrap;gap:.5rem 1rem;padding-block:.65rem}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.nav{gap:.1rem}.hero{gap:1rem}}@media(max-width:700px){.topbar-inner,.shell,.footer{width:calc(100% - 2rem)}.topbar-inner{position:relative;min-height:60px}.brand{min-height:44px;max-width:calc(100% - 4rem);font-size:1.07rem;overflow-wrap:anywhere}.brand-mark{width:28px;height:32px}.nav{order:3;width:100%;overflow-x:auto;padding:2px 0 4px}.nav a{flex:1 0 auto;justify-content:center;font-size:.875rem;padding:.45rem}.nav .quiet{position:absolute;top:.65rem;right:0}.hero{grid-template-columns:1fr;padding:1.5rem 1.5rem 1.75rem;gap:.65rem}.hero:before{left:8px}.cover-art{aspect-ratio:1.72;width:min(100%,320px)}.hero-copy h1{font-size:clamp(2.05rem,8.1vw,3rem)}.hero-copy>p:not(.eyebrow){font-size:1rem}.hero .actions{margin-top:1.15rem}.login-form{margin-top:1rem}.cards,.album,.wish-grid,.stats-grid,.form-grid{grid-template-columns:minmax(0,1fr)}.album .wide,.form-grid .full,.form-grid .span-all{grid-column:auto}.cards{gap:1rem}.section-head{align-items:center;margin-top:2rem}.stat-card{padding-block:1.6rem}.lightbox img{max-height:62dvh}.lightbox p{max-height:22dvh}.photo-row{align-items:flex-start}.diary-row{flex-direction:column;align-items:start}.admin-shell table{display:block;overflow-x:auto}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
