:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --accent: #2563eb;
    --step-bg: #f3f4f6;
    --focus-outline: #2563eb;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111827;
        --text: #f9fafb;
        --accent: #60a5fa;
        --step-bg: #1f2937;
    }
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

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

header {
    border-bottom: 2px solid var(--step-bg);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 10;
}

.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

input, button {
    padding: 0.5rem;
    font-size: 1rem;
    border: 2px solid var(--step-bg);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
}

button:focus-visible, input:focus-visible, .step:focus-visible {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

.step {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--step-bg);
    border-radius: 8px;
    transition: transform 0.2s, opacity 0.2s;
    cursor: pointer;
}

/* Focus Mode Styles */
body.focus-mode #ingredients, 
body.focus-mode header h1 {
    display: none;
}

body.focus-mode .step:not(.active) {
    opacity: 0.3;
    transform: scale(0.98);
}

body.focus-mode .step.active {
    opacity: 1;
    transform: scale(1.02);
    border: 2px solid var(--accent);
}
