/* Aubaine Archive: a printed-page system. White paper, near-black ink, hairline rules; the clothes carry the colour.
   Type: Bodoni Moda for selected editorial headlines (optical size up to 96 makes large headlines finer), Hanken Grotesk for everything you read to shop. Both OFL, from Google Fonts. */

:root {
  --bg: #ffffff; --ink: #111111; --mute: #666666; --rule: #e6e6e6; --wash: #f5f5f5; --focus: #111111;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px); --max: 1600px;
  --gap-x: clamp(12px, 1.8vw, 28px); --gap-y: clamp(28px, 3vw, 44px);
  --section: clamp(44px, 6vw, 88px);
  --fast: 150ms; --slow: 220ms; --ease: cubic-bezier(.2, .7, .2, 1);
  --header: 84px;
  color-scheme: light;
}
@media (max-width: 760px) { body { --header: 56px } }
* { box-sizing: border-box }
html { scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased }
img { max-width: 100% }
a { color: inherit }
button, input, select { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px }
[hidden] { display: none !important }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
a.sr:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter) }
.small { font-size: 13px; color: var(--mute) }
.label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--ink) }
.top .wrap { height: var(--header); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; transition: height var(--slow) var(--ease) }
.top .date { color: var(--mute) }
.top .right { justify-self: end; display: flex; align-items: center }
.word { font: 500 20px/1 var(--serif); letter-spacing: .32em; padding-left: .32em; text-transform: uppercase; text-decoration: none; white-space: nowrap; padding-block: 8px }
/* The homepage masthead is the publication's; every other view gets a compact working header. */
body { --header: 58px }  /* the original masthead: one slim ruled line */
.word span { letter-spacing: .26em }
.nav { display: flex; gap: clamp(14px, 2.2vw, 32px); align-items: center }
.nav a, .nav button { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--mute); background: none; border: 0; padding: 12px 0; cursor: pointer; white-space: nowrap }
.nav a:hover, .nav a[aria-current="page"], .nav button:hover { color: var(--ink) }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--ink) }
.nav .count { font-variant-numeric: tabular-nums }
.icon-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer }
.icon-btn svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 1.5 }
.menu-btn { display: none; background: none; border: 0; min-height: 44px; padding: 0 0 0 12px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer }
@media (max-width: 860px) { .top .wrap { grid-template-columns: auto 1fr } .top .date { display: none } }
@media (max-width: 380px) { .word { font-size: 12px !important; letter-spacing: .14em; padding-left: .14em } .top .wrap { gap: 8px } }
@media (max-width: 640px) {
  .cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter) }
  .intro p { font-size: 15px }
  .word { font-size: 14px; letter-spacing: .2em }
  .menu-btn { display: inline-flex; align-items: center }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gutter) 12px }
  .nav.open { display: flex }
  .nav a { padding: 14px 0; font-size: 14px; border-bottom: 1px solid var(--rule) }
  .nav a:last-child { border-bottom: 0 }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--ink) }
}

/* Editorial spread (restored from the first design): a large lead photograph, the issue line, "The Edit", a pair, the figures. */
.spread { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3vw, 48px); padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 120px); align-items: end }
@media (max-width: 900px) { .spread { grid-template-columns: 1fr } }
.spread .fig { display: block; position: relative; aspect-ratio: 4 / 5; background: var(--bg); overflow: hidden; text-decoration: none }
.spread .fig img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease) }
.spread .fig:hover img { transform: scale(1.02) }
.spread .copy { display: flex; flex-direction: column; gap: 28px; min-width: 0 }
.spread .issue { color: var(--mute) }
.spread h1 { font: 400 clamp(56px, 8.4vw, 132px)/.92 var(--serif); letter-spacing: -.02em; margin: 0 }
.spread h1 em { font-style: italic }
.spread .dek { font-size: 16px; line-height: 1.6; color: var(--ink); max-width: 44ch; margin: 0 }
.spread .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.spread .cap { position: absolute; left: 10px; bottom: 10px; background: var(--bg); padding: 4px 8px; font-size: 11px; letter-spacing: .06em }
.spread .cap .o, .spread .cap .bid { margin-left: 4px }
.figs { display: flex; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 18px; color: var(--mute) }
.figs b { display: block; font: 400 26px/1.1 var(--serif); color: var(--ink) }
.spread .explore { align-self: flex-start }
body[data-view="home"] .top { border-bottom-color: var(--ink) }

