/*
 * Signed-out pages: home, the /for/… landing pages and the auth screens.
 *
 * Cinematic and dark. The photographs carry the colour; the type is Inter,
 * very large and tight; the words are few. Everything is scoped under .mk
 * so none of it leaks into the app. Motion is one idea used three ways:
 * things arrive as you reach them (data-mk-reveal), a statement lights up
 * word by word (data-mk-words), the hero photograph settles slowly. All of
 * it stops under prefers-reduced-motion.
 */

.mk {
  --mk-bg: #0b0a09;
  --mk-bg-2: #141210;
  --mk-ink: #f4efe6;
  --mk-ink-2: rgb(244 239 230 / 0.68);
  --mk-ink-3: rgb(244 239 230 / 0.42);
  --mk-line: rgb(244 239 230 / 0.12);
  --mk-accent: #e3b36a;
  --mk-radius: 1.25rem;
  --mk-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --mk-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  background: var(--mk-bg);
  color: var(--mk-ink);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100%;
}

.mk ::selection {
  background: var(--mk-accent);
  color: var(--mk-bg);
}

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

.mk-wrap {
  width: min(100% - 2 * var(--mk-gutter), 80rem);
  margin-inline: auto;
}

/* ── Type ───────────────────────────────────────────────────────────────── */

.mk-display {
  font-size: clamp(2.875rem, 9.5vw, 8rem);
  font-weight: 640;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.mk-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.mk-lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.45;
  color: var(--mk-ink-2);
  max-width: 40ch;
  text-wrap: pretty;
}

.mk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mk-ink-3);
}

.mk-eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.mk-eyebrow--accent {
  color: var(--mk-accent);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.2s var(--mk-ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}

.mk-btn:active {
  transform: scale(0.97);
}

.mk-btn--light {
  background: var(--mk-ink);
  color: var(--mk-bg);
}

.mk-btn--light:hover {
  background: #ffffff;
}

.mk-btn--ghost {
  border: 1px solid var(--mk-line);
  color: var(--mk-ink);
  background: rgb(11 10 9 / 0.25);
  backdrop-filter: blur(8px);
}

.mk-btn--ghost:hover {
  border-color: rgb(244 239 230 / 0.35);
}

.mk-btn--sm {
  min-height: 2.5rem;
  padding: 0 1.125rem;
  font-size: 0.875rem;
}

.mk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Nav ────────────────────────────────────────────────────────────────── */

.mk-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.mk-nav--solid {
  background: rgb(11 10 9 / 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--mk-line);
}

.mk-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.25rem;
}

.mk-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--mk-ink);
  min-width: 0;
}

.mk-nav__logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.mk-nav__wordmark {
  font-size: 1rem;
  font-weight: 700;
}

.mk-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.mk-nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--mk-ink-2);
  padding: 0.5rem 0.25rem;
}

.mk-nav__link:hover {
  color: var(--mk-ink);
}

@media (max-width: 480px) {
  .mk-nav__wordmark {
    display: none;
  }
}

/* ── Arrival: things appear as you reach them ───────────────────────────── */

[data-mk-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.9s var(--mk-ease), transform 0.9s var(--mk-ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}

[data-mk-reveal].is-in {
  opacity: 1;
  transform: none;
}

.mk-word {
  display: inline-block;
  opacity: 0.16;
  transition: opacity 0.6s ease;
  transition-delay: calc(var(--i, 0) * 55ms);
}

.is-in .mk-word {
  opacity: 1;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.mk-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.mk-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--mk-bg-2);
}

.mk-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.08);
  animation: mk-settle 16s var(--mk-ease) forwards;
}

@keyframes mk-settle {
  to {
    transform: scale(1);
  }
}

.mk-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgb(11 10 9 / 0.55), transparent 22%),
    linear-gradient(to top, var(--mk-bg) 0%, rgb(11 10 9 / 0.78) 22%, rgb(11 10 9 / 0.25) 52%, transparent 78%);
}

.mk-hero__content {
  padding-block: 7rem clamp(3.5rem, 9vh, 7rem);
  display: grid;
  gap: 1.5rem;
}

