/* Aetherion Labs — editorial serif typography tokens & global rhythm */

:root {
    --display: "Source Serif 4", Georgia, "Times New Roman", serif;
    --body: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --tracking-tight: 0.06em;
    --tracking-label: 0.08em;
    --tracking-overline: 0.10em;
}

html {
    font-size: 18px;
    text-rendering: optimizeLegibility;
}

body {
    font-size: 1rem;
}

html[data-theme="light"] body {
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
}

html[data-theme="dark"] body,
html:not([data-theme]) body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4,
.page-header h2,
.brand,
.navtabs a {
    font-family: var(--display);
}

/* Navigation — lighter strokes, still readable */
.navtabs a,
.navtabs a.active,
.nav-tools a,
a.nav-help {
    font-weight: 400;
}

.brand,
.brand-main,
.nav-user-name {
    font-weight: 500;
}

/* Table body — mono numerics read cleaner at regular weight */
table td {
    font-weight: 400;
}

/* Softer uppercase labels — editorial, not terminal */
th,
label,
.page-header p,
.chart-section-title,
.trade-log-title,
.metrics-column-title,
.field label,
.sidebar-title,
.panel-title,
.modal-header h3 {
    font-weight: 500;
}