/* Opening: the editorial entrance. Type and space only; real clothing follows below. */
.opening { min-height: calc(74svh - var(--header)); display: grid; align-content: end; gap: clamp(28px, 3.4vw, 48px); padding-block: clamp(56px, 9vw, 140px) clamp(32px, 4vw, 64px) }
.opening h1 { font: 400 clamp(52px, 8.8vw, 128px)/.92 var(--serif); letter-spacing: -.02em; margin: 0 }
.opening h1 .l { display: block }
@media (min-width: 761px) { .opening h1 .l + .l { padding-left: 1.15em } }  /* set the italic line in from the margin, as a typesetter would */
.opening h1 em { font-style: italic; margin-left: .07em }  /* the italic f swings left of the margin otherwise */
.opening .row { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: end; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: 20px }
.opening .dek { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.5; margin: 0; max-width: 44ch }
.explore { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: 12px; align-items: center; min-height: 44px; border-bottom: 1px solid var(--ink); padding: 0 2px }
.explore::after { content: "→"; transition: transform var(--fast) var(--ease) }
.explore:hover::after { transform: translateX(4px) }
@media (max-width: 760px) { .opening { min-height: 0; padding-block: 56px 48px } }
.browse { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: baseline; padding-top: 28px }
.browse .label { color: var(--mute); margin-right: 8px }

/* Intro */
.intro { padding-block: clamp(24px, 3.4vw, 48px) clamp(20px, 2.4vw, 32px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end }
.intro h1 { font: 400 clamp(38px, 5vw, 72px)/1 var(--serif); letter-spacing: -.015em; margin: 0; text-wrap: balance }
.intro p { margin: 0; font-size: 16px; max-width: 46ch; color: var(--ink) }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr } }

.searchbar { display: flex; border: 1px solid var(--ink); height: 52px; margin-top: 6px }
.searchbar input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font-size: 16px; background: transparent }
.searchbar input:focus-visible { outline: none }
.searchbar:focus-within { outline: 2px solid var(--focus); outline-offset: 2px }
.searchbar button { border: 0; border-left: 1px solid var(--ink); background: var(--ink); color: var(--bg); padding: 0 22px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer }
.searchbar button:hover { opacity: .88 }
.intro .search-col { grid-column: 1 / -1; display: grid; gap: 14px }

.cats { display: flex; gap: 8px 22px; flex-wrap: wrap; padding: 2px 0 0; margin: 0; list-style: none }
.cats a { font-size: 14px; text-decoration: none; padding: 12px 0; border-bottom: 1px solid transparent; display: inline-block }
.cats a:hover { border-bottom-color: var(--ink) }

/* Section heads */
.sec { padding-top: var(--section) }
.sec.first { padding-top: 8px }
.sh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 24px }
.sh h2 { font: 400 clamp(26px, 3vw, 40px)/1.05 var(--serif); margin: 0; letter-spacing: -.01em }
.sh p { margin: 0; color: var(--mute); max-width: 56ch; font-size: 14px }
.more-link { display: inline-block; padding: 12px 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-underline-offset: 4px }
.sh a.more-link { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-underline-offset: 4px }

