:root {
  --paper: #faf5ef;
  --white: #fffbf7;
  --ink: #2e1928;
  --muted: #6e5362;
  --outline: #dec8cf;
  --green: #63264e;
  --display: Didot, 'Bodoni MT', 'Times New Roman', serif;
}
body { background: var(--paper); }
header { border: 0; background: transparent; }
.bar, main { max-width: 1280px; }
.bar { display: grid; justify-items: center; gap: 0; padding-block: 0; }
.brand { font: 400 clamp(42px,8vw,96px)/1 var(--display); letter-spacing: -.065em; padding: 14px 0; }
nav { width: 100%; justify-content: center; border-block: 1px solid var(--ink); gap: clamp(8px,4vw,52px); }
nav button, nav .active { border: 0; border-radius: 0; background: transparent; color: var(--muted); }
nav .active { color: var(--green); box-shadow: inset 0 -3px var(--green); }
.hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,.75fr); gap: 0; padding: 0; background: transparent; border-radius: 0; box-shadow: none; margin: 24px 0 30px; color: var(--ink); border-bottom: 1px solid var(--outline); }
.hero::after { content: none; }
.hero figure { margin: 0; background: #f5eadc; }
.hero img { display: block; width: 100%; aspect-ratio: 1.85; object-fit: cover; }
.hero-copy { padding: clamp(14px,4vw,48px); border-left: 1px solid var(--outline); }
.hero h1 { font: italic 400 clamp(30px,5vw,68px)/.98 var(--display); max-width: none; letter-spacing: -.052em; margin: 0 0 12px; }
.hero p { color: var(--muted); margin: 0 0 12px; line-height: 1.4; }
button, .hero button { border-radius: 3px; }
.hero button, .primary { background: var(--green); color: #fff; border-color: var(--green); }
.heading h2, #modalTitle { font-family: var(--display); letter-spacing: -.045em; }
.heading { margin-bottom: 0; padding-bottom: 8px; align-items: baseline; border-bottom: 1px solid var(--ink); }
.catalog-controls { display: flex; gap: 12px; flex-wrap: wrap; padding-block: 10px; border-bottom: 1px solid var(--outline); margin-bottom: 12px; }
.catalog-controls .wardrobe-tools { display: flex; flex: 1 1 240px; gap: 8px; margin: 0; }
input, select, textarea { border-radius: 3px; background: var(--white); }
#filters { gap: 6px; margin-bottom: 14px; }
#filters button { padding: .55rem .7rem; }
.grid { grid-template-columns: repeat(auto-fill,minmax(225px,1fr)); gap: 17px; }
.card, .empty, .packing-panel, .fitting-editorial { border-radius: 3px; box-shadow: none; }
.card > img { height: auto; aspect-ratio: 4/5; background: #efdeea; }
.card h3 { font: 600 1.45rem/1.1 var(--display); }
.card .actions { border-top: 1px solid var(--outline); margin-top: 10px; padding-top: 5px; }
.card .actions button { font-size: .875rem; }
.contexts span { border-radius: 2px; }
#modal { border-radius: 3px; width: min(660px,calc(100% - 16px)); }
#modalTitle { border-bottom: 1px solid var(--outline); }
.form-feature { display: grid; grid-template-columns: minmax(90px,1fr) minmax(0,1.6fr); gap: 14px; align-items: start; margin: 14px 0; }
.form-feature img { width: 100%; max-height: 225px; object-fit: contain; background: #efdeea; }
.form-feature label:first-child { margin-top: 0; }
.form-section { border-top: 1px solid var(--outline); padding-block: 9px; }
.form-section summary { cursor: pointer; font-weight: 650; min-height: 36px; }
@media(max-width:650px){
  .bar { min-height: auto; border-bottom: 1px solid var(--ink); }
  .brand { padding-block: 11px; }
  nav { gap: 2px; border-top: 1px solid var(--outline); }
  nav .active { box-shadow: inset 0 -2px var(--green); }
  .hero { grid-template-columns: 1fr; margin: 12px 0 19px; }
  .hero img { aspect-ratio: 2; }
  .hero-copy { padding: 12px 0; border: 0; }
  .hero h1 { font-size: clamp(30px,9vw,48px); margin-bottom: 7px; }
  .hero p { margin: 0 0 8px; }
  .hero button { margin: 0; min-height: 44px; }
  .catalog-controls { gap: 6px; }
  .catalog-controls .wardrobe-tools > * { min-width: 0; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .card h3 { font-size: 1.15rem; }
}

.card .item-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
  padding-top: 7px;
}
.card .item-actions button {
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 4px 3px;
  font-size: .8125rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
@media (pointer: coarse) {
  .card .item-actions button { min-height: 44px; }
}
.wish-mark { margin: 6px 0; font-size: .875rem; color: var(--green); font-weight: 600; }
.shopping-journal > img { width: 100%; max-height: 250px; object-fit: contain; background: #f4eadf; margin-top: 12px; }
.shopping-spread { border-top: 1px solid var(--ink); padding-top: 10px; margin-block: 12px; }
.shopping-spread h3 { font: italic 1.7rem var(--display); }
.shopping-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr)); gap: 8px; }
.shopping-columns section { background: #fcf4ed; border: 1px solid var(--outline); padding: 8px; min-width: 0; }
.shopping-columns h4 { margin: 0 0 8px; font: 1.15rem var(--display); }
.shopping-pieces { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
.shopping-pieces figure { margin: 0; font-size: .75rem; overflow-wrap: anywhere; }
.shopping-pieces img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f0e1e8; }

main { position: relative; isolation: isolate; }
.wardrobe-watermarks {
  position: absolute;
  inset: 20px clamp(12px, 3vw, 36px) 24px;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.wardrobe-watermarks img {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: min(var(--size), 20%);
  height: auto;
  max-height: min(155px, 18%);
  object-fit: contain;
  opacity: var(--wash);
  transform: translate(-50%, -50%) rotate(var(--tilt));
}
.wardrobe-watermarks img:nth-child(1) { --x: 15%; --y: 10%; --size: 132px; --tilt: -14deg; --wash: .19; }
.wardrobe-watermarks img:nth-child(2) { --x: 43%; --y: 18%; --size: 177px; --tilt: 11deg; --wash: .2; }
.wardrobe-watermarks img:nth-child(3) { --x: 79%; --y: 28%; --size: 124px; --tilt: -21deg; --wash: .16; }
.wardrobe-watermarks img:nth-child(4) { --x: 29%; --y: 37%; --size: 83px; --tilt: 17deg; --wash: .23; }
.wardrobe-watermarks img:nth-child(5) { --x: 59%; --y: 48%; --size: 168px; --tilt: -8deg; --wash: .17; }
.wardrobe-watermarks img:nth-child(6) { --x: 85%; --y: 63%; --size: 111px; --tilt: 13deg; --wash: .2; }
.wardrobe-watermarks img:nth-child(7) { --x: 18%; --y: 73%; --size: 161px; --tilt: -17deg; --wash: .19; }
.wardrobe-watermarks img:nth-child(8) { --x: 48%; --y: 81%; --size: 139px; --tilt: 19deg; --wash: .15; }
.wardrobe-watermarks img:nth-child(9) { --x: 69%; --y: 91%; --size: 79px; --tilt: -12deg; --wash: .22; }
@media (max-width: 650px) {
  .wardrobe-watermarks { inset-block-end: calc(72px + env(safe-area-inset-bottom)); opacity: .82; }
  .wardrobe-watermarks img { width: min(var(--size), 23%); max-height: min(105px, 18%); }
}
