/* GeoSEO — Red Graphite Theme */

:root {
    --bg: #f5f5f5;
    --bg-content: #ffffff;
    --bg-header: #2d2d2d;
    --bg-footer: #2d2d2d;
    
    --text: #2d2d2d;
    --text-muted: #6b6b6b;
    --text-light: #ffffff;
    
    --accent: #c41e3a;
    --accent-hover: #a01830;
    
    --border: #e0e0e0;
}

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

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

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

/* Header - dark */
header {
    background: var(--bg-header);
    padding: 1rem 2rem;
}

header a { color: var(--text-light); opacity: 0.9; }
header a:hover { opacity: 1; text-decoration: none; }

nav { display: flex; gap: 0.75rem; justify-content: center; }

/* Main - white card */
main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-content);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

h1 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--text); }
h2 { font-size: 1.4rem; margin: 1.5rem 0 0.75rem; color: var(--text); }
h3 { font-size: 1.1rem; margin: 0 0 0.5rem; color: var(--text); }
h3 a { color: var(--accent); text-decoration: underline; }
h3 a:hover { text-decoration: none; }
p { margin-bottom: 1rem; }
.subtitle { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; }

/* Accent blocks */
.block-accent {
    background: #fef3f3;
    border-left: 4px solid var(--accent);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 4px 4px 0;
}

/* Footer - dark */
footer {
    background: var(--bg-footer);
    color: var(--text-light);
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

footer a { color: var(--text-light); opacity: 0.7; }
footer a:hover { opacity: 1; }

/* Code */
code {
    background: #f0f0f0;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Lists */
ul, ol { margin: 1rem 0 1rem 1.5rem; }
li { margin-bottom: 0.5rem; }

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-header);
    color: var(--text-light);
    font-weight: 600;
}

tr:hover {
    background: #fafafa;
}

/* Responsive tables */
@media (max-width: 600px) {
    table { font-size: 0.8rem; }
    th, td { padding: 0.5rem; }
}

/* Responsive */
@media (max-width: 600px) {
    main { margin: 1rem; padding: 1.5rem; }
    h1 { font-size: 1.5rem; }
}


/* Nav right alignment - fixed */
nav { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
nav .nav-right:first-of-type { margin-left: auto; }

/* Nav separators */
nav a:not(:last-child)::after {
    content: '.';
    margin-left: 0.75rem;
    color: #ccc;
}
nav a { margin-right: 0; }
