/* ============================================================
   UserTapes — marketing blog ("Retro-Futuristic Minimalist")
   Same hardware language as the landing page and the app: bone
   white, graphite, hairline rules, mono microlabels, and ONE
   spot colour (Recording Red).

   Self-contained on purpose. The landing page carries its tokens
   inline and the dashboard carries its own in application.css --
   each surface owns its variables, so the blog can't be broken
   by a change to either of the others. All `mk-` prefixed.
   ============================================================ */

:root {
  --bone:   #FAFAFA;
  --panel:  #FFFFFF;
  --line:   #E0E0E0;
  --ink:    #0D0D0D;
  --ink-2:  #707070;
  --ink-3:  #A6A6A6;
  --red:    #FF2C2C;
  --screw:  #C4C4C4;
  --sans: "Helvetica Neue", Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Geist Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bone:  #1C1C1E;
    --panel: #232326;
    --line:  #2C2C2E;
    --ink:   #F2F2ED;
    --ink-2: #A0A0A3;
    --ink-3: #6E6E71;
    --screw: #48484B;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.mk {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

.mk-wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 480px) { .mk-wrap { padding: 0 20px; } }

/* ---------- shared microlabels ---------- */
.mk-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2);
}
.mk-tag a { color: var(--ink-2); }
.mk-idx { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-3); }
.mk-meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

/* ---------- nav ---------- */
.mk-nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bone) 88%, transparent);
  backdrop-filter: blur(8px);
}
.mk-nav__inner {
  display: flex; align-items: center; gap: 28px; height: 52px;
  max-width: 1400px; margin: 0 auto; padding: 0 24px; width: 100%;
}
.mk-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mk-brand__mark {
  width: 34px; height: 20px; border: 1.5px solid var(--ink); border-radius: 6px;
  display: flex; align-items: center; justify-content: space-evenly; flex: 0 0 auto;
  background: linear-gradient(var(--red), var(--red)) center / 10px 1.5px no-repeat;
}
.mk-brand__mark i { width: 7px; height: 7px; border: 1.5px solid var(--red); border-radius: 50%; }
.mk-brand__name { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.mk-nav__links { display: flex; gap: 22px; margin-left: auto; }
.mk-nav__links a {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2); text-decoration: none;
}
.mk-nav__links a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .mk-nav__links { gap: 14px; }
  .mk-nav__links a { font-size: 10.5px; letter-spacing: .04em; }
}
@media (max-width: 460px) {
  /* On a phone the section links are the first to go: they point back into
     the landing page, which someone arriving on a post from search hasn't
     seen yet. Pricing and the sign-in key are the ones worth the space. */
  .mk-nav__links a[href="/#modules"],
  .mk-nav__links a[href="/#mcp"] { display: none; }
}

/* ---------- page head ---------- */
.mk-main { padding: 56px 0 0; }
.mk-head { margin-bottom: 40px; }
.mk-head h1 {
  font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08;
  margin: 14px 0 0;
}
.mk-head__sub { color: var(--ink-2); margin-top: 14px; max-width: 34em; }
.mk-head .mk-meta { margin-top: 16px; }

/* ---------- index ---------- */
.mk-list { list-style: none; border-top: 1px solid var(--line); }
.mk-list__item {
  display: flex; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.mk-list__item .mk-idx { padding-top: 6px; flex: 0 0 auto; }
.mk-list__body h2 { font-size: 20px; letter-spacing: -.02em; line-height: 1.25; }
.mk-list__body h2 a { color: var(--ink); text-decoration: none; }
.mk-list__body h2 a:hover { color: var(--red); }
.mk-list__body p { color: var(--ink-2); margin-top: 8px; font-size: 15px; }
.mk-list__body .mk-meta { margin-top: 10px; }
.mk-empty { color: var(--ink-2); padding: 40px 0 60px; border-top: 1px solid var(--line); }
.mk-draft-pill {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red);
  border: 1px solid var(--red); border-radius: 4px;
  padding: 2px 6px; vertical-align: middle; margin-left: 8px;
}

