/* Kati Zero - the hang tag. A street-clothes shop whose info card is a swinging garment tag. */

:root {
  --ink: #0F0F0D;
  --ink-2: #1C1C19;
  --concrete: #D9D6CF;
  --paper: #F3F1EB;
  --acid: #CCFF33;
  --signal: #FF4A1C;
  --steel: #9C9A93;
  --dim: #ABA9A1;      /* quiet text on ink: 8.4:1 */
  --dim-light: #55534D; /* quiet text on concrete/paper: 6.1:1 */

  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --sans: 'Schibsted Grotesk', system-ui, sans-serif;
  --mono: 'Fragment Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --skew: 0deg;
  --stretch: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main, .foot { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.hero :focus-visible, .foot :focus-visible { outline-color: var(--acid); }

.kinetic {
  transform: skewX(var(--skew)) scaleY(var(--stretch));
  transform-origin: 50% 100%;
  will-change: transform;
}

/* ---------- nav ---------- */
.nav {
  position: absolute; z-index: 30; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter); color: var(--paper);
}
.nav-mark {
  font-family: var(--display); font-size: 24px; letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; line-height: 1; color: var(--acid);
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 12px; font: 400 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; border: 1px solid transparent;
}
.nav-links a:hover { border-color: var(--acid); color: var(--acid); }
.lang { display: flex; border: 1px solid var(--steel); }
.lang button {
  font: 400 13px/1 var(--mono); color: var(--paper); background: none; border: 0;
  padding: 9px 12px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--acid); color: var(--ink); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px;
  font: 700 16px/1 var(--sans); text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  border: 2px solid currentColor; transition: background .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(2px); }