/* Product grid and cards: a photograph with a caption */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-y) var(--gap-x) }
@media (max-width: 1180px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 330px) { .grid { grid-template-columns: 1fr } }
.card { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 3px }
.card .frame { display: grid; place-items: center; position: relative; aspect-ratio: 4 / 5; background: var(--wash); overflow: hidden; margin-bottom: 9px }  /* one frame everywhere: 4:5, whole garment, neutral matte */
.card .frame img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; transition: opacity var(--slow) var(--ease) }
.card .frame img.small { width: auto; height: auto; max-width: 100%; max-height: 100%; mix-blend-mode: normal }  /* low-resolution seller photos: real size, never stretched */
.card .frame img.loading { opacity: 0 }
.card a.open { text-decoration: none; display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.card a.open:hover .t { text-decoration: underline; text-underline-offset: 3px }
.card .b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.card .t { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.card .p { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 2px }
.card .p .o, .dprice .o { font-weight: 400; color: var(--mute); margin-left: 6px }
.bid { font-weight: 400; color: var(--mute) }
.sticky-cta .o { margin-left: 6px; color: var(--mute) }
.card .m { font-size: 13px; color: var(--mute); line-height: 1.4 }
.tag { position: absolute; left: 8px; top: 8px; background: var(--bg); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; pointer-events: none }
.save { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; z-index: 2 }
.save svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 1.4; fill: rgba(255, 255, 255, .85); transition: fill var(--fast) var(--ease), transform var(--fast) var(--ease) }
.save[aria-pressed="true"] svg { fill: var(--ink) }
.save:active svg { transform: scale(.9) }
.nophoto { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--mute); font-size: 13px }

/* Feature (The Edit lead) */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap-x); margin-bottom: var(--gap-y) }
.feature .cap { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding-bottom: 4px }
.feature .cap h3 { font: 400 clamp(24px, 2.4vw, 34px)/1.1 var(--serif); margin: 0 }
.feature .cap p { margin: 0; color: var(--mute); max-width: 40ch }
.feature .card .frame { aspect-ratio: 4 / 5 }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr } .feature .cap { order: 2 } }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-x) }

/* How it works */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px var(--gap-x) }
.how p { margin: 0; font-size: 15px; max-width: 42ch }
.how b { display: block; font-weight: 500; margin-bottom: 4px }
@media (max-width: 760px) { .how { grid-template-columns: 1fr } }

/* Results toolbar and filters */
.results-head { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; padding-block: clamp(20px, 2.6vw, 36px) 10px }
.results-head h1 { font: 400 clamp(26px, 2.6vw, 36px)/1.1 var(--serif); margin: 0; overflow-wrap: anywhere }
.results-search { flex: 1 1 260px; max-width: 560px; min-width: 0 }
@media (max-width: 400px) { .searchbar button { padding: 0 14px } .searchbar input { padding: 0 12px } }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-block: 1px solid var(--rule); padding-block: 8px; margin-bottom: 12px; position: relative }
.toolbar .spacer { flex: 1 }
.fbtn, details.f > summary { list-style: none; cursor: pointer; font-size: 14px; padding: 10px 12px; border: 0; background: none; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; white-space: nowrap }
details.f > summary::-webkit-details-marker { display: none }
details.f > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--fast) var(--ease) }
details.f[open] > summary::after { transform: translateY(2px) rotate(-135deg) }
details.f > summary .n { font-size: 12px; color: var(--bg); background: var(--ink); border-radius: 9px; min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center }
details.f { position: relative }
details.f .panel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; background: var(--bg); border: 1px solid var(--ink); padding: 16px; min-width: 260px; max-height: 60vh; overflow: auto; display: grid; gap: 4px }
.opt { display: flex; gap: 10px; align-items: center; min-height: 36px; cursor: pointer; font-size: 14px }
.opt input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0 }
.opt small { color: var(--mute); margin-left: auto; font-variant-numeric: tabular-nums; padding-left: 12px }
.opt.sep { border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 6px }
.panel .hint { font-size: 12px; color: var(--mute); margin: 4px 0 0; max-width: 32ch }
.price-in { display: flex; gap: 8px; align-items: center }
.price-in input, .brand-in input { width: 100%; min-width: 0; height: 40px; border: 1px solid var(--rule); padding: 0 10px; font-variant-numeric: tabular-nums }
.price-in input:focus-visible, .brand-in input:focus-visible { border-color: var(--ink) }
.sortsel { display: flex; align-items: center; gap: 8px; font-size: 14px }
.sortsel select { border: 0; border-bottom: 1px solid var(--rule); background: transparent; height: 40px; padding: 0 4px; cursor: pointer }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; border: 1px solid var(--rule); background: var(--bg); padding: 6px 8px 6px 12px; cursor: pointer; min-height: 36px }
.chip:hover { border-color: var(--ink) }
.chip::after { content: "×"; font-size: 16px; line-height: 1; color: var(--mute) }
.linkbtn { background: none; border: 0; padding: 8px 4px 8px 0; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 36px }
.count-line { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums }
.more { display: flex; justify-content: center; margin-top: 48px }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); border-radius: 2px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: opacity var(--fast) var(--ease) }
.btn:hover { opacity: .86 }
.btn.ghost { background: var(--bg); color: var(--ink) }
.empty { padding: 48px 0; max-width: 56ch }
.empty h2 { font: 400 28px/1.1 var(--serif); margin: 0 0 10px }
.empty ul { padding-left: 18px; margin: 10px 0 0; color: var(--mute) }
.empty li { margin: 4px 0 }
.loading-line { padding: 48px 0; color: var(--mute) }

