/* Base typography and layout for all themes */
:root {
    --rc-content-max: 1240px;
    --rc-content-gutter: 1rem;
    --rc-section-space: 1.5rem;
    --rc-surface-border: hsl(var(--bc) / 0.12);
    --rc-surface-soft: hsl(var(--b2) / 0.42);
    --rc-surface-strong: hsl(var(--b1) / 0.82);
    --rc-shadow-sm: 0 6px 16px hsl(var(--bc) / 0.08);
    --rc-shadow-md: 0 14px 28px hsl(var(--bc) / 0.12);
    --rc-radius-lg: 0.9rem;
}

html {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.5;
    font-size: 16px;
}

body {
    min-height: 100vh;
    letter-spacing: 0.01em;
}

[data-theme="business"] body {
    background-color: #121212;
    background-image: radial-gradient(circle at center, #2a2a2a 0%, #111111 100%);
    background-attachment: fixed;
}

[data-theme="business"] {
    color-scheme: dark;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.55rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(1.8rem, 2.8vw, 2.7rem);
}

h2 {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
}

h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}

h4 {
    font-size: clamp(1.05rem, 1.35vw, 1.25rem);
}

p {
    margin-top: 0;
    margin-bottom: 0.95rem;
}

.container,
.container-fluid {
    width: 100%;
    max-width: var(--rc-content-max);
    margin-left: auto;
    margin-right: auto;
}

.container-fluid {
    padding-left: var(--rc-content-gutter);
    padding-right: var(--rc-content-gutter);
}

.section {
    padding-top: var(--rc-section-space);
    padding-bottom: var(--rc-section-space);
}

.rc-surface-card {
    border: 1px solid var(--rc-surface-border);
    background: var(--rc-surface-strong);
    border-radius: var(--rc-radius-lg);
    box-shadow: var(--rc-shadow-sm);
}

.rc-surface-soft {
    border: 1px solid hsl(var(--bc) / 0.09);
    background: var(--rc-surface-soft);
    border-radius: calc(var(--rc-radius-lg) - 0.2rem);
}
