/* Base Styles - Robert as a Service */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: var(--font-family);
    font-size: var(--text-body);
    font-weight: var(--font-regular);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-text);
}

.display {
    font-size: var(--text-display);
    font-weight: var(--font-bold);
    letter-spacing: -0.02em;
}

h1,
.h1 {
    font-size: var(--text-h1);
    letter-spacing: -0.02em;
}

h2,
.h2 {
    font-size: var(--text-h2);
    letter-spacing: -0.01em;
}

h3,
.h3 {
    font-size: var(--text-h3);
}

h4,
.h4 {
    font-size: var(--text-h4);
}

p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

.text-small {
    font-size: var(--text-small);
}

.text-caption {
    font-size: var(--text-caption);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-secondary {
    color: var(--color-text-secondary);
}

/* Links */
a {
    color: var(--color-accent);
    transition: color var(--transition-fast);
}

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

/* Selection */
::selection {
    background-color: var(--color-accent-subtle);
    color: var(--color-accent);
}

/* Focus States */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-subtle);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}