/* Shared base stylesheet for johnfaben.com and subdomains.
   Host one copy; link from every site. Per-site tweaks go in a small
   override <style> block or file — change only the :root variables
   you need, don't copy the rest. */

:root {
    --bg: #d8d8d8;
    --surface: #fff;
    --panel: #ebebeb;
    --panel-hover: #dfdfdf;
    --text: #333;
    --heading: #4a4a4a;
    --muted: #888;
    --border: #cccccc;
    --accent: #000;
    --success: #4a4a4a;
    --success-hover: #2e2e2e;
    --warning: #6b6b6b;
    --suit-black: #2a4a6a;
    --suit-red: #c0392b;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    color: var(--text);
    background: var(--bg);
    border-top: 3px solid #252525;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

#header {
    background: var(--surface);
    padding: 25px 0;
}

#header h1 {
    font-size: 30px;
    color: #252525;
    font-weight: bold;
    line-height: 1.1;
}

#header h1 a {
    color: #252525;
    text-decoration: none;
}

nav {
    background: var(--surface);
    border-top: 1px solid #dedede;
    border-bottom: 3px solid #e8e8e8;
}

nav ul {
    list-style: none;
    display: flex;
}

nav a {
    display: block;
    padding: 15px 10px 13px;
    margin-right: 15px;
    color: #5e5e5e;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 2px solid transparent;
}

nav a:hover, nav a.active {
    color: #2e2e2e;
    border-bottom-color: #4c4c4c;
}

nav .nav-logout {
    margin-left: auto;
    margin-right: 0;
}

nav .nav-logout a {
    color: #999;
    font-size: 13px;
    margin-right: 0;
}

nav .nav-logout a:hover {
    color: #666;
    border-bottom-color: transparent;
}

#content {
    background: var(--surface);
    padding: 50px 0;
    flex: 1;
}

#content p {
    line-height: 1.5;
    padding: 0.5em 0;
}

#content a:not([class]) {
    color: var(--accent);
    text-decoration: none;
}

#content a:not([class]):hover {
    color: #888;
}

#content h2 {
    font-size: 1.7em;
    font-weight: normal;
    color: var(--heading);
    padding: 0.3em 0;
}

#content h3 {
    font-size: 1.2em;
    color: var(--heading);
    padding: 0.5em 0 0.2em;
}

#content strong {
    color: var(--heading);
}

/* Patterns used across sites */

.projects ul {
    list-style: none;
    padding: 0.5em 0;
}

.projects li {
    padding: 0.4em 0;
}

.projects li a {
    font-size: 1.1em;
}

.project-desc {
    color: #999;
    font-size: 0.9em;
    margin-left: 0.5em;
}

.cv-section {
    margin-bottom: 1.5em;
}

/* Flash messages (Flask apps with flashed_messages) */

.flash-messages { max-width: 720px; margin: 10px auto; padding: 0 20px; }
.flash { background: var(--panel); border: 1px solid var(--border); border-radius: 6px;
         padding: 10px 14px; margin-bottom: 8px; font-size: 14px; color: var(--text); }
