:root{--paper:#fbf9f5;--surface:#fff;--ink:#211e1a;--muted:#736d65;--line:#ded7cc;--gold:#9b7950;--gold-dark:#765a3a;--sage:#9ba38d;--shadow:0 24px 80px rgba(55,43,29,.1);--serif:"Iowan Old Style","Baskerville",Georgia,serif;--sans:"Avenir Next",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.65 var(--sans);-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button,a{touch-action:manipulation}img{display:block;max-width:100%}a{color:inherit}.site-header{position:sticky;top:0;z-index:20;min-height:76px;padding:0 clamp(20px,4vw,64px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;border-bottom:1px solid transparent;background:rgba(251,249,245,.84);backdrop-filter:blur(18px);transition:.2s}.site-header.scrolled{border-color:rgba(128,111,89,.16);box-shadow:0 8px 34px rgba(60,48,34,.06)}.brand{width:126px}.brand img{width:100%;height:auto}.site-header nav{display:flex;gap:28px}.site-header nav a,.text-button{border:0;background:0;color:var(--ink);text-decoration:none;font-size:13px;letter-spacing:.04em;cursor:pointer}.account-actions{justify-self:end}.account-menu{position:relative}.avatar-button{display:flex;align-items:center;gap:8px;border:0;background:transparent;cursor:pointer}.avatar-button span:first-child{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e9dfd0;color:#58462f;font-weight:700}.account-popover{position:absolute;right:0;top:44px;width:160px;padding:8px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow)}.account-popover a,.account-popover button{display:block;width:100%;padding:9px 10px;border:0;background:transparent;text-align:left;text-decoration:none;color:var(--ink);cursor:pointer}.hero{min-height:calc(100vh - 76px);padding:clamp(50px,8vw,110px) clamp(22px,6vw,100px);display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.92fr);align-items:center;gap:7vw;overflow:hidden}.eyebrow{margin:0 0 14px;color:var(--gold-dark);font-size:11px;font-weight:700;letter-spacing:.2em}.hero h1,.section-heading h2,.story-copy h2,.studio-heading h2,.auth-dialog h2{margin:0;font:400 clamp(46px,7vw,92px)/.94 var(--serif);letter-spacing:-.045em}.hero h1 em{color:var(--gold);font-weight:400}.hero-lead{max-width:630px;margin:28px 0;color:var(--muted);font-size:18px}.hero-actions,.creator-actions{display:flex;gap:12px;flex-wrap:wrap}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:999px;text-decoration:none;font-weight:650;cursor:pointer;transition:transform .2s,background .2s}.primary-button{border:1px solid var(--ink);background:var(--ink);color:#fff}.primary-button:hover{transform:translateY(-1px);background:#3b342c}.secondary-button{border:1px solid var(--line);background:rgba(255,255,255,.7);color:var(--ink)}.secondary-button:hover{transform:translateY(-1px);background:#fff}.primary-button:disabled,.secondary-button:disabled{opacity:.42;cursor:not-allowed;transform:none}.trust-list{display:flex;gap:26px;flex-wrap:wrap;margin:28px 0 0;padding:0;list-style:none;color:var(--muted);font-size:12px}.trust-list li:before{content:"✦";margin-right:7px;color:var(--gold)}.hero-visual{position:relative;min-height:620px}.hero-main{width:82%;height:560px;margin-left:auto;object-fit:cover;border-radius:48% 48% 8px 8px;box-shadow:var(--shadow)}.hero-float{position:absolute;left:0;bottom:35px;width:39%;aspect-ratio:1;object-fit:cover;border:12px solid var(--paper);border-radius:50%;box-shadow:var(--shadow)}.hero-note{position:absolute;right:-15px;top:55px;padding:16px 20px;border-radius:50%;background:#dfe3d6;color:#4e5548;font:italic 19px/1.15 var(--serif);transform:rotate(8deg)}.section,.studio-section{padding:100px clamp(22px,6vw,100px)}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:40px;margin-bottom:40px}.section-heading h2,.story-copy h2,.studio-heading h2,.auth-dialog h2{font-size:clamp(38px,5vw,62px)}.section-heading>p{max-width:510px;margin:0;color:var(--muted)}.collection-tabs{display:flex;gap:10px;margin-bottom:30px;overflow:auto;padding-bottom:4px}.collection-tabs button{white-space:nowrap;padding:10px 16px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--muted);cursor:pointer}.collection-tabs button.active{border-color:var(--ink);background:var(--ink);color:#fff}.template-grid,.design-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.template-card,.design-card{overflow:hidden;border:1px solid rgba(158,139,113,.2);border-radius:16px;background:var(--surface);box-shadow:0 14px 50px rgba(49,38,25,.05)}.template-card img,.design-card>img{width:100%;aspect-ratio:1;object-fit:cover;background:#eee9df}.template-card-body,.design-card-body{padding:16px}.template-card h3,.design-card h3{margin:4px 0 6px;font:400 21px/1.2 var(--serif)}.template-meta{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em}.template-card button,.design-card button{width:100%;margin-top:13px;padding:11px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);cursor:pointer}.template-card button:hover,.design-card button:hover{border-color:var(--gold);color:var(--gold-dark)}.loading-card,.empty-state{grid-column:1/-1;padding:50px;border:1px dashed var(--line);border-radius:16px;text-align:center;color:var(--muted)}.story-section{padding:110px clamp(22px,8vw,130px);display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,1fr);gap:9vw;align-items:center;background:#292822;color:#f6f0e7}.story-image img{width:100%;height:580px;object-fit:cover;border-radius:280px 280px 16px 16px}.story-copy p:not(.eyebrow){max-width:650px;color:#d4cdc2;font-size:17px}.story-copy .eyebrow{color:#d7b789}.studio-section{background:linear-gradient(135deg,#eee6d8,#f8f5ee 48%,#e9ede4)}.studio-heading{max-width:850px;margin-bottom:45px}.studio-heading>p:last-child{max-width:650px;color:var(--muted)}.studio-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.65fr);gap:24px}.creator-panel,.studio-preview{padding:28px;border:1px solid rgba(255,255,255,.8);border-radius:20px;background:rgba(255,255,255,.72);box-shadow:var(--shadow);backdrop-filter:blur(12px)}.creator-panel>label:not(.consent-row){display:block;margin:15px 0 7px;font-weight:700}.creator-panel textarea,.auth-dialog input,.refine-input,.select-input{width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);padding:13px;outline:0}.creator-panel textarea:focus,.auth-dialog input:focus,.refine-input:focus,.select-input:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(155,121,80,.12)}.prompt-chips{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 18px}.prompt-chips button{padding:7px 11px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);cursor:pointer}.upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.upload-card{padding:18px;border:1px dashed #b8aa97;border-radius:14px;background:rgba(255,255,255,.58)}.upload-card p{min-height:46px;margin:6px 0;color:var(--muted);font-size:12px}.upload-card>span{display:block;margin-top:9px;color:var(--muted);font-size:11px}.upload-button{display:inline-flex;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:12px;cursor:pointer}.consent-row{display:flex;align-items:flex-start;gap:9px;margin:18px 0;color:var(--muted);font-size:12px}.consent-row input{margin-top:4px}.selected-template{display:flex;gap:14px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.selected-template img{width:72px;height:72px;border-radius:10px;object-fit:cover}.selected-template span,.selected-template strong{display:block}.selected-template span{color:var(--muted);font-size:11px}.selected-template button{padding:0;border:0;background:transparent;color:var(--gold-dark);font-size:11px;cursor:pointer}.status-message{min-height:24px;margin:14px 0 0;color:var(--muted)}.status-message.error{color:#a33c33}.status-message.success{color:#4c765c}.preview-frame{min-height:390px;display:grid;place-items:center;overflow:hidden;border-radius:14px;background:#eee8df;color:var(--muted);text-align:center}.preview-frame img{width:100%;height:100%;max-height:480px;object-fit:contain}.studio-preview>p{color:var(--muted);font-size:12px}.designs-section{background:#f7f2e9}.design-card-body>p{min-height:50px;color:var(--muted);font-size:13px}.design-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.design-actions .checkout-action{grid-column:1/-1;background:var(--ink);color:#fff;border-color:var(--ink)}.refine-panel{display:grid;gap:8px;margin-top:10px}.badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#eee7db;color:#715a3d;font-size:10px;text-transform:uppercase;letter-spacing:.08em}footer{padding:58px clamp(22px,6vw,100px);display:grid;grid-template-columns:1fr auto;gap:20px;border-top:1px solid var(--line);background:#fff}footer strong{font:400 28px var(--serif)}footer p{margin:5px 0;color:var(--muted)}footer nav{display:flex;gap:16px;flex-wrap:wrap;justify-content:flex-end}footer nav a{color:var(--muted);font-size:12px}.copyright{grid-column:1/-1;font-size:11px}.auth-dialog{width:min(460px,calc(100% - 32px));padding:0;border:0;border-radius:20px;box-shadow:var(--shadow)}.auth-dialog::backdrop{background:rgba(23,20,17,.55);backdrop-filter:blur(5px)}.auth-dialog form{position:relative;padding:34px}.auth-dialog label{display:block;margin:14px 0 6px;font-weight:700}.auth-dialog .primary-button{width:100%;margin-top:10px}.dialog-close{position:absolute;right:18px;top:16px;border:0;background:transparent;font-size:28px;cursor:pointer}.form-error{min-height:22px;color:#a33c33}.toast{position:fixed;right:24px;bottom:24px;z-index:50;max-width:380px;padding:13px 18px;border-radius:12px;background:#24211d;color:#fff;box-shadow:var(--shadow)}
.auth-mode{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 0 24px;padding:4px;border-radius:999px;background:#f1ece3}.auth-mode button{min-height:40px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-weight:650;cursor:pointer}.auth-mode button.active{background:#fff;color:var(--ink);box-shadow:0 3px 14px rgba(49,38,25,.08)}.auth-dialog label span{font-weight:400;color:var(--muted)}.registration-agreement{display:flex!important;align-items:flex-start;gap:9px;font-size:12px;font-weight:400!important;color:var(--muted)}.registration-agreement input{width:auto;margin-top:4px}.registration-agreement a{color:var(--gold-dark)}
@media(max-width:1050px){.template-grid,.design-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero{grid-template-columns:1fr .78fr}.hero-visual{min-height:500px}.hero-main{height:470px}.site-header nav{display:none}}
@media(max-width:780px){.site-header{grid-template-columns:1fr auto}.hero{grid-template-columns:1fr;padding-top:60px}.hero-visual{min-height:470px}.hero-main{width:88%;height:430px}.hero h1{font-size:58px}.section-heading{display:block}.section-heading>p{margin-top:14px}.template-grid,.design-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.story-section,.studio-layout{grid-template-columns:1fr}.story-image img{height:440px}.upload-grid{grid-template-columns:1fr}footer{grid-template-columns:1fr}footer nav{justify-content:flex-start}}
@media(max-width:520px){.site-header{padding:0 16px}.brand{width:105px}.avatar-button span:last-child{display:none}.hero,.section,.studio-section,.story-section{padding-left:16px;padding-right:16px}.hero h1{font-size:48px}.hero-lead{font-size:16px}.hero-visual{min-height:400px}.hero-main{height:370px;border-radius:48% 48% 8px 8px}.hero-float{border-width:7px}.template-grid,.design-grid{grid-template-columns:1fr}.creator-panel,.studio-preview{padding:18px}.trust-list{display:grid;gap:7px}.story-image img{height:390px}.hero-note{right:0}.design-actions{grid-template-columns:1fr}}
