/*
Theme Name: Focus
Author: Elie Berreby
Description: A minimalist, personal branding theme. Version 1.12 (Syntax Fix).
Version: 1.12
*/

:root {
    /* DEFAULT: Dark Mode (High Contrast) */
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #69f0ae;    
    --meta-color: #a0a0a0;      
    --border-color: #333;
    
    /* Dark Mode Code Container */
    --code-bg: #0d1117;         
    --code-text: #c9d1d9;       /* Neutral base for large syntax blocks */
    --code-border: #30363d;
    --inline-code-bg: #1a1a1a;  
    --inline-code-text: #69f0ae; /* Neon Green for inline code */
    
    /* Dark Mode Syntax Colors (VS Code / GitHub Dark inspired) */
    --syn-comment: #8b949e;     
    --syn-tag: #ff7b72;         
    --syn-attr: #79c0ff;        
    --syn-string: #a5d6ff;      
    --syn-punct: #c9d1d9;       
    --syn-keyword: #ff7b72;     
    --syn-function: #d2a8ff;    
    
    /* Widened reading column for tech content */
    --max-width: 800px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Light Mode Override */
body.light-mode {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #006400;    
    --meta-color: #555555;      
    --border-color: #ddd;
    
    /* Light Mode Code Container */
    --code-bg: #f6f8fa;         
    --code-text: #24292e;       /* Neutral base for large syntax blocks */
    --code-border: #e1e4e8;
    --inline-code-bg: #e8e8e8;
    --inline-code-text: #004d00; /* Deep Green for inline code */
    
    /* Light Mode Syntax Colors */
    --syn-comment: #6a737d;     
    --syn-tag: #22863a;         
    --syn-attr: #005cc5;        
    --syn-string: #032f62;      
    --syn-punct: #24292e;       
    --syn-keyword: #d73a49;     
    --syn-function: #6f42c1;    
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-stack);
    line-height: 1.6;
    font-size: 19px;
    padding: 0 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: var(--accent-color); text-decoration: none; border-bottom: 1px solid transparent; transition: border-bottom 0.2s; }
a:hover { border-bottom: 1px solid var(--accent-color); }

/* Layout */
.container { max-width: var(--max-width); margin: 4rem auto; position: relative; }

/* Profile Header */
header.profile-header { text-align: center; margin-bottom: 5rem; }
.profile-headshot { display: block; width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 2px solid var(--border-color); transition: border-color 0.3s; }
.profile-headshot:hover { border-color: var(--accent-color); }
.profile-name { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.5px; line-height: 1.2; }
.profile-name a { color: var(--text-color); border: none; }
.profile-socials { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--meta-color); }
.profile-socials a { color: var(--meta-color); margin: 0 5px; border: none; }
.profile-socials a:hover { color: var(--accent-color); }
.separator { color: var(--border-color); }

