/* Proper Cloth in the Key of Drake’s, in the wardrobe's Studio Nicholson language: Helvetica Neue (their Neue Haas Grotesk Text),
   black text with a #666 grey for the secondary, small tracked capitals for labels, #dedede rules, a pale
   grey ground behind photographs, square black buttons, no rounding. No web fonts are loaded. */

:root{--face:'Helvetica Neue','neue-haas-grotesk-text',Helvetica,Arial,sans-serif;--fg:#000;--soft:#444;--muted:#666;--rule:#dedede;--ground:#f0f0f0;--panel:#fff;--solid:#000;--on-solid:#fff;--bg:#fff;--err:#a3001b;--veil:rgba(255,255,255,.82);--shadow:0 6px 24px rgba(0,0,0,.08);color-scheme:light}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--fg:#f2f2f2;--soft:#cfcfcf;--muted:#9a9a9a;--rule:#333;--ground:#1f1f1f;--panel:#181818;--solid:#f2f2f2;--on-solid:#111;--bg:#111;--err:#ff8f8f;--veil:rgba(17,17,17,.78);--shadow:0 6px 24px rgba(0,0,0,.5);color-scheme:dark}}
:root[data-theme=dark]{--fg:#f2f2f2;--soft:#cfcfcf;--muted:#9a9a9a;--rule:#333;--ground:#1f1f1f;--panel:#181818;--solid:#f2f2f2;--on-solid:#111;--bg:#111;--err:#ff8f8f;--veil:rgba(17,17,17,.78);--shadow:0 6px 24px rgba(0,0,0,.5);color-scheme:dark}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:15px/1.5 var(--face);letter-spacing:.01em;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;letter-spacing:inherit;border-radius:0}
:focus-visible{outline:2px solid var(--fg);outline-offset:2px}
img{display:block;max-width:100%}
[hidden]{display:none!important}
.muted{color:var(--muted)}
.caps{font-size:11px;line-height:1.4;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:0}
.vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.heart{display:block;flex:none}
[aria-pressed=true]>.heart path{fill:currentColor}

/* Header: the wordmark, the sections, and on the right the favourites heart and the account. */
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:24px;padding:0 16px;padding-top:env(safe-area-inset-top);height:56px;background:var(--bg);border-bottom:1px solid var(--rule)}
.mark{flex:none;font-size:12px;text-transform:uppercase;letter-spacing:.16em;font-weight:500}
.mark:hover{text-decoration:none}
.nav{display:flex;gap:20px;overflow-x:auto;scrollbar-width:none;margin-left:auto;white-space:nowrap}
.nav::-webkit-scrollbar{display:none}
.nav a,.acct{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);line-height:56px}
.nav a[aria-current=page],.nav a:hover,.acct:hover,.acct[aria-current=page]{color:var(--fg);text-decoration:none}
.nav a[aria-current=page]{box-shadow:inset 0 -1px 0 var(--fg)}
.tools{display:flex;align-items:center;gap:18px;flex:none;padding-left:20px;border-left:1px solid var(--rule);height:24px}
.favs{display:flex;align-items:center;gap:5px;color:var(--fg);font-size:11px;letter-spacing:.06em;min-height:32px}
.favs:hover{text-decoration:none}
.favs .count:empty{display:none}
.acct{line-height:32px}

.wrap{max-width:1440px;margin:0 auto;padding:28px 16px 72px}
.wrap.narrow{max-width:30rem}
.lede{max-width:40rem;margin:20px 0 44px}
h1.title{font-weight:400;font-size:24px;line-height:1.25;margin:0}
.lede h1.title{font-size:clamp(26px,4vw,40px);line-height:1.15;max-width:34rem}
h1.page-title{margin-bottom:20px}
.intro{color:var(--soft);font-size:16px;line-height:1.55;margin:14px 0 0}
.intro a{text-decoration:underline;text-underline-offset:3px}