/* ---------- article ---------- */
.mk-article { padding-bottom: 20px; }
.mk-draft {
  font-family: var(--mono); font-size: 12px; color: var(--red);
  border: 1px dashed var(--red); border-radius: 6px;
  padding: 10px 14px; margin-bottom: 28px;
}

/* table of contents — a plain hairline panel, not a card */
.mk-toc {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px 0; margin: 0 0 44px;
}
.mk-toc ol { list-style: none; margin-top: 12px; }
.mk-toc li { margin-top: 7px; font-size: 14.5px; }
.mk-toc a { color: var(--ink-2); text-decoration: none; }
.mk-toc a:hover { color: var(--red); }

/* ---------- prose ---------- */
.mk-prose { font-size: 17px; line-height: 1.72; }
.mk-prose > * + * { margin-top: 1.15em; }

.mk-prose h2 {
  font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
  margin-top: 2.2em; padding-top: 1.1em; border-top: 1px solid var(--line);
  scroll-margin-top: 72px; /* clears the sticky nav on anchor jumps */
}
.mk-prose h3 {
  font-size: 19px; font-weight: 700; letter-spacing: -.01em;
  margin-top: 1.9em; scroll-margin-top: 72px;
}
.mk-prose h4 { font-size: 16px; font-weight: 700; margin-top: 1.6em; }

.mk-prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.mk-prose a:hover { color: var(--red); text-decoration-color: var(--red); }

.mk-prose ul, .mk-prose ol { padding-left: 1.3em; }
.mk-prose li + li { margin-top: .45em; }
.mk-prose li::marker { color: var(--ink-3); }

.mk-prose blockquote {
  border-left: 2px solid var(--red);
  padding: 2px 0 2px 18px; color: var(--ink-2);
}

.mk-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.mk-prose img, .mk-prose video {
  max-width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: 8px;
}

.mk-prose code {
  font-family: var(--mono); font-size: .87em;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  padding: .15em .4em; border-radius: 4px;
}
.mk-prose pre {
  background: #1A1A1A; color: #F5F5F5;
  border-radius: 8px; padding: 18px 20px;
  overflow-x: auto; font-size: 13.5px; line-height: 1.6;
}
.mk-prose pre code { background: none; padding: 0; font-size: inherit; color: inherit; }

/* comparison tables carry a lot of the weight in this category's posts,
   so they get real styling and a scroll container rather than overflowing */
.mk-prose table {
  width: 100%; border-collapse: collapse; font-size: 15px;
  display: block; overflow-x: auto; white-space: nowrap;
}
.mk-prose thead th {
  text-align: left; font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  border-bottom: 1px solid var(--ink); padding: 0 16px 10px 0;
}
.mk-prose tbody td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.mk-prose tbody tr:last-child td { border-bottom: 0; }

@media (min-width: 720px) {
  /* wide enough to lay out normally — let cells wrap again */
  .mk-prose table { display: table; white-space: normal; }
}

/* ---------- comparison pages: panels, tables, verdicts ---------- */
.mk-panel {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0; margin: 0 0 36px;
}
.mk-panel .mk-tag { margin-bottom: 16px; }

.mk-table {
  width: 100%; border-collapse: collapse; font-size: 15px;
  display: block; overflow-x: auto; white-space: nowrap;
}
.mk-table thead th {
  text-align: left; font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  border-bottom: 1px solid var(--ink); padding: 0 18px 10px 0;
}
.mk-table tbody th, .mk-table tbody td {
  padding: 12px 18px 12px 0; border-bottom: 1px solid var(--line);
  vertical-align: top; text-align: left; font-weight: 400;
}
.mk-table tbody th { font-weight: 700; }
.mk-table tbody tr:last-child th, .mk-table tbody tr:last-child td { border-bottom: 0; }
/* our own row, so a reader can find it without hunting */
.mk-table__self th, .mk-table__self td { color: var(--red); }
@media (min-width: 720px) {
  .mk-table { display: table; white-space: normal; }
}

