/* colorpalettefit: Swiss poster system. Paper and ink; all color comes from palettes. */
:root {
  --paper: #FFFFFF;
  --ink: #000000;
  --ink-2: #4D4D4D;
  --wash: #F1F1EF;
  --line: #000000;
  --hair: #D4D4D0;
  --gut: 20px;
  --max: 1440px;
  --f: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f); font-size: 17px; line-height: 1.55; font-weight: 400;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 760px) { body { font-size: 18px; } :root { --gut: 32px; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 12px 16px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
h1 {
  font-size: clamp(46px, 7.4vw, 118px); line-height: .9; letter-spacing: -0.045em;
  font-variation-settings: "wdth" 118; font-weight: 820;
}
.sub h1 { font-size: clamp(40px, 7.4vw, 112px); }
h2 {
  font-size: clamp(32px, 4.6vw, 64px); line-height: .98; letter-spacing: -0.035em;
  font-variation-settings: "wdth" 112;
}
h3 { font-size: 22px; line-height: 1.2; font-variation-settings: "wdth" 104; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lede { font-size: 20px; line-height: 1.45; max-width: 34em; }
@media (min-width: 760px) { .lede { font-size: 23px; } }
.small { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.num { font-variation-settings: "wdth" 62; font-weight: 300; font-feature-settings: "tnum" 1; letter-spacing: -0.03em; }

/* ---------- header ---------- */
.top { border-bottom: 2px solid var(--line); background: var(--paper); position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; font-variation-settings: "wdth" 120; }
.brand-mark { display: flex; width: 30px; height: 22px; }
.brand-mark i { flex: var(--s); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; display: inline-block; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.menu-btn { display: none; }
@media (max-width: 1040px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
    background: none; border: 2px solid var(--ink); font: 700 15px var(--f); color: var(--ink); cursor: pointer;
  }
  .menu-btn span { display: block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 2px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; max-width: var(--max); margin: 0 auto; padding: 8px var(--gut) 16px; }
  .nav a { display: block; padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--hair); }
  .nav li:last-child a { border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero { padding: 40px 0 28px; }
.hero-grid { display: grid; gap: 24px; }
.hero h1 { max-width: 10em; }
.hero-side p { max-width: 30em; }
.kbd { display: inline-block; border: 1.5px solid currentColor; padding: 0 7px; font-size: .82em; font-weight: 700; line-height: 1.6; }
@media (min-width: 1000px) {
  .hero { padding: 64px 0 40px; }
  .hero-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
  .hero h1 { grid-column: 1 / span 9; }
  .hero-side { grid-column: 10 / span 3; padding-bottom: 6px; }
}

/* ---------- the strip (signature) ---------- */
.strip { display: flex; flex-direction: column; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.field {
  --fg: #000; position: relative; color: var(--fg); background: var(--c);
  display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 4px 12px;
  padding: 10px 14px; min-height: calc(var(--s) * 3.4px + 44px);
  transition: background-color .45s ease;
}
.field .share { font-size: 46px; line-height: .9; }
.field .bottom { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; min-width: 0; }
.field .nm, .field .meta { grid-column: 1; min-width: 0; }
.field .tools { grid-column: 2; grid-row: 1 / span 2; }
.field .share sup { font-size: .42em; vertical-align: top; position: relative; top: .25em; margin-left: 1px; font-weight: 400; }
.field .nm { font-weight: 750; font-size: 19px; line-height: 1.15; font-variation-settings: "wdth" 108; }
.field .meta { font-size: 14px; line-height: 1.3; opacity: .86; }
.field .meta b { font-weight: 600; font-feature-settings: "tnum" 1; }
.field .tools { display: flex; gap: 6px; }
.fbtn {
  min-width: 44px; min-height: 44px; padding: 0 10px; border: 1.5px solid currentColor; background: transparent; color: inherit;
  font: 650 14px var(--f); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.fbtn svg { width: 16px; height: 16px; flex-shrink: 0; }
.fbtn[aria-pressed="true"] { background: var(--fg); color: var(--c); }
.fbtn:focus-visible { outline-color: var(--fg); box-shadow: none; }
.fbtn .t { display: none; }
@media (min-width: 760px) {
  .strip { flex-direction: row; height: clamp(360px, 52vh, 600px); }
  .field {
    flex: var(--s) 1 0; min-width: 104px; min-height: 0; display: flex; flex-direction: column; align-items: flex-start;
    justify-content: space-between; padding: 18px 16px 16px; gap: 0;
  }
  .field .share { font-size: clamp(56px, calc(var(--s) * 0.42vw + 30px), 168px); line-height: .82; }
  .field .bottom { width: 100%; display: block; }
  .field .nm { font-size: clamp(17px, 1.6vw, 24px); margin-bottom: 2px; }
  .field .tools { margin-top: 12px; }
  .field.narrow { min-width: 120px; padding-left: 12px; padding-right: 12px; }
  .field.narrow .nm { font-size: 17px; overflow-wrap: anywhere; }
  .field.narrow .meta { font-size: 13px; }
  .fbtn .t { display: inline; }
  .field.narrow .fbtn .t { display: none; }
}
.strip-cap { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0 0; flex-wrap: wrap; }

/* ---------- controls ---------- */
.controls { display: grid; gap: 0; border-bottom: 2px solid var(--line); }
.ctl { padding: 18px 0; border-top: 1px solid var(--hair); }
.ctl:first-child { border-top: 0; }
.ctl legend { float: left; width: 100%; }
.ctl .seg { clear: both; }
.ctl legend, .ctl .lbl { font-weight: 750; font-size: 15px; padding: 0; margin-bottom: 10px; display: block; font-variation-settings: "wdth" 108; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink);
  font-size: 15px; font-weight: 600; cursor: pointer; background: var(--paper); user-select: none;
}
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.seg input:disabled + span { color: #9A9A9A; border-color: #C9C9C9; text-decoration: line-through; cursor: not-allowed; }
.select-wrap select {
  min-height: 44px; width: 100%; max-width: 320px; border: 1.5px solid var(--ink); border-radius: 0; background: var(--paper);
  font: 600 15px var(--f); color: var(--ink); padding: 0 40px 0 12px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%);
  background-position: calc(100% - 20px) 19px, calc(100% - 14px) 19px; background-size: 6px 6px; background-repeat: no-repeat;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px;
  border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font: 700 16px var(--f); text-decoration: none; cursor: pointer;
  font-variation-settings: "wdth" 106;
}
.btn:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn svg { width: 18px; height: 18px; }
.note { min-height: 1.5em; font-size: 14px; color: var(--ink-2); margin: 8px 0 0; }
@media (min-width: 1000px) {
  .controls { grid-template-columns: 4.2fr 1.4fr 2.6fr 3.4fr; }
  .ctl { border-top: 0; border-left: 1px solid var(--hair); padding: 20px 20px 22px; }
  .ctl:first-child { border-left: 0; padding-left: 0; }
  .ctl:last-child { padding-right: 0; }
}
.reading { display: grid; gap: 16px; padding: 28px 0 8px; }
.reading p { font-size: 19px; line-height: 1.5; max-width: 40em; margin: 0; }
@media (min-width: 1000px) {
  .reading { grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding-top: 36px; }
  .reading h2 { grid-column: 1 / span 4; font-size: 26px; letter-spacing: -0.01em; line-height: 1.15; }
  .reading p { grid-column: 5 / span 8; font-size: 22px; }
}

/* ---------- sections ---------- */
.sec { padding: 64px 0; border-top: 2px solid var(--line); }
.sec-head { display: grid; gap: 14px; margin-bottom: 32px; }
.sec-head p { max-width: 34em; margin: 0; }
@media (min-width: 1000px) {
  .sec { padding: 96px 0; }
  .sec-head { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; margin-bottom: 48px; }
  .sec-head h2 { grid-column: 1 / span 7; }
  .sec-head p { grid-column: 8 / span 5; }
}

/* ---------- garments ---------- */
.rack { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
@media (min-width: 760px) { .rack { grid-template-columns: repeat(4, 1fr); } }
.piece {
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper);
  padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; text-align: left;
  font: inherit; color: inherit; border-top: 0; border-left: 0; width: 100%;
}
.piece:hover { background: var(--wash); }
.piece svg { width: 100%; height: auto; aspect-ratio: 200 / 240; }
.piece svg path { transition: fill .45s ease, stroke .45s ease; }
.piece .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; line-height: 1.3; }
.piece .cap b { font-weight: 750; }
.piece .cap span { color: var(--ink-2); text-align: right; }
.piece:focus-visible { outline-offset: -4px; box-shadow: none; }
.rack-note { margin-top: 14px; }

/* ---------- try-on ---------- */
.worn { display: grid; gap: 28px; }
.worn-fig { margin: 0; position: relative; background: #E6E6E8; }
.worn-fig img { width: 100%; aspect-ratio: 900 / 1205; object-fit: cover; }
.worn-fig figcaption { position: absolute; left: 0; bottom: 0; background: var(--paper); padding: 6px 10px; font-size: 13px; font-weight: 600; }
.looks { display: grid; gap: 10px; align-content: start; }
.look {
  display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px; border: 1.5px solid var(--ink); background: var(--paper);
  text-align: left; font: inherit; color: inherit; cursor: pointer; min-height: 44px;
}
.look[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.look .bars { display: flex; height: 40px; border: 1px solid rgba(0,0,0,.25); }
.look[aria-pressed="true"] .bars { border-color: rgba(255,255,255,.4); }
.look .bars i { flex: var(--s); background: var(--c); }
.look b { font-size: 18px; font-weight: 750; font-variation-settings: "wdth" 108; }
.look small { display: block; font-size: 14px; opacity: .85; margin-top: 2px; }
.look.plain .bars { display: none; }
@media (min-width: 900px) {
  .worn { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .worn-fig { grid-column: 1 / span 6; }
  .looks { grid-column: 7 / span 6; }
}
.cta { margin-top: 40px; padding-top: 28px; border-top: 2px solid var(--ink); display: grid; gap: 18px; }
.cta h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.05; letter-spacing: -0.025em; font-variation-settings: "wdth" 112; }
.cta .row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta p { margin: 0; }

/* ---------- modes table ---------- */
.rules { border-top: 2px solid var(--ink); }
.rule { display: grid; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--ink); }
.rule h3 { font-size: 24px; }
.rule p { margin: 0; max-width: 36em; }
.mini { display: flex; height: 56px; }
.mini i { flex: var(--s); background: var(--c); }
.mini-legend { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
@media (min-width: 900px) {
  .rule { grid-template-columns: 3fr 5fr 4fr; column-gap: 24px; align-items: start; }
}

/* ---------- guide list ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.index li { border-bottom: 1px solid var(--ink); }
.index a { display: grid; gap: 6px; padding: 22px 0; text-decoration: none; }
.index a:hover .t { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.index .t { font-size: clamp(24px, 3.2vw, 44px); font-weight: 780; letter-spacing: -0.03em; line-height: 1.05; font-variation-settings: "wdth" 112; }
.index .d { color: var(--ink-2); max-width: 40em; }
@media (min-width: 900px) { .index a { grid-template-columns: 7fr 5fr; column-gap: 24px; align-items: baseline; } }

/* ---------- article pages ---------- */
.crumbs { font-size: 14px; padding: 18px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.sub .hero { padding-top: 28px; }
.sub .hero h1 { max-width: 11em; }
.page-strip { display: flex; height: 120px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.page-strip i { flex: var(--s); background: var(--c); }
@media (min-width: 760px) { .page-strip { height: 180px; } }
.article { display: grid; gap: 32px; padding: 48px 0 24px; }
.toc { font-size: 15px; }
.toc b { display: block; font-weight: 750; margin-bottom: 8px; }
.toc ol { margin: 0; padding: 0 0 0 1.3em; }
.toc li { margin: 0 0 6px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose { max-width: 40em; }
.prose h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 56px 0 18px; scroll-margin-top: 20px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 10px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose figure { margin: 32px 0; }
.prose figcaption { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink); vertical-align: top; }
.prose th { font-weight: 750; border-bottom-width: 2px; }
.tablewrap { overflow-x: auto; }
@media (min-width: 1000px) {
  .article { grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding-top: 72px; }
  .toc { grid-column: 1 / span 3; position: sticky; top: 24px; align-self: start; }
  .prose { grid-column: 4 / span 7; }
  .wide { margin-right: -30%; }
}
.sw { margin: 24px 0 28px; }
.sw .bars { display: flex; min-height: 92px; border: 1px solid rgba(0,0,0,.12); }
.sw .bars span { flex: var(--s); background: var(--c); color: var(--fg); padding: 8px; font-size: 13px; line-height: 1.25; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; overflow: hidden; }
.sw .bars span b { font-weight: 700; font-size: 14px; }
.sw .foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; margin-top: 8px; }
.sw .foot strong { font-weight: 750; }
.sw .foot a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.sw .bars span { min-width: 66px; }
@media (max-width: 560px) {
  .sw .bars { flex-direction: column; min-height: 0; }
  .sw .bars span { flex-direction: row; justify-content: space-between; padding: 10px; min-height: 44px; align-items: center; }
}
.seasons { display: grid; gap: 24px; }
@media (min-width: 760px) { .seasons { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 16px; margin: 20px 0 28px; }
.pairs .sw { margin: 0; }
.pairs .sw .bars { min-height: 76px; flex-direction: row; }
.pairs .sw .bars span { flex-direction: column; justify-content: flex-end; align-items: flex-start; min-width: 0; }
.seasons > * { min-width: 0; }
.season { border-top: 2px solid var(--ink); padding-top: 14px; }
.season h3 { margin-top: 0; }
.tiles-h { font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
.prose .tiles { list-style: none; margin: 0 0 4px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 10px 8px; }
.prose .tiles li { margin: 0; font-size: 13px; line-height: 1.25; }
.tiles i { display: block; height: 34px; background: var(--c); margin-bottom: 5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.faq dt { font-weight: 750; font-size: 19px; margin-top: 22px; }
.faq dd { margin: 6px 0 0; }
.callout { border-left: 6px solid var(--ink); padding: 4px 0 4px 18px; margin: 28px 0; }

/* ---------- footer ---------- */
.foot-main { border-top: 2px solid var(--line); padding: 40px 0 48px; margin-top: 64px; font-size: 15px; }
.foot-grid { display: grid; gap: 24px; }
.foot-main ul { list-style: none; margin: 0; padding: 0; }
.foot-main li { margin-bottom: 6px; }
.foot-main a { text-decoration: none; }
.foot-main a:hover { text-decoration: underline; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 5fr 3fr 4fr; column-gap: 24px; } }

/* ---------- picker dialog ---------- */
dialog.picker { border: 2px solid var(--ink); padding: 0; max-width: 720px; width: calc(100% - 24px); background: var(--paper); color: var(--ink); max-height: 86vh; }
dialog.picker::backdrop { background: rgba(255,255,255,.82); }
.picker header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 2px solid var(--ink); position: sticky; top: 0; background: var(--paper); }
.picker h2 { font-size: 22px; letter-spacing: -0.01em; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 0; padding: 0; }
.chip { border: 0; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--paper); padding: 0 0 10px; text-align: left; font: inherit; cursor: pointer; color: var(--ink); }
.chip i { display: block; height: 64px; background: var(--c); margin-bottom: 8px; }
.chip b, .chip span { display: block; padding: 0 10px; font-size: 14px; line-height: 1.3; }
.chip span { color: var(--ink-2); font-size: 13px; }
.chip[aria-current="true"] { outline: 3px solid var(--ink); outline-offset: -3px; }
.chip:hover { background: var(--wash); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