.mk-hero__content .mk-display {
  max-width: 11ch;
}

.mk-hero__content .mk-lede {
  margin-top: 0.25rem;
}

.mk-hero__content .mk-actions {
  margin-top: 0.75rem;
}

/* ── Photo credit ───────────────────────────────────────────────────────── */

.mk-credit {
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--mk-ink-3);
}

.mk-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgb(244 239 230 / 0.25);
}

.mk-credit a:hover {
  color: var(--mk-ink-2);
}

.mk-hero__credit,
.mk-band__credit {
  position: absolute;
  right: var(--mk-gutter);
  bottom: 1rem;
}

/* ── Statement ──────────────────────────────────────────────────────────── */

.mk-statement {
  padding-block: clamp(5rem, 14vh, 10rem);
}

.mk-statement__text {
  font-size: clamp(1.75rem, 4.6vw, 3.875rem);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 21ch;
  text-wrap: balance;
}

/* ── Chapters: four photographs, four short promises ────────────────────── */

.mk-chapters {
  display: grid;
  gap: 1rem;
}

@media (max-width: 1023px) {
  .mk-chapters {
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 26rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--mk-gutter);
    padding-inline: var(--mk-gutter);
    margin-inline: calc(-1 * var(--mk-gutter));
    scrollbar-width: none;
  }

  .mk-chapters::-webkit-scrollbar {
    display: none;
  }

  .mk-chapters > * {
    scroll-snap-align: start;
  }
}

@media (min-width: 1024px) {
  .mk-chapters {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding-bottom: 4rem;
  }

  .mk-chapters > :nth-child(even) {
    transform: translateY(4rem);
  }

  .mk-chapters > :nth-child(even)[data-mk-reveal]:not(.is-in) {
    transform: translateY(5.25rem);
  }
}

.mk-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--mk-radius);
  overflow: hidden;
  background: var(--mk-bg-2);
  isolation: isolate;
}

.mk-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--mk-ease);
}

.mk-card:hover img {
  transform: scale(1.04);
}

.mk-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(11 10 9 / 0.92) 0%, rgb(11 10 9 / 0.45) 38%, transparent 68%);
}

.mk-card__text {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.mk-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.mk-card__body {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--mk-ink-2);
  text-wrap: pretty;
}

/* ── Product: the app itself, on phones ─────────────────────────────────── */

.mk-product {
  position: relative;
  padding-block: clamp(5rem, 12vh, 9rem) 0;
  overflow: hidden;
}

.mk-product::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 70%;
  background: radial-gradient(60% 60% at 50% 100%, rgb(227 179 106 / 0.14), transparent 70%);
  pointer-events: none;
}

.mk-product__head {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
  margin-bottom: clamp(3rem, 7vh, 5rem);
}

.mk-product__head .mk-lede {
  text-align: center;
}

.mk-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0.75rem, 2vw, 2rem);
}

.mk-phone {
  flex: 0 0 auto;
  width: min(68vw, 17rem);
  padding: 0.5rem;
  border-radius: 2.75rem;
  background: #050505;
  border: 1px solid rgb(244 239 230 / 0.16);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(0 0 0 / 0.6);
  margin-bottom: -6%;
}

.mk-phone img {
  display: block;
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
  border-radius: 2.25rem;
  background: #ffffff;
}

@media (max-width: 767px) {
  .mk-phones {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--mk-gutter);
    padding-inline: var(--mk-gutter);
    margin-inline: calc(-1 * var(--mk-gutter));
    scrollbar-width: none;
  }

  .mk-phones::-webkit-scrollbar {
    display: none;
  }

  .mk-phone {
    scroll-snap-align: center;
  }
}

@media (min-width: 768px) {
  .mk-phone:nth-child(2) {
    margin-bottom: 0;
    width: min(26vw, 18.5rem);
  }
}

/* ── Band: one photograph, one sentence ─────────────────────────────────── */

.mk-band {
  position: relative;
  isolation: isolate;
  min-height: 72svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 6rem;
  overflow: hidden;
}

.mk-band__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--mk-bg-2);
}

