/* mattfracek.com — shared styles */

:root {
    --bg: #0a0a0a;
    --bg-surface: #111111;
    --bg-elevated: #181818;
    --text: #c8c8b4;
    --text-bright: #e0e0cc;
    --text-muted: #7a7a68;
    --text-faint: #4a4a3e;
    --accent: #b8a078;
    --accent-dim: #8a7456;
    --accent-glow: rgba(184, 160, 120, 0.12);
    --accent-glow-strong: rgba(184, 160, 120, 0.25);
    --green: #4a8a5c;
    --green-dim: rgba(74, 138, 92, 0.15);
    --border: rgba(200, 200, 180, 0.06);
    --border-hover: rgba(200, 200, 180, 0.12);
    --scanline: rgba(200, 200, 180, 0.015);
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 0.92rem;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* CRT scanline overlay */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, var(--scanline) 2px, var(--scanline) 4px);
    pointer-events: none;
    z-index: 100;
}

/* subtle vignette */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 99;
}

/* cursor blink */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cursor {
    display: inline-block;
    width: 0.55em;
    height: 1.1em;
    background: var(--accent);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

/* nav */
nav {
    position: relative;
    z-index: 10;
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.04em;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

nav a:hover { color: var(--accent); }

nav .site-name {
    font-family: 'Special Elite', cursive;
    font-size: 1rem;
    color: var(--text-bright);
    letter-spacing: 0.06em;
}

nav .nav-links {
    display: flex;
    gap: 2rem;
}

nav .nav-links a::before {
    content: '> ';
    color: var(--text-faint);
}

/* back link */
.back {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-faint);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.15s ease;
    display: inline-block;
    margin-bottom: 2.5rem;
}

.back::before { content: '< '; }
.back:hover { color: var(--accent); }

/* content wrap */
.content-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* divider */
.divider {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-faint);
    letter-spacing: 0.3em;
    text-align: center;
}

.divider span {
    display: inline-block;
    padding: 0.5rem 0;
}

/* section labels */
.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 2rem;
}

.section-label::before {
    content: '> ';
    color: var(--accent-dim);
}

/* headings */
h1 {
    font-family: 'Special Elite', cursive;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--text-bright);
    margin-bottom: 0.6rem;
}

h1.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

h2 {
    font-family: 'Special Elite', cursive;
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--text-bright);
    margin-bottom: 0.6rem;
}

/* subtitle */
.subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 2.5rem;
}

.subtitle.centered { text-align: center; }

/* title marker (sunset) */
.title-marker {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* body text */
.body-text p {
    font-family: 'Courier Prime', monospace;
    font-size: 0.92rem;
    line-height: 1.85;
    margin-bottom: 1.4rem;
    color: var(--text);
}

.body-text p strong {
    color: var(--text-bright);
    font-weight: 700;
}

.body-text p em {
    color: var(--text-bright);
    font-style: italic;
}

/* wiki links */
.wiki-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-dim);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.wiki-link:hover {
    border-bottom-style: solid;
}

/* footer */
footer {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 2.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-faint);
    display: flex;
    justify-content: space-between;
    letter-spacing: 0.04em;
    border-top: 1px solid var(--border);
}

footer a {
    color: var(--text-faint);
    text-decoration: none;
    transition: color 0.15s ease;
}

footer a:hover { color: var(--accent); }

/* selection */
::selection {
    background: var(--accent-glow-strong);
    color: var(--text-bright);
}

/* scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-faint); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* mobile */
@media (max-width: 600px) {
    nav { padding: 1.5rem 1.2rem 0; }
    .content-wrap { padding: 2.5rem 1.2rem; }
    h1 { font-size: 1.3rem; }
    h1.page-title { font-size: 1.8rem; }
    footer { padding: 1.5rem 1.2rem 2rem; }
}
