/* Nordlight catalogue site (directory/). Nordlight family: paper, pine ink, felt green, brass for the one chosen thing.
   Contract: .impeccable/surfaces/directory-views-home-njk.md. No colour values outside :root. */
:root {
  --paper: oklch(0.966 0.006 150);
  --paper-2: oklch(0.938 0.009 150);
  --card: oklch(0.992 0.003 150);
  --ink: oklch(0.24 0.03 160);
  --ink-2: oklch(0.43 0.025 160);
  --line: oklch(0.885 0.012 150);
  --felt: oklch(0.29 0.055 160);
  --felt-deep: oklch(0.235 0.045 160);
  --letter: oklch(0.965 0.012 105);
  --letter-2: oklch(0.84 0.02 125);
  --brass: oklch(0.80 0.095 82);
  --brass-soft: oklch(0.94 0.04 85);
  --brass-ink: oklch(0.46 0.085 70);
  --pine: oklch(0.45 0.10 155);
  --shadow: 0 12px 32px -12px oklch(0.24 0.03 160 / 0.35), 0 2px 6px -2px oklch(0.24 0.03 160 / 0.18);
  --r: 6px;
  --bar-h: 56px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: 'Archivo', 'Onest', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--letter-2) transparent; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; border-radius: var(--r); }
.i { width: 1.15em; height: 1.15em; flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--letter); padding: 10px 14px; border-radius: var(--r); }
.skip:focus { top: 8px; }