.mk-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mk-band__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--mk-bg), rgb(11 10 9 / 0.35) 25%, rgb(11 10 9 / 0.35) 75%, var(--mk-bg));
}

.mk-band__text {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 620;
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 16ch;
  text-wrap: balance;
}

/* ── Languages: a slow marquee of the names people call their tongue ────── */

.mk-languages {
  padding-block: clamp(3rem, 8vh, 6rem);
  display: grid;
  gap: 1.75rem;
  justify-items: center;
}

.mk-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.mk-marquee__track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: mk-marquee 48s linear infinite;
}

.mk-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--mk-ink-2);
  white-space: nowrap;
}

.mk-marquee__item::after {
  content: "·";
  color: var(--mk-accent);
}

@keyframes mk-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ── Featured tribes ────────────────────────────────────────────────────── */

.mk-section {
  padding-block: clamp(4rem, 10vh, 7rem);
}

.mk-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.mk-tribes {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.mk-tribe {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--mk-radius);
  border: 1px solid var(--mk-line);
  background: rgb(244 239 230 / 0.03);
  color: var(--mk-ink);
  transition: border-color 0.2s, background-color 0.2s;
}

.mk-tribe:hover {
  border-color: rgb(244 239 230 / 0.28);
  background: rgb(244 239 230 / 0.05);
}

.mk-tribe__logo {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--mk-bg-2);
  border: 1px solid var(--mk-line);
  font-weight: 600;
  font-size: 1.125rem;
}

.mk-tribe__name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mk-tribe__about {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--mk-ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mk-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--mk-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgb(244 239 230 / 0.3);
}

.mk-link:hover {
  text-decoration-color: var(--mk-ink);
}

/* ── Closing call ───────────────────────────────────────────────────────── */

.mk-cta {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(4rem, 10vh, 8rem);
}

.mk-cta__media {
  position: relative;
  border-radius: var(--mk-radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 62svh;
  background: var(--mk-bg-2);
}

.mk-cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mk-cta__text {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.mk-cta__text .mk-actions {
  margin-top: 0.5rem;
}

@media (min-width: 900px) {
  .mk-cta {
    grid-template-columns: 5fr 6fr;
    gap: clamp(3rem, 7vw, 7rem);
  }

  .mk-cta__media {
    max-height: none;
  }
}

/* ── Split hero (landing pages) ─────────────────────────────────────────── */

.mk-split {
  display: grid;
  gap: 2rem;
  padding-top: 6rem;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}

.mk-split__text {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  align-content: center;
}

.mk-split__text .mk-display {
  font-size: clamp(2.625rem, 7vw, 6rem);
}

.mk-split__media {
  position: relative;
  border-radius: var(--mk-radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 60svh;
  background: var(--mk-bg-2);
}

.mk-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mk-split__media .mk-credit {
  position: absolute;
  right: 1rem;
  bottom: 0.75rem;
}

@media (min-width: 900px) {
  .mk-split {
    grid-template-columns: 7fr 5fr;
    gap: clamp(3rem, 6vw, 6rem);
    min-height: 92svh;
    align-items: center;
    padding-top: 7rem;
  }

  .mk-split__media {
    max-height: none;
    order: 2;
  }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.mk-footer {
  border-top: 1px solid var(--mk-line);
  padding-block: 3.5rem 2.5rem;
  display: grid;
  gap: 3rem;
  font-size: 0.875rem;
  color: var(--mk-ink-2);
}

.mk-footer__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .mk-footer__grid {
    grid-template-columns: 1.2fr 2fr 1fr;
  }
}

.mk-footer__head {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mk-ink-3);
  margin-bottom: 1rem;
}

.mk-footer__links {
  display: grid;
  gap: 0.5rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .mk-footer__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mk-footer a {
  color: var(--mk-ink-2);
}

.mk-footer a:hover {
  color: var(--mk-ink);
}

.mk-footer__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.875rem;
}

.mk-footer__langs [aria-current] {
  color: var(--mk-ink);
  font-weight: 600;
}

.mk-footer__credits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
}

.mk-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mk-line);
  font-size: 0.8125rem;
  color: var(--mk-ink-3);
}

