/* Fitmira tag room — palette: plum #3B1E54, lavender #9B7EBD, lilac #D4BEE4, mist #F2EEF7 */
:root {
  --plum: #3B1E54;
  --lavender: #9B7EBD;
  --lilac: #D4BEE4;
  --mist: #F2EEF7;
  --serif: Didot, "Didot LT STD", "Bodoni 72", "Bodoni MT", "Hoefler Text", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--plum);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}
a { color: var(--plum); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-style: italic; font-weight: 400; line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--plum); color: var(--mist); padding: .5rem 1rem; }
.skip:focus { left: 1rem; }

/* The rail: a plum bar with hanger links swinging below it */
.rail {
  position: relative;
  padding: 1rem 1rem 0;
}
.rail__brand {
  display: flex; justify-content: space-between; align-items: baseline;
  max-width: 60rem; margin: 0 auto;
}
.rail__brand span { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }
.rail__brand a { text-decoration: none; font-family: var(--serif); font-style: italic; font-size: 1.7rem; }
.rail__bar {
  max-width: 60rem; margin: .6rem auto 0;
  height: 6px; border-radius: 3px; background: var(--plum);
}
.rail__hangers {
  list-style: none; margin: 0 auto; padding: 0 .25rem;
  max-width: 60rem;
  display: flex; gap: .35rem; overflow-x: auto;
}
.rail__hangers li { flex: 0 0 auto; }
.rail__hangers a {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; transform-origin: top center; transform: rotate(-7deg);
  transition: transform .4s cubic-bezier(.3,1.6,.5,1);
  padding-bottom: .6rem;
}
.rail__hangers a:hover, .rail__hangers a:focus-visible, .rail__hangers a[aria-current="page"] { transform: rotate(0deg); }
.rail__hangers svg { width: 46px; height: 30px; }
.rail__hangers .tag {
  margin-top: .3rem;
  font-size: .78rem; font-weight: 600;
  padding: .7rem .7rem .4rem;
}
.rail__hangers a[aria-current="page"] .tag { background: var(--plum); color: var(--mist); }

/* Clothing tag shape: angled top corners and a punched hole */
.tag {
  position: relative;
  background: var(--lilac);
  color: var(--plum);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px);
  -webkit-mask: radial-gradient(circle 4px at 50% 9px, transparent 98%, #000 100%);
          mask: radial-gradient(circle 4px at 50% 9px, transparent 98%, #000 100%);
}
.tag--big {
  clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%, 0 28px);
  -webkit-mask: radial-gradient(circle 8px at 50% 20px, transparent 98%, #000 100%);
          mask: radial-gradient(circle 8px at 50% 20px, transparent 98%, #000 100%);
  padding: 2.6rem 1.4rem 1.6rem;
}
.tag--plum { background: var(--plum); color: var(--mist); }
.tag--plum a { color: var(--lilac); }
.tag--soft { background: var(--mist); background: color-mix(in srgb, var(--lilac) 40%, var(--mist)); }

main { max-width: 60rem; margin: 0 auto; padding: 1rem 1rem 3rem; }
section { margin-top: 3rem; }
.kicker { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; margin: 0 0 .3rem; }

/* Hero: the swinging tag */
.window {
  display: grid; gap: 1.5rem; align-items: center;
}
.window__art { justify-self: center; width: min(220px, 70vw); }
.window__art svg { width: 100%; height: auto; animation: swing 3.4s ease-in-out infinite; transform-origin: 50% 4%; }
@keyframes swing { 0%,100% { transform: rotate(4deg); } 50% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) {
  .window__art svg { animation: none; }
  .rail__hangers a { transition: none; }
  html { scroll-behavior: auto; }
}

/* Rack of sections */
.rack { display: grid; gap: 1rem; grid-template-columns: 1fr; padding: 0; list-style: none; }
.rack li { padding: 2rem 1.1rem 1.1rem; }
.rack li strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.25rem; display: block; }

/* Try-it-on steps hanging on a thread */
.thread { list-style: none; counter-reset: step; padding: 0 0 0 1.6rem; border-left: 2px dashed var(--lavender); margin: 0; }
.thread li { counter-increment: step; position: relative; margin: 0 0 1.4rem; }
.thread li::before {
  content: counter(step);
  position: absolute; left: -2.45rem; top: 0;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--plum); color: var(--mist);
  font-size: .85rem; font-weight: 600; display: grid; place-items: center;
}

/* Alterations desk */
details { border-bottom: 1px solid var(--lavender); padding: .9rem 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; font-family: var(--serif); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "\2013"; }
details p { margin: .6rem 0 0; }

.receipt { display: grid; gap: .3rem; font-size: .95rem; }
.button-tag {
  display: inline-block; margin-top: .8rem;
  background: var(--mist); color: var(--plum); text-decoration: none; font-weight: 600;
  padding: .75rem 1.4rem;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%, 0 10px);
}

/* Privacy page: a care label */
.care { max-width: 42rem; margin: 0 auto; }
.care dl { margin: 0; }
.care dt { font-family: var(--serif); font-style: italic; font-size: 1.3rem; margin-top: 1.8rem; }
.care dd { margin: .4rem 0 0; }
.care ul { padding-left: 1.2rem; }
.care__symbols { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1rem 0 0; padding: 0; list-style: none; }
.care__symbols li { border: 1.5px solid var(--plum); border-radius: 999px; padding: .2rem .8rem; font-size: .85rem; font-weight: 600; }

footer { text-align: center; font-size: .85rem; padding: 2rem 1rem 3rem; border-top: 1px solid var(--lilac); }

@media (min-width: 46rem) {
  h1 { font-size: 3rem; }
  .window { grid-template-columns: 1.4fr 1fr; }
  .rack { grid-template-columns: repeat(3, 1fr); }
  .rail__hangers { justify-content: center; }
}
