/* InkLast — /tatoueurs, the public artist directory. Builds on landing.css (tokens, header, buttons, badges). */

.dir { background: var(--bone); }


/* intro */
.dir-head { padding: clamp(128px, 16vh, 168px) 0 28px; }
.dir-head h1 { font: 400 clamp(42px, 4.6vw, 70px)/.98 var(--serif); letter-spacing: -0.02em; }
.dir-head p { max-width: 34em; margin-top: 18px; font-size: clamp(16.5px, 1.25vw, 18.5px); color: var(--ink2); }

/* on this page the menu scrolls away with the page (not pinned); the search tools are the one
   bar that stays at hand while browsing */
.dir .bar { position: absolute; }
.dir-tools { position: sticky; top: 0; z-index: 20; padding: 14px 0 12px; background: rgba(243, 240, 234, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: box-shadow .3s; }
.dir-tools.stuck { box-shadow: 0 14px 24px -22px rgba(21, 20, 19, .5); }

.finder-bar { display: flex; gap: 10px; max-width: 780px; }
.finder-q { flex: 1; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 9px 0 20px; border-radius: 999px; background: #fff; border: 1px solid var(--hairline); box-shadow: 0 16px 34px -26px rgba(21, 20, 19, .55); transition: border-color .2s, box-shadow .25s; cursor: text; }
.finder-q:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(21, 20, 19, .07), 0 16px 34px -26px rgba(21, 20, 19, .55); }
.finder-q > svg { flex: none; width: 20px; height: 20px; color: var(--graphite); }
.finder-q input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ink); font: 400 17px/1 var(--sans); outline: none; }
.finder-q input::placeholder { color: #8F8981; }
.finder-q input::-webkit-search-cancel-button { display: none; }
.finder-clear { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(21, 20, 19, .06); color: var(--graphite); font-size: 13px; cursor: pointer; }
.finder-clear[hidden] { display: none; }
.finder-near { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--hairline); background: #fff; color: var(--ink); font: 500 15px/1 var(--sans); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.finder-near svg { width: 18px; height: 18px; }
.finder-near:hover { border-color: var(--ink); }
.finder-near[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.finder-near[aria-busy="true"] { opacity: .6; }
.finder-styles { display: flex; gap: 8px; margin-top: 12px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.finder-styles::-webkit-scrollbar { display: none; }
.finder-styles button { flex: none; height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--hairline); background: transparent; color: var(--ink2); font: 500 14px/1 var(--sans); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.finder-styles button:hover { border-color: var(--ink); color: var(--ink); }
.finder-styles button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bone); }

/* results: one row per artist, their work given the most room */
.dir-list { padding: 8px 0 var(--sec); }
.finder-status { min-height: 1.4em; margin: 22px 0 16px; font-size: 14px; color: var(--graphite); }
.dir-grid { display: grid; gap: 14px; }
.dir-grid > li { opacity: 0; translate: 0 14px; animation: card-in .6s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes card-in { to { opacity: 1; translate: 0 0; } }
.row { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: 22px; padding: 16px; border-radius: 28px; background: #fff; border: 1px solid var(--hairline); transition: box-shadow .4s var(--ease), border-color .3s; }
.row:hover { border-color: #CFC8BD; box-shadow: 0 30px 50px -36px rgba(21, 20, 19, .5); }
.row-id { display: flex; flex-direction: column; gap: 4px; padding: 10px 6px 6px 8px; color: inherit; text-decoration: none; }
.row-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.row-av { flex: none; display: grid; place-items: center; width: 58px; height: 58px; overflow: hidden; border-radius: 50%; background: var(--ink); color: var(--bone); font: 400 20px/1 var(--serif); }
.row-av img { width: 100%; height: 100%; object-fit: cover; }
.row-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--graphite); }
.row-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #B9B2A7; }
.row-tag.open { color: #2F4B37; }
.row-tag.open::before { background: var(--sage); }
.row-name { font: 400 28px/1.04 var(--serif); letter-spacing: -0.01em; }
.row-meta { font-size: 14.5px; color: var(--graphite); }
.row-styles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.row-styles span { padding: 4px 10px; border-radius: 999px; background: var(--bone); font-size: 12.5px; color: var(--ink2); }
.row-go { margin-top: auto; padding-top: 16px; font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(21, 20, 19, .25); text-underline-offset: 4px; }
.row-id:hover .row-go { text-decoration-color: currentColor; }
.row-works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.row-works a { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 18px; background: var(--clay); }
.row-works img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease); }
.row-works a:hover img { scale: 1.05; }
.row-works svg { height: 84%; width: auto; color: var(--ink); }
.row-works .ph { display: none; }

.dir-grid > li.sk { min-height: 250px; border-radius: 28px; background: linear-gradient(100deg, #ECE6DD 30%, #F6F2EC 50%, #ECE6DD 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; opacity: 1; translate: none; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.dir-grid > li.finder-empty { display: grid; justify-items: start; gap: 8px; padding: 40px; border-radius: 28px; border: 1px dashed #CFC8BD; opacity: 1; translate: none; animation: none; }
.finder-empty b { font: 400 28px/1.1 var(--serif); }
.finder-empty p { color: var(--graphite); max-width: 32em; }
.finder-empty button { margin-top: 8px; height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bone); font: 500 14.5px/1 var(--sans); cursor: pointer; }
.finder-more { display: flex; justify-content: center; margin-top: 30px; }
.finder-more-btn { height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 500 15px/1 var(--sans); cursor: pointer; transition: background-color .2s, color .2s; }
.finder-more-btn:hover { background: var(--ink); color: var(--bone); }
.finder-more-btn[hidden] { display: none; }

/* for tattooers */
.dir-pro { background: var(--night); color: var(--moon); padding: clamp(64px, 8vw, 96px) 0; }
.dir-pro-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.dir-pro h2 { color: var(--bone); }
.dir-pro p { margin-top: 12px; max-width: 32em; color: var(--moon2); }

@media (max-width: 1080px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .row-works { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .dir-head { padding: 104px 0 18px; }
  .dir-head h1 { font-size: clamp(36px, 10vw, 48px); }
  .dir-tools { padding: 10px 0; }
  .finder-bar { gap: 8px; }
  .finder-q, .finder-near { height: 50px; }
  .finder-near { padding: 0 16px; }
  .finder-near span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .finder-styles { margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .row { padding: 12px; gap: 12px; border-radius: 24px; }
  .row-id { padding: 6px 4px 2px; }
  .row-name { font-size: 25px; }
  .row-works { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
  .row-works::-webkit-scrollbar { display: none; }
  .row-works a { flex: none; width: 42%; scroll-snap-align: start; border-radius: 14px; }
  .dir-pro-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .dir-grid > li { animation: none; opacity: 1; translate: none; }
}