/* Mobile: filters live in a drawer */
.drawer-head, .drawer-foot { display: none }
@media (max-width: 760px) {
  .toolbar .open-filters { border: 1px solid var(--ink); padding: 0 14px }
  .toolbar .fgroups { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--slow) var(--ease); visibility: hidden }
  .toolbar .fgroups.open { transform: none; visibility: visible }
  .drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gutter); height: var(--header); border-bottom: 1px solid var(--rule); font-size: 16px }
  .drawer-body { flex: 1; overflow: auto; padding: 0 var(--gutter) }
  .drawer-foot { display: flex; gap: 12px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule) }
  .drawer-foot .btn { flex: 1 }
  details.f { border-bottom: 1px solid var(--rule) }
  details.f > summary { width: 100%; justify-content: space-between; min-height: 56px; padding: 0 }
  details.f .panel { position: static; border: 0; padding: 0 0 16px; min-width: 0; max-height: none }
  .toolbar .open-filters { display: inline-flex }
}
@media (min-width: 761px) { .toolbar .open-filters { display: none } .drawer-body { display: contents } .fgroups { display: contents } }

/* Listing detail */
.detail { padding-block: 20px 40px }
.back { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; background: none; border: 0; padding: 0; cursor: pointer }
.back::before { content: "←"; margin-right: 8px }
.dgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: start; margin-top: 8px }
@media (max-width: 860px) { .dgrid { grid-template-columns: 1fr } }
.dphoto { background: var(--wash); aspect-ratio: 3 / 4; display: grid; place-items: center; position: sticky; top: calc(var(--header) + 16px) }
@media (max-width: 860px) { .dphoto { position: static; aspect-ratio: 4 / 5 } }
.dphoto img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply }
.dinfo { display: grid; gap: 18px; max-width: 560px }
.dinfo .b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase }
.dinfo h1 { font: 400 clamp(24px, 2.6vw, 34px)/1.15 var(--serif); margin: 0; overflow-wrap: anywhere }
.dprice { font-size: 22px; font-variant-numeric: tabular-nums }
.dprice .o { font-size: 15px; color: var(--mute); margin-left: 8px }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; border-top: 1px solid var(--rule); padding-top: 16px; font-size: 14px }
.facts dt { color: var(--mute) }
.facts dd { margin: 0 }
.plain { margin: 0; font-size: 14px; color: var(--mute) }
.desc { white-space: pre-line; font-size: 14px; border-top: 1px solid var(--rule); padding-top: 16px; margin: 0 }
.note { font: italic 400 17px/1.45 var(--serif); margin: 0 }
details.costs summary { cursor: pointer; font-size: 14px; min-height: 40px; display: flex; align-items: center }
.report { border-top: 1px solid var(--rule); padding-top: 12px }
.report fieldset { border: 0; padding: 0; margin: 8px 0 0; display: grid; gap: 2px }
.sticky-cta { display: none }
@media (max-width: 860px) {
  .sticky-cta { display: flex; position: sticky; bottom: 0; z-index: 25; gap: 12px; align-items: center; justify-content: space-between; background: var(--bg); border-top: 1px solid var(--rule); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); font-variant-numeric: tabular-nums }
  .sticky-cta .btn { min-height: 44px; padding: 0 18px }
  .dphoto { aspect-ratio: 1 / 1 }
  .dinfo h1 { font-size: 24px }
}
.panel .grp { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin: 8px 0 4px }
.sizes { display: flex; flex-wrap: wrap; gap: 6px }
.sz { position: relative; cursor: pointer }
.sz input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer }
.sz span { display: inline-grid; place-items: center; min-width: 44px; min-height: 40px; padding: 0 8px; border: 1px solid var(--rule); font-size: 13px }
.sz input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink) }
.sz input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px }
.figs-note { font-size: 13px; color: var(--mute); margin: 0; border-top: 1px solid var(--rule); padding-top: 14px }
.rec-note { margin: -4px 0 18px; max-width: 80ch }
.skel .frame { animation: pulse 1.4s ease-in-out infinite }
.skel .bar { height: 12px; background: var(--wash); margin-top: 6px; width: 70% } .skel .bar.s { width: 40% }
@keyframes pulse { 50% { opacity: .55 } }
.cmp-toggle { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--mute); min-height: 36px; cursor: pointer }
.cmp-wrap { overflow-x: auto; border-top: 1px solid var(--ink); margin-top: 20px }
.cmp { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 560px }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule) }
.cmp th { color: var(--mute); font-weight: 400; width: 140px }
.cmp img { width: 100%; max-width: 180px; aspect-ratio: 4 / 5; object-fit: contain; background: var(--wash) }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 8px); opacity: 0; background: var(--ink); color: var(--bg); padding: 12px 18px; font-size: 14px; z-index: 60; transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease); pointer-events: none; max-width: calc(100vw - 32px) }
.toast.on { opacity: 1; transform: translate(-50%, 0) }