/* The bar above a grid: Season on the left, Sort on the right, each a button that opens a small panel. */
.bar{position:relative;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);margin-bottom:28px}
.dd{position:relative}
.dd-button{display:flex;align-items:center;gap:8px;height:46px;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--fg)}
.dd-label{color:var(--muted)}
.chev{flex:none;transition:transform .15s}
.dd-button[aria-expanded=true] .chev{transform:rotate(180deg)}
.dd-list{position:absolute;top:calc(100% + 1px);min-width:220px;margin:0;padding:6px 0;list-style:none;background:var(--panel);border:1px solid var(--rule);box-shadow:var(--shadow)}
.dd-start .dd-list{left:0}
.dd-end .dd-list{right:0}
.dd-list:focus{outline:none}
.dd-list [role=option]{position:relative;padding:9px 16px 9px 34px;font-size:13px;cursor:pointer;white-space:nowrap}
.dd-list [role=option]:hover,.dd-list [role=option]:focus{background:var(--ground);outline:none}
.dd-list [role=option]:focus-visible{outline:2px solid var(--fg);outline-offset:-2px}
.dd-list [aria-selected=true]::before{content:'';position:absolute;left:16px;top:50%;width:6px;height:6px;margin-top:-3px;background:var(--fg)}

/* The product grid. */
.grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 14px}
@media (min-width:640px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1000px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:1300px){.grid:not(.tiles){grid-template-columns:repeat(5,minmax(0,1fr))}}
.card{position:relative;min-width:0}
.card>a{display:block}
.card>a:hover{text-decoration:none}
.card>a:hover .name{text-decoration:underline;text-underline-offset:3px}
.pic{position:relative;display:block;aspect-ratio:4/5;overflow:hidden;background:var(--ground)}
.pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.card .name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:10px;font-size:14px;line-height:1.35}
.card .price{display:block;margin-top:3px;font-size:13px;color:var(--muted)}
.tiles .name{font-size:12px;text-transform:uppercase;letter-spacing:.1em}
.fav{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:34px;height:34px;background:var(--veil);color:var(--fg)}
.fav:hover{background:var(--bg)}
.card .remove{display:inline-block;margin-top:6px;padding:4px 0;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.card .remove:hover{color:var(--fg);text-decoration:underline;text-underline-offset:3px}

/* A design: photograph on the left, the facts on the right. */
.garment{display:grid;gap:28px}
@media (min-width:860px){.garment{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:48px;align-items:start}.viewer{position:sticky;top:76px}.frame{width:min(100%,calc((100vh - 190px) * .8));margin:0 auto}.viewer figcaption,.strip{width:min(100%,calc((100vh - 190px) * .8));margin-left:auto;margin-right:auto}}
.frame{position:relative;aspect-ratio:4/5;background:var(--ground);overflow:hidden;touch-action:pan-y}
.enlarge{position:absolute;inset:0;width:100%;height:100%;cursor:zoom-in}
.enlarge:focus-visible{outline-offset:-2px}
.enlarge img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;-webkit-user-drag:none;user-select:none}
.step{position:absolute;top:50%;display:grid;place-items:center;width:40px;height:56px;margin-top:-28px;background:var(--veil);color:var(--fg);opacity:0;transition:opacity .15s}
.step.prev{left:0}.step.next{right:0}
.frame:hover .step,.step:focus-visible{opacity:1}
@media (hover:none){.step{opacity:1;background:transparent}}
.viewer figcaption{margin-top:8px}
.strip{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.strip button{position:relative;display:block;width:52px;height:65px;overflow:hidden;background:var(--ground);opacity:.55;border-bottom:2px solid transparent}
.strip button[aria-pressed=true]{opacity:1;border-bottom-color:var(--fg)}
.strip button:hover{opacity:1}
.strip img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* The full-page view of one picture: it fills the screen, and the pointer (or a dragging finger) moves around it. */
.zoom{position:fixed;inset:0;z-index:50;overflow:hidden;background:var(--ground);cursor:zoom-out;touch-action:none}
.zoom img{position:absolute;left:0;top:0;max-width:none;transform-origin:0 0;will-change:transform;-webkit-user-drag:none;user-select:none}
.zoom-close{position:absolute;top:calc(12px + env(safe-area-inset-top));right:12px;z-index:1;display:grid;place-items:center;width:44px;height:44px;background:var(--veil);color:var(--fg)}
html.zoomed{overflow:hidden}

.info .title{margin-top:6px}
.lead{margin-top:16px}
.source{margin:0;font-size:13px}
.source a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.source a:hover{color:var(--fg)}
.pc{margin-top:36px;padding-top:20px;border-top:1px solid var(--rule)}
h2.cloth{font-size:18px;font-weight:400;line-height:1.3;margin:6px 0 10px}
.about-cloth{margin-top:18px}
.facts{margin:10px 0 0}
.rows .set dd::after{content:'';display:inline-block;width:6px;height:6px;margin-left:8px;vertical-align:middle;background:var(--fg)}
.dot{display:inline-block;width:6px;height:6px;vertical-align:middle;background:var(--fg)}
.pc .price{margin-top:28px;font-size:18px}
.acts{margin-top:14px}

.price{font-size:16px;margin:8px 0 0}
.acts{display:grid;gap:8px}
.pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.pair .btn{padding:0 10px;white-space:nowrap}
@media (max-width:360px){.pair .btn{letter-spacing:.06em;font-size:10.5px}}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:52px;padding:0 22px;border:1px solid var(--rule);background:transparent;color:var(--fg);font-size:11.5px;text-transform:uppercase;letter-spacing:.1em;text-align:center}
.btn:hover{border-color:var(--fg);text-decoration:none}
.btn.wide{width:100%}
.btn.primary{background:var(--solid);border-color:var(--solid);color:var(--on-solid)}
.btn.primary:hover{opacity:.86}
.btn.danger{border-color:var(--err);color:var(--err)}
.btn[aria-pressed=true],.btn[aria-expanded=true]{border-color:var(--fg)}
.btn[disabled]{opacity:.5;cursor:default}
.note{font-size:13px;line-height:1.6;color:var(--muted);margin:12px 0 0}
h2.section{font-size:11px;font-weight:400;text-transform:uppercase;letter-spacing:.08em;color:var(--fg);margin:40px 0 12px;padding-bottom:10px;border-bottom:1px solid var(--rule)}
h3.sub{font-size:11px;font-weight:400;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:16px 0 6px}
.body{font-size:15px;line-height:1.6;margin:0 0 10px}
.body a{text-decoration:underline;text-underline-offset:3px;font-size:14px}
.rows{margin:0}
.rows div{display:grid;grid-template-columns:minmax(7rem,38%) 1fr;gap:12px;padding:8px 0;border-bottom:1px solid var(--rule);font-size:14px}
.rows dt{color:var(--muted)}
.rows dd{margin:0}
.pager{display:flex;justify-content:space-between;gap:16px;margin-top:56px;padding-top:16px;border-top:1px solid var(--rule);font-size:13px}
.pager a{max-width:45%;color:var(--muted)}
.pager a:hover{color:var(--fg)}

