:root{color-scheme:light;--bg:#f3f4ee;--paper:#fff;--ink:#1d241d;--muted:#747a70;--line:#dfe2d8;--accent:#c8f06f;--accent-dark:#56741e;--dark:#20291f;--reserved:#eceee7;--danger:#a43b35}
*{box-sizing:border-box}
html{min-width:320px;background:var(--bg)}
body{margin:0;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
a{color:inherit}
button{cursor:pointer}
.page{width:min(100% - 64px,1180px);min-height:100svh;margin:auto;display:flex;flex-direction:column}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:25px 0;border-bottom:1px solid var(--line)}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-size:22px;font-weight:700;letter-spacing:-.8px}
.brand-mark{display:grid;place-items:center;width:37px;height:37px;border-radius:11px;background:var(--dark);color:var(--accent)}
.brand-mark svg{width:24px;height:24px}
.header-actions{display:flex;align-items:center;gap:24px}
.portal-link{color:var(--muted);font-size:11px;text-decoration:none}.portal-link:hover{color:var(--ink)}
.button{display:inline-flex;align-items:center;justify-content:center;gap:22px;min-height:46px;padding:0 22px;border:1px solid transparent;border-radius:12px;font-weight:600;font-size:13px;text-decoration:none;transition:transform .15s,background .15s,box-shadow .15s}
.button:hover{transform:translateY(-1px)}.button:active{transform:translateY(0)}
.button:focus-visible,.icon-button:focus-visible,.text-button:focus-visible,a:focus-visible{outline:3px solid #7ea840;outline-offset:4px}
.button-small{min-height:38px;padding:0 16px;border-radius:10px;font-size:11px}
.button-dark{background:var(--dark);color:#fff}.button-dark:hover{background:#34402f}
.button-accent{background:var(--accent);color:#243016;box-shadow:0 8px 22px #76963e1a}.button-accent:hover{background:#d2f68a}
.button-light{background:#fff;border-color:var(--line);color:var(--ink)}.button-light:hover{border-color:#b6beab}
.button-wide{width:100%;justify-content:space-between;margin-top:8px}
.button:disabled{opacity:.55;cursor:wait;transform:none}
main{flex:1}
.hero{display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:90px;padding:82px 0 70px}
.eyebrow{margin:0 0 16px;color:#79816f;font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.hero h1{max-width:670px;margin:0;font-size:clamp(52px,6.4vw,82px);line-height:1.01;letter-spacing:-.055em;font-weight:650}
.hero h1 em{position:relative;z-index:0;font-style:normal;white-space:nowrap}.hero h1 em::after{content:"";position:absolute;z-index:-1;left:-2%;right:-3%;bottom:3%;height:24%;background:var(--accent);transform:rotate(-1.5deg);border-radius:3px}
.hero-description{max-width:490px;margin:26px 0 32px;color:var(--muted);font-size:16px;line-height:1.7}
.hero-actions{display:flex;align-items:center;gap:20px}.hero-note{color:var(--muted);font-size:11px}
.preview{position:relative;padding:28px;background:var(--dark);border-radius:28px;box-shadow:0 25px 60px #27301e1c;transform:rotate(2deg)}
.preview::before{content:"";position:absolute;inset:-14px 22px 14px -14px;z-index:-1;border:1px solid #cdd3c2;border-radius:28px;transform:rotate(-5deg)}
.preview-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;color:#fff}.preview-top strong{font-size:18px}.preview-top span{color:var(--accent);font-size:10px}
.preview-gift{display:flex;align-items:center;gap:15px;padding:16px;margin-top:10px;background:#ffffff0b;border:1px solid #ffffff12;border-radius:15px;color:#fff}
.preview-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;background:#ffffff10;border-radius:11px;font-size:20px}
.preview-gift>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:4px;font-size:12px}.preview-gift small{color:#aab2a5;font-size:10px}
.preview-check{display:grid;place-items:center;width:22px;height:22px;border:1px solid #ffffff26;border-radius:50%;color:var(--accent);font-size:11px}.preview-gift.reserved{opacity:.6}
.owned{padding:10px 0 64px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}.section-heading h2{margin:0;font-size:25px;letter-spacing:-.8px}.section-heading p{margin:0;color:var(--muted);font-size:12px}
.owned-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.owned-card{position:relative;display:flex;flex-direction:column;min-height:156px;padding:22px;background:#ffffff80;border:1px solid var(--line);border-radius:17px;text-decoration:none;transition:border-color .2s,transform .2s}.owned-card:hover{border-color:#a7b497;transform:translateY(-2px)}
.owned-card h3{margin:0 0 9px;font-size:18px;letter-spacing:-.4px}.owned-card p{display:-webkit-box;overflow:hidden;margin:0;color:var(--muted);font-size:12px;line-height:1.5;-webkit-line-clamp:2;-webkit-box-orient:vertical}.owned-meta{display:flex;justify-content:space-between;gap:12px;margin-top:auto;padding-top:20px;color:#899080;font-size:10px}
.list-page{padding:46px 0 64px}.back-link{display:inline-flex;align-items:center;gap:8px;margin-bottom:34px;color:var(--muted);font-size:11px;text-decoration:none}.back-link:hover{color:var(--ink)}
.list-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:30px;padding-bottom:36px;border-bottom:1px solid var(--line)}
.list-heading h1{max-width:760px;margin:0;font-size:clamp(40px,5.5vw,68px);line-height:1.05;letter-spacing:-.045em;font-weight:650;overflow-wrap:anywhere}.list-description{max-width:700px;margin:18px 0 0;color:var(--muted);font-size:15px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.list-date{display:inline-block;margin-top:18px;padding:7px 11px;border:1px solid var(--line);border-radius:20px;color:var(--muted);font-size:10px}
.list-actions{display:flex;flex:0 0 auto;gap:9px}.owner-note{margin:18px 0 0;color:var(--muted);font-size:11px;line-height:1.6}
.gifts-heading{display:flex;align-items:center;justify-content:space-between;margin:34px 0 18px}.gifts-heading h2{margin:0;font-size:13px;font-weight:600}.gifts-heading span{color:var(--muted);font-size:11px}
.gift-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.gift-card{position:relative;min-width:0;overflow:hidden;background:var(--paper);border:1px solid var(--line);border-radius:19px}.gift-image{position:relative;display:grid;place-items:center;aspect-ratio:1.45;background:linear-gradient(135deg,#e8ecdf,#f7f8f3);overflow:hidden}.gift-image img{position:absolute;width:100%;height:100%;object-fit:cover}.gift-placeholder{color:#a6af9c;font-size:39px;font-weight:600;letter-spacing:-2px}.gift-badge{position:absolute;top:13px;left:13px;padding:6px 9px;background:#ffffffe8;border-radius:20px;color:var(--muted);font-size:9px;backdrop-filter:blur(6px)}.gift-badge.reserved{background:var(--dark);color:#fff}
.gift-body{padding:20px}.gift-body h3{margin:0;font-size:18px;line-height:1.3;letter-spacing:-.35px;overflow-wrap:anywhere}.gift-price{margin:7px 0 0;color:var(--accent-dark);font-size:12px;font-weight:600}.gift-note{margin:13px 0 0;color:var(--muted);font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.gift-actions{display:flex;align-items:center;gap:8px;margin-top:20px}.gift-actions .button{flex:1;min-height:39px;padding:0 12px;font-size:11px}.gift-link{display:grid;place-items:center;flex:0 0 39px;height:39px;border:1px solid var(--line);border-radius:10px;color:var(--muted);text-decoration:none}.gift-link:hover{color:var(--ink);border-color:#a7b497}
.owner-controls{display:flex;gap:15px;margin-top:15px;padding-top:13px;border-top:1px solid #edf0e8}.text-button{padding:0;border:0;background:none;color:var(--muted);font-size:10px}.text-button:hover{color:var(--ink)}.text-button.danger:hover{color:var(--danger)}
.gift-card.is-reserved .gift-image img{filter:grayscale(.6);opacity:.65}.gift-card.is-reserved .gift-body h3{color:#6f766a}
.empty{padding:54px 24px;border:1px dashed #cbd1c0;border-radius:20px;text-align:center}.empty-symbol{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 18px;background:#e8eddf;border-radius:18px;font-size:25px}.empty h2{margin:0 0 10px;font-size:21px;letter-spacing:-.5px}.empty p{max-width:390px;margin:0 auto 22px;color:var(--muted);font-size:13px;line-height:1.6}
.error-page{padding:110px 0;text-align:center}.error-page h1{margin:0 0 15px;font-size:45px;letter-spacing:-2px}.error-page p{margin:0 0 25px;color:var(--muted)}
.site-footer{display:flex;justify-content:space-between;gap:20px;padding:22px 0;border-top:1px solid var(--line);color:#949b8c;font-size:9px}
.dialog{width:min(calc(100% - 32px),560px);max-height:calc(100svh - 40px);padding:30px;border:1px solid var(--line);border-radius:23px;background:var(--bg);color:var(--ink);box-shadow:0 30px 100px #15200e33;overflow:auto}.dialog::backdrop{background:#15200e80;backdrop-filter:blur(5px)}
.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:25px}.dialog-heading .eyebrow{margin-bottom:8px}.dialog h2{margin:0;font-size:28px;letter-spacing:-1px}.icon-button{display:grid;place-items:center;flex:0 0 34px;height:34px;padding:0;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--muted);font-size:22px;line-height:1}.icon-button:hover{background:#fff;color:var(--ink)}
.dialog form>label,.form-row label{display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px;margin-top:17px;font-size:11px;font-weight:600}.dialog label>span{color:#9a9f94;font-size:9px;font-weight:400}.dialog input,.dialog textarea{width:100%;margin-top:2px;padding:12px 13px;border:1px solid #d8ddd0;border-radius:10px;outline:none;background:#fff;color:var(--ink);font-size:13px;font-weight:400;resize:vertical}.dialog input:focus,.dialog textarea:focus{border-color:#8ba75b;box-shadow:0 0 0 3px #a9c87525}.dialog input::placeholder,.dialog textarea::placeholder{color:#abb1a5}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-error{min-height:16px;margin:12px 0 0;color:var(--danger);font-size:11px}.share-description{color:var(--muted);font-size:13px;line-height:1.6}.share-field{display:flex;gap:8px;margin-top:22px}.share-field input{min-width:0;flex:1;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:11px}.toast{position:fixed;z-index:20;left:50%;bottom:25px;max-width:calc(100% - 32px);padding:12px 18px;border-radius:12px;background:var(--dark);color:#fff;box-shadow:0 10px 35px #0003;font-size:12px;opacity:0;pointer-events:none;transform:translate(-50%,15px);transition:opacity .2s,transform .2s}.toast.visible{opacity:1;transform:translate(-50%,0)}
.loading{display:grid;place-items:center;align-content:center;min-height:55vh;color:var(--muted);font-size:12px}.loading span{width:28px;height:28px;border:2px solid var(--line);border-top-color:var(--accent-dark);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:950px){.hero{gap:45px}.hero h1{font-size:58px}.gift-grid{grid-template-columns:repeat(2,1fr)}.owned-grid{grid-template-columns:repeat(2,1fr)}.list-heading{flex-direction:column}.list-actions{flex-wrap:wrap}}
@media(max-width:700px){.page{width:min(100% - 36px,1180px)}.portal-link{display:none}.hero{grid-template-columns:1fr;gap:55px;padding:55px 0}.hero h1{font-size:clamp(48px,12vw,72px)}.hero-description{font-size:14px}.preview{width:min(100%,430px);justify-self:center}.owned{padding-top:0}.list-page{padding-top:30px}.gift-grid{gap:12px}.list-heading h1{font-size:45px}.list-actions{width:100%}.list-actions .button{flex:1}.site-footer{padding:20px 0}.header-actions{gap:10px}}
@media(max-width:520px){.page{width:calc(100% - 28px)}.site-header{padding:18px 0}.brand{font-size:20px}.brand-mark{width:34px;height:34px}.button-small{padding:0 12px;font-size:10px}.hero{padding-top:44px}.hero h1{font-size:49px}.hero h1 em{white-space:normal}.hero-actions{align-items:flex-start;flex-direction:column;gap:14px}.preview{padding:20px;border-radius:22px}.owned-grid,.gift-grid{grid-template-columns:1fr}.owned-card{min-height:140px}.section-heading{align-items:flex-start;flex-direction:column;gap:7px}.gift-image{aspect-ratio:1.7}.list-heading{gap:24px;padding-bottom:28px}.list-heading h1{font-size:40px}.list-actions{display:grid;grid-template-columns:1fr 1fr}.list-actions .button:first-child{grid-column:1/-1}.dialog{padding:23px 19px;border-radius:18px}.form-row{grid-template-columns:1fr;gap:0}.share-field{flex-direction:column}.share-field input{min-height:43px}.site-footer{flex-direction:column;gap:7px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
