/* SUITSMEGOOD — "gallery catalogue" world. Paper, ink, one vermilion. */

:root {
  --bone: #F1EDE6;
  --paper: #F8F5F0;
  --ink: #16130F;
  --muted: #6E675C;
  --line: rgba(22, 19, 15, 0.16);
  --signal: #C8371F;
  --signal-deep: #A82C16;
  --serif: "Bodoni Moda", "Iowan Old Style", Georgia, serif;
  --sans: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--bone); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--pad); top: -3rem; z-index: 100;
  background: var(--ink); color: var(--bone); padding: 0.5rem 1rem;
  font-size: 0.8rem; transition: top 0.2s var(--ease);
}
.skip:focus-visible { top: 0.75rem; }

/* ---------- shared voice ---------- */

h1, h2, .foot-big, .quote-text, .proof-text, .row-name, .edit-card-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
  text-wrap: balance;
}
h1 em, h2 em, .foot-big em, .quote-text em, .proof-text em { font-style: italic; }

h1 { font-size: clamp(2.5rem, 5.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }

.label {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 54ch;
  margin-top: 1.5rem;
}

.arr { width: 1em; height: 1em; vertical-align: -0.12em; transition: transform 0.35s var(--ease); }

/* pills + links */
.pill {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 0.85em 1.5em; white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pill:hover { background: var(--ink); color: var(--bone); }
.pill-signal { background: var(--signal); border-color: var(--signal); color: #FDFBF7; }
.pill-signal:hover { background: var(--signal-deep); border-color: var(--signal-deep); color: #FDFBF7; }
.pill:hover .arr, .text-link:hover .arr { transform: translateX(0.2em) translateY(-0.05em); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--signal); }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}
.head-in {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem var(--pad);
}
.wordmark {
  font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0.02em;
}
.wordmark-dot { color: var(--signal); }
.nav-desk { display: flex; align-items: center; gap: 2rem; }
.nav-desk > a:not(.pill) {
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-desk > a:not(.pill):hover { border-color: var(--ink); }
.nav-desk > a[aria-current="page"] { border-color: var(--signal); color: var(--signal); }

.nav-mob { display: none; position: relative; }
.nav-mob summary {
  list-style: none; cursor: pointer;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--ink); border-radius: 999px; padding: 0.6em 1.2em;
}
.nav-mob summary::-webkit-details-marker { display: none; }
.nav-mob[open] summary { background: var(--ink); color: var(--bone); }
.nav-mob-panel {
  position: absolute; right: 0; top: calc(100% + 0.75rem); z-index: 60;
  background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: 1.5rem; min-width: 15rem;
}
.nav-mob-panel a:not(.pill) {
  font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
}
.nav-mob-panel a[aria-current="page"] { color: var(--signal); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 6rem) var(--pad);
}
.hero-copy { max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.25rem; }
.hero-handle { margin-top: 2.5rem; font-size: 0.8rem; color: var(--muted); }
.hero-handle a { text-decoration: underline; text-underline-offset: 4px; }
.hero-handle a:hover { color: var(--signal); }
.hero-img { aspect-ratio: 2 / 3; max-height: 78vh; overflow: hidden; }

/* ---------- ticker ---------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
}
.ticker-track {
  display: flex; width: max-content;
  animation: tick 70s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  padding: 0.8rem 0;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  color: var(--muted); white-space: nowrap;
}
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

.section { padding: var(--section) var(--pad) 0; }
.section:last-of-type { padding-bottom: var(--section); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.page-head { padding: clamp(3.5rem, 7vw, 6rem) var(--pad) 0; }

/* ---------- edit cards ---------- */

.edit-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: clamp(2.5rem, 5vw, 4.5rem);
}
.edit-card { grid-column: span 5; display: block; }
.edit-card-big { grid-column: span 7; }
.edit-card-img { display: block; overflow: hidden; aspect-ratio: 3 / 4; }
.edit-card-big .edit-card-img { aspect-ratio: 4 / 5; }
.edit-card-img img { transition: transform 0.8s var(--ease), filter 0.8s var(--ease); }
.edit-card:hover .edit-card-img img { transform: scale(1.03); }
.edit-card-foot { display: block; padding-top: 1.1rem; }
.edit-card-title { display: block; font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.edit-card:hover .edit-card-title { color: var(--signal); }
.edit-card-meta {
  display: flex; align-items: center; gap: 0.6rem; margin-top: 0.45rem;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  color: var(--muted);
}
.edit-grid-even .edit-card, .edit-grid-even .edit-card-big { grid-column: span 6; }
.edit-grid-even .edit-card-big .edit-card-img { aspect-ratio: 3 / 4; }
.edit-grid-three .edit-card, .edit-grid-three .edit-card-big { grid-column: span 4; }

.palette { display: inline-flex; gap: 4px; }
.palette i {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--line); display: inline-block;
}

/* reveal — the quiet entrance, edits only */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- quote + proof ---------- */

