/* =====================================================================
   FOR MEDIA (/media/)
   Loaded after mobile.css on that one page. The press kit: a jump
   row, numbered sections, asset cards (a preview on the background the
   file is made for, its type and size, a download link) and colour
   swatches. The swatch colours are written out here rather than read
   from the site tokens on purpose: they document fixed hex values, and
   a token retint elsewhere must not quietly change what the page says.
   No motion, so nothing to gate on prefers-reduced-motion.
   ===================================================================== */

.mk {
  padding-bottom: clamp(56px, 9vh, 104px);
}

/* ---- jump row ---- */
.mk-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(40px, 7vh, 72px);
}
.mk-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-soft);
  text-decoration: none;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.mk-jump a:hover,
.mk-jump a:focus-visible {
  color: var(--txt);
  border-color: var(--signal-soft);
}

/* ---- sections ---- */
.mk-sec {
  scroll-margin-top: 96px;
}
.mk-sec + .mk-sec {
  margin-top: clamp(56px, 9vh, 96px);
  padding-top: clamp(40px, 6vh, 64px);
  border-top: 1px solid var(--line);
}
.mk-head {
  max-width: 46rem;
  margin-bottom: 28px;
}
.mk-num {
  color: var(--signal-soft);
  margin-bottom: 10px;
}
.mk-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--txt);
}
.mk-intro {
  margin-top: 14px;
  color: var(--txt-soft);
  line-height: 1.6;
}
.mk-intro a,
.mk-facts a,
.page-banner .lede a {
  color: var(--txt);
  text-decoration: underline;
  text-decoration-color: var(--signal-soft);
  text-underline-offset: 4px;
}
.mk-intro a:hover,
.mk-facts a:hover,
.page-banner .lede a:hover {
  color: var(--signal-soft);
}
.mk-subhead {
  margin: 40px 0 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--txt-dim);
}

/* ---- about: boilerplate beside the facts ---- */
.mk-about {
  display: grid;
  gap: 28px;
}
@media (min-width: 960px) {
  .mk-about {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
}
.mk-boiler {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.mk-boiler-label {
  color: var(--txt-dim);
  margin-bottom: 12px;
}
.mk-boiler p:not(.mk-boiler-label) {
  color: var(--txt);
  font-size: 1.05rem;
  line-height: 1.65;
}
.mk-facts {
  margin: 0;
  border-top: 1px solid var(--line);
}
.mk-facts > div {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 520px) {
  .mk-facts > div {
    grid-template-columns: 130px 1fr;
    gap: 16px;
    align-items: baseline;
  }
}
.mk-facts dt {
  color: var(--txt-dim);
}
.mk-facts dd {
  margin: 0;
  color: var(--txt);
}
.mk-facts-row {
  max-width: 46rem;
  margin-bottom: 32px;
}

/* ---- asset cards ---- */
.mk-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .mk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .mk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.mk-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
/* the aspect ratio holds only if the content may not push the box
   taller: min-height 0 plus overflow hidden, or a square icon or a
   portrait photo stretches its card past the others in the row */
.mk-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.mk-preview img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.mk-pad {
  padding: 12% 14%;
}
.mk-square {
  padding: 6%;
}
.mk-photo img {
  object-fit: cover;
}
.mk-on-dark {
  background: #0c0c0d;
}
.mk-on-light {
  background: #ffffff;
}
.mk-on-hu-dark {
  background: #120d0a;
}
.mk-on-hu-light {
  background: #f6efe6;
}
.mk-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  padding: 18px 18px 18px;
}
.mk-card-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--txt);
}
.mk-meta {
  color: var(--txt-dim);
  letter-spacing: 0.1em;
}
.mk-dl {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: auto;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--txt);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.mk-card-body .mk-meta + .mk-dl {
  margin-top: 12px;
}
.mk-dl:hover,
.mk-dl:focus-visible {
  background: var(--signal-soft);
  color: #141413;
}
.mk-dl:focus-visible {
  outline: 2px solid var(--signal-soft);
  outline-offset: 3px;
}

/* ---- swatches ---- */
.mk-swatches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .mk-swatches {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
.mk-swatches li {
  display: grid;
  gap: 2px;
  padding: 10px 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.mk-chip {
  display: block;
  height: 72px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.mk-sw-name {
  font-weight: 500;
  color: var(--txt);
  padding: 0 4px;
}
.mk-sw-hex {
  color: var(--txt-soft);
  padding: 0 4px;
  user-select: all;
}
.mk-c-night {
  background: #0c0c0d;
}
.mk-c-chalk {
  background: #f1f1ee;
}
.mk-c-signal {
  background: #f97316;
}
.mk-c-signal-soft {
  background: #fdba74;
}
.mk-c-hu-ink {
  background: #120d0a;
}
.mk-c-hu-bark {
  background: #2b1a12;
}
.mk-c-hu-orange {
  background: #ef7a2c;
}
.mk-c-hu-sand {
  background: #f0b47a;
}
.mk-c-hu-paper {
  background: #f6efe6;
}

/* ---- contact ---- */
.mk-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4.6vw, 2.6rem);
  letter-spacing: -0.03em;
  color: var(--txt);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--signal);
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
}
.mk-mail:hover,
.mk-mail:focus-visible {
  color: var(--signal-soft);
}
