/* ============================================
   Base Styles (Uber Base Web)
   ============================================ */

@import url('design-tokens.css');

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

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--color-text-primary);
    background-color: var(--color-bg-body);
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    font-weight: 500;
    /* Uber uses medium weight for headings */
    line-height: 1.2;
    margin-bottom: var(--spacing-4);
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

h4 {
    font-size: var(--font-size-h4);
}

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

a {
    color: var(--color-text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-text-primary);
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

a:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-6);
    /* Uber uses generous padding */
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: var(--spacing-4);
}

.mt-4 {
    margin-top: var(--spacing-4);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}