/* Base Styles - Reset, Typography, Base Elements */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    zoom: 1.5; /* Force 150% zoom like old site */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-background);
    margin: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    font-weight: bold;
    line-height: var(--line-height-tight);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-xxl);
}
h2 {
    font-size: var(--font-size-xl);
}
h3 {
    font-size: var(--font-size-lg);
}
h4 {
    font-size: var(--font-size-md);
}
h5 {
    font-size: var(--font-size-base);
}
h6 {
    font-size: var(--font-size-sm);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:visited {
    color: var(--color-link-visited);
}

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

a:active {
    color: var(--color-link-active);
}

a:focus {
    outline: none;
}

/* Lists */
ul,
ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: var(--spacing-xs);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Code */
code,
pre {
    font-family: "Courier New", monospace;
    background-color: var(--color-background-secondary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
}

pre {
    padding: var(--spacing-md);
    overflow-x: auto;
    margin-bottom: var(--spacing-md);
}

/* Horizontal Rule */
hr {
    border: none;
    border-top: var(--border-width-thin) solid var(--color-form-border);
    margin: var(--spacing-lg) 0;
}

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

/* Focus Styles - No borders */
:focus-visible {
    outline: none;
}

*:focus {
    outline: none;
}

/* Utility Classes */
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

.text-small {
    font-size: var(--font-size-sm);
}
.text-xs {
    font-size: var(--font-size-xs);
}
.text-large {
    font-size: var(--font-size-md);
}

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

.hidden {
    display: none;
}
.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;
}