/* Add to collection: a small square panel under its button. */
.addto{position:relative}
.panel{position:absolute;z-index:15;top:calc(100% + 4px);right:0;width:max(100%,280px);background:var(--panel);border:1px solid var(--rule);box-shadow:var(--shadow);padding:6px 0}
.panel ul{list-style:none;margin:0;padding:0;max-height:264px;overflow-y:auto}
.panel li button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 16px;font-size:14px;text-align:left}
.panel li button:hover{background:var(--ground)}
.panel li button:focus-visible{outline-offset:-2px}
.tick{flex:none;display:grid;place-items:center;width:14px;height:14px;border:1px solid var(--muted)}
[aria-pressed=true]>.tick{background:var(--fg);border-color:var(--fg)}
[aria-pressed=true]>.tick::after{content:'';width:4px;height:8px;margin-top:-2px;border:solid var(--bg);border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.panel .why{margin:0;padding:10px 16px;font-size:14px;line-height:1.5}
.panel .why a{text-decoration:underline;text-underline-offset:3px}
.panel form{display:flex;margin:6px 16px 10px;border:1px solid var(--rule)}
.panel form:focus-within{border-color:var(--fg)}
.panel input{flex:1;min-width:0;height:40px;padding:0 10px;border:0;background:transparent;color:var(--fg);font:inherit;font-size:16px}
.panel input:focus-visible{outline:none}
.panel form button{flex:none;padding:0 14px;font-size:11px;text-transform:uppercase;letter-spacing:.08em;border-left:1px solid var(--rule)}
.panel form button:focus-visible{outline-offset:-2px}
.panel .err{margin:0 16px 8px}
.panel hr{border:0;border-top:1px solid var(--rule);margin:6px 0}

/* Forms: accounts and settings. */
.form{display:grid;gap:16px;margin:0}
.field{display:grid;gap:6px}
.label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.field input,.inline input{width:100%;height:48px;padding:0 12px;border:1px solid var(--rule);background:transparent;color:var(--fg);font:inherit;font-size:16px;border-radius:0;-webkit-appearance:none;appearance:none}
.field input:hover,.inline input:hover{border-color:var(--muted)}
.field input:focus-visible,.inline input:focus-visible{outline:2px solid var(--fg);outline-offset:-1px;border-color:var(--fg)}
.field input[aria-invalid=true]{border-color:var(--err)}
.hint{font-size:12px;color:var(--muted)}
.check{display:flex;gap:10px;align-items:center;font-size:14px;cursor:pointer}
.check input{width:18px;height:18px;margin:0;accent-color:var(--fg)}
.err{color:var(--err);font-size:14px;line-height:1.5;margin:0}
.err:focus{outline:none}
.ok,.done{font-size:14px;line-height:1.5;margin:0}
.done{margin-top:4px}
.done:focus{outline:none}
.aside{font-size:14px;color:var(--muted);margin:16px 0 0}
.aside a,.who a{color:var(--fg);text-decoration:underline;text-underline-offset:3px}
.who{color:var(--muted);margin:-8px 0 0}
.row-btns{display:flex;flex-wrap:wrap;gap:8px}
.form .btn{justify-self:start}
.form .btn.wide{justify-self:stretch}

/* Favourites and collections. */
.tabs{display:flex;gap:24px;margin-bottom:28px;border-bottom:1px solid var(--rule)}
.tabs a{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);padding:0 0 12px}
.tabs a[aria-current=page],.tabs a:hover{color:var(--fg);text-decoration:none}
.tabs a[aria-current=page]{box-shadow:inset 0 -1px 0 var(--fg)}
.back{display:inline-block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:16px}
.listhead{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 24px;margin-bottom:24px}
.listhead .caps{margin-top:6px}
.listhead .row-btns .btn{height:40px;padding:0 16px}
.inline{display:flex;gap:8px;max-width:28rem;margin:0 0 28px}
.inline input{height:44px}
.inline .btn{height:44px;flex:none}
.inline+.err{margin:-18px 0 24px}
.confirm{align-self:center;font-size:14px;margin-right:8px}
.keepnote{margin:0 0 20px}
.keepnote a{color:var(--fg);text-decoration:underline;text-underline-offset:3px}
.empty{color:var(--muted);font-size:15px;margin:8px 0}
.empty a{color:var(--fg);text-decoration:underline;text-underline-offset:3px}
.cols .count{display:block;margin-top:3px;font-size:13px;color:var(--muted)}
.pages{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin-top:48px;font-size:13px}
.pages a,.pages span{display:grid;place-items:center;min-width:36px;height:36px;padding:0 10px;border:1px solid transparent;color:var(--muted)}
.pages a:hover{color:var(--fg);border-color:var(--rule);text-decoration:none}
.pages [aria-current=page]{color:var(--fg);border-color:var(--fg)}