/* Saved */
.saved-note { font-size: 14px; color: var(--mute); margin: 0 0 20px; max-width: 64ch }
.ss-list { list-style: none; padding: 0; margin: 0 0 8px; border-top: 1px solid var(--rule) }
.ss-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); padding: 10px 0; flex-wrap: wrap }
.ss-list a { font-size: 15px }
.prefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 24px; border-top: 1px solid var(--rule); padding-top: 16px }
.prefs label { display: grid; gap: 6px; font-size: 13px; color: var(--mute) }
.prefs select, .prefs input { height: 44px; border: 1px solid var(--rule); padding: 0 10px; color: var(--ink); background: var(--bg) }

/* Footer */
footer { margin-top: var(--section); border-top: 1px solid var(--rule); padding-block: 28px 48px; font-size: 13px; color: var(--mute) }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between }
footer nav { display: flex; gap: 20px; flex-wrap: wrap }
footer a { text-underline-offset: 3px }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important } }
/* Board link form on Saved: name, button, then the link itself (selectable where the clipboard is blocked). */
.board-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-block: 16px }
.board-form label { width: 100%; font-size: 13px; color: var(--mute) }
.board-form input { min-width: 0; flex: 1 1 220px; padding: 8px 10px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); font: inherit }
.board-form .board-url { flex-basis: 100% }
.card .why { color: var(--ink) }
/* Product photo: never taller than most of the window, so the whole garment shows. */
/* Photo column is exactly the photo's width (capped by window height), text takes the rest; the pair is centred, no empty band. */
@media (min-width: 861px) { .dgrid { grid-template-columns: min(55vw, calc(72vh * 3 / 4)) minmax(0, 620px); justify-content: center } }
.dphoto { max-height: 72vh }
@media (max-width: 860px) { .dphoto { max-height: none } }

