@font-face{font-family:"DM Sans";src:url("/fonts/dm-sans-latin.woff2") format("woff2");font-style:normal;font-weight:100 1000;font-display:swap}
@font-face{font-family:Fraunces;src:url("/fonts/fraunces-latin.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
:root{--ink:#253c48;--ink-soft:#4c5a5b;--red:#934933;--paper:#fcfaf4;--white:#fffef9;--line:#d9d6c9;--soft:#eeebdf;--serif:Fraunces,Georgia,serif;--sans:"DM Sans",Arial,sans-serif;color-scheme:light}
*{box-sizing:border-box}body{margin:0;font:1rem/1.52 var(--sans);color:var(--ink);background:var(--paper)}a{color:inherit;text-underline-offset:.22em}button,input{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #b26b38;outline-offset:3px}button{touch-action:manipulation}[hidden]{display:none!important}
.wrap{width:min(1160px,calc(100% - 80px));margin:auto}.skip{position:absolute;left:12px;top:-100px;z-index:9;background:white;padding:8px}.skip:focus{top:8px}.site-header{background:var(--paper);border-bottom:1px solid var(--line)}.site-header .wrap,.site-footer .wrap{display:flex;align-items:center;gap:32px}.site-header .wrap{min-height:74px}.brand{display:inline-flex;align-items:center;gap:11px;font:550 1.28rem/1.1 var(--serif);text-decoration:none;letter-spacing:-.035em}.brand img{display:block}.site-nav{margin-left:auto;display:flex;align-items:center;gap:26px}.site-nav a,.site-footer a{font-size:.92rem}.site-nav a{text-decoration:none;color:var(--ink-soft);font-weight:550}.site-nav a[aria-current]{color:var(--ink);text-decoration:underline;text-decoration-color:#b98355;text-decoration-thickness:2px;text-underline-offset:.48em}.site-nav a:hover,.site-footer a:hover{color:var(--red)}.print-btn{display:inline-flex;align-items:center;gap:8px;background:var(--ink);color:#fff8e9;border:1px solid var(--ink);border-radius:5px;padding:8px 15px;font-size:.9rem;font-weight:600}.print-btn svg{width:17px;height:17px}
.hero{position:relative;isolation:isolate;background:#ede7d9;overflow:hidden;border-bottom:1px solid #cecbba}.hero-photo{position:absolute;inset:0;z-index:-1;background:url("/worktable.jpg") center 54%/cover no-repeat}.hero-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(242,237,225,.97) 0%,rgba(242,237,225,.94) 31%,rgba(242,237,225,.72) 43%,rgba(242,237,225,0) 59%)}.hero-inner{padding-block:31px 34px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:500;line-height:1.12}.hero h1{font-size:clamp(3.1rem,5vw,4.45rem);letter-spacing:-.065em;line-height:.96}.hero h1 em{font-family:Georgia,serif;font-weight:400;color:var(--red);letter-spacing:-.06em}.hero p{margin-top:15px;max-width:445px;font-size:1rem;line-height:1.48;color:#394a47}
.workbench{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.5fr);gap:clamp(26px,4.2vw,66px);margin-top:36px;scroll-margin-top:16px}.setup,.results{min-width:0}h2{font-size:clamp(1.55rem,2.2vw,2.03rem);letter-spacing:-.05em}h3{font-size:1.3rem;letter-spacing:-.034em}.modes{display:flex;margin:18px 0 24px;background:#eceade;padding:4px;border:1px solid #d6d3c4;border-radius:7px;gap:3px}.modes button{flex:1;border:0;border-radius:4px;background:transparent;font-weight:600;font-size:.88rem;padding:8px 5px;color:#505b56}.modes button[aria-pressed="true"]{background:var(--ink);color:#fffaf0}.modes button:not([aria-pressed="true"]):hover{background:#e1dfd1}
fieldset{min-width:0;padding:0;border:0;margin:0 0 20px}legend{padding:0;margin:0 0 10px;font-weight:680;font-size:1.02rem;letter-spacing:-.02em}.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}label,.piece-head{font-size:.9rem;color:#4a5754}.fields label{display:grid;gap:5px}.unit-input{display:flex;align-items:center;background:var(--white);border:1px solid #bdbfb2;border-radius:4px;height:40px}.unit-input:focus-within{outline:2px solid #7e9488;outline-offset:1px}.unit-input input{min-width:0;width:100%;border:0;background:transparent;padding:6px 10px;color:var(--ink);font-variant-numeric:tabular-nums;outline:none}.unit-input span{color:#637169;font-size:.81rem;padding-right:9px}.unit-input input:focus-visible{outline:0}input[type=number]{-moz-appearance:textfield;appearance:textfield}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.settings,.setup #pieces-box{padding-top:10px;border-top:1px solid var(--line)}.settings legend,#pieces-box legend{float:left;width:100%;margin:4px 0 12px}.settings>*:nth-child(2),#pieces-box>*:nth-child(2){clear:both}.bolt-field{display:flex;align-items:center;gap:8px;margin:11px 0}.bolt-field .unit-input{max-width:91px;margin-left:auto}.check{display:flex;align-items:center;gap:8px;line-height:1.5;font-size:.92rem;color:var(--ink)}.check input{width:17px;height:17px;accent-color:var(--ink);margin:0}
.piece-row,.piece-head{display:grid;grid-template-columns:50px 1fr 1fr 32px;gap:10px;align-items:center}.piece-head{font-size:.8rem;margin:0 0 5px}.piece-row{margin:6px 0}.piece-row input{min-width:0;width:100%;height:37px;border:1px solid #bdbfb2;border-radius:4px;padding:5px 10px;background:var(--white)}.sample{display:inline-grid;place-items:center;width:33px;height:30px;padding:1px;border-radius:2px;border:1px dashed #fff7d4;color:white;font-size:.88rem;font-weight:700;outline:1px solid #a2a092;background:#2d495b}.sample[data-ink="1"]{background:#966735}.sample[data-ink="2"]{background:#536b81}.sample[data-ink="3"]{background:#526e51}.remove{width:32px;height:32px;border:0;background:transparent;font-size:1.35rem;color:#58645e}.add-piece{margin:5px 0 7px;border:0;padding:3px 0;color:var(--red);font-weight:650;background:transparent}.hint{font-size:.86rem;line-height:1.5;color:var(--ink-soft)}
.layout-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 18px}.live-desc{font-size:.83rem;color:#58645e;white-space:nowrap}.drawing{position:relative;overflow:hidden;border:1px solid #c3c9b9;border-radius:5px;background-color:#edf0e6;background-image:linear-gradient(#758b7719 1px,transparent 1px),linear-gradient(90deg,#758b7719 1px,transparent 1px),linear-gradient(#708b751c 1px,transparent 1px),linear-gradient(90deg,#708b751c 1px,transparent 1px);background-size:16px 16px,16px 16px,80px 80px,80px 80px}.drawing svg{width:100%;height:clamp(238px,24vw,325px);display:block}.drawing-caption{display:flex;justify-content:space-between;gap:8px;padding:2px 13px 8px;color:#495a4e;font:.78rem/1.3 var(--sans)}.stats{display:grid;grid-template-columns:1.2fr 1.3fr .8fr;border-bottom:1px solid var(--line);padding:16px 0}.stats div+div{padding-left:17px;border-left:1px solid var(--line)}.stats span{display:block;font-size:.84rem;color:var(--ink-soft)}.stats strong{display:block;font:500 clamp(1.3rem,2.6vw,2rem)/1.24 var(--serif);margin-top:5px;letter-spacing:-.05em;color:var(--ink)}.stats div:first-child strong{color:var(--red)}.comparison{color:#3b5348;margin:12px 0 20px;font-size:.92rem}.cut-list h3,.join-list h3{margin:0 0 6px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;font-size:.9rem;text-align:left;margin-top:10px}th,td{padding:7px 8px;border-bottom:1px solid var(--line)}thead{background:#eeeade}thead th{font-weight:600;color:#45504a}tbody th{font-weight:550}.join-list{margin:19px 0}.join-list ol{margin:6px 0;padding-left:1.5rem;font-size:.94rem}.join-list li+li{margin-top:4px}details{border-top:1px solid var(--line);padding-top:10px;font-size:.92rem}summary{cursor:pointer;color:var(--red);font-weight:600}details p{margin:8px 0;color:var(--ink-soft)}#error{padding:16px;border:1px solid #a05437;background:#fff2e8;border-radius:4px}.print-config{display:none}
.guide-section{padding:35px 0 44px;margin-top:35px;border-top:1px solid var(--line)}.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin-top:17px}.guide-grid>a{display:block;border-top:2px solid #b3b8a5;padding-top:15px;text-decoration:none}.guide-grid h3{margin:.65rem 0 .35rem}.guide-grid p{color:var(--ink-soft);font-size:.94rem;max-width:340px}.guide-grid>a:hover h3{text-decoration:underline}.patch{display:block;width:37px;height:28px;border:1px solid #697365}.p-one{background:conic-gradient(at 66% 53%,#bd8940 0 25%,#a3b0c1 0 50%,#304c61 0)}.p-two{background:repeating-linear-gradient(46deg,#263f50 0 3px,#e5d0a6 3px 6px)}.p-three{background:repeating-linear-gradient(90deg,transparent 0 5px,#b8845c 5px 6px),repeating-linear-gradient(0deg,#f2e8d3 0 5px,#b8845c 5px 6px)}.site-footer{border-top:1px solid var(--line);background:#f2efe6;padding:22px 0}.site-footer .wrap{justify-content:space-between}.site-footer .brand{font-size:1rem}.site-footer a{font-size:.86rem}
.guide-page{padding:44px 20px 58px}.guide-wrap{max-width:760px;margin:auto}.guide-wrap h1{font-size:clamp(2.4rem,5.6vw,4.1rem);letter-spacing:-.055em;margin:12px 0 16px}.guide-kicker{color:var(--red);font-weight:650}.guide-intro{font-size:1.18rem;color:#465954}.guide-wrap p,.guide-wrap ul,.guide-wrap ol{margin-bottom:14px}.guide-wrap section{margin-top:30px}.guide-wrap h2,.guide-wrap h3{margin-bottom:12px}.guide-wrap li{margin:5px 0}.guide-action{display:inline-block;margin:4px 0;padding:10px 16px;color:var(--white);background:var(--ink);border-radius:4px;text-decoration:none}.guide-links{border-top:1px solid var(--line);margin-top:34px;padding-top:24px}.guide-links a{display:inline-block;margin:0 16px 6px 0;color:var(--red)}.guide-wrap section a{color:var(--red)}
@media(max-width:850px){.wrap{width:calc(100% - 44px)}.workbench{gap:25px;grid-template-columns:minmax(245px,.9fr) minmax(0,1.25fr)}.site-header .wrap{gap:20px}.hero-photo{background-position:58% center}.stats div+div{padding-left:10px}.piece-row,.piece-head{grid-template-columns:35px 1fr 1fr 28px;gap:6px}}
@media(max-width:660px){.wrap{width:calc(100% - 32px)}.site-header .wrap{min-height:58px;gap:12px}.brand{font-size:1rem;gap:6px}.brand img{height:26px;width:26px}.site-nav{gap:12px}.site-nav a{font-size:.81rem}.header-inner .site-nav a[aria-current]{display:none}.print-btn{font-size:.8rem;padding:6px 9px;gap:4px}.print-btn svg{width:15px}.hero-inner{padding-block:23px}.hero h1{font-size:3rem}.hero p{font-size:.91rem;max-width:66%;line-height:1.4}.hero-photo{background-position:59% center}.hero-photo:after{background:linear-gradient(90deg,#f2eddf 0%,#f2eddfec 33%,#f2eddfb0 54%,#f2eddf00 79%)}.wide{display:none}.workbench{display:flex;flex-direction:column;gap:18px;margin-top:23px}.setup h2,.results h2{font-size:1.6rem}.modes{margin:13px 0 16px}.settings{margin-bottom:10px}.results{scroll-margin-top:12px}.layout-heading{margin-bottom:10px}.drawing svg{height:250px}.guide-grid{grid-template-columns:1fr;gap:17px}.guide-grid>a{position:relative;padding-left:55px;min-height:65px}.guide-grid .patch{position:absolute;left:1px;top:19px}.guide-grid h3{margin:0 0 4px}.guide-grid p{max-width:none}.guide-page{padding:28px 16px 40px}}
@media(max-width:360px){.wrap{width:calc(100% - 24px)}.site-header .wrap{gap:8px}.brand{font-size:.92rem}.print-btn svg{display:none}.stats span{font-size:.76rem}}
@media print{@page{margin:12mm}body{background:white;color:black;font-size:10pt}.site-header .wrap{min-height:32px}.wrap{width:100%;max-width:none}.site-nav,.hero,.setup,.site-footer,.print-btn,.guide-section,.skip,.results details,.guide-action,.guide-links{display:none!important}.workbench{display:block;margin:12px 0}.layout-heading{margin-bottom:4px}.drawing{break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}.drawing svg{height:184px}.drawing-caption{font-size:8pt}.stats{padding:7px 0}.stats strong{font-size:16pt}.stats span,.hint,.comparison,.join-list ol,table{font-size:9pt}.comparison{margin:6px 0}.print-config{display:block;padding:6px 0 10px;color:#313c35;font-size:9pt}.join-list{margin:10px 0}.cut-list th,.cut-list td{padding:3px 6px}tr,.join-list li{break-inside:avoid}.cut-list h3,.join-list h3{break-after:avoid}.guide-page{padding:8px 0}.guide-wrap h1{font-size:24pt}.guide-wrap h2{font-size:16pt}}

.extra-settings{border:0;padding:0}.extra-settings>summary{display:none}@media(max-width:660px){.extra-settings>summary{display:list-item;font-size:.95rem;padding:9px 0}.extra-settings{border-block:1px solid var(--line)}.extra-settings .settings{border:0}.setup fieldset:has(#width){margin-bottom:12px}}

@media(max-width:660px){.site-header .brand,.site-nav a,.print-btn{white-space:nowrap}.header-inner .site-nav a{text-transform:capitalize}.long-label{display:none}.hero-photo:after{background:linear-gradient(90deg,#f2eddf 0%,#f2eddfed 43%,#f2eddfcf 63%,#f2eddf00 86%)}.hero h1{font-size:clamp(2.4rem,11.9vw,3.1rem)}.hero p{max-width:70%}}

.piece-row,.piece-head{grid-template-columns:35px minmax(0,1fr) minmax(0,1fr) 46px 27px;gap:7px}.piece-row .piece-lock{width:16px;height:16px;accent-color:var(--ink);justify-self:center;cursor:pointer}.piece-row .piece-lock:disabled{cursor:default}.piece-head{font-size:.77rem}@media(min-width:661px) and (max-width:850px){.piece-row,.piece-head{grid-template-columns:32px minmax(0,1fr) minmax(0,1fr) 40px 24px;gap:5px}}

/* The sample uses the same cuts and fabric renderer as the working planner. */
.hero{background:#182f36;color:#fbf3de}
.hero-photo{opacity:.28;filter:saturate(.7)}
.hero-photo:after{background:linear-gradient(90deg,#12272c 4%,#21363a99 60%,#132b32 100%)}
.hero-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-content:center;align-items:center;column-gap:24px;padding-block:33px}
.hero h1,.hero p,.hero-actions{grid-column:1}
.hero h1{align-self:end}.hero h1 em{color:#f2bb7f}
.hero p{color:#f2e7ce;align-self:center}
.hero-actions{margin-top:21px;align-self:start}
.hero-actions a{display:inline-block;background:#efd6a8;color:#1e3439;padding:10px 15px;border-radius:4px;font-weight:720;text-decoration:none}
.hero-actions a:hover{background:#ffe6b6}
.assembly{grid-column:2;grid-row:1 / span 3;perspective:950px;position:relative;min-width:0;padding:10px 0 0}
.assembly-board{
  background:repeating-linear-gradient(0deg,transparent 0 19px,#e2d6ac20 19px 20px),
    repeating-linear-gradient(90deg,transparent 0 19px,#e2d6ac20 19px 20px),#284746;
  border:1px solid #e7d1a56b;border-radius:9px;box-shadow:0 15px 35px #081c22a1,inset 0 0 35px #15332f;
  transform:rotateX(var(--tilt-x,8deg)) rotateY(var(--tilt-y,-10deg));transition:transform .25s ease-out;
}
.assembly-board svg{width:100%;height:clamp(228px,23vw,307px);display:block}
.assembly-board svg>g>text,.assembly-board svg>g>g:nth-last-child(2){fill:#f8e8cb}
.assembly-board svg>g>g:nth-last-child(3){stroke:#ecdbb4}
.assembly-caption{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:13px;color:#f2e7ce;font-size:.85rem}
.assembly-caption button{background:#1e3439;color:#fbf2da;border:1px solid #f4dfb17d;border-radius:4px;padding:5px 9px}
.assembly-caption button:hover{background:#355852}
#assembly-diagram .cloth-panel{animation:piece-arrive .85s cubic-bezier(.2,.74,.22,1) both;animation-delay:calc(120ms + var(--panel-index) * 160ms)}
#assembly-diagram .cloth-panel:nth-of-type(2){--start-x:-42px;--start-y:-25px;--start-angle:-12deg}
#assembly-diagram .cloth-panel:nth-of-type(3){--start-x:45px;--start-y:-28px;--start-angle:12deg}
#assembly-diagram .cloth-panel:nth-of-type(4){--start-x:40px;--start-y:35px;--start-angle:-10deg}
.cloth-panel{transform-box:fill-box;transform-origin:center}
#diagram .cloth-panel{animation:cut-update .3s ease-out both}
@keyframes piece-arrive{from{opacity:0;transform:translate(var(--start-x,32px),var(--start-y,25px)) rotate(var(--start-angle,8deg)) scale(.82);filter:drop-shadow(4px 12px 5px #112828a0)}to{opacity:1;transform:none;filter:none}}
@keyframes cut-update{from{opacity:.55;transform:scale(.965)}to{opacity:1;transform:none}}
@media(max-width:660px){
  .hero-photo:after{background:linear-gradient(95deg,#11272c 4%,#243e4199 76%,#132b32)}
  .hero-inner{display:block;padding-block:24px 18px}
  .hero p{max-width:none}
  .hero-actions{margin-top:13px}
  .assembly{padding-top:19px}
  .assembly-board{transform:none}
  .assembly-board svg{height:190px}
  .assembly-caption{margin-top:7px}
}
@media(prefers-reduced-motion:reduce){
  .assembly-board{transition:none;transform:none}
  #assembly-diagram .cloth-panel,#diagram .cloth-panel{animation:none}
}

.assembly-board svg .cloth-panel > rect:last-of-type{animation:stitch-reveal .65s 1s ease-out both}
@keyframes stitch-reveal{from{stroke-opacity:0;stroke-dashoffset:14}to{stroke-opacity:.65;stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){.assembly-board svg .cloth-panel > rect:last-of-type{animation:none}}

.fabric-photo{grid-column:2 / -1;display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin-bottom:4px}
.photo-picker{position:relative;display:inline-block;background:#efecdf;border:1px solid var(--line);border-radius:4px;padding:4px 8px;color:var(--ink);cursor:pointer;font-size:.8rem}
.piece-row .photo-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.photo-picker:focus-within{outline:2px solid #a56c42;outline-offset:2px}
.clear-photo{border:0;border-radius:4px;background:transparent;text-decoration:underline;padding:4px;color:var(--red);font-size:.8rem}
.photo-message{font-size:.8rem;color:var(--ink-soft)}
.sample{background-position:center;background-size:cover;text-shadow:0 1px 3px #16282a}
