/* MÄNGDA: the cube, the pen and the wordmark. Colours come from designsystem/tokens.css. */
@font-face { font-family: "Inter Mangda"; src: url(fonts/InterVariable.woff2) format("woff2"); font-weight: 100 900; font-display: block; }

.mg-face { fill: var(--panel); }
.mg-edge { fill: none; stroke: var(--ink); stroke-linejoin: round; stroke-linecap: round; }
.mg-p-wall { fill: none; stroke: var(--ink); stroke-width: 3.6; stroke-linecap: square; stroke-linejoin: miter; }
.mg-p-in { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: square; }
.mg-p-fix { fill: none; stroke: var(--ink-700); stroke-width: .8; stroke-linejoin: round; }
.mg-p-dim { fill: none; stroke: var(--ink-500); stroke-width: .5; }
.mg-shade-l { fill: var(--ink); fill-opacity: .04; }
.mg-shade-r { fill: var(--ink); fill-opacity: .1; }
.mg-f-top { fill: var(--ink-400); }
.mg-f-left { fill: var(--ink-700); }
.mg-f-right { fill: var(--ink); }
.mg-ink { mix-blend-mode: multiply; }
.mg-ink .mkx-body { fill: var(--marker); opacity: .92; }
.mg-ink .mkx-pool { fill: var(--marker); opacity: .7; }
.mg-ink .mkx-streak { fill: none; stroke: var(--panel); opacity: .5; stroke-linecap: round; }
.mg-ink-top { mix-blend-mode: normal; }
.mg-pen { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }

/* On a dark ground multiply would crush the pink to black: the pen sits on top instead,
   and the solid cube turns to its light tones. */
.on-dark .mg-ink { mix-blend-mode: normal; }
.on-dark .mg-ink .mkx-streak { stroke: var(--ink); }
.on-dark .mg-f-top { fill: var(--on-ink); }
.on-dark .mg-f-left { fill: var(--line); }
.on-dark .mg-f-right { fill: var(--ink-400); }

/* The hero logo (mangda-hero.js): scales to its container's width */
.mg-hero-svg { display: block; width: 100%; height: auto; overflow: visible; }

.mg-word { font-family: "Inter Mangda", Inter, sans-serif; font-weight: 780; font-variation-settings: "opsz" 32; letter-spacing: -.035em; fill: var(--ink); }
.on-dark .mg-word { fill: var(--on-ink); }