/* Home: say what this is and offer search first */
.spread .intro { font: 500 13px/1.5 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); margin: 0; max-width: 46ch }
.spread .home-search { max-width: 520px }

/* Input borders need 3:1 against the page (WCAG 1.4.11); --rule is for decorative hairlines only */
input:not([type=checkbox]):not([type=radio]), select, textarea { border-color: #767676 }
.rec-note.caution { border-left: 2px solid var(--ink); padding-left: 10px }
.aff { margin: 6px 0 0 }

/* ---- Home: an editorial opening that fits the screen, then clear ways into the archive ---- */
.kicker { margin: 0; font: 500 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink) }
.home-spread { padding-block: clamp(20px, 3vw, 40px) clamp(24px, 3vw, 40px); align-items: stretch }
.home-spread .fig { display: block; color: var(--ink); text-decoration: none; aspect-ratio: auto; overflow: visible; background: none }
.home-spread .fig .ph { display: block; background: var(--wash); overflow: hidden }
.home-spread .fig img { width: 100%; height: 100%; object-fit: cover; display: block; mix-blend-mode: multiply; transition: transform .6s var(--ease) }
.home-spread .fig:hover img { transform: scale(1.02) }
.home-spread .fig.lead, .home-spread .fig.lead .ph { height: min(calc(100vh - var(--header) - 64px), 820px); min-height: 440px }
.home-spread .copy { justify-content: flex-end; gap: 20px }
.home-spread h1 { font: 400 clamp(56px, 7.4vw, 120px)/.9 var(--serif); letter-spacing: -.025em; margin: 0 }
.home-spread .dek { font: italic 400 clamp(19px, 1.6vw, 23px)/1.35 var(--serif); color: var(--ink); max-width: 30ch; margin: 0 }
.home-spread .home-search { max-width: 520px }
.home-spread .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.home-spread .pair .ph { aspect-ratio: 3 / 4; margin-bottom: 10px }
.home-spread .pair .tb { display: block; font: 500 10.5px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase }
.home-spread .pair .tt { display: block; font: 400 15px/1.3 var(--serif) }
.home-spread .more-link { align-self: flex-start; padding: 0; font-size: 11px; letter-spacing: .2em }
@media (max-width: 900px) { .home-spread .fig.lead, .home-spread .fig.lead .ph { height: auto; min-height: 0 } .home-spread .fig.lead .ph { aspect-ratio: 4 / 5 } }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 72px 0 22px; padding-top: 18px; border-top: 1px solid var(--ink) }
.row-head h2 { font: 400 clamp(28px, 3vw, 40px)/1 var(--serif); letter-spacing: -.01em; margin: 0 }
.row-head h2 em { font-style: italic }
.row-head a { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); text-underline-offset: 4px; white-space: nowrap }
.shop-by { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px }
@media (max-width: 900px) { .shop-by { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px } }
.way { display: block; color: var(--ink); text-decoration: none }
.way .ph { display: block; aspect-ratio: 3 / 4; background: var(--wash); overflow: hidden; margin-bottom: 10px }
.way img { width: 100%; height: 100%; object-fit: cover; display: block; mix-blend-mode: multiply; transition: transform .6s var(--ease) }
.way:hover img { transform: scale(1.03) }
.way .wl { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; text-underline-offset: 4px }
.way:hover .wl { text-decoration: underline }
.home-labels { columns: 4 180px; column-gap: 24px; list-style: none; padding: 0; margin: 0 0 24px }
.home-labels a { display: inline-block; padding: 6px 0; font: 400 19px/1.3 var(--serif); color: var(--ink); text-decoration: none }
.home-labels a:hover { font-style: italic }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 16px }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 10px } }
.tile { position: relative; min-width: 0 }
.tile a { display: block; color: var(--ink); text-decoration: none }
.tile .ph { display: block; aspect-ratio: 3 / 4; background: var(--wash); overflow: hidden; margin-bottom: 12px }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; display: block; mix-blend-mode: multiply; transition: transform .6s var(--ease) }
.tile a:hover .ph img { transform: scale(1.02) }
.tile .no { display: block; font: italic 400 14px/1.2 var(--serif); color: var(--mute); margin-bottom: 4px }
.tile .tb { display: block; font-size: 10.5px; line-height: 1.5; min-height: 1.5em; letter-spacing: .14em; text-transform: uppercase; font-weight: 500 }
.tile .tt { display: block; font: 400 15px/1.35 var(--serif); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.tile .tp { display: block; font-size: 12.5px; line-height: 1.6; color: var(--mute) }
.tile .tp .o, .tile .tp .bid { margin-left: 4px }
.tile .save { position: absolute; top: 8px; right: 8px }
/* The Edit page: an even, numbered grid, three across */
.edit-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; padding-block: clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--ink); margin-bottom: 44px }
.edit-head .kicker { margin-bottom: 14px }
.edit-head h1 { font: 400 clamp(56px, 7.4vw, 120px)/.9 var(--serif); letter-spacing: -.025em; margin: 0 }
.edit-head h1 em { font-style: italic }
.edit-head .dek { margin: 0; font: italic 400 clamp(18px, 1.5vw, 22px)/1.4 var(--serif); max-width: 34ch; justify-self: end }
@media (max-width: 700px) { .edit-head { grid-template-columns: 1fr } .edit-head .dek { justify-self: start } }
.mag { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 20px; padding-bottom: 72px }
@media (max-width: 900px) { .mag { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 10px } }

