:root{font-family:"Noto Serif SC",Songti SC,STSong,Georgia,serif;color:#342d27;background:#f7f2e9;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:#f7f2e9}button,input,textarea{font:inherit}button{cursor:pointer}.page-shell{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:76px 0 96px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:50px}.eyebrow{margin:0 0 10px;color:#9a7d67;font-family:Arial,sans-serif;font-size:11px;font-weight:700;letter-spacing:.18em}h1,h2,p{margin-top:0}h1{margin-bottom:10px;font-size:clamp(34px,4.2vw,54px);font-weight:600;letter-spacing:.04em;line-height:1.1}.page-subtitle{margin-bottom:0;color:#6c5c50;font-size:19px}.add-button,.icon-button,.primary-button,.text-button{border:0;background:transparent}.add-button{display:inline-flex;align-items:center;gap:8px;min-height:50px;padding:0 21px;border:1px solid #665245;border-radius:12px;color:#342d27;font-weight:700;font-size:16px}.add-button:hover{background:#eee3d5}.add-button span{font-size:23px;font-weight:400;line-height:1}.memory-wall{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.add-card,.memory-card{height:440px;overflow:hidden;border:1px solid #d8c6b1;border-radius:18px;background:#fcf9f3;text-align:left}.memory-card{display:flex;padding:0;flex-direction:column;color:inherit;transition:transform .2s ease,box-shadow .2s ease}.memory-card:hover{box-shadow:0 14px 26px rgba(77,57,40,.14);transform:translateY(-3px)}.memory-card__cover{position:relative;display:flex;height:210px;flex:0 0 210px;align-items:center;justify-content:center;overflow:hidden;border-bottom:1px solid #ddc9b4;background-color:#eee4d5;background-image:repeating-linear-gradient(0deg,rgb(117 91 66/4%),rgb(117 91 66/4%) 1px,transparent 0,transparent 5px);color:#3d322b}.memory-card:nth-child(2n) .memory-card__cover{background:linear-gradient(135deg,#f4d7c4,#f7e8d6)}.memory-card__cover span{font-family:Arial,sans-serif;font-size:58px;font-weight:400;line-height:1}.memory-card__cover-background{display:none}.memory-card__cover-image{position:relative;z-index:1;display:block;width:auto!important;max-width:calc(100% - 36px);height:auto!important;max-height:calc(100% - 20px);flex:0 1 auto;border:1px solid rgba(90,69,56,.14);border-radius:10px;-o-object-fit:contain!important;object-fit:contain!important;-o-object-position:center;object-position:center;box-shadow:0 6px 15px rgba(71,51,35,.18)}.memory-card__body{min-height:0;flex:1 1 auto;overflow:hidden;padding:20px 28px 24px}.memory-card h2{display:-webkit-box;margin-bottom:7px;font-size:23px;font-weight:600;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}.memory-card h2,.memory-card__period{overflow:hidden;overflow-wrap:anywhere}.memory-card__period{margin-bottom:12px;color:#766558;font-family:Arial,sans-serif;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.memory-card__excerpt{display:-webkit-box;overflow:hidden;margin-bottom:0;color:#4c4037;font-size:16px;line-height:1.65;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:3}.add-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border-style:dashed;color:#5f4e42;text-align:center}.add-card:hover{border-color:#98785e;background:#f8f0e4}.add-card span{font-family:Arial,sans-serif;font-size:58px;font-weight:200;line-height:1}.add-card strong{font-size:18px;font-weight:500}.dialog-backdrop{position:fixed;z-index:10;inset:0;display:grid;place-items:center;padding:24px;background:rgba(47,37,29,.42)}.memory-dialog{width:min(610px,100%);max-height:min(760px,calc(100vh - 48px));overflow:auto;padding:32px;border-radius:20px;background:#fdfaf4;box-shadow:0 20px 60px rgba(43,31,22,.25)}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:28px}.dialog-heading h2{margin-bottom:0;font-size:30px}.icon-button{width:36px;height:36px;border-radius:50%;color:#5c4b3f;font-family:Arial,sans-serif;font-size:28px;line-height:1}.icon-button:hover{background:#f0e5d6}form{gap:20px}form,label{display:grid}label{gap:8px;color:#443930;font-size:15px;font-weight:700}input,textarea{width:100%;border:1px solid #cdbba7;border-radius:10px;outline:0;background:#fffdf9;color:#342d27;font-size:16px;font-weight:400;padding:12px 14px}textarea{resize:vertical;min-height:132px;line-height:1.55}input:focus,textarea:focus{border-color:#98785e;box-shadow:0 0 0 3px rgba(152,120,94,.16)}.field-error{color:#ab493a}.cover-field em,.field-error{font-size:13px;font-weight:400}.cover-field em{color:#856d5d;font-style:normal}.cover-upload{position:relative;display:flex;min-height:128px;align-items:center;justify-content:center;flex-direction:column;gap:7px;overflow:hidden;border:1px dashed #c7af98;border-radius:10px;background:#fffdf9;color:#745f50;cursor:pointer;transition:border-color .2s ease,background .2s ease}.cover-upload:focus-within,.cover-upload:hover{border-color:#98785e;background:#f8f0e5}.file-input{position:absolute;inset:0;width:100%;height:100%;cursor:pointer;opacity:0}.cover-upload__plus{font-family:Arial,sans-serif;font-size:36px;font-weight:300;line-height:1}.cover-upload__hint{font-size:14px;font-weight:400}.cover-preview{max-height:190px;width:100%;border:1px solid #d7c3ad;border-radius:10px;-o-object-fit:cover;object-fit:cover}.dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:8px}.text-button{padding:10px 6px;color:#725f51}.primary-button{border-radius:10px;background:#5a4538;color:#fffaf2;padding:12px 20px;font-weight:700}.primary-button:hover{background:#44342a}.detail-page{padding-top:8px}.detail-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:32px}.back-button{border:0;background:transparent;color:#604d40;font-size:16px}.back-button:hover{color:#2f241d;text-decoration:underline;text-underline-offset:4px}.delete-button{border:1px solid #b7796a;border-radius:8px;background:transparent;color:#984f41;padding:8px 12px;font-size:14px}.delete-button:hover{background:#fbebe6}.detail-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);gap:clamp(34px,7vw,100px);align-items:start}.detail-cover{display:grid;min-height:360px;overflow:hidden;place-items:center;border:1px solid #d8c6b1;border-radius:20px;background:#f0dfc5}.detail-cover--empty{background:linear-gradient(135deg,#f1dfbf,#f7ecd8)}.detail-cover span{font-family:Arial,sans-serif;font-size:90px}.detail-cover img{width:100%;height:100%;min-height:360px;-o-object-fit:cover;object-fit:cover}.detail-copy{padding-top:30px}.detail-copy h1{font-size:clamp(36px,4.4vw,58px)}.detail-label{margin:42px 0 12px;color:#9a7d67;font-size:14px;font-weight:700;letter-spacing:.08em}.detail-memory{max-width:680px;color:#463a32;font-size:20px;line-height:2;white-space:pre-wrap}@media (max-width:820px){.page-shell{width:min(100% - 32px,620px);padding-top:42px}.page-header{align-items:flex-end;margin-bottom:32px}.memory-wall{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.add-card,.memory-card{height:410px}.memory-card__cover{height:190px;flex-basis:190px}.memory-card__body{padding:20px}.detail-layout{grid-template-columns:1fr;gap:28px}.detail-toolbar{margin-bottom:24px}.detail-copy{padding-top:0}.detail-cover,.detail-cover img{min-height:280px}}@media (max-width:540px){.page-header{flex-direction:column;align-items:stretch}.add-button{justify-content:center}.memory-wall{grid-template-columns:1fr}.memory-dialog{padding:24px 20px}.dialog-actions{align-items:stretch;flex-direction:column-reverse}.primary-button{width:100%}}