.prose{max-width:42rem}
.prose p{font-size:16px;line-height:1.65;margin:0 0 14px;color:var(--soft)}
.prose p a{text-decoration:underline;text-underline-offset:3px}
.prose strong{color:var(--fg);font-weight:500}

/* A quiet message in the corner, for a change that could not be saved. */
.toast{position:fixed;z-index:30;left:16px;bottom:calc(16px + env(safe-area-inset-bottom));max-width:min(26rem,calc(100vw - 32px));padding:12px 16px;background:var(--solid);color:var(--on-solid);font-size:13px;line-height:1.45;opacity:0;transform:translateY(6px);transition:opacity .2s,transform .2s;pointer-events:none}
.toast.on{opacity:1;transform:none}

.foot{max-width:1440px;margin:0 auto;padding:20px 16px calc(36px + env(safe-area-inset-bottom));border-top:1px solid var(--rule);font-size:12px;line-height:1.6;color:var(--muted)}
.foot p{max-width:52rem;margin:0}
.foot a{text-decoration:underline;text-underline-offset:3px}

figure{margin:0}
@media (max-width:640px){
  .top{flex-wrap:wrap;height:auto;gap:0}
  .mark{flex:1;min-width:0;max-width:15em;padding:11px 0;line-height:1.4;font-size:11px;letter-spacing:.14em}
  .tools{border-left:0;padding-left:12px;gap:14px}
  .nav{order:3;width:100%;margin-left:0;gap:18px;border-top:1px solid var(--rule)}
  .nav a{line-height:44px}
  .wrap{padding-top:20px}
  .dd-list{min-width:200px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
