@font-face{font-family:Caprasimo;src:url(caprasimo.ttf) format("truetype");font-display:swap}
:root{--paper:#fff;--ground:#f5c95c;--ink:#1a2b22;--soft:#dfe8dc;--line:#b5c2b6;--quiet:#4c5a51;--accent:#86481f;--btn:#1f3a2c;--btn-ink:#fff;--error:#a11a1a;
--display:Caprasimo,"Cooper Black",Georgia,serif;--body:"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,Roboto,sans-serif;--edge:max(clamp(24px,4.5vw,72px),env(safe-area-inset-left),env(safe-area-inset-right))}
:root[data-lamp=off]{--paper:#14231c;--ground:#0d1813;--ink:#e8efe5;--soft:#23382d;--line:#3f5348;--quiet:#b3c1b6;--accent:#f5c95c;--btn:#f5c95c;--btn-ink:#1a2b22;--error:#ffb0a3;color-scheme:dark}
*{box-sizing:border-box}html{background:var(--ground);scroll-behavior:smooth;-webkit-text-size-adjust:100%}
/* Phones tint the strip behind the clock from the body colour, so it matches the top of the page */
main{background:var(--paper);transition:background .5s}
body{margin:0;background:var(--ground);color:var(--ink);font:1.0625rem/1.6 var(--body);transition:background .5s,color .5s}
h1,h2,p,ul,dl,dd,figure,blockquote,fieldset,legend{margin:0;padding:0}ul{list-style:none}fieldset{border:0;min-width:0}
h1,h2{font-family:var(--display);font-weight:400;line-height:.92;letter-spacing:-.025em;text-wrap:balance}
h2{font-size:clamp(2.6rem,6vw,5.25rem)}img{display:block;max-width:100%;height:auto}button,input{font:inherit}a{color:inherit;text-underline-offset:.2em}
[hidden]{display:none!important}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.skip{position:absolute;left:-999px;z-index:9;padding:12px;background:var(--paper)}.skip:focus{left:8px;top:8px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:.28em;min-height:58px;padding:12px 30px;border:0;border-radius:29px;background:var(--btn);color:var(--btn-ink);font-weight:600;text-decoration:none;cursor:pointer;transition:background .3s,color .3s,transform .15s}
.button:hover{transform:translateY(-2px)}.button:active{transform:none}.button:disabled{opacity:.55;cursor:wait}

.hero{position:relative;min-height:min(100svh,1000px);display:flex;flex-direction:column;padding:calc(22px + env(safe-area-inset-top)) var(--edge) 0;background:var(--ground);overflow:hidden;transition:background .5s}
.hero__slot{display:contents}
.brand{font-family:var(--display);font-weight:400;font-size:1.75rem;letter-spacing:-.02em}
.hero__copy{margin-top:clamp(18px,4vh,44px)}.hero h1{font-size:clamp(2.6rem,1.6rem + 5.6vw,4.8rem);line-height:.98}p,dd{text-wrap:pretty}
.hero__copy p{max-width:27em;margin-top:16px;font-size:clamp(1.0625rem,1.5vw,1.3rem);line-height:1.45}
.hero__actions{padding:20px 0 26px}.hero__offer{margin-bottom:12px;font-weight:600}
.hero picture,.hero noscript img{order:3;flex:1 1 300px;min-height:260px;position:relative;margin:0 calc(var(--edge)*-1);border-radius:50% 50% 0 0/44px 44px 0 0;overflow:hidden}
.hero picture img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 72%;filter:brightness(1.22) saturate(1.1);transition:filter .7s;animation:lamp 1.3s .15s both}
[data-lamp=off] .hero picture img{filter:brightness(.72) saturate(.8);animation:none}
@keyframes lamp{0%,22%,32%{filter:brightness(.45) saturate(.6)}26%{filter:brightness(1) saturate(1)}}
.hero:not([data-version]) .hero__actions{visibility:hidden}
.hero__b a{padding:11px 0}
.hero__b{display:none;align-items:center;gap:12px 24px;flex-wrap:wrap}.hero[data-version=b] .hero__b{display:flex}.hero[data-version=b] .hero__a{display:none}
/* The bead hangs close to the page margin, with clear space from the screen edge */
.cord{position:fixed;z-index:4;top:-300px;right:calc(var(--edge)/2 - 14px);right:round(calc(var(--edge)/2 - 14px),1px);display:flex;align-items:flex-end;height:calc(386px + env(safe-area-inset-top));padding:0;border:0;background:none;color:var(--ink);font-size:1rem;cursor:pointer;transition:transform .25s cubic-bezier(.3,1.8,.5,1)}
.cord span{padding:0 2px 2px 0;transition:opacity .25s}.cord.is-scrolled:not(:hover,:focus-visible) span{opacity:0;pointer-events:none}.cord.is-scrolled span{padding:4px 12px;border-radius:16px;background:var(--paper)}
.cord i{position:relative;flex:none;width:44px;height:100%;background:linear-gradient(var(--ink),var(--ink)) 50% 0/2px 100% no-repeat,linear-gradient(var(--paper),var(--paper)) 50% 0/4px 100% no-repeat}
.cord i::after{content:"";position:absolute;bottom:0;left:11px;box-sizing:border-box;width:22px;height:30px;border:2px solid var(--paper);border-radius:9px;background:var(--accent)}
.cord:hover{transform:translateY(6px)}.cord:active{transform:translateY(22px)}

.product{display:grid;gap:48px;padding-block:52px}.product .buy{order:-1}
.gallery{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-content:start}.gallery img:first-child{grid-column:1/-1;aspect-ratio:5/4}.gallery img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:50% 70%;filter:brightness(1.3)}
.gallery img,.feature>img{transition:filter .7s}.is-waiting{filter:brightness(.45) saturate(.6)!important}
[data-lamp=off] .gallery img{filter:brightness(.72) saturate(.8)}
.buy{padding:0 var(--edge);min-width:0}.buy h2{font-size:clamp(2.6rem,4.6vw,4.2rem)}.buy__price{display:flex;align-items:baseline;gap:12px;margin-top:14px}.buy__price strong{font:400 clamp(2.4rem,3.4vw,3.2rem)/1.2 var(--display);font-variant-numeric:tabular-nums}.buy__price s{color:var(--quiet);font-size:1.125rem}.buy__offer,.cart__offer{color:var(--accent);font-weight:600}
.buy__text{margin:14px 0 26px;max-width:34em}.buy legend{font-weight:600;margin-bottom:10px}
.sizes{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.sizes label{position:relative}.sizes input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.sizes span{display:flex;flex-direction:column;align-items:center;min-height:132px;padding-top:12px;border-radius:12px;line-height:1.25;transition:background .2s}
/* Each size is a bed seen from above. Widths follow US mattress widths in inches. */
.sizes span::before{content:"";width:calc(var(--w,60)*.86px);max-width:86%;height:70px;margin-bottom:8px;border:2px solid currentColor;border-radius:7px;background:linear-gradient(#fff 30%,currentColor 30% 33%,#7f9c88 33%);transition:background .2s}
.sizes input[data-name=King]+span{--w:76}.sizes input[data-name=Full]+span{--w:54}.sizes input[data-name=Twin]+span{--w:38}
.sizes input:checked+span{background:var(--ground);font-weight:600}.sizes input:not(:disabled):hover+span{background:var(--soft)}.sizes input:checked:hover+span{background:var(--ground)}
[data-lamp=off] .sizes input:checked+span{background:var(--btn);color:var(--btn-ink)}
.sizes input:focus-visible+span{outline:3px solid var(--accent);outline-offset:2px}.sizes input:disabled{cursor:not-allowed}.sizes input:disabled+span{color:var(--quiet)}.sizes input:disabled+span::before{border-style:dashed;background:none}.sizes small{font-size:.875rem}
.addon{display:flex;align-items:center;gap:12px;min-height:64px;margin:16px 0;border-block:1px solid var(--line);cursor:pointer}.addon input{width:22px;height:22px;accent-color:var(--btn)}.addon strong{margin-left:auto}
.buy .button{width:100%}.error{margin-top:12px;color:var(--error);font-weight:600}.promises{margin-top:20px}.promises li+li{margin-top:4px}

.feature{display:grid;background:var(--soft);transition:background .5s}.feature>img{grid-area:1/1;width:100%;height:min(130vw,78svh);object-fit:cover;object-position:50% 20%;filter:brightness(1.15)}
.feature>h2{grid-area:1/1;z-index:1;padding:clamp(28px,5vw,72px) var(--edge);font-size:clamp(4.2rem,14.5vw,14rem);line-height:.84;color:#1a2b22;mix-blend-mode:multiply}
.feature::before{content:"";grid-area:1/1;z-index:1;background:linear-gradient(rgb(235 236 228/.62) 62%,rgb(235 236 228/0) 92%)}
[data-lamp=off] .feature>img{filter:brightness(.5)}[data-lamp=off] .feature::before{background:linear-gradient(rgb(13 24 19/.5) 62%,rgb(13 24 19/0) 92%)}[data-lamp=off] .feature>h2{color:#e8efe5;mix-blend-mode:normal}
.feature dl{display:grid;gap:26px;padding:44px var(--edge) 60px}.feature dt{font:400 1.75rem/1.15 var(--display);letter-spacing:-.02em;margin-bottom:6px}
.reviews,.faq{padding:clamp(72px,9vw,130px) var(--edge)}.reviews__notice{margin-top:16px;color:var(--accent);font-weight:600}
.reviews>div{display:grid;gap:44px;margin-top:48px}.reviews blockquote{font:400 clamp(1.9rem,4.1vw,3.6rem)/1.04 var(--display);letter-spacing:-.015em;text-wrap:balance}.reviews figcaption{margin-top:12px;color:var(--quiet)}
.faq{padding-top:0}.faq>div{margin-top:28px}.faq details{border-top:1px solid var(--line)}.faq details:last-child{border-bottom:1px solid var(--line)}.faq summary{display:flex;justify-content:space-between;gap:16px;list-style:none;padding:20px 0;font-size:1.2rem;font-weight:600;cursor:pointer}.faq summary::-webkit-details-marker{display:none}.faq summary::after{content:"+";font:400 1.9rem/1 var(--display)}.faq details[open] summary::after{content:"3"}.faq details p{max-width:38em;padding-bottom:22px}
.close{background:var(--ground);transition:background .5s}.close>img{width:100%;height:min(90vw,70svh);object-fit:cover;object-position:50% 72%;filter:brightness(1.15)}[data-lamp=off] .close>img{filter:brightness(.6) saturate(.7)}
.close>div{padding:56px var(--edge) 140px}.close h2{font-size:clamp(3.2rem,10vw,9.5rem)}.close p{margin:20px 0 26px;font-size:1.2rem}.close .close__small{margin:52px 0 0;max-width:36em;font-size:1rem}
.close__number{display:block;padding:.06em .05em .06em 0;width:fit-content;margin:-.06em 0 -.05em -.04em;font-size:76vw;line-height:.8;letter-spacing:-.05em;font-variant-numeric:tabular-nums}
.close__number.is-filled{background:var(--photo) 50% 62%/cover;-webkit-background-clip:text;background-clip:text;color:transparent;filter:brightness(.82) saturate(1.2);transition:filter .5s}[data-lamp=off] .close__number.is-filled{filter:brightness(1.5)}
.roll{display:inline-block;position:relative;line-height:1.2;clip-path:inset(0 -1px)}.roll b{display:inline-block;position:relative;font-weight:inherit;animation:roll .75s cubic-bezier(.2,.9,.25,1) both;animation-delay:calc(var(--i)*55ms)}
.roll b::before{content:attr(data-tape);position:absolute;left:0;bottom:100%;white-space:pre}.roll--down b::before{bottom:auto;top:100%}
@keyframes roll{from{transform:translateY(calc(var(--from)*1.2em))}}
.sticky{position:fixed;inset:auto 0 0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px var(--edge) calc(10px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line)}.sticky p{line-height:1.3}.sticky p>span{display:block}.sticky .button{min-height:48px}
.cart{width:min(100%,460px);max-width:none;height:100dvh;max-height:none;margin:0 0 0 auto;padding:28px;border:0;background:var(--paper);color:var(--ink)}.cart::backdrop{background:rgb(15 22 17/.6)}
.cart h2{clear:both;font-size:3rem}.cart__close{float:right;min-height:44px;padding:0 4px;border:0;background:none;color:inherit;text-decoration:underline;cursor:pointer}.cart__message{margin-top:12px}.cart__items{margin:24px 0}.cart__items li{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid var(--line)}.cart .button{width:100%;margin:20px 0}

@media(max-width:899px){.reviews,.faq,.feature dl{padding-right:38px}}
@media(min-width:900px){
.close__number{display:inline-block;margin:-.07em .02em -.05em -.02em;font-size:min(45vw,44rem)}
.hero{display:grid;grid-template:auto auto auto minmax(300px,1fr)/minmax(0,auto) minmax(0,1fr);column-gap:56px}.hero__copy{display:contents}.brand{grid-area:1/1/2/3}
.hero h1{grid-area:2/1/3/3;margin-top:clamp(18px,4vh,44px);font-size:min(9.2vw,12rem);line-height:.92}.hero__copy p{grid-area:3/1;align-self:end;max-width:23em;margin:0;padding:38px 0 40px}.hero__actions{grid-area:3/2;align-self:end;padding:38px 0 34px}
.hero picture img{object-position:50% 58%}.hero picture{grid-area:4/1/5/3;border-radius:50% 50% 0 0/90px 90px 0 0}
.product{grid-template-columns:minmax(0,1.5fr) minmax(380px,1fr);gap:clamp(40px,5vw,88px);padding:var(--edge) var(--edge) 120px}
.product .buy{order:0}.gallery{gap:12px}.gallery img{aspect-ratio:1}.gallery img:first-child{aspect-ratio:3/2}
.buy{padding:0;position:sticky;top:40px;align-self:start}
.feature{grid-template-columns:1fr 1fr}.feature::before{display:none}.feature>img{grid-area:1/2/3/3;height:100%;min-height:760px;object-position:50% 50%}.feature>h2{align-self:end;padding-bottom:0;font-size:min(8.2vw,10.5rem);color:inherit;mix-blend-mode:normal}.feature dl{grid-area:2/1;align-content:start;max-width:40rem;padding-block:44px 72px}
.reviews>div{grid-template-columns:repeat(3,1fr);gap:clamp(32px,4vw,72px)}.reviews blockquote{font-size:min(2.6vw,2.9rem)}
.faq{display:grid;grid-template-columns:1fr 1.5fr;gap:64px}.faq>div{margin:0}.close>div{padding-top:110px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