/* buttons: one shape */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 0; border-radius: var(--r); font-weight: 650; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .2s, box-shadow .2s; }
.btn:active { transform: scale(.98); }
.btn--main { background: var(--brass); color: var(--ink); box-shadow: 0 6px 16px -8px oklch(0.46 0.085 70 / .7); }
.btn--main:hover { background: oklch(0.84 0.1 84); }
.btn--quiet { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--quiet:hover { box-shadow: inset 0 0 0 1.5px var(--felt); }
.btn--light { background: var(--letter); color: var(--felt-deep); }

/* the bar */
.bar { position: sticky; top: 0; z-index: 30; height: var(--bar-h); display: flex; align-items: center; gap: 12px; padding: 0 14px; padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.mark { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; min-width: 0; }
.mark img { width: 26px; height: 26px; }
.mark__name { font-weight: 800; letter-spacing: -0.02em; font-size: 1.12rem; }
.mark__sub { color: var(--ink-2); font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__nav { display: none; gap: 4px; }
.bar__nav a { padding: 8px 12px; border-radius: var(--r); text-decoration: none; font-weight: 560; font-size: .9375rem; color: var(--ink-2); }
.bar__nav a:hover, .bar__nav a[aria-current] { color: var(--ink); background: var(--paper-2); }
.lang { position: relative; }
.lang summary { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: var(--r); cursor: pointer; list-style: none; font-weight: 650; font-size: .875rem; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--paper-2); }
.lang ul { position: absolute; right: 0; top: 46px; min-width: 170px; padding: 6px; background: var(--card); border-radius: 10px; box-shadow: var(--shadow); }
.lang a { display: block; padding: 10px 12px; border-radius: var(--r); text-decoration: none; }
.lang a:hover { background: var(--paper-2); }
.lang a[aria-current] { font-weight: 700; color: var(--pine); }
@media (min-width: 760px) { .bar__nav { display: flex; } .bar { padding-inline: 22px; } }
@media (max-width: 420px) { .mark__sub { display: none; } }

/* ---------- home: the map is the page, the list is a sheet over it ---------- */
.atlas .atlas__map { position: fixed; inset: var(--bar-h) 0 0 0; z-index: 0; background: oklch(0.93 0.01 150); }
.atlas__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); font-size: .9375rem; }
.atlas__map.is-ready .atlas__loading { display: none; }
.find { position: fixed; z-index: 20; top: calc(var(--bar-h) + 10px); left: 10px; right: 10px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.find__field { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.find__field .i { color: var(--ink-2); width: 20px; height: 20px; }
.find__field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 1rem; }
.find__field:focus-within { box-shadow: var(--shadow), 0 0 0 2px var(--pine); }
.find__near { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; border: 0; border-radius: var(--r); background: var(--brass); color: var(--ink); font-weight: 680; cursor: pointer; box-shadow: var(--shadow); }
.find__near span { white-space: nowrap; }
@media (max-width: 559px) { .find__near { width: 50px; padding: 0; justify-content: center; } .find__near span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .find__near .i { width: 22px; height: 22px; } }
.find__near[aria-busy="true"] .i { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.find.is-docked { left: 0; right: 0; top: var(--bar-h); padding: 10px 10px 8px; background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 8px 18px -12px oklch(0.24 0.03 160 / .35); }
.find.is-docked .find__field, .find.is-docked .find__near { box-shadow: inset 0 0 0 1px var(--line); }
.find.is-docked .kind { box-shadow: inset 0 0 0 1px var(--line); }
.find.is-docked .kind[aria-current] { box-shadow: none; }
.kinds { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; scroll-snap-type: x proximity; }
.kinds::-webkit-scrollbar { display: none; }
.kind { scroll-snap-align: start; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: var(--r); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; white-space: nowrap; box-shadow: 0 4px 12px -6px oklch(0.24 0.03 160 / .35), inset 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.kind .i { width: 17px; height: 17px; color: var(--pine); }
.kind:hover { box-shadow: 0 4px 12px -6px oklch(0.24 0.03 160 / .35), inset 0 0 0 1.5px var(--felt); }
.kind[aria-current] { background: var(--felt); color: var(--letter); box-shadow: 0 4px 12px -6px oklch(0.24 0.03 160 / .5); }
.kind[aria-current] .i { color: var(--brass); }

.sheet { position: relative; z-index: 10; margin-top: calc(100svh - var(--bar-h) - 214px); min-height: calc(100svh - var(--bar-h)); padding-bottom: max(24px, env(safe-area-inset-bottom)); background: var(--paper); border-radius: 16px 16px 0 0; box-shadow: 0 -12px 30px -14px oklch(0.24 0.03 160 / .45); }
.sheet__grip { width: 44px; height: 5px; border-radius: 3px; background: var(--letter-2); margin: 10px auto 0; }
.sheet__head { padding: 12px 18px 14px; border-bottom: 1px solid var(--line); }
.sheet__title { font-size: 1.375rem; font-weight: 780; letter-spacing: -0.02em; line-height: 1.2; }
.sheet__status { color: var(--ink-2); font-size: .875rem; margin-top: 2px; }
.list { counter-reset: none; }
.row { border-bottom: 1px solid var(--line); transition: background .25s var(--ease); }
.row__link { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 14px 18px; text-decoration: none; }
.row:hover, .row.is-active { background: var(--brass-soft); }
.row__img { width: 76px; height: 76px; border-radius: var(--r); object-fit: cover; background: var(--paper-2); }
.row__img--none { display: grid; place-items: center; color: var(--pine); }
.row__img--none .i { width: 30px; height: 30px; }
.row__body { display: grid; gap: 2px; min-width: 0; align-content: start; }
.row__name { font-weight: 720; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.3; }
.row__place { font-weight: 500; color: var(--ink-2); }
.row__kinds { color: var(--pine); font-size: .875rem; font-weight: 600; }
.row__addr { color: var(--ink-2); font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__facts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: .8125rem; color: var(--ink); }
.fact { display: inline-flex; align-items: center; gap: 4px; }
.fact .i { width: 14px; height: 14px; color: var(--pine); }
.fact--off { color: var(--ink-2); }
.fact--dist { font-weight: 700; color: var(--brass-ink); }
.fact--dist:empty { display: none; }
.demo-tag { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 1px 7px; border-radius: var(--r); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: .75rem; font-weight: 650; letter-spacing: 0; }
.demo-note { padding: 10px 12px; border-radius: var(--r); background: var(--brass-soft); color: var(--ink); font-size: .9375rem; margin-bottom: 6px; }
.empty { padding: 28px 18px; display: grid; gap: 8px; color: var(--ink-2); }
.empty__title { color: var(--ink); font-weight: 700; font-size: 1.125rem; }
.towns { padding: 22px 18px 6px; }
.towns__title { font-size: 1rem; font-weight: 750; margin-bottom: 10px; }
.towns ul { display: flex; flex-wrap: wrap; gap: 6px; }
.towns a { display: inline-flex; gap: 6px; align-items: baseline; padding: 7px 11px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-weight: 560; font-size: .9375rem; }
.towns a span { color: var(--ink-2); font-size: .8125rem; }
.getapp { margin: 22px 18px 0; }
.getapp a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-weight: 650; }
.getapp a span { margin-right: auto; }
.getapp .i { color: var(--pine); }
.owner { margin: 22px 18px 0; padding: 18px; border-radius: 10px; background: var(--felt); color: var(--letter); display: grid; gap: 12px; }
.owner p { font-weight: 700; font-size: 1.0625rem; }
.owner .btn { justify-self: start; }
.sheet__credit { padding: 18px 18px 0; font-size: .75rem; color: var(--ink-2); }
/* the map's own controls in the family */
.maplibregl-ctrl-group { border-radius: var(--r) !important; box-shadow: var(--shadow) !important; }
.maplibregl-ctrl-attrib { font: 11px/1.4 var(--font) !important; }
.atlas .maplibregl-ctrl-top-right { top: 120px; }

@media (min-width: 1000px) {
  body.is-map { overflow: hidden; }
  .atlas { display: grid; grid-template-columns: 440px 1fr; grid-template-rows: auto 1fr; height: calc(100svh - var(--bar-h)); }
  .atlas .atlas__map { position: relative; inset: auto; grid-column: 2; grid-row: 1 / 3; }
  .find { position: static; grid-column: 1; grid-row: 1; padding: 16px 18px 12px; background: var(--paper); box-shadow: 0 1px 0 var(--line); z-index: 2; }
  .find__field, .find__near { box-shadow: inset 0 0 0 1px var(--line); }
  .find__field:focus-within { box-shadow: inset 0 0 0 2px var(--pine); }
  .find__near { box-shadow: none; }
  .kind { box-shadow: inset 0 0 0 1px var(--line); }
  .kinds { mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 30px; }
  .sheet { grid-column: 1; grid-row: 2; margin: 0; min-height: 0; overflow-y: auto; border-radius: 0; box-shadow: 1px 0 0 var(--line); }
  .sheet__grip { display: none; }
  .atlas .maplibregl-ctrl-top-right { top: 0; }
}

/* ---------- a salon's page ---------- */
.salon { max-width: 1180px; margin: 0 auto; padding: 0 0 48px; }
.salon__back { padding: 14px 18px 0; }
.salon__back a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink-2); font-weight: 560; font-size: .9375rem; }
.salon__back a:hover { color: var(--ink); }
.salon__head { display: grid; gap: 18px; padding: 14px 0 0; }
.salon__cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.salon__id { padding: 0 18px; display: grid; gap: 6px; }
.salon__kinds { color: var(--pine); font-weight: 650; font-size: .9375rem; }
.salon__name { font-size: clamp(2.1rem, 8vw, 3.8rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.salon__place { color: var(--ink-2); font-weight: 600; }
.salon__addr, .salon__rating { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.salon__addr .i { color: var(--pine); }
.salon__rating .i { color: var(--brass-ink); }
.salon__rating b { color: var(--ink); }
.salon__grid { display: grid; gap: 28px; padding: 24px 18px 0; }
.salon__side { display: grid; gap: 18px; align-content: start; }
.act { display: grid; gap: 8px; }
.act { margin-top: 12px; max-width: 520px; }
.act__row { display: flex; flex-wrap: wrap; gap: 8px; }
.act__row .btn { flex: 1 1 auto; white-space: nowrap; padding: 0 14px; font-size: .9375rem; }
.act .btn--main { min-height: 54px; font-size: 1.0625rem; }
.block + .block { margin-top: 34px; }
.block h2, .hours h2 { font-size: 1.3rem; font-weight: 780; letter-spacing: -0.02em; margin-bottom: 12px; }
.prose { display: grid; gap: 12px; max-width: 64ch; }
.menu + .menu { margin-top: 18px; }
.menu__group { font-size: 1rem; font-weight: 720; color: var(--pine); margin-bottom: 4px; }
.menu__row { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.menu__name { font-weight: 560; }
.menu__dur { color: var(--ink-2); font-size: .875rem; }
.menu__price { font-weight: 720; text-align: right; min-width: 4.5ch; }
.team { display: grid; gap: 12px; }
.team__one { display: flex; gap: 12px; align-items: center; }
.team__one img, .team__none { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none; }
.team__none { display: grid; place-items: center; background: var(--felt); color: var(--letter); font-weight: 760; font-size: 1.3rem; }
.team__one span { display: grid; }
.team__one span span { color: var(--ink-2); font-size: .9375rem; }
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.work img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.hours { padding: 18px; background: var(--card); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.hours li:last-child { border-bottom: 0; }
.hours li span:last-child { font-variant-numeric: tabular-nums; }
.hours li.is-today { font-weight: 720; }
.hours li.is-today span:first-child::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--brass); vertical-align: middle; }
.minimap { height: 240px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: oklch(0.93 0.01 150); }
.salon__note { font-size: .8125rem; color: var(--ink-2); }
@media (min-width: 900px) {
  .salon { padding-top: 8px; }
  .salon__head { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 34px; padding: 18px 22px 0; }
  .salon__cover img { border-radius: 10px; aspect-ratio: 3 / 2; }
  .salon__id { padding: 0 0 8px; }
  .salon__head:not(:has(.salon__cover)) { grid-template-columns: 1fr; }
  .salon__grid { grid-template-columns: 1fr 360px; gap: 48px; padding: 36px 22px 0; }
  .salon__side { position: sticky; top: calc(var(--bar-h) + 18px); }
  .work { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- plain pages: check, join ---------- */
.page { max-width: 880px; margin: 0 auto; padding: 34px 18px 56px; }
.page__title { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; max-width: 18ch; }
.page__lead { margin-top: 14px; font-size: 1.125rem; color: var(--ink-2); max-width: 60ch; }
.page__aside { margin-top: 26px; }
.ask { margin-top: 26px; display: grid; gap: 12px; }
.ask__field { display: grid; gap: 6px; font-weight: 600; font-size: .9375rem; }
.ask__field input { height: 52px; padding: 0 14px; border: 0; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 1rem; }
.ask__field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--pine); }
.ask .btn { justify-self: start; }
@media (min-width: 700px) { .ask { grid-template-columns: 1.4fr 1fr auto; align-items: end; } }
.found { margin-top: 30px; }
.found__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.found__name { display: grid; margin-right: auto; }
.found__name span { color: var(--ink-2); font-size: .9375rem; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r); background: var(--paper-2); font-weight: 650; font-size: .875rem; text-decoration: none; }
.tag--on { background: var(--felt); color: var(--letter); }
.tag--on .i { color: var(--brass); }
.found__none { font-weight: 650; font-size: 1.125rem; margin-bottom: 14px; }
.found__cta { margin-top: 20px; }
.found__credit { margin-top: 18px; font-size: .8125rem; color: var(--ink-2); }
.offer { margin-top: 34px; display: grid; gap: 14px; }
.offer section { padding: 24px; border-radius: 12px; display: grid; gap: 16px; align-content: start; }
.offer__free { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.offer__full { background: var(--felt); color: var(--letter); }
.offer h2 { font-size: 1.5rem; font-weight: 780; letter-spacing: -0.02em; }
.ticks { display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.ticks .i { margin-top: 3px; color: var(--pine); }
.offer__full .ticks .i { color: var(--brass); }
.offer__soon { color: var(--ink-2); font-size: .9375rem; }
.offer .btn { justify-self: start; }
@media (min-width: 760px) { .offer { grid-template-columns: 1fr 1fr; } }

/* the app's page */
.btn--big { min-height: 56px; padding: 0 22px; font-size: 1.0625rem; }
.appdl { display: grid; gap: 34px; }
.appdl__cta { margin-top: 26px; }
.appdl__meta { margin-top: 10px; color: var(--ink-2); font-size: .9375rem; }
.appdl__steps { margin-top: 22px; padding-left: 1.3em; list-style: decimal; display: grid; gap: 8px; max-width: 56ch; }
.appdl__note { margin-top: 16px; color: var(--ink-2); max-width: 60ch; }
.appdl__side { display: grid; gap: 18px; align-content: start; }
.appdl__qr { display: none; margin: 0; padding: 16px; background: var(--card); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); justify-items: center; gap: 10px; }
.appdl__qr svg { width: 200px; height: 200px; }
.appdl__qr figcaption { font-size: .9375rem; color: var(--ink-2); text-align: center; }
.appdl__notes { padding: 18px; background: var(--card); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.appdl__notes h2 { font-size: 1.0625rem; font-weight: 750; margin-bottom: 8px; }
.appdl__notes p { white-space: pre-line; }
.appdl__sum { display: grid; gap: 4px; font-size: .8125rem; color: var(--ink-2); }
.appdl__sum code { font-size: .75rem; word-break: break-all; color: var(--ink); }
@media (min-width: 860px) { .appdl { grid-template-columns: 1fr 300px; align-items: start; } .appdl__qr { display: grid; } }
.foot { padding: 26px 18px 34px; border-top: 1px solid var(--line); display: grid; gap: 10px; color: var(--ink-2); font-size: .9375rem; }
.foot__line { color: var(--ink); font-weight: 650; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot__credit { font-size: .8125rem; }

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