/* MindFence · byRazLabs Ltd
 *
 * Served from this domain. No fonts, no scripts, no analytics, no third
 * parties — the same posture as byrazlabs.com, and the same posture as the app.
 * A privacy policy hosted on a page that phones five ad networks is a joke.
 */

:root {
    color-scheme: light dark;
    --ground: #FBF9F6;
    --surface: #FFFFFF;
    --text: #16130F;
    --muted: #5C554C;
    --line: #E4DED4;
    --ember: #A85F1E;
    --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ground: #0C0B0A;
        --surface: #141310;
        --text: #F3F0EA;
        --muted: #A69C8E;
        --line: #262219;
        --ember: #D8873F;
    }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0 1.5rem 5rem;
    background: var(--ground);
    color: var(--text);
    font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--measure); margin: 0 auto; }

/* Header */

header {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 2.5rem 0 1rem;
}

header a {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.mark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--ember);
    border-radius: 7px;
    position: relative;
    flex: none;
}

.mark::after {
    content: "";
    position: absolute;
    inset: 5px;
    background: var(--ember);
    border-radius: 2px;
}

/* Type */

h1 {
    font-size: 2.1rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 2rem 0 .75rem;
}

h2 {
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    margin: 2.75rem 0 .5rem;
}

p, li { color: var(--text); }

.lede {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--muted);
    margin: 0 0 2rem;
}

a { color: var(--ember); }

ul { padding-left: 1.15rem; }
li { margin: .35rem 0; }

/* Blocks */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    margin: 1.5rem 0;
}

.card h2 { margin-top: 0; }

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .9em;
    background: color-mix(in srgb, var(--ember) 12%, transparent);
    padding: .1em .35em;
    border-radius: 4px;
}

.steps { counter-reset: step; list-style: none; padding: 0; }

.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 2.1rem;
    margin: .9rem 0;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: .05em;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--ember);
    color: var(--ground);
    font-size: .82rem;
    font-weight: 600;
    display: grid;
    place-items: center;
}

footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .88rem;
}

footer a { color: var(--muted); }

.small { font-size: .88rem; color: var(--muted); }