.quote { border-top: 1px solid var(--line); text-align: center; }
.quote-text { font-size: clamp(1.7rem, 3.4vw, 2.9rem); max-width: 26ch; margin: 0 auto 2rem; }
.proof { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-bottom: var(--section); text-align: center; }
.proof-text { font-size: clamp(1.6rem, 3vw, 2.6rem); max-width: 28ch; margin: 0 auto 2rem; }
.proof-text em { color: var(--signal); }
.save-block { text-align: center; }
.save-block .proof-text { margin-bottom: 1.75rem; }

/* home: proof follows quote, needs its own top padding kept */
.proof.section { padding-top: var(--section); }

/* ---------- item rows ---------- */

.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 3ch 20px minmax(0, 1.35fr) minmax(0, 1fr) auto auto;
  grid-template-areas: "n swatch name meta price shop";
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 1.15rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
a.row:hover { background: var(--paper); }
a.row:hover .row-shop .arr { transform: translateX(0.15em) translateY(-0.15em); }
.row-n { grid-area: n; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); font-weight: 500; }
.row-swatch { grid-area: swatch; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); }
.row-name { grid-area: name; font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.row-meta { grid-area: meta; font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.row-price { grid-area: price; font-weight: 500; font-size: 0.95rem; }
.row-shop {
  grid-area: shop;
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 500;
  color: var(--signal); white-space: nowrap;
}
.row-static { cursor: default; }
.row-static .row-meta { max-width: 52ch; }

.disclosure-line { font-size: 0.82rem; color: var(--muted); max-width: 52ch; }
.disclosure-line a { text-decoration: underline; text-underline-offset: 3px; }
.disclosure-line a:hover { color: var(--signal); }

/* ---------- filters ---------- */

.filters { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.filter-group .label { margin-right: 0.5rem; }
.chip {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.5em 1.1em;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.empty { padding: 3rem 0; text-align: center; color: var(--muted); }
.row[hidden] { display: none; }

/* ---------- edit page head ---------- */

.edit-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) var(--pad) 0;
}
.edit-head-copy p + p { margin-top: 1.1rem; }
.edit-head-copy .lede + p { margin-top: 1.5rem; }
.crumb { font-size: 0.75rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-bottom: 1.5rem; }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }
.crumb a:hover { color: var(--signal); }
.edit-head-img { aspect-ratio: 3 / 4; max-height: 76vh; overflow: hidden; }
.edit-meta {
  display: grid; grid-template-columns: repeat(4, auto); gap: 2rem;
  justify-content: start; margin-top: 2.25rem;
}
.edit-meta dt { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-bottom: 0.3rem; }
.edit-meta dd { font-size: 0.95rem; font-weight: 500; }

/* ---------- prose (disclosure / privacy) ---------- */

.prose { max-width: 68ch; padding-bottom: var(--section); }
.prose h1 { margin-bottom: 2rem; }
.prose p + p { margin-top: 1.2rem; }
.prose a { text-decoration: underline; text-underline-offset: 4px; }
.prose a:hover { color: var(--signal); }
.prose strong { font-weight: 500; }

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--line); margin-top: var(--section); background: var(--paper); }
.foot-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem 3rem; padding: clamp(3rem, 6vw, 5rem) var(--pad);
  border-bottom: 1px solid var(--line);
}
.foot-big { font-size: clamp(2rem, 4.5vw, 3.8rem); max-width: 18ch; }
.foot-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem; padding: clamp(2.5rem, 5vw, 4rem) var(--pad);
  border-bottom: 1px solid var(--line);
}
.foot-grid .label { margin-bottom: 1.1rem; }
.foot-grid a { display: block; font-size: 0.95rem; color: var(--muted); padding: 0.3rem 0; transition: color 0.25s var(--ease); }
.foot-grid a:hover { color: var(--signal); }
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding: 1.5rem var(--pad); font-size: 0.78rem; color: var(--muted);
}
.foot-base a { text-decoration: underline; text-underline-offset: 3px; }
.foot-base a:hover { color: var(--signal); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-right: var(--pad); }
  .hero-img { aspect-ratio: 4 / 5; max-height: none; order: -1; }
  .hero-copy { max-width: 40ch; }
  .edit-head { grid-template-columns: 1fr; }
  .edit-head-img { order: -1; max-height: 60vh; }
  .edit-grid .edit-card, .edit-grid .edit-card-big { grid-column: span 6; }
  .edit-grid-three .edit-card { grid-column: span 6; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .nav-desk { display: none; }
  .nav-mob { display: block; }
}

@media (max-width: 700px) {
  .row {
    grid-template-columns: 3ch 18px minmax(0, 1fr) auto;
    grid-template-areas:
      "n swatch name price"
      "n swatch meta shop";
    row-gap: 0.35rem;
  }
  .row-price, .row-shop { justify-self: end; }
  .row-shop-long { display: none; }
  .row { gap: 0.35rem 1rem; }
  .edit-meta { grid-template-columns: repeat(2, auto); gap: 1.25rem 2.5rem; }
}

@media (max-width: 560px) {
  .edit-grid .edit-card, .edit-grid .edit-card-big,
  .edit-grid-even .edit-card, .edit-grid-three .edit-card { grid-column: span 12; }
  .edit-grid-even .edit-card, .edit-grid-even .edit-card-big { grid-column: span 6; }
}

