:root{
  color-scheme:light;
  --paper:#f5f2e8;--ink:#21231e;--muted:#5d6055;--rule:#c6c5b7;--orange:#d95118;--gutter:clamp(20px,4.1vw,74px);
  font:16px/1.45 "Helvetica Neue",Arial,Helvetica,sans-serif;
}
*{box-sizing:border-box}
html{min-width:280px}
body{min-height:100svh;margin:0;color:var(--ink);background:var(--paper) url("assets/paper.jpg") center 32%/1400px auto;display:flex;flex-direction:column}
button,input,a{font:inherit;color:inherit}
button{border:0;background:none;padding:0;cursor:pointer}
button:disabled{cursor:default}
a{text-decoration:none}
button,a{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #aa4319;outline-offset:4px}
[hidden]{display:none!important}
h1,h2,h3,p{margin:0}
h1{font-family:"DIN Alternate","Arial Narrow","Helvetica Neue",Arial,sans-serif;font-weight:700;letter-spacing:-.047em;line-height:.96}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.masthead,main,footer{width:min(calc(100% - 2 * var(--gutter)),1536px);margin-inline:auto}
.masthead{position:relative;min-height:clamp(72px,6.4vw,100px);display:grid;grid-template-columns:1fr auto 1fr;gap:20px;align-items:center;border-bottom:1px solid var(--ink)}
.wordmark{display:inline-flex;align-items:center;width:clamp(130px,14vw,208px);min-height:44px}
.wordmark img{width:100%;height:auto;display:block}
#filters{display:flex;gap:clamp(20px,3.2vw,50px);height:100%;align-items:center}
#filters button{position:relative;min-height:44px;font-size:.94rem;white-space:nowrap}
#filters button[aria-pressed="true"]::after{content:"";position:absolute;left:0;right:0;bottom:3px;height:2px;background:var(--orange)}
.instagram{justify-self:end;font-size:.92rem}
.instagram:hover,footer a:hover,footer button:hover,.preview-links button:hover,.back-link:hover,.measure-head button:hover{text-decoration:underline;text-underline-offset:4px}
main{flex:1}
.showroom{position:relative;isolation:isolate;margin-top:clamp(15px,2.6vw,38px)}
.intro{position:absolute;left:0;top:12.3%;z-index:1;pointer-events:none}
.intro h1{font-size:clamp(48px,5.25vw,83px)}
.intro p{margin-top:12px;font-size:clamp(.88rem,1.1vw,1.1rem)}
.rail-viewport{overflow:hidden;position:relative;touch-action:pan-y;cursor:grab;user-select:none;-webkit-user-select:none}
.rail-viewport.dragging,.rail-viewport.dragging *{cursor:grabbing}
.rail-world{width:100%;aspect-ratio:var(--aspect,1200 / 554);position:relative}
#rail-art,#rail-buttons{position:absolute;inset:0;width:100%;height:100%}
#rail-art{pointer-events:none;overflow:visible}
.fabric-shadow{filter:drop-shadow(4px 7px 5px rgb(57 47 27 / .14))}
#rail-buttons{pointer-events:none}
.garment{position:absolute;top:0;height:100%;pointer-events:none;color:var(--ink);outline:none}
.garment::before{content:"";position:absolute;left:0;right:0;top:8%;height:calc(var(--garment-end,78%) - 8%);pointer-events:auto}
.garment-label{position:absolute;top:90%;left:var(--label-left,50%);transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:1px;white-space:nowrap;pointer-events:auto;padding:3px 4px;line-height:1.29}
.garment-label b{position:relative;font-size:clamp(.84rem,1.03vw,1.03rem);font-weight:510}
.garment-label small{font-size:clamp(.77rem,.9vw,.91rem);color:var(--muted)}
.garment.is-front b::after{content:"";position:absolute;bottom:-2px;height:1.5px;background:var(--orange);left:0;right:0}
.garment.is-front .garment-label{gap:4px}
.garment:focus-visible .garment-label{outline:2px solid #a3441b;outline-offset:4px;border-radius:1px}
.rail-tools{min-height:65px;border-top:1px solid var(--rule);display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:.88rem}
.browse-tools{display:flex;align-items:center;gap:4px}
.step{height:38px;min-width:39px;display:inline-grid;place-items:center;font-size:1.25rem;border:1px solid transparent;border-radius:50%;background:transparent}
.step:hover,.step:focus-visible{border-color:var(--rule)}
.drag-help{padding-left:9px;color:var(--muted)}
#rest-hint{color:var(--muted)}
.text-action,.subtle-link{font-weight:600;text-decoration:underline;text-decoration-color:var(--orange);text-underline-offset:5px}
.text-action{min-height:44px}
footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--rule);padding:20px 0;font-size:.79rem;color:var(--muted);margin-top:clamp(25px,3.4vw,58px)}
.back-link{font-size:.9rem;min-height:45px;margin:11px 0 9px}
.bench{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(315px,.85fr);align-items:start;gap:clamp(30px,5.8vw,100px)}
.work-surface{min-width:0}
.work-picture{position:relative;background:radial-gradient(ellipse at 55% 37%,#faf7ee 0%,#f0ecdf 100%);border:1px solid #d1cdbf;border-radius:2px;overflow:hidden;isolation:isolate}
#studio-art{display:block;width:100%;height:clamp(320px,52vh,620px);min-height:310px;transition:opacity .18s}
#studio-art.loading{opacity:.72}
#zoom{position:absolute;right:12px;bottom:13px;width:38px;height:38px;border-radius:50%;border:1px solid #b7b7aa;background:var(--paper);font-size:1.4rem;line-height:1}
#views{display:flex;flex-wrap:wrap;gap:5px;justify-content:center;align-items:center;border-bottom:1px solid var(--rule);padding:10px 0}
#views button,.style-choice,.letter-tools button{border:1px solid var(--rule);min-height:37px;border-radius:20px;padding:5px 13px;font-size:.86rem;line-height:1.2}
#views button[aria-pressed="true"],.style-choice[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.preview-links{display:flex;gap:22px;align-items:center;justify-content:space-between;padding:11px 0}
.preview-links button,.measure-head button,.subtle-link{font-size:.87rem;min-height:34px}
.preview-links button,.measure-head button{text-decoration:underline;text-underline-offset:3px}
#controls{padding-bottom:14px}
#product-name{font-size:clamp(41px,4.6vw,72px);margin-top:0}
#colourway{margin:7px 0 20px;color:var(--muted);font-size:.95rem}
#options{border-top:1px solid var(--ink)}
fieldset{min-width:0;position:relative;margin:0;padding:13px 0;display:flow-root;border:0;border-bottom:1px solid var(--rule)}
fieldset legend{float:left;width:31%;padding:7px 6px 0 0;font-size:.92rem;font-weight:600}
.styles,.swatches{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}
.styles{row-gap:5px}
.fabric-choice{display:flex;flex-direction:column;align-items:center;gap:4px;padding:2px 3px 1px;font-size:.79rem;min-width:39px}
.chip{height:28px;width:28px;border-radius:50%;border:1px solid #292b2545;background:var(--chip)}
.chip.camo{background: url("assets/camo.webp") center/65px}
.fabric-choice[aria-pressed="true"] .chip{outline:2px solid var(--orange);outline-offset:2px}
.fabric-choice:disabled{opacity:.32}
.fabric-choice:not(:disabled):hover .chip{box-shadow:0 0 0 1px var(--ink)}
.measure-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0 8px}
.measure-head h2{font-size:.94rem;font-weight:600}
.measurements{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.measurements label{font-size:.86rem}
.measurements label span{display:flex;align-items:center;border:1px solid #a9ab9d;margin-top:4px;padding:4px 9px}
.measurements input{font-size:1rem;min-width:0;width:100%;height:27px;border:0;outline-offset:1px;background:transparent}
.measurements i{font-size:.82rem;color:var(--muted);font-style:normal}
.primary{display:flex;align-items:center;justify-content:center;min-height:45px;padding:8px 15px;width:100%;margin-top:17px;background:#df561d;color:#171c15;font-weight:650}
.primary:hover{background:#eb6429}
.flying-cloth{position:fixed;z-index:5;pointer-events:none;transform-origin:top left}
.retry{position:absolute;bottom:52px;left:16px;text-decoration:underline}
dialog{color:var(--ink);padding:clamp(20px,4vw,32px);background:var(--paper);border:1px solid var(--ink);max-height:89dvh;width:min(590px,calc(100% - 24px))}
dialog::backdrop{background:#1c1e1880}
#close{position:absolute;right:10px;top:9px;width:34px;height:34px;border:1px solid var(--rule);border-radius:50%;background:var(--paper);font-size:1.45rem;line-height:1;z-index:1}
dialog h2{font-family:"DIN Alternate","Arial Narrow","Helvetica Neue",Arial,sans-serif;font-size:2rem;letter-spacing:-.035em;line-height:1.1;margin:0 34px 16px 0}
dialog p{margin:10px 0}dialog p + a,dialog a:not(.primary){text-decoration:underline;text-underline-offset:3px}
dialog dl{display:grid;grid-template-columns:1fr 1fr;margin:0}
dialog dt,dialog dd{margin:0;padding:8px 0;border-bottom:1px solid var(--rule);font-size:.92rem}
dialog dd{text-align:right}
dialog .subtle-link{display:block;margin:8px auto 0}
.gallery-img{display:block;width:100%;height:min(54svh,470px);object-fit:contain;background:#eeeade}
.gallery-caption,.photo-nav,.letter-tools{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:10px 0}
.gallery-caption,.fine{font-size:.86rem;color:var(--muted)}
.photo-nav,.letter-tools{justify-content:center}
.photo-nav{font-size:.86rem}
.zoom-frame{position:relative;height:min(52svh,440px);background:#efecdf;overflow:hidden}
.zoom-frame img{position:absolute;left:50%;top:50%;display:block;transform-origin:center}
@media(max-width:950px) and (min-width:741px){
  .masthead,main,footer{width:calc(100% - 40px)}
  .intro h1{font-size:48px}.intro p{font-size:.82rem}
  .garment-label b{font-size:.79rem}.garment-label small{font-size:.75rem}
  .bench{gap:22px;grid-template-columns:minmax(0,1.13fr) minmax(300px,.9fr)}
  fieldset legend{width:28%}.swatches{gap:3px}
}
@media(max-width:740px){
  .masthead{min-height:65px;display:flex;justify-content:space-between;gap:12px}
  .wordmark{width:clamp(83px,23vw,138px)}#filters{gap:clamp(11px,3.6vw,23px)}#filters button{font-size:.88rem}
  .instagram{display:none}
  .showroom{margin-top:0}
  .intro{position:static;padding:26px 0 6px;display:flex;align-items:baseline;gap:16px;justify-content:space-between}
  .intro h1{font-size:clamp(42px,9.6vw,62px)}.intro p{font-size:.84rem;margin:0}
  .rail-viewport{margin-inline:calc(-1 * var(--gutter));overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x pan-y;scrollbar-width:thin;scrollbar-color:#b2b1a2 transparent}
  .rail-world{min-width:var(--mobile-width,860px)}
  .garment-label b{font-size:.88rem}.garment-label small{font-size:.78rem}
  .rail-tools{min-height:59px;font-size:.81rem}.browse-tools{gap:0}.drag-help{padding-left:4px}
  .step{min-width:33px}.rail-tools .text-action{font-size:.81rem}
  .bench{display:flex;flex-direction:column;gap:21px}
  .work-surface,#controls{width:100%}#studio-art{height:clamp(240px,67vw,385px);min-height:0}
  #views{gap:4px}#views button{padding:5px 9px;font-size:.8rem;min-height:35px}
  .back-link{margin:2px 0;font-size:.85rem}
  #product-name{font-size:46px}#colourway{margin-bottom:15px}
  fieldset legend{width:30%}.swatches{gap:5px}
  footer{margin-top:26px;padding:15px 0}
}
@media(max-width:360px){:root{--gutter:13px}.drag-help{display:none}.rail-world{min-width:var(--mobile-width,805px)}fieldset legend{width:27%}.swatches{gap:3px}.fabric-choice{min-width:34px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important}}

footer{display:block;padding-block:0;margin-top:1rem}
.photo-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,2vw,32px);padding:14px 0;border-bottom:1px solid var(--rule)}
.photo-strip>*{display:flex;align-items:center;gap:12px;text-align:left;color:var(--ink);font-size:.94rem}
.photo-strip img{width:clamp(60px,8vw,115px);height:52px;object-fit:cover;object-position:50% 37%}
.photo-strip>*:nth-child(2) img{object-position:50% 64%}
.photo-strip>*:last-child img{object-position:50% 61%}
.maker-line{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:13px 0;font-size:.85rem}
.maker-line>*{min-height:28px;display:inline-flex;align-items:center}
@media(max-width:600px){.photo-strip>*{flex-direction:column;align-items:flex-start;gap:5px;font-size:.81rem}.photo-strip img{width:100%;height:54px}.maker-line{column-gap:12px;font-size:.8rem}}

@media (min-width:741px) and (hover:hover) and (pointer:fine){#rail-art .fabric-shadow{filter:none}}
