/* Shared base — warm tech style */

:root {
    --text: #2d2420;
    --text-secondary: #6b5c52;
    --text-muted: #9b8e85;
    --bg: #faf8f5;
    --bg-secondary: #f0ece7;
    --border: #e0d8d0;
    --link: #c26a2f;
    --link-hover: #a85520;
    --accent: #d97706;
    --accent-light: #fef3c7;
    --accent-dark: #92400e;
    --success: #16a34a;
    --success-light: #dcfce7;
    --blue: #2563eb;
    --blue-light: #dbeafe;
    --purple: #7c3aed;
    --purple-light: #ede9fe;
    --max-width: 820px;
}

[data-theme="dark"] {
    --text: #e8e0d8;
    --text-secondary: #b5a99e;
    --text-muted: #8a7e75;
    --bg: #1c1917;
    --bg-secondary: #292524;
    --border: #44403c;
    --link: #f59e0b;
    --link-hover: #fbbf24;
    --accent: #f59e0b;
    --accent-light: #422006;
    --accent-dark: #fbbf24;
    --success: #22c55e;
    --success-light: #14532d;
    --blue: #60a5fa;
    --blue-light: #1e3a5f;
    --purple: #a78bfa;
    --purple-light: #2e1065;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

header {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    margin-bottom: 32px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

header h1 { font-size: 1.3rem; font-weight: 700; }
header h1 a { color: var(--text); text-decoration: none; }
header h1 a:hover { text-decoration: underline; }

header nav { display: flex; gap: 14px; font-size: 0.85rem; align-items: center; }
header nav a { color: var(--text-secondary); text-decoration: none; }
header nav a:hover { color: var(--link); }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-top: 48px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.footer-note { margin-top: 6px; font-size: 0.8rem; }

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 600px) {
    html { font-size: 15px; }
    header .container { flex-direction: column; gap: 8px; }
    .container { padding: 0 16px; }
}