@media (max-width: 480px) {
  .edit-grid-even .edit-card, .edit-grid-even .edit-card-big { grid-column: span 12; }
  .cta-row { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .ticker { overflow-x: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .edit-card-img img { transition: none; }
}

/* ---------- refonte palette-first (2026-08-19) ---------- */

.masthead { padding: clamp(1rem, 3vw, 2.5rem) var(--pad) 0; }
.giant {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(2.6rem, 10.4vw, 11rem);
  line-height: 0.95; letter-spacing: -0.015em;
  color: var(--signal); text-align: center; text-wrap: none;
}
.util-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: clamp(.8rem, 2vw, 1.5rem); padding: .55rem 0;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--muted);
}
.util-row a { text-decoration: underline; text-underline-offset: 3px; }
.util-row a:hover { color: var(--signal); }

/* hero palette plein-bleed avec index + chips */
.phero { position: relative; margin-top: clamp(1rem, 2.5vw, 2rem); }
.phero-img { display: block; }
.phero-img img { width: 100%; height: min(92vh, 58rem); object-fit: cover; object-position: top; }
.phero-index {
  position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: .55rem;
}
.phero-index a {
  display: flex; align-items: baseline; gap: .6rem;
  color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  opacity: .65; transition: opacity .25s var(--ease);
}
.phero-index a b { font-family: "Archivo Black", sans-serif; font-size: 1.05rem; letter-spacing: 0; }
.phero-index a span { white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.phero-index a:hover span, .phero-index a[aria-current] span { opacity: 1; transform: none; }
.phero-index a[aria-current], .phero-index a:hover { opacity: 1; }
.phero-chips { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); }
.phero-foot {
  position: absolute; left: var(--pad); bottom: clamp(1.2rem, 3vw, 2.5rem);
  color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.4);
}
.phero-no { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.phero-title { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.05; margin: .25rem 0 1rem; }
.phero-foot .pill-signal { text-shadow: none; }

/* chips — cartes nuancier (print, angles droits) */
.pchips { display: flex; flex-direction: column; gap: .75rem; }
.pchip {
  width: clamp(96px, 10vw, 128px); background: #FDFCFA; padding: 8px 8px 9px;
  box-shadow: 0 10px 26px rgba(20, 17, 12, .22);
}
.pchip-color { display: block; aspect-ratio: 1 / 1; }
.pchip figcaption { padding-top: 7px; line-height: 1.45; }
.pchip figcaption b { display: block; font-size: .62rem; letter-spacing: .08em; font-weight: 700; color: #17140f; }
.pchip figcaption span { display: block; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; color: #17140f; }
.pchip figcaption i { display: block; font-style: normal; font-size: .58rem; letter-spacing: .06em; color: #948d82; }
.phero-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12,10,8,.55) 0%, rgba(12,10,8,0) 38%),
              linear-gradient(to right, rgba(12,10,8,.30) 0%, rgba(12,10,8,0) 30%); }
.phero-img { position: relative; }

/* page palette */
.phead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 4rem); padding: clamp(2rem, 4vw, 3.5rem) var(--pad) 0; align-items: start; }
.phead-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.phead-side .pchips { flex-direction: row; flex-wrap: wrap; margin-top: 1.5rem; gap: .9rem; }
.phead-side h1 { margin-top: .4rem; }
.phook { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.7rem); margin-top: 1.6rem; }
.pstory { color: var(--muted); margin-top: .7rem; max-width: 46ch; }

/* quotidien + pins */
.daily-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.daily img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.pin-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .6rem; }
.pin-thumb img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--line); transition: transform .4s var(--ease); }
.pin-thumb:hover img { transform: scale(1.04); }

/* cartes palette */
.edit-card-no { display: block; font-family: "Archivo Black", sans-serif; font-size: .85rem; color: var(--signal); margin-bottom: .2rem; }
.edit-card-swatches { display: inline-flex; gap: 4px; margin-top: .45rem; }
.edit-card-swatches i { width: 14px; height: 14px; display: inline-block; border: 1px solid var(--line); }

@media (max-width: 900px) {
  .phead { grid-template-columns: 1fr; }
  .phero-img img { height: min(78vh, 40rem); }
  .phero { display: flex; flex-direction: column; }
  .phero-img { order: 1; }
  .phero-foot { position: static; order: 2; color: var(--ink); text-shadow: none; padding: 1.1rem var(--pad) 0; }
  .phero-chips { position: static; transform: none; order: 3; padding: 1rem var(--pad) 0; }
  .phero-chips .pchips { flex-direction: row; flex-wrap: wrap; gap: .7rem; }
  .phero-chips .pchip { width: 88px; }
  .phero-index { left: .8rem; }
  .daily-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily:last-child { display: none; }
  .pin-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .util-row { justify-content: flex-start; }
  .pin-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pin-row .pin-thumb:nth-child(n+5) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .phero-index a span { transition: none; } .pin-thumb img { transition: none; } }