/* Theme Toggle */
.theme-toggle { position: absolute; top: -2.5rem; right: 0; background: var(--bg-color); border: 2px solid var(--border-color); color: var(--text-color); cursor: pointer; font-size: 0.85rem; font-weight: bold; font-family: var(--font-stack); padding: 5px 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.theme-toggle:hover { border-color: var(--accent-color); color: var(--accent-color); }

/* Typography */
article { margin-bottom: 4rem; }
h1, h2, h3 { color: var(--text-color); margin-bottom: 1rem; line-height: 1.2; letter-spacing: -0.5px; }
h1 { font-size: 2.2rem; }


h2 { 
    font-size: 1.8rem; 
    margin-top: 3.5rem; /* Increased from 2rem for a major section break */
}

h3 { font-size: 1.4rem; margin-top: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
p { margin-bottom: 1.5rem; }


/* --- BLOCKQUOTES --- */
blockquote {
    font-size: 1.25rem;     /* Larger than your standard 19px text */
    font-style: italic;
    font-weight: 500;       /* Slightly thicker for higher contrast */
    margin: 3rem 0;         /* Deep breathing room above and below */
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--accent-color); /* Bright green left edge */
    background-color: var(--inline-code-bg);    /* Reuses your subtle inline background */
    border-radius: 0 8px 8px 0;
}

/* Removes the extra empty space if your quote is just one paragraph */
blockquote p:last-child {
    margin-bottom: 0; 
}

/* Styling for the author attribution (if you use the <cite> tag) */
blockquote cite {
    display: block;
    margin-top: 1.2rem;
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 700;
    color: var(--meta-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



/* --- LISTS (Editorial Style) --- */
ul, ol { 
    margin-top: 2rem;      
    margin-bottom: 2.5rem; 
    margin-left: 2.5rem;   
}
li { 
    margin-bottom: 1.2rem; 
    line-height: 1.8;      
}
li:last-child { 
    margin-bottom: 0; 
}
li > ul, li > ol { 
    margin-top: 1.2rem;    
    margin-bottom: 0; 
    margin-left: 1.5rem;   
}

/* --- CODE BLOCKS & INLINE CODE --- */
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background-color: var(--inline-code-bg);
    color: var(--inline-code-text); /* Uses dedicated green */
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.85em;
}

pre {
    background-color: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    overflow-x: auto; 
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

pre code {
    background-color: transparent;
    color: var(--code-text); /* Uses neutral base so Prism can colorize */
    padding: 0;
    border-radius: 0;
    font-size: 0.9em;
    line-height: 1.6;
    white-space: pre; 
    word-break: normal;
    word-wrap: normal;
}

/* --- PRISM.JS SYNTAX HIGHLIGHTING MAP --- */
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: var(--syn-comment); font-style: italic; }
.token.punctuation { color: var(--syn-punct); }
.token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted { color: var(--syn-tag); }
.token.selector, .token.attr-name, .token.char, .token.builtin, .token.inserted { color: var(--syn-attr); }
.token.string, .token.attr-value { color: var(--syn-string); }
.token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string { color: var(--syn-punct); }
.token.atrule, .token.keyword { color: var(--syn-keyword); }
.token.function, .token.class-name { color: var(--syn-function); }

/* --- TABLES --- */
figure.wp-block-table, table {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    overflow-x: auto; 
    display: block;   
}
table {
    border-collapse: collapse;
    font-size: 0.85rem; 
    line-height: 1.5;
}
th, td {
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    text-align: left;
    vertical-align: top; 
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}
th:first-child, td:first-child {
    white-space: nowrap; /* Prevents the first column from breaking words */
}
th {
    background-color: var(--inline-code-bg); 
    font-weight: 700;
    color: var(--text-color);
}
tr:nth-child(even) {
    background-color: rgba(128, 128, 128, 0.05);
}

/* --- PRESS PAGE STYLES --- */
.press-header { text-align: center; margin-bottom: 3rem; }
.email-button { font-size: 1.2rem; font-weight: bold; border-bottom: 2px solid var(--accent-color); }
.press-policy-box { background: var(--border-color); color: var(--text-color); padding: 1rem; font-size: 0.9rem; border-radius: 4px; margin-top: 2rem; margin-bottom: 3rem; }
.press-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2rem; }
.small-meta { font-size: 0.8rem; color: var(--meta-color); margin-bottom: 1rem; margin-top: -0.5rem; }
.asset-item { margin-bottom: 2rem; }
.asset-item img { width: 100%; border-radius: 8px; border: 1px solid var(--border-color); }
.download-link { display: block; font-size: 0.85rem; margin-top: 0.5rem; font-weight: bold; }
.press-mentions-list { list-style: none; margin: 0; padding: 0; }
.press-mentions-list li { margin-bottom: 1.5rem; }
.press-mentions-list a { display: block; font-weight: 600; font-size: 1rem; line-height: 1.3; }
.source-domain { font-size: 0.8rem; color: var(--meta-color); font-family: monospace; }

@media (max-width: 600px) {
    .press-grid { grid-template-columns: 1fr; gap: 2rem; }
    body { font-size: 18px; }
    .container { margin-top: 2rem; }
}

/* Footer */
footer { text-align: center; font-size: 0.9rem; color: var(--meta-color); margin-top: 5rem; padding-bottom: 2rem; border-top: 1px solid var(--border-color); padding-top: 2rem; }
