*, *::before, *::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--color-page);
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01';
}

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

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font: inherit;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-ink);
}

p {
    margin: 0;
}

/* ─── FOCUS RING ─────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

/* ─── SELECTION ──────────────────────────────────────────────── */
::selection {
    background: var(--color-brand-light);
    color: var(--color-ink);
}

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: var(--color-line); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-muted); }

/* ─── APP SHELL ──────────────────────────────────────────────── */
.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
    transition: grid-template-columns var(--duration-base) var(--ease-in-out);
}

.app-shell.is-sidebar-collapsed {
    grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr);
}

.app-content {
    min-width: 0;
}

/* ─── PAGE LAYOUT ────────────────────────────────────────────── */
.page-content {
    width: calc(100% - calc(var(--content-padding) * 2));
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: var(--space-6) 0 var(--space-12);
}

.section-block {
    margin-top: var(--space-8);
}

/* ─── TYPOGRAPHY UTILITIES ───────────────────────────────────── */
.eyebrow {
    margin: 0;
    color: var(--color-brand-dark);
    font-size: var(--text-xs);
    font-weight: var(--weight-black);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

.section-heading h2 {
    margin: 4px 0 0;
    font-size: var(--text-xl);
}
