:root {
  --bg: #fbf7f2; --surface: #fffdfa; --soft: #f3ebe3; --ink: #2b2024; --muted: #76666b;
  --line: #e6dad1; --accent: #7a2f45; --accent-ink: #fff8f5; --blush: #f4dfdf;
  --ok: #2f6b4f; --warn: #94600f; --bad: #a3263a;
  --serif: "Instrument Serif", Georgia, serif; --sans: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sample-bar { background: var(--blush); color: var(--accent); text-align: center; font-size: 13px; padding: 7px 16px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 44px); }
.logo { display: inline-flex; align-items: center; flex: none; padding: 4px 2px; font-size: 27px; line-height: 1; }
.logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* The tilt and shadow sit on the outer span because clip-path would cut off a shadow. */
.cut { display: block; margin-left: -.06em; transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); filter: drop-shadow(.03em .05em 0 rgba(43, 32, 36, .34)); transition: transform .16s ease; }
.cut:first-child { margin-left: 0; }
.logo:hover .cut { transform: translateY(var(--y, 0)) rotate(calc(var(--r, 0deg) * -1)); }
.cut b { display: grid; place-items: center; min-width: .86em; height: 1.24em; padding: 0 .13em; font-weight: 400; color: var(--cut-ink); background: var(--cut-paper); clip-path: var(--cut-shape); }
.c1 { --r: -5deg; --y: .03em; --cut-ink: #fff4e6; --cut-paper: #7a2f45; --cut-shape: polygon(4% 3%, 97% 0, 100% 94%, 42% 100%, 0 96%); font-family: "Abril Fatface", Georgia, serif; font-size: 1.12em; }
.c2 { --r: 4deg; --y: -.06em; --cut-ink: #5a2033; --cut-paper: #f3e7dc; --cut-shape: polygon(0 7%, 92% 0, 100% 88%, 9% 100%); font-family: "Special Elite", "Courier New", monospace; }
.c3 { --r: -3deg; --y: .07em; --cut-ink: #4a1a2a; --cut-paper: #d9a3ae; --cut-shape: polygon(8% 0, 100% 5%, 94% 100%, 0 93%); font-family: "Anton", Impact, sans-serif; font-size: .94em; }
.c4 { --r: 3deg; --y: -.03em; --cut-ink: #fff4e6; --cut-paper: #4a1a2a; --cut-shape: polygon(0 0, 96% 6%, 100% 97%, 54% 92%, 3% 100%); font-family: "Alfa Slab One", Georgia, serif; font-size: .86em; }
.c5 { --r: -7deg; --y: .02em; --cut-ink: #7a2f45; --cut-paper: #fff7ef radial-gradient(rgba(122, 47, 69, .22) 18%, transparent 20%) 0 0 / .17em .17em; --cut-shape: polygon(6% 4%, 100% 0, 93% 96%, 0 100%); font-family: "Abril Fatface", Georgia, serif; font-size: 1.2em; }
.c6 { --r: 5deg; --y: -.08em; --cut-ink: #fff4e6; --cut-paper: #9c4a61; --cut-shape: polygon(12% 0, 92% 6%, 100% 100%, 0 94%); font-family: "Anton", Impact, sans-serif; font-size: .92em; }
.c7 { --r: -4deg; --y: .05em; --cut-ink: #7a2f45; --cut-paper: repeating-linear-gradient(135deg, #f4dfdf 0 .07em, #fff4ef .07em .14em); --cut-shape: polygon(0 4%, 95% 0, 100% 92%, 62% 100%, 6% 95%); font-family: "Special Elite", "Courier New", monospace; font-size: 1.04em; }
.departments { display: flex; gap: 22px; }
.departments button { padding: 4px 0; color: var(--muted); border-bottom: 1.5px solid transparent; }
.departments button:hover { color: var(--ink); }
.departments button[aria-pressed="true"] { color: var(--ink); font-weight: 500; border-color: var(--accent); }

main { padding: 0 clamp(16px, 4vw, 44px) 72px; }
.hero { text-align: center; margin: clamp(44px, 11vh, 110px) auto 30px; max-width: 720px; }
.hero h1 { margin: 0; font: 400 clamp(44px, 7vw, 76px)/1.02 var(--serif); letter-spacing: -.01em; }
.hero em { color: var(--accent); }
.hero p { margin: 18px auto 0; max-width: 480px; color: var(--muted); font-size: 16px; }
body:not(.is-home) .hero, body:not(.is-home) .suggestions { display: none; }

.composer { max-width: 720px; margin: 0 auto; padding: 14px 14px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 34px rgb(92 54 60 / .08); }
.composer:focus-within { border-color: #c9a9a9; }
.composer textarea { display: block; width: 100%; max-height: 120px; padding: 4px 6px; resize: none; border: 0; outline: 0; background: transparent; font-size: 17px; }
.composer textarea::placeholder { color: #a39398; }
.composer-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.ghost { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px 0 9px; color: var(--muted); border-radius: 18px; }
.ghost:hover { background: var(--soft); color: var(--ink); }
.ghost svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; cursor: pointer; font-weight: 500; white-space: nowrap; }
.toggle input { position: absolute; opacity: 0; }
.track { position: relative; width: 36px; height: 21px; border-radius: 11px; background: #d8ccc5; transition: background .15s; }
.track::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked + .track { background: var(--accent); }
.toggle input:checked + .track::after { transform: translateX(15px); }
.toggle input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.send { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.send:disabled { opacity: .45; cursor: default; }
.send svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.preview { position: relative; width: 74px; height: 92px; margin: 2px 0 10px 4px; }
.preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.preview button { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; line-height: 1; }

.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 720px; margin: 18px auto 0; }
.chip { min-height: 34px; padding: 5px 14px; border: 1px solid var(--line); border-radius: 17px; background: transparent; color: var(--muted); font-size: 13.5px; }
.chip:hover { background: var(--soft); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.status { max-width: 720px; margin: 18px auto 0; text-align: center; color: var(--muted); }
.status.error { color: var(--bad); }
.status:empty { display: none; }
.loading::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 9px; vertical-align: -1px; border: 1.5px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.results { max-width: 1320px; margin: 30px auto 0; }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 14px; }
.results-head h2, .section-title { margin: 0; font: 400 32px/1.1 var(--serif); }
.count { color: var(--muted); }
.filters { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; margin-bottom: 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.filters select { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); font-size: 13.5px; max-width: 170px; }
.filters .end { margin-left: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 30px 18px; }
.card { display: block; width: 100%; min-width: 0; text-align: left; }
.card-img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 8px; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.025); }
.card.sold .card-img img { opacity: .5; filter: grayscale(.5); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.in_stock { color: var(--ok); } .badge.low_stock { color: var(--warn); } .badge.out_of_stock { color: var(--bad); } .badge.unknown { color: var(--muted); }
.card-img .badge { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 11px; background: rgb(255 253 250 / .94); }
.card-store { margin-top: 9px; color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; line-height: 1.32; }
.price { margin-top: 4px; font-weight: 600; }
.price s { margin-left: 6px; color: var(--muted); font-weight: 400; }
.empty { padding: 56px 16px; text-align: center; color: var(--muted); }
.empty h3 { margin: 0 0 6px; color: var(--ink); font: 400 28px var(--serif); }

.look { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: start; margin-bottom: 36px; }
.look > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.look.no-image { grid-template-columns: 1fr; }
.look h2 { margin: 0 0 6px; font: 400 clamp(28px, 4vw, 38px)/1.08 var(--serif); }
.look p { margin: 0 0 14px; color: var(--muted); }
.piece-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.section { margin-top: 42px; }
.section-sub { margin: 4px 0 18px; color: var(--muted); }
.find-piece { display: block; min-height: 42px; margin-top: 16px; padding: 8px 22px; border: 0; border-radius: 21px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.find-piece:hover { filter: brightness(1.1); }
.find-piece:disabled { opacity: .65; cursor: default; }
.outfits { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.outfit { display: flex; flex-direction: column; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.outfit.featured { border-color: var(--accent); }
.outfit h3 { margin: 0; font: 400 27px/1.1 var(--serif); }
.outfit-blurb { margin: 3px 0 14px; color: var(--muted); font-size: 13.5px; }
.saving { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.saving strong { font: 400 34px/1 var(--serif); }
.saving span { color: var(--muted); font-size: 13px; }
.saving b { color: var(--accent); font-size: 13.5px; font-weight: 600; }
.outfit-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 11px; align-items: center; width: 100%; padding: 10px 0; text-align: left; border-bottom: 1px solid var(--line); }
.outfit-row:last-of-type { border-bottom: 0; }
.outfit-row:hover .row-title { text-decoration: underline; }
.outfit-row img { width: 54px; height: 70px; object-fit: cover; border-radius: 5px; background: var(--soft); }
.row-piece { color: var(--muted); font-size: 12px; }
.row-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.row-price { text-align: right; font-weight: 600; font-size: 14px; }
.row-price small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.note { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }

.legal { max-width: 720px; margin: 0 auto; padding: 0 16px 28px; color: var(--muted); font-size: 12.5px; text-align: center; }
.drop-veil { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgb(122 47 69 / .9); color: #fff8f5; font: italic 400 clamp(32px, 6vw, 58px)/1.1 var(--serif); text-align: center; pointer-events: none; }
.scrim { position: fixed; inset: 0; z-index: 20; background: rgb(43 32 36 / .42); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 30; width: min(520px, 100%); overflow-y: auto; padding: 22px; background: var(--surface); }
.drawer-close { position: sticky; top: 0; z-index: 2; display: block; width: 36px; height: 36px; margin-left: auto; border-radius: 50%; background: var(--soft); font-size: 20px; line-height: 1; }
.gallery { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0 18px; scroll-snap-type: x mandatory; }
.gallery img { flex: 0 0 82%; max-width: 340px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: var(--soft); scroll-snap-align: start; }
.gallery img:only-child { flex-basis: 100%; }
.drawer h2 { margin: 2px 0 6px; font: 400 32px/1.08 var(--serif); }
.brand { color: var(--muted); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.drawer h3 { margin: 24px 0 8px; font-size: 13px; font-weight: 600; }
.drawer p { margin: 0; color: #55474c; }
.features { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.features dt { color: var(--muted); } .features dd { margin: 0; }
.store { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.store-name { font-weight: 600; }
.store-meta { color: var(--muted); font-size: 13px; }
.buy { grid-row: span 2; align-self: center; display: inline-block; padding: 8px 15px; border-radius: 19px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; }
.buy.off { background: var(--soft); color: var(--muted); }

.composer.has-photo textarea { display: none; }
.clothesline { margin: 52px calc(clamp(16px, 4vw, 44px) * -1) -32px; text-align: center; }
.clothesline[hidden], body:not(.is-home) .clothesline { display: none; }
.clothesline h2 { margin: 0; font: 400 32px/1.1 var(--serif); }
.clothesline > p { margin: 6px 0 0; color: var(--muted); }
.line-window { position: relative; overflow: hidden; padding: 20px 0 calc(56px + var(--line-sag, 40px)); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.line-window.is-dragging { cursor: grabbing; }
.line-window .polaroid { cursor: inherit; }
.line-window img { -webkit-user-drag: none; pointer-events: none; }
.line-track { position: relative; display: flex; width: max-content; margin: 0; padding: 30px 0 0; list-style: none; will-change: transform; }
.line-rope { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; pointer-events: none; filter: drop-shadow(0 2px 1px rgba(43, 32, 36, .16)); }
.rope-base { stroke: #8f7253; stroke-width: 5; stroke-linecap: round; }
.rope-twist { stroke: #d4bb98; stroke-width: 3; stroke-dasharray: 4 4; }
.hung { position: relative; flex: none; width: 392px; padding: 0 24px; transform-origin: 50% 14px; will-change: transform; }
.hang { position: relative; transform: rotate(var(--tilt)); transform-origin: 50% 14px; transition: transform .22s ease; }
.tilt-0 { --tilt: -2.4deg; --pin-x: -27%; --pin-r: -14deg; } .tilt-1 { --tilt: 1.8deg; --pin-x: 23%; --pin-r: 10deg; } .tilt-2 { --tilt: -1deg; --pin-x: -15%; --pin-r: 17deg; } .tilt-3 { --tilt: 2.8deg; --pin-x: 32%; --pin-r: -9deg; } .tilt-4 { --tilt: -3deg; --pin-x: -35%; --pin-r: 13deg; }
.hung:hover, .hung:focus-within { z-index: 2; }
.hung:hover .hang, .hung:focus-within .hang { transform: rotate(0deg) translateY(5px) scale(1.05); }
.pin { position: absolute; z-index: 2; top: -34px; left: calc(50% + var(--pin-x)); width: 30px; height: 103px; margin-left: -15px; transform: rotate(var(--pin-r)); transform-origin: 50% 48px; border-radius: 3px 3px 4px 4px; background: linear-gradient(90deg, #d9b98f 0 46%, #a98559 46% 54%, #e3c8a2 54%); box-shadow: 1px 2px 3px rgba(43, 32, 36, .28); pointer-events: none; }
.pin::after { content: ""; position: absolute; top: 35px; left: -4px; right: -4px; height: 14px; border: 3px solid #777; border-radius: 3px; }
.polaroid { display: block; width: 100%; margin-top: 26px; padding: 18px 18px 18px; text-align: center; background: #fffefb; box-shadow: 0 8px 18px rgba(43, 32, 36, .17), 0 1px 2px rgba(43, 32, 36, .2); transition: box-shadow .22s ease; }
.is-dragging .hung:hover { z-index: auto; }
.is-dragging .hung:hover .hang { transform: rotate(var(--tilt)); }
.is-dragging .hung:hover .polaroid-cta { opacity: 0; }
.hung:hover .polaroid, .polaroid:focus-visible { box-shadow: 0 16px 30px rgba(43, 32, 36, .26); }
.polaroid:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.polaroid-photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.polaroid-photo svg, .polaroid-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.polaroid-cta { position: absolute; left: 50%; bottom: 18px; padding: 9px 20px; border-radius: 999px; color: var(--accent-ink); background: var(--accent); font-size: 16px; font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(-50%, 5px); transition: opacity .18s ease, transform .18s ease; }
.hung:hover .polaroid-cta, .polaroid:focus-visible .polaroid-cta { opacity: 1; transform: translate(-50%, 0); }
.polaroid-title { display: block; margin-top: 14px; font: italic 400 32px/1.1 var(--serif); }
.polaroid small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

@media (max-width: 640px) {
  .logo { font-size: 21px; }
  .clothesline { margin-top: 40px; }
  .clothesline h2 { font-size: 28px; }
  .hung { width: 328px; padding: 0 14px; }
  .polaroid { padding: 14px; }
  .polaroid-title { font-size: 27px; }
  .polaroid-cta { opacity: 1; transform: translate(-50%, 0); }
  .departments { gap: 15px; }
  .composer-row { gap: 6px; }
  .ghost { padding: 0 8px; }
  .ghost span { display: none; }
  .toggle { font-size: 13.5px; gap: 6px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .look { grid-template-columns: 96px 1fr; gap: 14px; }
  .outfits { grid-template-columns: minmax(0, 1fr); }
  .filters .end { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 2s !important; }
}

.plus-offer p { max-width: 420px; margin: 0 auto; }
.plus-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 18px; }
.drawer .plus-actions { justify-content: flex-start; }
.plus-button { min-height: 40px; padding: 0 20px; border-radius: 20px; background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.plus-button:hover { filter: brightness(1.08); }
.plus-button:disabled { opacity: .6; }
.plus-link { display: block; margin: 10px auto 0; color: var(--accent); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.plus-form { display: grid; gap: 8px; margin-top: 12px; }
.plus-form label { font-size: 13px; font-weight: 500; }
.plus-code { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font: 500 15px var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.plus-form .chip { justify-self: start; }
.plus-note { margin-top: 12px !important; font-size: 13px; color: var(--muted) !important; }
.plus-note.error { color: var(--bad) !important; }
.plus-note:empty { display: none; }
.plus-code-show { margin: 4px 0 10px !important; font: 500 22px/1.3 var(--sans); letter-spacing: .05em; color: var(--ink) !important; user-select: all; }