/* ── Auth screens ───────────────────────────────────────────────────────── */

.mk-auth {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
}

.mk-auth__media {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--mk-bg-2);
}

.mk-auth__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mk-auth__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 70% at 50% 40%, rgb(11 10 9 / 0.2), rgb(11 10 9 / 0.8)),
    linear-gradient(to top, var(--mk-bg), transparent 40%);
}

.mk-auth__frame {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(2rem, env(safe-area-inset-top)) 1rem 2.5rem;
}

@media (min-width: 640px) {
  .mk-auth__frame {
    padding-top: 3rem;
  }
}

.mk-auth__card {
  width: 100%;
  max-width: 27rem;
  border-radius: 1.5rem;
  background: rgb(255 255 255 / 0.96);
  color: #111827;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.1);
  backdrop-filter: blur(12px);
}

.mk-auth__card .auth-card {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.mk-auth__langs {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--mk-ink-3);
}

.mk-auth__langs a {
  color: var(--mk-ink-3);
}

.mk-auth__langs a:hover,
.mk-auth__langs [aria-current] {
  color: var(--mk-ink);
}

.mk-auth__credit {
  position: fixed;
  right: 1rem;
  bottom: 0.75rem;
}

/* ── Motion off ─────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  [data-mk-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mk-word {
    opacity: 1;
    transition: none;
  }

  .mk-hero__media img,
  .mk-visit__media img {
    animation: none;
    transform: none;
  }

  .mk-marquee__track {
    animation: none;
  }

  .mk-card img,
  .mk-btn {
    transition: none;
  }
}

/* ── Visiting a tribe: its own photograph, symbol, name and people ──────── */

.mk-visit {
  position: relative;
  isolation: isolate;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.mk-visit--bare {
  min-height: 0;
  padding-top: 5rem;
  background: radial-gradient(70% 60% at 50% 0%, rgb(227 179 106 / 0.09), transparent 70%);
}

.mk-visit__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--mk-bg-2);
}

.mk-visit__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  animation: mk-settle 14s var(--mk-ease) forwards;
}

.mk-visit__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgb(11 10 9 / 0.5), transparent 25%),
    linear-gradient(to top, var(--mk-bg) 0%, rgb(11 10 9 / 0.86) 24%, rgb(11 10 9 / 0.3) 55%, transparent 80%);
}

.mk-visit__content {
  padding-block: 7rem clamp(3rem, 8vh, 6rem);
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.mk-visit__symbol {
  width: 4rem;
  height: 4rem;
  border-radius: 1.125rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgb(244 239 230 / 0.08);
  border: 1px solid rgb(244 239 230 / 0.18);
  backdrop-filter: blur(10px);
  font-size: 1.5rem;
  font-weight: 600;
}

.mk-visit__symbol img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mk-visit__eyebrow a {
  color: inherit;
}

.mk-visit__eyebrow a:hover {
  color: var(--mk-ink);
}

.mk-visit__name {
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  max-width: 14ch;
}

/*
 * The facts line wraps on phones. Separators hang off the left of each item
 * and the row is pulled left by the same amount inside a clipping box, so a
 * separator that lands at the start of a wrapped line disappears.
 */
.mk-visit__facts {
  overflow: hidden;
  font-size: 0.9375rem;
  color: var(--mk-ink-2);
}

.mk-visit__facts-row {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.35rem;
  margin-left: -1.4em;
}

.mk-visit__facts-row > * {
  position: relative;
  margin-left: 1.4em;
  white-space: nowrap;
}

.mk-visit__facts-row > *::before {
  content: "·";
  position: absolute;
  left: -0.9em;
  color: var(--mk-ink-3);
}

.mk-visit__notice {
  font-size: 0.9375rem;
  color: var(--mk-accent);
}

.mk-seat {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 0.25rem;
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  border-radius: 9999px;
  background: rgb(244 239 230 / 0.08);
  border: 1px solid rgb(244 239 230 / 0.16);
  backdrop-filter: blur(12px);
}

.mk-seat__portrait {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--mk-bg-2);
  font-weight: 600;
}