.mk-verified { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-top: 14px; line-height: 1.6; }
.mk-verified a { color: var(--ink-2); }
.mk-caveat {
  font-size: 14px; color: var(--ink-2); margin-top: 12px;
  border-left: 2px solid var(--red); padding-left: 14px;
}

/* the two-column honest verdict: switch vs stay */
.mk-verdict {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  border-top: 1px solid var(--line); padding-top: 26px; margin-top: 44px;
}
.mk-verdict ul { list-style: none; margin-top: 14px; }
.mk-verdict li { font-size: 15px; line-height: 1.5; padding-left: 18px; position: relative; }
.mk-verdict li + li { margin-top: 10px; }
.mk-verdict li::before { content: "→"; position: absolute; left: 0; color: var(--red); }
.mk-verdict__col--stay li::before { content: "→"; color: var(--ink-3); }
@media (max-width: 640px) { .mk-verdict { grid-template-columns: 1fr; gap: 26px; } }

.mk-related { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 44px; }
.mk-related ul { list-style: none; margin-top: 12px; }
.mk-related li { font-size: 15px; color: var(--ink-2); }
.mk-related li + li { margin-top: 9px; }
.mk-related a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.mk-related a:hover { color: var(--red); }

/* use-case pages: per-page signal lists and example transcripts */
.mk-signals { list-style: none; margin-top: 6px; }
.mk-signals li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.mk-signals li:last-child { border-bottom: 0; }
.mk-signals strong { display: block; font-size: 15px; margin-bottom: 5px; }
.mk-signals span { display: block; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.mk-signals--plain li { padding: 10px 0; }

.mk-transcript {
  background: #1A1A1A; color: #F5F5F5; border-radius: 8px;
  padding: 18px 20px; overflow-x: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.65;
  white-space: pre; margin-top: 4px;
}

/* ---------- closing CTA ---------- */
.mk-cta {
  margin-top: 80px; padding: 76px 0 84px;
  border-top: 1px solid var(--line); text-align: center;
}
.mk-cta h2 { font-weight: 700; letter-spacing: -.03em; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; margin-top: 14px; }
.mk-cta__sub { color: var(--ink-2); margin: 16px auto 28px; max-width: 30em; }
.mk-key {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 8px; cursor: pointer;
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-bottom-width: 3px;
  transition: transform .08s var(--ease), border-bottom-width .08s var(--ease);
  user-select: none;
}
.mk-key:hover { transform: translateY(1px); border-bottom-width: 2px; }
.mk-key:active { transform: translateY(2px); border-bottom-width: 1px; }
.mk-key--rec { background: var(--red); border-color: color-mix(in srgb, var(--red) 70%, #000); color: #fff; }

/* ---------- footer ---------- */
.mk-foot { border-top: 1px solid var(--line); padding: 26px 0; }
.mk-foot__links {
  display: flex; gap: 64px; flex-wrap: wrap;
  padding-bottom: 26px; max-width: 1120px;
}
.mk-foot__col h3 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2); font-weight: 400; margin-bottom: 12px;
}
.mk-foot__col ul { list-style: none; }
.mk-foot__col li + li { margin-top: 8px; }
.mk-foot__col a { font-size: 14px; color: var(--ink); text-decoration: none; text-transform: none; letter-spacing: 0; }
.mk-foot__col a:hover { color: var(--red); }
@media (max-width: 560px) { .mk-foot__links { gap: 32px; } }
.mk-foot__inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-2); max-width: 1120px;
}
.mk-foot__inner b { color: var(--red); }
.mk-foot__legal { margin-left: auto; }
.mk-foot a { color: var(--ink-2); text-decoration: none; }
.mk-foot a:hover { color: var(--ink); }