.btn-acid { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.btn-acid:hover { background: var(--ink); color: var(--acid); border-color: var(--ink); }
.hero .btn-acid:hover { background: transparent; border-color: var(--acid); color: var(--acid); }
.btn-line { background: transparent; color: inherit; }
.btn-line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- hero ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--paper);
  padding: 150px var(--gutter) 72px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "name stage" "side stage";
  column-gap: clamp(24px, 4vw, 72px); align-items: end;
  min-height: max(100svh, 780px);
  overflow: hidden;
}
.hero::after {
  /* concrete grain */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.2px);
  background-size: 5px 5px;
}
.rail {
  position: absolute; z-index: 3; left: 0; right: 0; top: 96px; height: 10px;
  background: linear-gradient(#E5E3DD, #8A8882 60%, #5D5C57);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .6);
}
.rail i {
  /* the hook the string is tied to - positioned by the script */
  position: absolute; top: 4px; left: var(--hook-x, 70%); width: 18px; height: 22px; translate: -50% 0;
  border: 3px solid #B8B6AF; border-top: 0; border-radius: 0 0 12px 12px;
}

.hero-name {
  grid-area: name; position: relative; z-index: 2; margin: 0 0 24px;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(110px, 17vw, 270px); line-height: .88; letter-spacing: -.005em;
  color: var(--paper);
}
.hero-name span { display: block; width: max-content; }
.hero-name span:last-child { color: var(--acid); }

.hero-side { grid-area: side; position: relative; z-index: 2; }
.hero-kicker {
  margin: 0 0 14px; font: 400 14px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em;
  color: var(--acid);
}
.hero-tagline { margin: 0 0 28px; max-width: 38ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; color: var(--paper); }

.hero-photo {
  grid-area: stage; position: relative; z-index: 1; margin: 0; align-self: stretch;
  justify-self: end; width: min(100%, 440px); margin-top: 40px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: grayscale(.15) contrast(1.05); }
.hero-photo figcaption {
  position: absolute; right: 0; bottom: -26px; font: 400 12px/1.3 var(--mono); color: var(--dim);
}

/* the hang tag */
.hang { grid-area: stage; position: relative; z-index: 4; align-self: start; justify-self: start; padding-top: 30px; }
.string { display: none; }
.tag {
  position: relative; width: 272px; padding: 50px 22px 18px; rotate: -5deg;
  background: var(--acid); color: var(--ink);
  clip-path: polygon(22% 0, 78% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.js .hang {
  grid-area: auto; position: absolute; inset: 0; padding: 0; pointer-events: none;
  justify-self: stretch; align-self: stretch;
}
.js .string { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.js .string path { fill: none; stroke: #E9E6DD; stroke-width: 2; stroke-linecap: round; }
.js .tag {
  position: absolute; left: 0; top: 0; rotate: none; pointer-events: auto; cursor: grab;
  transform-origin: 50% 22px; will-change: transform;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .55));
}
.js .tag.is-grabbed { cursor: grabbing; }
.tag-hole {
  position: absolute; top: 14px; left: 50%; width: 16px; height: 16px; translate: -50% 0;
  border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px #E9E6DD, inset 0 1px 2px rgba(0, 0, 0, .6);
}
.tag-brand {
  margin: 0; font-family: var(--display); font-size: 46px; line-height: .95; text-transform: uppercase;
  text-align: center; letter-spacing: .01em;
}
.tag-sub { margin: 4px 0 12px; text-align: center; font: 400 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.tag-row { border-top: 2px solid var(--ink); padding: 8px 0; }
.tag-label { margin: 0 0 6px; font: 400 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.sizes { display: flex; gap: 6px; margin: 0; }
.size {
  flex: 1; padding: 7px 4px 6px; text-align: center; border: 2px solid var(--ink);
  font: 700 14px/1 var(--sans); text-transform: uppercase; letter-spacing: .04em;
}
.size.is-on { background: var(--ink); color: var(--acid); }
.size:not(.is-on) { text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: .55; }
.tag-split { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.tag-split > div + div { border-left: 2px solid var(--ink); padding-left: 10px; }
.tag-today { margin: 0; font: 400 26px/1 var(--display); letter-spacing: .01em; }
.tag-note { margin: 0 0 10px; font: 400 11.5px/1.3 var(--mono); }
.barcode { display: block; text-decoration: none; background: var(--paper); padding: 8px 8px 6px; }
.barcode svg { display: block; width: 100%; height: 46px; }
.barcode svg rect { fill: var(--ink); }
.barcode-num { display: block; margin-top: 4px; text-align: center; font: 400 12.5px/1 var(--mono); letter-spacing: .08em; }
.barcode:hover { outline: 2px solid var(--ink); }
.tag-tear {
  margin: 12px -20px 0; padding: 10px 20px 0; border-top: 2px dashed var(--ink);
  font: 400 10.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; text-align: center;
}

.drag-hint {
  display: none; position: absolute; z-index: 3; margin: 0; opacity: 0;
  font: 400 13px/1 var(--mono); color: var(--acid); text-transform: uppercase; letter-spacing: .08em;
  pointer-events: none; transition: opacity .4s;
}
.js .drag-hint { display: block; }
.drag-hint::after { content: ' ↗'; }
.drag-hint.is-ready { opacity: 1; }
.drag-hint.is-gone { opacity: 0; transition: none; }

/* ---------- ticker ---------- */
.ticker { background: var(--acid); color: var(--ink); overflow: hidden; border-block: 2px solid var(--ink); padding: 14px 0; }
.ticker-track { display: flex; width: max-content; gap: 26px; align-items: center; will-change: transform; }
.ticker span { font-family: var(--display); font-size: clamp(28px, 3.2vw, 44px); text-transform: uppercase; white-space: nowrap; line-height: 1; }
.ticker i { font: 400 28px/1 var(--mono); }

/* ---------- shared section bits ---------- */
.label {
  margin: 0 0 28px; font: 400 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em;
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: ''; width: 10px; height: 10px; background: var(--signal); }
section { padding: clamp(72px, 9vw, 128px) var(--gutter); }
section:not(.hero) > * { max-width: var(--max); margin-inline: auto; }
section:not(.hero) > .label { display: flex; }

/* ---------- about ---------- */
.about { background: var(--paper); }
.about-big {
  margin: 0 auto 40px; font-family: var(--display); font-size: clamp(48px, 7.4vw, 118px);
  line-height: .95; text-transform: uppercase; letter-spacing: .002em; transform-origin: 0 100%;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.chips li {
  padding: 10px 16px; border: 2px solid var(--ink);
  font: 400 14px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em;
}
.chips li:nth-child(3n+1) { background: var(--ink); color: var(--paper); }

/* ---------- the rail of pieces ---------- */
.shelf { background: var(--concrete); padding-right: 0; }
.shelf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; padding-right: var(--gutter); }
.shelf-head .label { margin-bottom: 18px; }
.shelf-note { margin: 0 0 18px; font: 400 13px/1.4 var(--mono); color: var(--dim-light); max-width: 46ch; }
.hangers {
  position: relative; list-style: none; padding: 46px var(--gutter) 24px 0; margin: 0 0 0 auto; max-width: none;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23vw, 300px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.hangers::before {
  /* the rail they hang from */
  content: ''; position: absolute; left: 0; top: 16px; height: 8px; min-width: 100%;
  width: calc(5 * (clamp(220px, 23vw, 300px) + 22px) + var(--gutter));
  background: linear-gradient(#F4F3EF, #8A8882 60%, #5D5C57);
}
.piece { position: relative; scroll-snap-align: start; }
.piece::before {
  /* hanger hook */
  content: ''; position: absolute; top: -34px; left: 50%; width: 22px; height: 34px; translate: -50% 0;
  border: 3px solid var(--ink); border-bottom: 0; border-radius: 12px 12px 0 0;
  clip-path: inset(0 0 0 50%);
}
.piece figure {
  position: relative; margin: 0; aspect-ratio: 3 / 4; background: var(--ink); overflow: hidden;
  transform-origin: 50% -30px; transition: rotate .5s cubic-bezier(.3, 1.6, .5, 1);
  transform: rotate(var(--sway, 0deg));
}
.piece:hover figure { rotate: 2deg; }
.piece img { width: 100%; height: 100%; object-fit: cover; }
.piece figcaption {
  position: absolute; left: 0; right: 0; top: 0; padding: 8px 10px 18px;
  background: linear-gradient(rgba(0, 0, 0, .7), transparent); color: #F3F1EB;
  font: 400 11px/1.3 var(--mono);
}
.piece-tag {
  position: relative; margin: -22px 12px 0 auto; width: max-content; max-width: 88%; padding: 10px 14px 10px 26px;
  background: var(--acid); display: grid; gap: 2px; rotate: -3deg;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
}
.piece-tag::before {
  content: ''; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; translate: 0 -50%;
  border-radius: 50%; background: var(--concrete);
}
.piece:nth-child(even) .piece-tag { rotate: 2.5deg; }
.piece-tag b { font: 400 21px/1 var(--display); text-transform: uppercase; }
.piece-tag span { font: 700 15px/1.2 var(--sans); }
.piece-tag small { font: 400 11.5px/1.2 var(--mono); letter-spacing: .1em; }

/* ---------- hours as a size run ---------- */
.hours { background: var(--ink); color: var(--paper); }
.hours .label::before { background: var(--acid); }
.run { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.run button {
  position: relative; width: clamp(58px, 7vw, 84px); aspect-ratio: 1; padding: 0;
  font: 400 clamp(28px, 3vw, 38px)/1 var(--display); color: var(--paper);
  background: transparent; border: 2px solid var(--steel); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.run button:hover { border-color: var(--acid); }
.run button[aria-pressed="true"] { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.run button.is-today::after {
  content: attr(data-today); position: absolute; left: 50%; top: calc(100% + 6px); translate: -50% 0;
  font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--acid); white-space: nowrap;
}
.hours-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 40px 64px; align-items: end; }
.readout { min-width: 0; }
.readout-day { margin: 0 0 4px; font: 400 15px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.readout-hours {
  margin: 0; font-family: var(--display); font-size: clamp(64px, 10.5vw, 170px); line-height: .9;
  letter-spacing: -.005em; transform-origin: 0 100%; white-space: nowrap;
}
.readout-now { margin: 14px 0 0; font: 400 15px/1.3 var(--mono); color: var(--acid); text-transform: uppercase; letter-spacing: .06em; }
.readout-now.is-closed { color: #FF8A66; }
.week { border-collapse: collapse; width: 100%; max-width: 560px; margin: 0; font-family: var(--mono); font-size: 14px; }
.week caption { text-align: left; padding-bottom: 10px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.week th, .week td { padding: 9px 0; border-top: 1px solid #36352F; font-weight: 400; text-align: left; }
.week td { text-align: right; font-variant-numeric: tabular-nums; }
.week tr.is-today th, .week tr.is-today td { color: var(--acid); }

/* ---------- rating ---------- */
.rating { background: var(--paper); }
.rating-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.rating-big { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.rating-big b { font: 400 clamp(150px, 20vw, 300px)/.8 var(--display); letter-spacing: -.01em; transform-origin: 0 100%; }
.rating-big span { font: 400 20px/1 var(--mono); color: var(--dim-light); }
.rating-count { margin: 0 0 20px; font-size: 20px; font-weight: 700; max-width: 30ch; }
.bars { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; max-width: 520px; }
.bars li { display: grid; grid-template-columns: 34px 1fr 44px; gap: 12px; align-items: center; font: 400 14px/1 var(--mono); }
.bars i { height: 14px; background: var(--concrete); position: relative; overflow: hidden; }
.bars i::after {
  content: ''; position: absolute; inset: 0; background: var(--ink);
  transform-origin: 0 50%; transform: scaleX(var(--n)); transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}
.bars li:first-child i::after { background: var(--signal); }
.js .rating:not(.is-seen) .bars i::after { transform: scaleX(0); }
.bars b { font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- visit ---------- */
.visit {
  background: var(--concrete); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px); align-items: stretch;
}
section.visit > * { max-width: none; margin: 0; }
.addr { font-style: normal; font-family: var(--display); font-size: clamp(40px, 4.6vw, 68px); line-height: 1; text-transform: uppercase; margin-bottom: 12px; }
.addr span { color: var(--dim-light); }
.visit-note { margin: 0 0 28px; font: 400 14px/1.4 var(--mono); }
.map { position: relative; min-height: 380px; border: 2px solid var(--ink); background: #C9C6BE; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--paper); padding: 56px var(--gutter) 40px; }
.foot-mark {
  width: max-content;
  margin: 0 0 28px; font-family: var(--display); text-transform: uppercase; line-height: .8;
  color: var(--acid); white-space: nowrap; font-size: 22vw; letter-spacing: -.005em; transform-origin: 0 100%;
}
.foot-notes { display: grid; gap: 6px; font: 400 13px/1.45 var(--mono); color: var(--dim); max-width: 80ch; }
.foot-notes p { margin: 0; }

/* ---------- dock ---------- */
.dock { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kinetic { transform: none !important; }
  .piece figure, .bars i::after { transition: none; }
}

@media (max-width: 960px) {
  .nav { padding-top: 14px; flex-wrap: wrap; row-gap: 6px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: none; padding: 7px 10px 7px 0; margin-right: 8px; }
  .hero {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "name" "side";
    padding-top: 124px; padding-bottom: 96px; min-height: 0;
  }
  .rail { top: 112px; }
  .hero-photo { width: 64%; height: 440px; margin-top: 8px; margin-bottom: 44px; }
  .hero-photo figcaption { bottom: 0; right: 0; padding: 5px 8px; background: rgba(15, 15, 13, .78); color: #C9C7BF; font-size: 9.5px; white-space: nowrap; letter-spacing: -.02em; }
  .tag-split { gap: 8px; }
  .tag-split > div + div { padding-left: 8px; }
  .tag-note { font-size: 10.5px; }
  .tag-tear { margin-top: 10px; padding-top: 8px; font-size: 10px; }
  .hero-name { margin-top: 0; }
  .tag { width: 200px; padding: 40px 14px 12px; }
  .tag-tear { margin-inline: -14px; padding-inline: 10px; }
  .run { flex-wrap: nowrap; gap: 6px; }
  .run button { flex: 1; width: auto; min-width: 0; font-size: 26px; }
  /* on a phone the giant h1 sits right under the tag, so the tag drops the name and the nav drops its mark */
  .nav-mark { visibility: hidden; }
  .tag-brand { display: none; }
  .tag-sub { margin: 0 0 12px; font: 400 17px/1.05 var(--display); letter-spacing: .02em; white-space: nowrap; }
  .tag-today { font-size: 20px; white-space: nowrap; }
  .rating-grid { grid-template-columns: minmax(0, 1fr); }
  .hours-body { grid-template-columns: minmax(0, 1fr); }
  .visit { grid-template-columns: minmax(0, 1fr); }
  .map { min-height: 320px; }
  .hangers { grid-auto-columns: 64vw; }
  .hangers::before { width: calc(5 * (64vw + 22px) + var(--gutter)); }
  .dock {
    display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px;
    background: var(--ink); border: 2px solid var(--acid);
    translate: 0 calc(100% + 24px); transition: translate .3s cubic-bezier(.2, .8, .2, 1);
  }
  .dock.is-shown { translate: 0 0; }
  .dock a {
    flex: 1; text-align: center; padding: 15px 4px; color: var(--paper); text-decoration: none;
    font: 700 14px/1 var(--sans); text-transform: uppercase; letter-spacing: .05em;
  }
  .dock a + a { border-left: 1px solid #3A3934; }
  .dock a:first-child { background: var(--acid); color: var(--ink); }
  .foot { padding-bottom: 96px; }
}
