/*
Theme Name: Zach Hodge Local Nerd
Description: Pure black and white. Expects local FiraCode Nerd Font in /fonts folder. Smaller, slower ticker.
Author: Zach M Hodge
Version: 4.0
*/

@font-face {
    font-family: 'FiraNerd';
    src: url('./fonts/FiraCodeNerdFont-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --font-stack: 'FiraNerd', monospace;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-stack);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

h1, h2, h3, a, .ticker {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-stack);
}

header {
    text-align: center;
    padding-top: 3rem;
}

header h1 {
    font-size: 3rem;
    margin: 0 0 1rem 0;
    letter-spacing: 2px;
    font-weight: normal;
}

/* Country Population Ticker - Smaller and Slower */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: #080808;
    padding: 0.4rem 0;
    border-top: 1px dashed #333333;
    border-bottom: 1px dashed #333333;
    white-space: nowrap;
    margin-bottom: 4rem;
}

.ticker {
    display: inline-block;
    animation: ticker 900s linear infinite;
    font-size: 0.75rem;
    color: #cccccc;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Post Layout */
.post { margin-bottom: 8rem; }
.post-title { font-size: 2rem; margin-bottom: 0.2rem; font-weight: normal; }
.post-title a:hover { text-decoration: underline; }
.post-date { font-size: 0.9rem; opacity: 0.6; margin-bottom: 2rem; display: block; }

pre, code {
    background: #111111;
    padding: 0.2rem 0.4rem;
    border: 1px solid #333333;
    font-family: var(--font-stack);
}
pre { padding: 1rem; overflow-x: auto; }
blockquote { border-left: 2px solid var(--text-color); margin-left: 0; padding-left: 1rem; font-style: italic; }
img { max-width: 100%; height: auto; }

::selection { background: var(--text-color); color: var(--bg-color); }
