:root {
    --alchemy-bg: #ffffff;
    --alchemy-surface: #f6f7f8;
    --alchemy-text: #16181d;
    --alchemy-muted: #5f6673;
    --alchemy-border: #d9dde5;
    --alchemy-accent: var(--alchemy-color-primary, #195bd8);
    --alchemy-accent-contrast: #ffffff;
    --alchemy-radius: 8px;
    --alchemy-shell: min(var(--alchemy-container, 1120px), calc(100vw - 40px));
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--alchemy-text);
    background: var(--alchemy-bg);
    font-family: var(--alchemy-font-body, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--alchemy-accent);
}

img {
    max-width: 100%;
    height: auto;
}

.alchemy-shell {
    width: var(--alchemy-shell);
    margin-inline: auto;
}

.alchemy-skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 8px 12px;
    color: var(--alchemy-accent-contrast);
    background: var(--alchemy-accent);
    transform: translateY(-140%);
}

.alchemy-skip-link:focus {
    transform: translateY(0);
}

.alchemy-site-header {
    border-bottom: 1px solid var(--alchemy-border);
    background: rgba(255, 255, 255, 0.94);
}

.alchemy-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.alchemy-brand__name {
    color: var(--alchemy-text);
    font-weight: 700;
    text-decoration: none;
}

.alchemy-brand__logo img {
    display: block;
    max-width: 190px;
    max-height: 46px;
    object-fit: contain;
}

.alchemy-nav ul {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.alchemy-nav a {
    color: var(--alchemy-text);
    text-decoration: none;
}

.alchemy-site-main {
    min-height: 60vh;
}

.alchemy-content {
    padding-block: 56px;
}

.alchemy-entry {
    max-width: 760px;
}

.alchemy-entry h1 {
    margin: 0 0 20px;
    font-family: var(--alchemy-font-heading, inherit);
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05;
}

.alchemy-generated {
    overflow: hidden;
}

.alchemy-generated section {
    padding-block: clamp(48px, 8vw, var(--alchemy-section-space, 96px));
}

.alchemy-generated .alchemy-container,
.alchemy-generated [class*="container"] {
    width: var(--alchemy-shell);
    margin-inline: auto;
}

.alchemy-generated h1,
.alchemy-generated h2,
.alchemy-generated h3 {
    font-family: var(--alchemy-font-heading, inherit);
    line-height: 1.08;
}

.alchemy-generated p {
    max-width: 70ch;
}

.alchemy-site-footer {
    padding: 28px 0;
    color: var(--alchemy-muted);
    border-top: 1px solid var(--alchemy-border);
}

@media (max-width: 760px) {
    .alchemy-site-header__inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 16px;
    }

    .alchemy-nav ul {
        flex-wrap: wrap;
        gap: 10px 14px;
    }
}