.signup { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px }
.signup label { width: 100%; font-size: 12px; letter-spacing: .12em; text-transform: uppercase }
.signup input[type=email] { flex: 1 1 220px; min-width: 0; padding: 9px 10px; border: 1px solid #767676; background: var(--bg); color: var(--ink); font: inherit }

.cmp th:first-child { position: sticky; left: 0; background: var(--bg); z-index: 1 }
/* labels index: columns with comfortable tap targets */
.label-index { columns: 3 180px; column-gap: 24px; padding: 0; list-style: none }
.label-index li { break-inside: avoid; margin: 0 }
.label-index a { display: inline-block; padding: 7px 0; min-height: 32px }
/* Skip link: hidden until focused by keyboard */
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; font-size: 14px; text-decoration: none }
.skip:focus { top: 12px }

/* Filters in a left rail on wide screens (search and the Edit) */
@media (min-width: 1000px) {
  .search-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 40px; align-items: start }
  .search-page > * { grid-column: 2 }
  .search-page > .results-head { grid-column: 1 / -1 }
  .search-page > .toolbar { display: contents }
  .search-page .toolbar .open-filters, .search-page .toolbar .spacer { display: none }
  .search-page .toolbar .fgroups { display: block; grid-column: 1; grid-row: 2 / span 40; position: sticky; top: calc(var(--header) + 16px); max-height: calc(100vh - var(--header) - 32px); overflow: auto }
  .search-page .drawer-head { display: none }
  .search-page .drawer-body { display: block }
  .search-page .drawer-foot { display: block; border: 0; padding: 12px 0 }
  .search-page .drawer-foot .btn:last-child { display: none }
  .search-page details.f { border-bottom: 1px solid var(--rule) }
  .search-page details.f > summary { width: 100%; justify-content: space-between; padding-inline: 0 }
  .search-page details.f .panel { position: static; border: 0; padding: 0 0 16px; min-width: 0; max-height: 260px; overflow-y: auto }
  .search-page .toolbar .sortsel { grid-column: 2; grid-row: 2; justify-self: end }
  .search-page .tiles, .search-page .grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}

