*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:     #faf9f6;
    --bg2:    #f0ece5;
    --bg3:    #e8e3db;
    --border: #ddd8ce;
    --text:   #1a1716;
    --text2:  #6b6560;
    --accent: #c96442;
    --blue:   #2563a8;
    --green:  #2a7a4b;
    --orange: #c96442;
    --purple: #6d4fc2;
    --yellow: #a07c2a;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

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

.container { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Nav */
nav {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    margin-bottom: 48px;
    background: var(--bg);
}
nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    text-decoration: none;
}
.nav-logo:hover { text-decoration: none; opacity: 0.7; }

.nav-right { display: flex; align-items: center; gap: 16px; }

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a {
    color: var(--text2);
    font-size: 14px;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 6px;
    font-size: 13px; font-weight: 600;
    text-decoration: none; transition: opacity 0.15s;
}
.nav-btn:hover { text-decoration: none; opacity: 0.85; }
.nav-btn-primary { background: var(--accent); color: #fff; }
.nav-btn-ghost { color: var(--text2); border: 1px solid var(--border); }
.nav-btn-ghost:hover { color: var(--text); }

/* Lang switcher */
.lang-switcher {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}
.lang-switcher a {
    padding: 4px 10px;
    color: var(--text2);
    text-decoration: none;
}
.lang-switcher a:hover { color: var(--text); text-decoration: none; }
.lang-switcher a.active { background: var(--bg3); color: var(--text); }

/* Flash messages */
.flash-messages { margin-bottom: 24px; }
.flash {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 14px;
}
.flash.success { background: #edf7f0; border: 1px solid #a3d4b5; color: #1e6640; }
.flash.error   { background: #fdf0ee; border: 1px solid #e8b4a8; color: #8b2e1e; }
.flash.warning { background: #fdf6e8; border: 1px solid #e0c87a; color: #7a5a10; }
.flash.info    { background: #eef3fb; border: 1px solid #a8c0e0; color: #1e3a6e; }

/* Footer */
footer {
    border-top: 1px solid var(--border);
    margin-top: 80px;
    padding: 24px 0;
    text-align: center;
    color: var(--text2);
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
}