.mk-seat__text {
  display: grid;
  line-height: 1.2;
}

.mk-seat__name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.mk-seat__title {
  font-size: 0.8125rem;
  color: var(--mk-ink-2);
}

/* Rich text on the dark ground */
.mk-prose {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--mk-ink-2);
  max-width: 62ch;
}

.mk-prose.lexxy-content p,
.mk-prose.lexxy-content ul,
.mk-prose.lexxy-content ol,
.mk-prose.lexxy-content blockquote {
  margin-block: 0 0.8em;
}

.mk-prose.lexxy-content h1,
.mk-prose.lexxy-content h2,
.mk-prose.lexxy-content h3,
.mk-prose.lexxy-content strong {
  color: var(--mk-ink);
}

.mk-prose.lexxy-content a {
  color: var(--mk-ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.mk-prose.lexxy-content blockquote {
  border-color: var(--mk-line);
  color: var(--mk-ink-3);
}

.mk-leaders {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}

.mk-leader {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.25rem;
  border-radius: var(--mk-radius);
  border: 1px solid var(--mk-line);
  background: rgb(244 239 230 / 0.03);
}

.mk-leader__portrait {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.25rem;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--mk-bg-2);
  border: 1px solid var(--mk-line);
  font-size: 1.5rem;
  font-weight: 600;
}

.mk-leader--main .mk-leader__portrait {
  width: 6rem;
  height: 6rem;
}

.mk-leader__name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.mk-leader__title {
  margin-top: 0.15rem;
  font-size: 0.875rem;
  color: var(--mk-ink-2);
}

.mk-gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

.mk-gallery__item {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--mk-radius) - 0.25rem);
  overflow: hidden;
  background: var(--mk-bg-2);
  cursor: zoom-in;
}

.mk-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--mk-ease);
}

.mk-gallery__item:hover img {
  transform: scale(1.04);
}

@media (min-width: 768px) {
  .mk-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* The closing call without a photograph: centred text */
.mk-cta--plain,
.mk-cta--plain .mk-cta__text {
  justify-items: center;
  text-align: center;
}

@media (min-width: 900px) {
  .mk-cta--plain {
    grid-template-columns: 1fr;
  }
}

/* ── Directory: a search box and the public tribes as cards ─────────────── */

.mk-directory__head {
  padding-block: 7.5rem 1rem;
  display: grid;
  gap: 1.75rem;
  justify-items: start;
}

.mk-section--tight {
  padding-block: 2rem clamp(4rem, 10vh, 7rem);
}

.mk-search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 32rem;
  padding: 0.25rem 0.25rem 0.25rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid var(--mk-line);
  background: rgb(244 239 230 / 0.06);
  transition: border-color 0.2s, background-color 0.2s;
}

.mk-search:focus-within {
  border-color: var(--mk-ink-3);
  background: rgb(244 239 230 / 0.08);
}

.mk-search input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0;
  border: 0;
  background: transparent;
  color: var(--mk-ink);
  font: inherit;
  font-size: 1rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.mk-search input::placeholder {
  color: var(--mk-ink-3);
}

.mk-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.mk-search__btn {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  color: var(--mk-ink-2);
  transition: color 0.2s, background-color 0.2s;
}

.mk-search__btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.mk-search__btn:hover {
  color: var(--mk-bg);
  background: var(--mk-ink);
}

.mk-tribe__text {
  display: grid;
  gap: 0.2rem;
}

.mk-tribe__parent {
  font-size: 0.8125rem;
  color: var(--mk-ink-3);
}

.mk-empty {
  padding-block: 3rem;
}

.mk-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.mk-pagination [aria-disabled] {
  opacity: 0.4;
  pointer-events: none;
}

.mk-pagination__page {
  font-size: 0.875rem;
  color: var(--mk-ink-2);
}

/* ── Error pages ────────────────────────────────────────────────────────── */

.mk-error {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.5rem;
  padding-block: 8rem 6rem;
}

.mk-error .mk-display {
  font-size: clamp(2.25rem, 6.5vw, 5.5rem);
  max-width: 16ch;
}

.mk-error .mk-lede {
  max-width: 48ch;
}