/* Ask for a Find band on the home page */
.find-band { text-align: center; padding-block: 56px; border-top: 1px solid var(--rule) }
.find-band p { max-width: 46ch; margin: 8px auto 20px }

/* Photo gallery on a listing */
.thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap }
.thumbs .th { padding: 0; border: 1px solid var(--rule); background: var(--bg); width: 64px; aspect-ratio: 4 / 5; cursor: pointer; opacity: .65 }
.thumbs .th[aria-pressed="true"] { border-color: var(--ink); opacity: 1 }
.thumbs .th img { width: 100%; height: 100%; object-fit: cover; display: block }

/* leave-out buttons, decades, search tips */
.opt .no { opacity: 0; width: 22px; font-size: 16px; line-height: 1; color: #8c1d2f }
.opt:hover .no, .opt .no:focus-visible, .opt.ex .no { opacity: 1 }
.opt.ex span { text-decoration: line-through; color: #8c1d2f }
.tips { margin-top: 8px; font-size: 12px; color: var(--mute) }
.tips summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; list-style: none }
.tips summary::-webkit-details-marker { display: none }
.tips p { margin: 6px 0 0 }

/* the archive search sits in its own band above the Edit, so it isn't mistaken for a search of the Edit */
.home-find-search { padding-top: 28px; padding-bottom: 8px; max-width: 760px; margin-inline: auto; text-align: center }
.home-find-search .kicker { margin: 0 0 10px }
.home-find-search .searchbar { max-width: none }

/* Keeps the footer below the fold while the page loads, so it does not jump. */
#main{min-height:90vh}
/* Reserves the lead photo's space before it loads, so the headline does not jump. */
.home-spread #spread-lead:empty { height: min(calc(100vh - var(--header) - 64px), 820px); min-height: 440px }
@media (max-width: 900px) { .home-spread #spread-lead:empty { height: auto; min-height: 0; aspect-ratio: 4 / 5 } }

/* Search suggestions under the search box */
.searchbar { position: relative }
.sugg { position: absolute; z-index: 30; left: -1px; right: -1px; top: 100%; margin: 0; padding: 4px 0; list-style: none; background: var(--bg); border: 1px solid var(--ink); border-top: 0; box-shadow: 0 8px 24px rgba(0,0,0,.08) }
.sugg[hidden] { display: none }
.sugg li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; cursor: pointer; font-size: 15px }
.sugg li span { color: var(--mute); font-size: 11px; letter-spacing: .1em; text-transform: uppercase }
.sugg li:hover, .sugg li[aria-selected=true] { background: var(--wash) }

@media (max-width: 860px) { .menu-btn { justify-self: end } }

/* A very long search word must wrap, not push the page sideways */
.small, .chip, .count-line, .rec-note, .results-head { overflow-wrap: anywhere }
.empty, .empty li, .doc { overflow-wrap: anywhere }
/* The Edit invitation (app.js editInvite) */
.invite { width: min(460px, calc(100vw - 32px)); padding: 36px 32px 24px; border: 1px solid var(--ink); border-radius: 2px; background: var(--bg); color: var(--ink) }
.invite::backdrop { background: rgba(17, 17, 17, .35) }
.invite h2 { font: 400 clamp(28px, 4vw, 36px)/1.1 var(--serif); margin: 12px 0 14px }
.invite h2 em { font-style: italic }
.invite .dek { font: italic 400 17px/1.45 var(--serif); margin: 0 0 22px; max-width: 34ch }
.invite .signup { margin-bottom: 10px }
.invite-x { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer }
.invite-no { color: var(--mute); font-size: 13px; min-height: 44px }
@media (max-width: 520px) { .invite { margin: auto 0 0; width: 100vw; max-width: 100vw; padding: 32px 20px 20px; border-width: 1px 0 0 } }
