/* Explain: Base reset and typography defaults for the studio site. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    color: var(--text-color);
    color-scheme: dark;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    letter-spacing: 0.012em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.008em;
}

button,
a,
select {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--primary-color);
    color: #0A0A09;
}

.is-hidden {
    display: none !important;
}

/* ── 版式尺度 ─────────────────────────────── */
.display-xl {
    font-family: var(--font-heading);
    font-size: clamp(1.95rem, 1.2rem + 3.2vw, 4.1rem);
    font-weight: 400;
    line-height: 1.16;
    letter-spacing: 0.015em;
}

.display-lg {
    font-family: var(--font-heading);
    font-size: clamp(2.05rem, 1.2rem + 3.6vw, 4.1rem);
    font-weight: 400;
    line-height: 1.11;
    letter-spacing: -0.005em;
}

.display-md {
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 1.15rem + 1.9vw, 2.75rem);
    font-weight: 400;
    line-height: 1.18;
}

.display-sm {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.6rem);
    font-weight: 400;
    line-height: 1.28;
}

.lead {
    font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.1rem);
    font-weight: 300;
    line-height: 1.95;
    color: var(--text-muted);
}

.meta-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.rule-line {
    height: 1px;
    border: 0;
    background: var(--rule-color);
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

[dir="rtl"] .flip-rtl {
    transform: scaleX(-1);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}